Package ucar.nc2.ft.point.writer
Class WriterCFProfileCollection
- java.lang.Object
-
- ucar.nc2.ft.point.writer.CFPointWriter
-
- ucar.nc2.ft.point.writer.WriterCFProfileCollection
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class WriterCFProfileCollection extends CFPointWriter
Write a CF "Discrete Sample" profile collection file. Example H.3.5. Contiguous ragged array representation of profiles, H.3.4writeHeader() iterate { writeRecord() } finish()
- Since:
- April, 2012
- See Also:
- "http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.6/cf-conventions.html#idp8372832"
-
-
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 WriterCFProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config)
WriterCFProfileCollection(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> featureDataStructs, boolean isExtended)
protected void
writeHeader(List<ProfileFeature> profiles)
int
writeProfile(ProfileFeature profile)
-
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
-
WriterCFProfileCollection
public WriterCFProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
WriterCFProfileCollection
public WriterCFProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeProfile
public int writeProfile(ProfileFeature profile) throws IOException
- Throws:
IOException
-
writeHeader
protected void writeHeader(List<ProfileFeature> profiles) throws IOException
- Throws:
IOException
-
makeFeatureVariables
protected void makeFeatureVariables(List<StructureData> featureDataStructs, boolean isExtended)
- Specified by:
makeFeatureVariables
in classCFPointWriter
-
-