Class WriterCFPointDataset


  • public class WriterCFPointDataset
    extends Object
    Deprecated.
    use WriterCFPointCollection
    Write point data in CF point convention. Also experiment with streaming netcdf.
    See Also:
    "http://cf-pcmdi.llnl.gov/trac/wiki/PointObservationConventions"
    • Method Detail

      • writeRecord

        public void writeRecord​(double lat,
                                double lon,
                                double alt,
                                Date time,
                                double[] vals,
                                String[] svals)
                         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