Package ucar.nc2.ft.point.writer
Class CFPointWriter
- java.lang.Object
-
- ucar.nc2.ft.point.writer.CFPointWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
WriterCFPointCollection,WriterCFProfileCollection,WriterCFStationCollection,WriterCFStationProfileCollection,WriterCFTrajectoryCollection,WriterCFTrajectoryProfileCollection
@Deprecated public abstract class CFPointWriter extends Object implements Closeable
Deprecated.use writer2Write Point Feature Collections into netcdf3/4 files in CF 1.6 point obs conventions.- netcdf3: use indexed ragged array representation
-
-
Field Summary
Fields Modifier and Type Field Description protected StringaltitudeCoordinateNameDeprecated.static StringaltNameDeprecated.protected StringaltUnitsDeprecated.protected CFPointWriterConfigconfigDeprecated.protected Map<String,Variable>dataMapDeprecated.protected List<VariableSimpleIF>dataVarsDeprecated.static StringdescNameDeprecated.protected List<Variable>extraDeprecated.protected intid_strlenDeprecated.static intidMissingValueDeprecated.protected booleanisExtendedModelDeprecated.static StringlatNameDeprecated.protected LatLonRectllbbDeprecated.static StringlonNameDeprecated.protected CalendarDatemaxDateDeprecated.protected CalendarDateminDateDeprecated.protected intnfeaturesDeprecated.protected booleannoTimeCoverageDeprecated.protected booleannoUnlimitedDimensionDeprecated.static StringnumberOfObsNameDeprecated.static StringprofileDimNameDeprecated.static StringprofileIdNameDeprecated.static StringprofileStructNameDeprecated.static StringprofileTimeNameDeprecated.protected StructurerecordDeprecated.protected DimensionrecordDimDeprecated.static StringrecordDimNameDeprecated.static StringrecordNameDeprecated.protected static List<String>reservedGlobalAttsDeprecated.protected static List<String>reservedVariableAttsDeprecated.static StringstationAltNameDeprecated.static StringstationDimNameDeprecated.static StringstationIdNameDeprecated.static StringstationIndexNameDeprecated.static StringstationStructNameDeprecated.static StringtimeNameDeprecated.protected CalendarDateUnittimeUnitDeprecated.static StringtrajDimNameDeprecated.static StringtrajIdNameDeprecated.static StringtrajStructNameDeprecated.protected booleanuseAltDeprecated.static StringwmoNameDeprecated.protected NetcdfFileWriterwriterDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCFPointWriter(String fileOut, List<Attribute> atts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config)Deprecated.CtorprotectedCFPointWriter(String fileOut, List<Attribute> atts, NetcdfFileWriter.Version version)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddCoordinatesClassic(Dimension recordDim, List<VariableSimpleIF> coords, Map<String,Variable> varMap)Deprecated.protected voidaddCoordinatesExtended(Structure parent, List<VariableSimpleIF> coords)Deprecated.protected voidaddDataVariablesClassic(Dimension recordDim, StructureData stnData, Map<String,Variable> varMap, String coordVars)Deprecated.protected voidaddDataVariablesExtended(StructureData obsData, String coordVars)Deprecated.protected voidaddDimensionsClassic(List<? extends VariableSimpleIF> vars, Map<String,Dimension> dimMap)Deprecated.protected voidaddExtraVariables()Deprecated.voidclose()Deprecated.voidfinish()Deprecated.protected VariableSimpleIFgetDataVar(String name)Deprecated.static StringgetSharedDimName(Dimension dim)Deprecated.Returns a name fordimthat is suitable for a shared dimension.static voidmain(String[] args)Deprecated.protected List<Dimension>makeDimensionList(Map<String,Dimension> dimMap, List<Dimension> oldDims)Deprecated.protected abstract voidmakeFeatureVariables(StructureData featureData, boolean isExtended)Deprecated.protected voidmakeMiddleVariables(StructureData middleData, boolean isExtended)Deprecated.voidsetFeatureAuxInfo(int nfeatures, int id_strlen)Deprecated.protected voidtrackBB(LatLonPoint loc, CalendarDate obsDate)Deprecated.protected voidwriteExtraVariables()Deprecated.static intwriteFeatureCollection(FeatureDatasetPoint fdpoint, String fileOut, CFPointWriterConfig config)Deprecated.Write a FeatureDatasetPoint to a netcd3/4 file.static intwriteFeatureCollection(FeatureDatasetPoint fdpoint, String fileOut, NetcdfFileWriter.Version version)Deprecated.protected voidwriteHeader(List<VariableSimpleIF> obsCoords, StructureData featureData, StructureData obsData, String coordNames)Deprecated.protected voidwriteHeader2(List<VariableSimpleIF> obsCoords, StructureData featureData, StructureData middleData, StructureData obsData, String coordNames)Deprecated.protected intwriteStructureData(int recno, Structure s, StructureData sdata, Map<String,Variable> varMap)Deprecated.protected intwriteStructureDataClassic(Map<String,Variable> varMap, int[] origin, StructureData sdata)Deprecated.
-
-
-
Field Detail
-
recordName
public static final String recordName
Deprecated.- See Also:
- Constant Field Values
-
recordDimName
public static final String recordDimName
Deprecated.- See Also:
- Constant Field Values
-
latName
public static final String latName
Deprecated.- See Also:
- Constant Field Values
-
lonName
public static final String lonName
Deprecated.- See Also:
- Constant Field Values
-
altName
public static final String altName
Deprecated.- See Also:
- Constant Field Values
-
timeName
public static final String timeName
Deprecated.- See Also:
- Constant Field Values
-
stationStructName
public static final String stationStructName
Deprecated.- See Also:
- Constant Field Values
-
stationDimName
public static final String stationDimName
Deprecated.- See Also:
- Constant Field Values
-
stationIdName
public static final String stationIdName
Deprecated.- See Also:
- Constant Field Values
-
stationAltName
public static final String stationAltName
Deprecated.- See Also:
- Constant Field Values
-
descName
public static final String descName
Deprecated.- See Also:
- Constant Field Values
-
wmoName
public static final String wmoName
Deprecated.- See Also:
- Constant Field Values
-
stationIndexName
public static final String stationIndexName
Deprecated.- See Also:
- Constant Field Values
-
profileStructName
public static final String profileStructName
Deprecated.- See Also:
- Constant Field Values
-
profileDimName
public static final String profileDimName
Deprecated.- See Also:
- Constant Field Values
-
profileIdName
public static final String profileIdName
Deprecated.- See Also:
- Constant Field Values
-
numberOfObsName
public static final String numberOfObsName
Deprecated.- See Also:
- Constant Field Values
-
profileTimeName
public static final String profileTimeName
Deprecated.- See Also:
- Constant Field Values
-
trajStructName
public static final String trajStructName
Deprecated.- See Also:
- Constant Field Values
-
trajDimName
public static final String trajDimName
Deprecated.- See Also:
- Constant Field Values
-
trajIdName
public static final String trajIdName
Deprecated.- See Also:
- Constant Field Values
-
idMissingValue
public static final int idMissingValue
Deprecated.- See Also:
- Constant Field Values
-
config
protected final CFPointWriterConfig config
Deprecated.
-
writer
protected NetcdfFileWriter writer
Deprecated.
-
timeUnit
protected CalendarDateUnit timeUnit
Deprecated.
-
altUnits
protected String altUnits
Deprecated.
-
altitudeCoordinateName
protected String altitudeCoordinateName
Deprecated.
-
noTimeCoverage
protected final boolean noTimeCoverage
Deprecated.
-
noUnlimitedDimension
protected final boolean noUnlimitedDimension
Deprecated.
-
isExtendedModel
protected final boolean isExtendedModel
Deprecated.
-
useAlt
protected boolean useAlt
Deprecated.
-
nfeatures
protected int nfeatures
Deprecated.
-
id_strlen
protected int id_strlen
Deprecated.
-
record
protected Structure record
Deprecated.
-
recordDim
protected Dimension recordDim
Deprecated.
-
dataVars
protected List<VariableSimpleIF> dataVars
Deprecated.
-
llbb
protected LatLonRect llbb
Deprecated.
-
minDate
protected CalendarDate minDate
Deprecated.
-
maxDate
protected CalendarDate maxDate
Deprecated.
-
-
Constructor Detail
-
CFPointWriter
protected CFPointWriter(String fileOut, List<Attribute> atts, NetcdfFileWriter.Version version) throws IOException
Deprecated.- Throws:
IOException
-
CFPointWriter
protected CFPointWriter(String fileOut, List<Attribute> atts, List<VariableSimpleIF> dataVars, CalendarDateUnit timeUnit, String altUnits, CFPointWriterConfig config) throws IOException
Deprecated.Ctor- Parameters:
fileOut- name of the output fileatts- global attributes to be addedconfig- configure- Throws:
IOException
-
-
Method Detail
-
writeFeatureCollection
public static int writeFeatureCollection(FeatureDatasetPoint fdpoint, String fileOut, NetcdfFileWriter.Version version) throws IOException
Deprecated.- Throws:
IOException
-
writeFeatureCollection
public static int writeFeatureCollection(FeatureDatasetPoint fdpoint, String fileOut, CFPointWriterConfig config) throws IOException
Deprecated.Write a FeatureDatasetPoint to a netcd3/4 file.- Parameters:
fdpoint- the FeatureDatasetPoint; do first FeatureCollection contained within.fileOut- write to the is fileconfig- configuration- Returns:
- count of number of pointFeatures written.
- Throws:
IOException
-
setFeatureAuxInfo
public void setFeatureAuxInfo(int nfeatures, int id_strlen)Deprecated.
-
getDataVar
protected VariableSimpleIF getDataVar(String name)
Deprecated.
-
makeFeatureVariables
protected abstract void makeFeatureVariables(StructureData featureData, boolean isExtended)
Deprecated.
-
makeMiddleVariables
protected void makeMiddleVariables(StructureData middleData, boolean isExtended)
Deprecated.
-
writeHeader
protected void writeHeader(List<VariableSimpleIF> obsCoords, StructureData featureData, StructureData obsData, String coordNames) throws IOException
Deprecated.- Throws:
IOException
-
writeHeader2
protected void writeHeader2(List<VariableSimpleIF> obsCoords, StructureData featureData, StructureData middleData, StructureData obsData, String coordNames) throws IOException
Deprecated.- Throws:
IOException
-
addExtraVariables
protected void addExtraVariables()
Deprecated.
-
writeExtraVariables
protected void writeExtraVariables() throws IOExceptionDeprecated.- Throws:
IOException
-
addCoordinatesClassic
protected void addCoordinatesClassic(Dimension recordDim, List<VariableSimpleIF> coords, Map<String,Variable> varMap)
Deprecated.
-
addCoordinatesExtended
protected void addCoordinatesExtended(Structure parent, List<VariableSimpleIF> coords)
Deprecated.
-
addDataVariablesClassic
protected void addDataVariablesClassic(Dimension recordDim, StructureData stnData, Map<String,Variable> varMap, String coordVars)
Deprecated.
-
addDataVariablesExtended
protected void addDataVariablesExtended(StructureData obsData, String coordVars)
Deprecated.
-
addDimensionsClassic
protected void addDimensionsClassic(List<? extends VariableSimpleIF> vars, Map<String,Dimension> dimMap)
Deprecated.
-
makeDimensionList
protected List<Dimension> makeDimensionList(Map<String,Dimension> dimMap, List<Dimension> oldDims)
Deprecated.
-
getSharedDimName
public static String getSharedDimName(Dimension dim)
Deprecated.Returns a name fordimthat is suitable for a shared dimension. If the dimension is anonymous, meaning that its name isnull, we return a default name:"len" + dim.getLength(). Otherwise, we return the dimension's existing name.- Parameters:
dim- a dimension.- Returns:
- a name that is suitable for a shared dimension, i.e. not
null.
-
writeStructureData
protected int writeStructureData(int recno, Structure s, StructureData sdata, Map<String,Variable> varMap) throws IOExceptionDeprecated.- Throws:
IOException
-
writeStructureDataClassic
protected int writeStructureDataClassic(Map<String,Variable> varMap, int[] origin, StructureData sdata) throws IOException, InvalidRangeException
Deprecated.- Throws:
IOExceptionInvalidRangeException
-
trackBB
protected void trackBB(LatLonPoint loc, CalendarDate obsDate)
Deprecated.
-
finish
public void finish() throws IOExceptionDeprecated.- Throws:
IOException
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-