ucar.nc2.ft.point.writer
Class WriterCFPointDataset

java.lang.Object
  extended by ucar.nc2.ft.point.writer.WriterCFPointDataset

Deprecated. use WriterCFPointCollection

public class WriterCFPointDataset
extends Object

Write point data in CF point convention. Also experiment with streaming netcdf.

Author:
caron
See Also:
"http://cf-pcmdi.llnl.gov/trac/wiki/PointObservationConventions"

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

WriterCFPointDataset

public WriterCFPointDataset(DataOutputStream stream,
                            List<Attribute> globalAtts,
                            String altUnits)
Deprecated. 
Method Detail

writeHeader

public void writeHeader(List<? extends VariableSimpleIF> vars,
                        int numrec)
                 throws IOException
Deprecated. 
Throws:
IOException

writeRecord

public void writeRecord(double lat,
                        double lon,
                        double alt,
                        Date time,
                        double[] vals,
                        String[] svals)
                 throws IOException
Deprecated. 
Throws:
IOException

writeRecord

public void writeRecord(PointFeature pf,
                        StructureData sdata)
                 throws IOException
Deprecated. 
Throws:
IOException

writeRecord

public void writeRecord(PointObsDatatype pobs,
                        StructureData sdata)
                 throws IOException
Deprecated. 
Throws:
IOException

finish

public void finish()
            throws IOException
Deprecated. 
Throws:
IOException

writePointFeatureCollection

public static int writePointFeatureCollection(FeatureDatasetPoint pfDataset,
                                              String fileOut)
                                       throws IOException
Deprecated. 
Write a ucar.nc2.ft.PointFeatureCollection in CF point format.

Parameters:
pfDataset - find the first PointFeatureCollection, and write all data from it
fileOut - write to this netcdf-3 file
Returns:
number of records written
Throws:
IOException - on read/write error, or if no PointFeatureCollection in pfDataset

rewritePointObsDataset

public static void rewritePointObsDataset(String fileIn,
                                          String fileOut,
                                          boolean inMemory)
                                   throws IOException
Deprecated. 
Open a ucar.nc2.dt.PointObsDataset, write out in CF point format.

Parameters:
fileIn - open through TypedDatasetFactory.open(FeatureType.POINT, ..)
fileOut - write to tehis netcdf-3 file
inMemory - if true, write in memory for efficiency
Throws:
IOException - on read/write error

main

public static void main(String[] args)
                 throws IOException
Deprecated. 
Throws:
IOException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.