public class WriterCFPointDataset extends Object
Constructor and Description |
---|
WriterCFPointDataset(DataOutputStream stream,
List<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 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(PointFeature pf,
StructureData sdata)
Deprecated.
|
void |
writeRecord(PointObsDatatype pobs,
StructureData sdata)
Deprecated.
|
public WriterCFPointDataset(DataOutputStream stream, List<Attribute> globalAtts, String altUnits)
public void writeHeader(List<? extends VariableSimpleIF> vars, int numrec) throws IOException
IOException
public void writeRecord(double lat, double lon, double alt, Date time, double[] vals, String[] svals) throws IOException
IOException
public void writeRecord(PointFeature pf, StructureData sdata) throws IOException
IOException
public void writeRecord(PointObsDatatype pobs, StructureData sdata) throws IOException
IOException
public void finish() throws IOException
IOException
public static int writePointFeatureCollection(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
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.