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