|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.ft.point.writer.WriterCFPointDataset
public class WriterCFPointDataset
Write point data in CF point convention. Also experiment with streaming netcdf.
Constructor Summary | |
---|---|
WriterCFPointDataset(DataOutputStream stream,
List<Attribute> globalAtts,
String altUnits)
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WriterCFPointDataset(DataOutputStream stream, List<Attribute> globalAtts, String altUnits)
Method Detail |
---|
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 file
IOException
- 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 efficiency
IOException
- on read/write errorpublic static void main(String[] args) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |