public class WriterCFPointDataset
extends java.lang.Object
Constructor and Description |
---|
WriterCFPointDataset(java.io.DataOutputStream stream,
java.util.List<Attribute> globalAtts,
java.lang.String altUnits)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Deprecated.
|
static void |
main(java.lang.String[] args)
Deprecated.
|
static void |
rewritePointObsDataset(java.lang.String fileIn,
java.lang.String fileOut,
boolean inMemory)
Deprecated.
Open a ucar.nc2.dt.PointObsDataset, write out in CF point format.
|
void |
writeHeader(java.util.List<? extends VariableSimpleIF> vars,
int numrec)
Deprecated.
|
static int |
writePointFeatureCollection(FeatureDatasetPoint pfDataset,
java.lang.String fileOut)
Deprecated.
Write a ucar.nc2.ft.PointFeatureCollection in CF point format.
|
void |
writeRecord(double lat,
double lon,
double alt,
java.util.Date time,
double[] vals,
java.lang.String[] svals)
Deprecated.
|
void |
writeRecord(PointFeature pf,
StructureData sdata)
Deprecated.
|
void |
writeRecord(PointObsDatatype pobs,
StructureData sdata)
Deprecated.
|
public WriterCFPointDataset(java.io.DataOutputStream stream, java.util.List<Attribute> globalAtts, java.lang.String altUnits)
public void writeHeader(java.util.List<? extends VariableSimpleIF> vars, int numrec) throws java.io.IOException
java.io.IOException
public void writeRecord(double lat, double lon, double alt, java.util.Date time, double[] vals, java.lang.String[] svals) throws java.io.IOException
java.io.IOException
public void writeRecord(PointFeature pf, StructureData sdata) throws java.io.IOException
java.io.IOException
public void writeRecord(PointObsDatatype pobs, StructureData sdata) throws java.io.IOException
java.io.IOException
public void finish() throws java.io.IOException
java.io.IOException
public static int writePointFeatureCollection(FeatureDatasetPoint pfDataset, java.lang.String fileOut) throws java.io.IOException
pfDataset
- find the first PointFeatureCollection, and write all data from itfileOut
- write to this netcdf-3 filejava.io.IOException
- on read/write error, or if no PointFeatureCollection in pfDatasetpublic static void rewritePointObsDataset(java.lang.String fileIn, java.lang.String fileOut, boolean inMemory) throws java.io.IOException
fileIn
- open through TypedDatasetFactory.open(FeatureType.POINT, ..)fileOut
- write to tehis netcdf-3 fileinMemory
- if true, write in memory for efficiencyjava.io.IOException
- on read/write errorpublic static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException