Package ucar.nc2.ft.point.writer
Class WriterCFTrajectoryProfileCollection
- java.lang.Object
-
- ucar.nc2.ft.point.writer.CFPointWriter
-
- ucar.nc2.ft.point.writer.WriterCFTrajectoryProfileCollection
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class WriterCFTrajectoryProfileCollection extends CFPointWriter
Write a CF "Discrete Sample" trajectory profile (section) collection file. Contiguous ragged array representation of trajectory profile, H.6.3 *- Since:
- 7/14/2014
-
-
Field Summary
Fields Modifier and Type Field Description static String
trajectoryIndexName
-
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 WriterCFTrajectoryProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config)
WriterCFTrajectoryProfileCollection(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> trajDataStructs, boolean isExtended)
protected void
makeMiddleVariables(List<StructureData> profileDataStructs, boolean isExtended)
void
setFeatureAuxInfo2(int ntraj, int traj_strlen)
protected void
writeHeader(List<TrajectoryProfileFeature> trajectoryProfiles)
int
writeProfile(TrajectoryProfileFeature section, ProfileFeature profile)
void
writeProfileData(int sectionIndex, 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
-
-
-
-
Field Detail
-
trajectoryIndexName
public static final String trajectoryIndexName
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WriterCFTrajectoryProfileCollection
public WriterCFTrajectoryProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
WriterCFTrajectoryProfileCollection
public WriterCFTrajectoryProfileCollection(String fileOut, List<Attribute> globalAtts, List<VariableSimpleIF> dataVars, List<CoordinateAxis> coordVars, CFPointWriterConfig config) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setFeatureAuxInfo2
public void setFeatureAuxInfo2(int ntraj, int traj_strlen)
-
writeProfile
public int writeProfile(TrajectoryProfileFeature section, ProfileFeature profile) throws IOException
- Throws:
IOException
-
writeHeader
protected void writeHeader(List<TrajectoryProfileFeature> trajectoryProfiles) throws IOException
- Throws:
IOException
-
makeFeatureVariables
protected void makeFeatureVariables(List<StructureData> trajDataStructs, 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 sectionIndex, ProfileFeature profile, int nobs) throws IOException
- Throws:
IOException
-
-