Class CoverageDatasetFactory


  • public class CoverageDatasetFactory
    extends Object
    factory for CoverageDataset 1) Remote CdmrFeatureDataset: cdmremote:url 2) GRIB collections: must be a grib file, or grib index file 3) DtCoverageDataset (forked from ucar.nc2.dt.grid), the cdm IOSP / CoordSys stack

    Would like to add a separate implementation for FMRC collections

    Since:
    5/26/2015
    • Constructor Detail

      • CoverageDatasetFactory

        public CoverageDatasetFactory()
    • Method Detail

      • openCoverageDataset

        public static Optional<FeatureDatasetCoverage> openCoverageDataset​(String endpoint)
                                                                    throws IOException
        Parameters:
        endpoint - cdmrFeature:url, local GRIB data or index file, or NetcdfDataset location
                ucar.nc2.util.Optional opt = CoverageDatasetFactory.openCoverageDataset(location);
                if (!opt.isPresent()) {
                  JOptionPane.showMessageDialog(null, opt.getErrorMessage());
                  return false;
                }
                covDatasetCollection = opt.get();
                
        Throws:
        IOException
      • open

        public static FeatureDatasetCoverage open​(String endpoint)
                                           throws IOException
        Parameters:
        endpoint - cdmrFeature:url, local GRIB data or index file, or NetcdfDataset location
        Returns:
        FeatureDatasetCoverage or null on failure. use openCoverageDataset to get error message
        Throws:
        IOException
      • openGrib

        public static Optional<FeatureDatasetCoverage> openGrib​(String endpoint)
        Parameters:
        endpoint - local GRIB data or index file
        Returns:
        FeatureDatasetCoverage or null on failure.
      • openNcmlString

        public static Optional<FeatureDatasetCoverage> openNcmlString​(String ncml,
                                                                      String location)
                                                               throws IOException
        Parameters:
        ncml - the NcML as a String
        location - the URL location string of the NcML document, or may be just a unique name for caching purposes (if null, aggregation cache will not be used).
        Throws:
        IOException