Package ucar.nc2.ft.point.writer
Class WriterCFStationCollection
- java.lang.Object
-
- ucar.nc2.ft.point.writer.CFPointWriter
-
- ucar.nc2.ft.point.writer.WriterCFStationCollection
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class WriterCFStationCollection extends CFPointWriter
Write a CF "Discrete Sample" station file. Example H.7. Timeseries of station data in the indexed ragged array representation.writeHeader() iterate { writeRecord() } finish()- Since:
- Aug 19, 2009
- See Also:
- "http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.6/cf-conventions.html#idp8340320"
-
-
Field Summary
Fields Modifier and Type Field Description protected intobsRecnoprotected StructurestationStruct-
Fields inherited from class ucar.nc2.ft.point.writer.CFPointWriter
altitudeCoordinateName, altName, altUnits, config, coordVars, dataMap, dataVars, descName, extra, id_strlen, idMissingValue, isExtendedModel, latName, llbb, lonName, maxDate, minDate, nfeatures, numberOfObsName, profileDimName, profileIdName, profileStructName, profileTimeName, record, recordDim, recordDimName, recordName, reservedGlobalAtts, reservedVariableAtts, stationAltName, stationDimName, stationIdName, stationIndexName, stationStructName, timeName, timeUnit, trajDimName, trajIdName, trajStructName, wmoName, writer
-
-
Constructor Summary
Constructors Constructor Description WriterCFStationCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config)WriterCFStationCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidmakeFeatureVariables(List<StructureData> featureDataStructs, boolean isExtended)voidwriteHeader(List<StationFeature> stns, StationPointFeature spf)voidwriteHeader(StationTimeSeriesFeatureCollection stations)voidwriteRecord(String stnName, double timeCoordValue, CalendarDate obsDate, StructureData sdata)voidwriteRecord(String stnName, String timeCoordName, double timeCoordValue, CalendarDate obsDate, String altName, double altValue, StructureData sdata)voidwriteRecord(Station s, PointFeature sobs, StructureData sdata)-
Methods inherited from class ucar.nc2.ft.point.writer.CFPointWriter
addCoordinatesClassic, addCoordinatesExtended, addDataVariablesClassic, addDataVariablesExtended, addDimensionsClassic, addExtraVariables, close, finish, getDataVar, getSharedDimName, main, makeDimensionList, makeMiddleVariables, setFeatureAuxInfo, trackBB, writeExtraVariables, writeFeatureCollection, writeFeatureCollection, writeHeader, writeHeader, writeStructureData, writeStructureDataClassic
-
-
-
-
Field Detail
-
stationStruct
protected Structure stationStruct
-
obsRecno
protected int obsRecno
-
-
Constructor Detail
-
WriterCFStationCollection
public WriterCFStationCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
WriterCFStationCollection
public WriterCFStationCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeHeader
public void writeHeader(StationTimeSeriesFeatureCollection stations) throws IOException
- Throws:
IOException
-
writeHeader
public void writeHeader(List<StationFeature> stns, @Nullable StationPointFeature spf) throws IOException
- Throws:
IOException
-
makeFeatureVariables
protected void makeFeatureVariables(List<StructureData> featureDataStructs, boolean isExtended)
- Specified by:
makeFeatureVariablesin classCFPointWriter
-
writeRecord
public void writeRecord(Station s, PointFeature sobs, StructureData sdata) throws IOException
- Throws:
IOException
-
writeRecord
public void writeRecord(String stnName, double timeCoordValue, CalendarDate obsDate, StructureData sdata) throws IOException
- Throws:
IOException
-
writeRecord
public void writeRecord(String stnName, String timeCoordName, double timeCoordValue, CalendarDate obsDate, String altName, double altValue, StructureData sdata) throws IOException
- Throws:
IOException
-
-