Package ucar.nc2.ft

Class FeatureDatasetImpl

    • Constructor Detail

      • FeatureDatasetImpl

        public FeatureDatasetImpl()
        No-arg constuctor
      • FeatureDatasetImpl

        public FeatureDatasetImpl​(String title,
                                  String description,
                                  String location)
        Constructor when theres no NetcdfFile underneath.
        Parameters:
        title - title of the dataset.
        description - description of the dataset.
        location - URI of the dataset
      • FeatureDatasetImpl

        public FeatureDatasetImpl​(NetcdfDataset netcdfDataset)
        Constructor when theres a NetcdfFile underneath
        Parameters:
        netcdfDataset - adapt this NetcdfDataset
    • Method Detail

      • setTitle

        protected void setTitle​(String title)
      • setDescription

        protected void setDescription​(String desc)
      • setLocationURI

        protected void setLocationURI​(String location)
      • setBoundingBox

        public void setBoundingBox​(LatLonRect boundingBox)
      • getNetcdfFile

        public NetcdfFile getNetcdfFile()
        Description copied from interface: FeatureDataset
        Return underlying NetcdfFile, or null if none.
        Specified by:
        getNetcdfFile in interface FeatureDataset
        Returns:
        the underlying NetcdfFile, or null if none.
      • getDescription

        public String getDescription()
        Description copied from interface: FeatureDataset
        Text information about this dataset.
        Specified by:
        getDescription in interface FeatureDataset
        Returns:
        any text information about this dataset, or null.
      • getDetailInfo

        public void getDetailInfo​(Formatter sf)
        Description copied from interface: FeatureDataset
        Show debug / underlying implementation details
        Specified by:
        getDetailInfo in interface FeatureDataset
        Parameters:
        sf - append info here
      • getCalendarDateStart

        public CalendarDate getCalendarDateStart()
        Description copied from interface: FeatureDataset
        Starting Calendar date for the entire dataset.
        Specified by:
        getCalendarDateStart in interface FeatureDataset
        Returns:
        the starting date for the entire dataset, or null if unknown
      • getCalendarDateEnd

        public CalendarDate getCalendarDateEnd()
        Description copied from interface: FeatureDataset
        Ending Calendar date for the entire dataset.
        Specified by:
        getCalendarDateEnd in interface FeatureDataset
        Returns:
        the ending date for the entire dataset, or null if unknown
      • getBoundingBox

        public LatLonRect getBoundingBox()
        Description copied from interface: FeatureDataset
        The lat/lon boundingBox for the entire dataset.
        Specified by:
        getBoundingBox in interface FeatureDataset
        Returns:
        the lat/lon boundingBox for the entire dataset, or null if unknown.
      • getDataVariables

        public List<VariableSimpleIF> getDataVariables()
        Description copied from interface: FeatureDataset
        The data Variables available in this dataset. Should just be data variables others might be searching for, not metadata or coordinate system variables, etc. The shapes of the VariableSimpleIF do not necessarily match the StructureData member.
        Specified by:
        getDataVariables in interface FeatureDataset
        Returns:
        List of subclass of VariableSimpleIF, may be empty but not null
      • release

        @Deprecated
        public void release()
                     throws IOException
        Deprecated.
        do not use
        Description copied from interface: FileCacheable
        Release any system resources like file handles. Optional, implement only if you are able to reacquire. Used when object is made inactive in cache.
        Specified by:
        release in interface FileCacheable
        Throws:
        IOException
      • getLastModified

        public long getLastModified()
        Description copied from interface: FileCacheable
        Returns the time that the underlying file(s) were last modified. If they've changed since they were stored in the cache, they will be closed and reopened with FileFactory.
        Specified by:
        getLastModified in interface FileCacheable
        Returns:
        a long value representing the time the file(s) were last modified or 0L if the last-modified time couldn't be determined for any reason.
      • setFileCache

        @Deprecated
        public void setFileCache​(FileCacheIF fileCache)
        Deprecated.
        do not use
        Description copied from interface: FileCacheable
        If the FileCache is not null, FileCacheable.close() must call FileCache.release()
         public synchronized void close() throws java.io.IOException {
           if (cache != null) {
             if (cache.release(this))
               return;
           }
         
           reallyClose();
         }
         
        Specified by:
        setFileCache in interface FileCacheable
        Parameters:
        fileCache - must store this, use it on close as above.