Package ucar.nc2.grib.coverage
Class GribCoverageDataset
- java.lang.Object
-
- ucar.nc2.grib.coverage.GribCoverageDataset
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,CoordAxisReader
,CoverageReader
@Immutable public class GribCoverageDataset extends Object implements CoverageReader, 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 void
close()
CoverageCollection
createCoverageCollection()
String
getLocation()
static Optional<FeatureDatasetCoverage>
open(String endpoint)
double[]
readCoordValues(CoverageCoordAxis coordAxis)
GeoReferencedArray
readData(Coverage coverage, SubsetParams params, boolean canonicalOrder)
-
-
-
Constructor Detail
-
GribCoverageDataset
public GribCoverageDataset(GribCollectionImmutable gribCollection, GribCollectionImmutable.Dataset ds, GribCollectionImmutable.GroupGC group)
-
-
Method Detail
-
open
public static Optional<FeatureDatasetCoverage> open(String endpoint) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getLocation
public String getLocation()
- Specified by:
getLocation
in interfaceCoverageReader
-
createCoverageCollection
public CoverageCollection createCoverageCollection()
-
readCoordValues
public double[] readCoordValues(CoverageCoordAxis coordAxis) throws IOException
- Specified by:
readCoordValues
in interfaceCoordAxisReader
- Throws:
IOException
-
readData
public GeoReferencedArray readData(Coverage coverage, SubsetParams params, boolean canonicalOrder) throws IOException, InvalidRangeException
- Specified by:
readData
in interfaceCoverageReader
- Throws:
IOException
InvalidRangeException
-
-