Package ucar.nc2.ft.point.writer
Class WriterCFPointCollection
- java.lang.Object
-
- ucar.nc2.ft.point.writer.CFPointWriter
-
- ucar.nc2.ft.point.writer.WriterCFPointCollection
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class WriterCFPointCollection extends CFPointWriter
Write a CF 1.6 "Discrete Sample" point file.writeHeader() iterate { writeRecord() } finish()
- Since:
- Nov 23, 2010
- See Also:
- "http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.6/cf-conventions.html#idp8294224"
-
-
Field Summary
-
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, useAlt, wmoName, writer
-
-
Constructor Summary
Constructors Constructor Description WriterCFPointCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config)
WriterCFPointCollection(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 void
makeFeatureVariables(List<StructureData> featureData, boolean isExtended)
void
writeHeader(PointFeature pf)
void
writeHeader(PointFeatureCollection pfc)
void
writeRecord(double timeCoordValue, CalendarDate obsDate, EarthLocation loc, StructureData sdata)
void
writeRecord(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
-
-
-
-
Constructor Detail
-
WriterCFPointCollection
public WriterCFPointCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
WriterCFPointCollection
public WriterCFPointCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeHeader
public void writeHeader(PointFeature pf) throws IOException
- Throws:
IOException
-
writeHeader
public void writeHeader(PointFeatureCollection pfc) throws IOException
- Throws:
IOException
-
makeFeatureVariables
protected void makeFeatureVariables(List<StructureData> featureData, boolean isExtended)
- Specified by:
makeFeatureVariables
in classCFPointWriter
-
writeRecord
public void writeRecord(PointFeature sobs, StructureData sdata) throws IOException
- Throws:
IOException
-
writeRecord
public void writeRecord(double timeCoordValue, CalendarDate obsDate, EarthLocation loc, StructureData sdata) throws IOException
- Throws:
IOException
-
-