Package ucar.nc2.grib.coverage
Class GribCoverageDataset
- java.lang.Object
-
- ucar.nc2.grib.coverage.GribCoverageDataset
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ucar.nc2.ft2.coverage.CoordAxisReader,ucar.nc2.ft2.coverage.CoverageReader
@Immutable public class GribCoverageDataset extends Object implements ucar.nc2.ft2.coverage.CoverageReader, ucar.nc2.ft2.coverage.CoordAxisReader
Create a FeatureDatasetCoverage from a GribCollection file. Called from InvDatasetFcGrib and (by reflection) from CoverageDatasetFactory LOOK might want to switch to Builder pattern- Since:
- 8/1/2015
-
-
Constructor Summary
Constructors Constructor Description GribCoverageDataset(GribCollectionImmutable gribCollection, GribCollectionImmutable.Dataset ds, GribCollectionImmutable.GroupGC group)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ucar.nc2.ft2.coverage.CoverageCollectioncreateCoverageCollection()StringgetLocation()static ucar.nc2.util.Optional<ucar.nc2.ft2.coverage.FeatureDatasetCoverage>open(String endpoint)double[]readCoordValues(ucar.nc2.ft2.coverage.CoverageCoordAxis coordAxis)ucar.nc2.ft2.coverage.GeoReferencedArrayreadData(ucar.nc2.ft2.coverage.Coverage coverage, ucar.nc2.ft2.coverage.SubsetParams params, boolean canonicalOrder)
-
-
-
Constructor Detail
-
GribCoverageDataset
public GribCoverageDataset(GribCollectionImmutable gribCollection, GribCollectionImmutable.Dataset ds, GribCollectionImmutable.GroupGC group)
-
-
Method Detail
-
open
public static ucar.nc2.util.Optional<ucar.nc2.ft2.coverage.FeatureDatasetCoverage> open(String endpoint) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getLocation
public String getLocation()
- Specified by:
getLocationin interfaceucar.nc2.ft2.coverage.CoverageReader
-
createCoverageCollection
public ucar.nc2.ft2.coverage.CoverageCollection createCoverageCollection()
-
readCoordValues
public double[] readCoordValues(ucar.nc2.ft2.coverage.CoverageCoordAxis coordAxis) throws IOException- Specified by:
readCoordValuesin interfaceucar.nc2.ft2.coverage.CoordAxisReader- Throws:
IOException
-
readData
public ucar.nc2.ft2.coverage.GeoReferencedArray readData(ucar.nc2.ft2.coverage.Coverage coverage, ucar.nc2.ft2.coverage.SubsetParams params, boolean canonicalOrder) throws IOException, ucar.ma2.InvalidRangeException- Specified by:
readDatain interfaceucar.nc2.ft2.coverage.CoverageReader- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
-