Package ucar.nc2.ft.point.writer
Class WriterCFStationProfileCollection
- java.lang.Object
-
- ucar.nc2.ft.point.writer.CFPointWriter
-
- ucar.nc2.ft.point.writer.WriterCFStationProfileCollection
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class WriterCFStationProfileCollection extends CFPointWriter
Write a CF "Discrete Sample" station profile collection file. Ragged array representation of time series profiles, H.5.3 This uses the contiguous ragged array representation for each profile (9.5.43.3), and the indexed ragged array representation to organise the profiles into time series (9.3.54).- Since:
- 7/14/2014
-
-
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, wmoName, writer
-
-
Constructor Summary
Constructors Constructor Description WriterCFStationProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config)
WriterCFStationProfileCollection(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> stnDataStructs, boolean isExtended)
protected void
makeMiddleVariables(List<StructureData> profileDataStructs, boolean isExtended)
void
setStations(List<StationFeature> stns)
void
writeHeader(List<StationFeature> stations)
void
writeObsData(PointFeature pf)
int
writeProfile(StationProfileFeature spf, ProfileFeature profile)
void
writeProfileData(int stnIndex, ProfileFeature profile, int nobs)
-
Methods inherited from class ucar.nc2.ft.point.writer.CFPointWriter
addCoordinatesClassic, addCoordinatesExtended, addDataVariablesClassic, addDataVariablesExtended, addDimensionsClassic, addExtraVariables, close, finish, getDataVar, getSharedDimName, main, makeDimensionList, setFeatureAuxInfo, trackBB, writeExtraVariables, writeFeatureCollection, writeFeatureCollection, writeHeader, writeHeader, writeStructureData, writeStructureDataClassic
-
-
-
-
Constructor Detail
-
WriterCFStationProfileCollection
public WriterCFStationProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
WriterCFStationProfileCollection
public WriterCFStationProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setStations
public void setStations(List<StationFeature> stns)
-
writeProfile
public int writeProfile(StationProfileFeature spf, ProfileFeature profile) throws IOException
- Throws:
IOException
-
writeHeader
public void writeHeader(List<StationFeature> stations) throws IOException
- Throws:
IOException
-
makeFeatureVariables
protected void makeFeatureVariables(List<StructureData> stnDataStructs, boolean isExtended)
- Specified by:
makeFeatureVariables
in classCFPointWriter
-
makeMiddleVariables
protected void makeMiddleVariables(List<StructureData> profileDataStructs, boolean isExtended)
- Overrides:
makeMiddleVariables
in classCFPointWriter
-
writeProfileData
public void writeProfileData(int stnIndex, ProfileFeature profile, int nobs) throws IOException
- Throws:
IOException
-
writeObsData
public void writeObsData(PointFeature pf) throws IOException
- Throws:
IOException
-
-