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<ucar.nc2.Attribute> globalAtts, String altUnits)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidfinish()Deprecated.static voidmain(String[] args)Deprecated.static voidrewritePointObsDataset(String fileIn, String fileOut, boolean inMemory)Deprecated.Open a ucar.nc2.dt.PointObsDataset, write out in CF point format.voidwriteHeader(List<? extends ucar.nc2.VariableSimpleIF> vars, int numrec)Deprecated.static intwritePointFeatureCollection(ucar.nc2.ft.FeatureDatasetPoint pfDataset, String fileOut)Deprecated.Write a ucar.nc2.ft.PointFeatureCollection in CF point format.voidwriteRecord(double lat, double lon, double alt, Date time, double[] vals, String[] svals)Deprecated.voidwriteRecord(PointObsDatatype pobs, ucar.ma2.StructureData sdata)Deprecated.voidwriteRecord(ucar.nc2.ft.PointFeature pf, ucar.ma2.StructureData sdata)Deprecated.
-
-
-
Constructor Detail
-
WriterCFPointDataset
public WriterCFPointDataset(DataOutputStream stream, List<ucar.nc2.Attribute> globalAtts, String altUnits)
Deprecated.
-
-
Method Detail
-
writeHeader
public void writeHeader(List<? extends ucar.nc2.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 IOExceptionDeprecated.- Throws:
IOException
-
writeRecord
public void writeRecord(ucar.nc2.ft.PointFeature pf, ucar.ma2.StructureData sdata) throws IOExceptionDeprecated.- Throws:
IOException
-
writeRecord
public void writeRecord(PointObsDatatype pobs, ucar.ma2.StructureData sdata) throws IOException
Deprecated.- Throws:
IOException
-
finish
public void finish() throws IOExceptionDeprecated.- Throws:
IOException
-
writePointFeatureCollection
public static int writePointFeatureCollection(ucar.nc2.ft.FeatureDatasetPoint pfDataset, String fileOut) throws IOExceptionDeprecated.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
-
-