Class GridDataset

  • All Implemented Interfaces:
    Closeable, AutoCloseable, GridDataset, FeatureDataset, FileCacheable

    public class GridDataset
    extends Object
    implements GridDataset, FeatureDataset
    Make a NetcdfDataset into a collection of GeoGrids with Georeferencing coordinate systems.

    A variable will be made into a GeoGrid if it has a Georeferencing coordinate system, using GridCoordSys.isGridCoordSys(), and it has no extra dimensions, ie GridCoordSys.isComplete( var) is true. If it has multiple Georeferencing coordinate systems, any one that is a product set will be given preference.

    Example:

     GridDataset gridDs = GridDataset.open(uriString);
     List grids = gridDs.getGrids();
     for (int i = 0; i < grids.size(); i++) {
       GeoGrid grid = (Geogrid) grids.get(i);
     }
     
    • Constructor Detail

      • GridDataset

        public GridDataset​(NetcdfDataset ncd)
                    throws IOException
        Create a GridDataset from a NetcdfDataset.
        Parameters:
        ncd - underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.
        Throws:
        IOException - on read error
      • GridDataset

        public GridDataset​(NetcdfDataset ncd,
                           Formatter parseInfo)
                    throws IOException
        Create a GridDataset from a NetcdfDataset.
        Parameters:
        ncd - underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.
        parseInfo - put parse info here, may be null
        Throws:
        IOException - on read error