Package ucar.nc2.ft.point.writer
Class WriterCFTrajectoryCollection
- java.lang.Object
-
- ucar.nc2.ft.point.writer.CFPointWriter
-
- ucar.nc2.ft.point.writer.WriterCFTrajectoryCollection
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class WriterCFTrajectoryCollection extends CFPointWriter
Write a CF "Discrete Sample" trajectory collection file. Example H.3.5. Contiguous ragged array representation of trajectories, H.4.3- Since:
- 7/11/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, useAlt, wmoName, writer
-
-
Constructor Summary
Constructors Constructor Description WriterCFTrajectoryCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config)
WriterCFTrajectoryCollection(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<TrajectoryFeature> trajectories)
void
writeObsData(PointFeature pf)
int
writeTrajectory(TrajectoryFeature traj)
void
writeTrajectoryData(TrajectoryFeature 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, makeMiddleVariables, setFeatureAuxInfo, trackBB, writeExtraVariables, writeFeatureCollection, writeFeatureCollection, writeHeader, writeHeader, writeStructureData, writeStructureDataClassic
-
-
-
-
Constructor Detail
-
WriterCFTrajectoryCollection
public WriterCFTrajectoryCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
WriterCFTrajectoryCollection
public WriterCFTrajectoryCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeTrajectory
public int writeTrajectory(TrajectoryFeature traj) throws IOException
- Throws:
IOException
-
writeHeader
protected void writeHeader(List<TrajectoryFeature> trajectories) throws IOException
- Throws:
IOException
-
makeFeatureVariables
protected void makeFeatureVariables(List<StructureData> featureDataStructs, boolean isExtended)
- Specified by:
makeFeatureVariables
in classCFPointWriter
-
writeTrajectoryData
public void writeTrajectoryData(TrajectoryFeature profile, int nobs) throws IOException
- Throws:
IOException
-
writeObsData
public void writeObsData(PointFeature pf) throws IOException
- Throws:
IOException
-
-