public class CoverageDatasetFactory extends Object
Would like to add a separate implementation for FMRC collections
Modifier and Type | Field and Description |
---|---|
static String |
NO_GRIB_CLASS |
static String |
NOT_GRIB_FILE |
Constructor and Description |
---|
CoverageDatasetFactory() |
Modifier and Type | Method and Description |
---|---|
static FeatureDatasetCoverage |
open(String endpoint) |
static Optional<FeatureDatasetCoverage> |
openCoverageDataset(String endpoint) |
static Optional<FeatureDatasetCoverage> |
openGrib(String endpoint) |
static Optional<FeatureDatasetCoverage> |
openNcmlString(String ncml) |
public static final String NOT_GRIB_FILE
public static final String NO_GRIB_CLASS
public static Optional<FeatureDatasetCoverage> openCoverageDataset(String endpoint) throws IOException
endpoint
- cdmrFeature:url, local GRIB data or index file, or NetcdfDataset location
ucar.nc2.util.Optionalopt = CoverageDatasetFactory.openCoverageDataset(location); if (!opt.isPresent()) { JOptionPane.showMessageDialog(null, opt.getErrorMessage()); return false; } covDatasetCollection = opt.get();
IOException
public static FeatureDatasetCoverage open(String endpoint) throws IOException
endpoint
- cdmrFeature:url, local GRIB data or index file, or NetcdfDataset locationIOException
public static Optional<FeatureDatasetCoverage> openGrib(String endpoint) throws IOException
endpoint
- local GRIB data or index fileIOException
public static Optional<FeatureDatasetCoverage> openNcmlString(String ncml) throws IOException, FileNotFoundException
IOException
FileNotFoundException