|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.ft.point.writer.CFPointObWriter
public class CFPointObWriter
Write point obs data in CF obs format.
Constructor Summary | |
---|---|
CFPointObWriter(DataOutputStream stream,
List<Attribute> globalAtts,
String altUnits,
List<PointObVar> dataVars,
int numrec)
Deprecated. Constructor |
Method Summary | |
---|---|
void |
addPoint(double lat,
double lon,
double alt,
Date time,
double[] vals,
String[] svals)
Deprecated. Add one data point to the file |
void |
finish()
Deprecated. Call this when all done, output is flushed |
static void |
main(String[] args)
Deprecated. |
static void |
main2(String[] args)
Deprecated. |
static boolean |
rewritePointFeatureDataset(String fileIn,
String fileOut,
boolean inMemory)
Deprecated. Open a ucar.nc2.ft.PointFeatureCollection, write out in CF point format. |
static boolean |
rewritePointObsDataset(String fileIn,
String fileOut,
boolean inMemory)
Deprecated. Open a ucar.nc2.dt.PointObsDataset, write out in CF point format. |
static int |
writePointFeatureCollection(FeatureDatasetPoint pfDataset,
String fileOut)
Deprecated. Write a ucar.nc2.ft.PointFeatureCollection in CF point format. |
static void |
writePointObsDataset(PointObsDataset pobsDataset,
String fileOut)
Deprecated. write data from a ucar.nc2.dt.PointObsDataset into CF point format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CFPointObWriter(DataOutputStream stream, List<Attribute> globalAtts, String altUnits, List<PointObVar> dataVars, int numrec) throws IOException
stream
- write to this streamglobalAtts
- optional list of global attributes (may be null)altUnits
- optional altitude units (set to null if no altitude variable)dataVars
- the set of data variables: first the double values, then the String values
IOException
- if write errorMethod Detail |
---|
public void addPoint(double lat, double lon, double alt, Date time, double[] vals, String[] svals) throws IOException
lat
- latitude value in units of degrees_northlon
- longitude value in units of degrees_eastalt
- altitude value in units of altUnits (may be NaN)time
- time value as a datevals
- list of data values, matching dataVars in the constructorsvals
- list of String values, matching dataVars in the constructor
IOException
- if write errorpublic void finish() throws IOException
IOException
- if write errorpublic static boolean rewritePointObsDataset(String fileIn, String fileOut, boolean inMemory) throws IOException
fileIn
- open through TypedDatasetFactory.open(FeatureType.POINT, ..)fileOut
- write to this netcdf-3 fileinMemory
- if true, read file into memory for efficiency
IOException
- on read/write errorpublic static void writePointObsDataset(PointObsDataset pobsDataset, String fileOut) throws IOException
pobsDataset
- rewrite data from herefileOut
- write to tehis netcdf-3 file
IOException
- on read/write errorpublic static boolean rewritePointFeatureDataset(String fileIn, String fileOut, boolean inMemory) throws IOException
fileIn
- open through TypedDatasetFactory.open(FeatureType.POINT, ..)fileOut
- write to this netcdf-3 fileinMemory
- if true, read file into memory for efficiency
IOException
- on read/write errorpublic 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 file
IOException
- on read/write error, or if no PointFeatureCollection in pfDatasetpublic static void main2(String[] args) throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |