Package ucar.nc2.dt.point
Class WriterCFPointDataset
- java.lang.Object
-
- ucar.nc2.dt.point.WriterCFPointDataset
-
public class WriterCFPointDataset extends Object
Deprecated.use WriterCFPointCollectionWrite point data in CF point convention. Also experiment with streaming netcdf.- See Also:
- "http://cf-pcmdi.llnl.gov/trac/wiki/PointObservationConventions"
-
-
Constructor Summary
Constructors Constructor Description WriterCFPointDataset(DataOutputStream stream, List<Attribute> globalAtts, String altUnits)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
finish()
Deprecated.static void
main(String[] args)
Deprecated.static void
rewritePointObsDataset(String fileIn, String fileOut, boolean inMemory)
Deprecated.Open a ucar.nc2.dt.PointObsDataset, write out in CF point format.void
writeHeader(List<? extends VariableSimpleIF> vars, int numrec)
Deprecated.static int
writePointFeatureCollection(FeatureDatasetPoint pfDataset, String fileOut)
Deprecated.Write a ucar.nc2.ft.PointFeatureCollection in CF point format.void
writeRecord(double lat, double lon, double alt, Date time, double[] vals, String[] svals)
Deprecated.void
writeRecord(PointObsDatatype pobs, StructureData sdata)
Deprecated.void
writeRecord(PointFeature pf, StructureData sdata)
Deprecated.
-
-
-
Constructor Detail
-
WriterCFPointDataset
public WriterCFPointDataset(DataOutputStream stream, List<Attribute> globalAtts, String altUnits)
Deprecated.
-
-
Method Detail
-
writeHeader
public void writeHeader(List<? extends VariableSimpleIF> vars, int numrec) throws IOException
Deprecated.- Throws:
IOException
-
writeRecord
public void writeRecord(double lat, double lon, double alt, Date time, double[] vals, String[] svals) throws IOException
Deprecated.- Throws:
IOException
-
writeRecord
public void writeRecord(PointFeature pf, StructureData sdata) throws IOException
Deprecated.- Throws:
IOException
-
writeRecord
public void writeRecord(PointObsDatatype pobs, StructureData sdata) throws IOException
Deprecated.- Throws:
IOException
-
finish
public void finish() throws IOException
Deprecated.- Throws:
IOException
-
writePointFeatureCollection
public static int writePointFeatureCollection(FeatureDatasetPoint pfDataset, String fileOut) throws IOException
Deprecated.Write a ucar.nc2.ft.PointFeatureCollection in CF point format.- Parameters:
pfDataset
- find the first PointFeatureCollection, and write all data from itfileOut
- write to this netcdf-3 file- Returns:
- number of records written
- Throws:
IOException
- on read/write error, or if no PointFeatureCollection in pfDataset
-
rewritePointObsDataset
public static void rewritePointObsDataset(String fileIn, String fileOut, boolean inMemory) throws IOException
Deprecated.Open a ucar.nc2.dt.PointObsDataset, write out in CF point format.- Parameters:
fileIn
- open through TypedDatasetFactory.open(FeatureType.POINT, ..)fileOut
- write to tehis netcdf-3 fileinMemory
- if true, write in memory for efficiency- Throws:
IOException
- on read/write error
-
main
public static void main(String[] args) throws IOException
Deprecated.- Throws:
IOException
-
-