public class CoverageDatasetImpl extends java.lang.Object implements CoverageDataset
CoverageDataset.CoverageSet| Constructor and Description |
|---|
CoverageDatasetImpl(NetcdfDataset ds,
java.util.Formatter parseInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
calcBounds()
Caclulate date range and bounding box, even if the data has to be scanned.
|
void |
close()
Close all resources associated with this dataset.
|
Coverage |
findCoverage(java.lang.String name)
find the named Coverage.
|
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
Return the global attribute with the given name, ignoring case.
|
LatLonRect |
getBoundingBox()
The boundingBox for the entire dataset.
|
CalendarDate |
getCalendarDateEnd()
Ending Calendar date for the entire dataset.
|
CalendarDateRange |
getCalendarDateRange()
Calendar Date range for the entire dataset.
|
CalendarDate |
getCalendarDateStart()
Starting Calendar date for the entire dataset.
|
java.util.List<Coverage> |
getCoverages()
get the list of Coverage objects contained in this dataset.
|
java.util.List<CoverageDataset.CoverageSet> |
getCoverageSets()
Return Coverage objects grouped by CoverageSet.
|
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable.
|
java.util.List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset.
|
DateRange |
getDateRange()
Date range for the entire dataset.
|
java.lang.String |
getDescription()
Text information about this dataset.
|
void |
getDetailInfo(java.util.Formatter sf)
Show debug / underlying implementation details
|
java.util.Date |
getEndDate()
Ending date for the entire dataset.
|
FeatureType |
getFeatureType()
Contains collections of this FeatureType.
|
java.util.List<Attribute> |
getGlobalAttributes()
List of global attributes.
|
java.lang.String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Returns the time that the underlying file(s) were last modified.
|
java.lang.String |
getLocation()
The URI location of the dataset
|
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
java.util.Date |
getStartDate()
Starting date for the entire dataset.
|
java.lang.String |
getTitle()
Title of the dataset.
|
CoverageCS.Type |
getType() |
void |
reacquire() |
void |
release() |
void |
setFileCache(FileCacheIF fileCache)
If the FileCache is not null, FileCacheable.close() must call FileCache.release()
|
public CoverageDatasetImpl(NetcdfDataset ds, java.util.Formatter parseInfo)
public java.util.List<Coverage> getCoverages()
CoverageDatasetgetCoverages in interface CoverageDatasetpublic Coverage findCoverage(java.lang.String name)
CoverageDatasetfindCoverage in interface CoverageDatasetname - full unescaped namepublic CoverageCS.Type getType()
public java.util.List<CoverageDataset.CoverageSet> getCoverageSets()
CoverageDatasetgetCoverageSets in interface CoverageDatasetpublic FeatureType getFeatureType()
FeatureDatasetgetFeatureType in interface FeatureDatasetpublic java.lang.String getTitle()
FeatureDatasetgetTitle in interface FeatureDatasetpublic java.lang.String getDescription()
FeatureDatasetgetDescription in interface FeatureDatasetpublic java.lang.String getLocation()
FeatureDatasetgetLocation in interface FeatureDatasetgetLocation in interface FileCacheablepublic CalendarDateRange getCalendarDateRange()
FeatureDatasetgetCalendarDateRange in interface FeatureDatasetpublic CalendarDate getCalendarDateStart()
FeatureDatasetgetCalendarDateStart in interface FeatureDatasetpublic CalendarDate getCalendarDateEnd()
FeatureDatasetgetCalendarDateEnd in interface FeatureDatasetpublic LatLonRect getBoundingBox()
FeatureDatasetgetBoundingBox in interface FeatureDatasetpublic void calcBounds()
throws java.io.IOException
FeatureDatasetcalcBounds in interface FeatureDatasetjava.io.IOException - or read error.public java.util.List<Attribute> getGlobalAttributes()
FeatureDatasetgetGlobalAttributes in interface FeatureDatasetpublic Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
FeatureDatasetfindGlobalAttributeIgnoreCase in interface FeatureDatasetname - attribute namepublic java.util.List<VariableSimpleIF> getDataVariables()
FeatureDatasetgetDataVariables in interface FeatureDatasetpublic VariableSimpleIF getDataVariable(java.lang.String shortName)
FeatureDatasetgetDataVariable in interface FeatureDatasetshortName - of data Variable.public NetcdfFile getNetcdfFile()
FeatureDatasetgetNetcdfFile in interface FeatureDatasetpublic void close()
throws java.io.IOException
FeatureDatasetclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface FeatureDatasetclose in interface FileCacheablejava.io.IOException - on io errorpublic void release()
throws java.io.IOException
release in interface FileCacheablejava.io.IOExceptionpublic void reacquire()
throws java.io.IOException
reacquire in interface FileCacheablejava.io.IOExceptionpublic long getLastModified()
FileCacheableFileFactory.getLastModified in interface FileCacheablelong value representing the time the file(s) were last modified or 0L if the
last-modified time couldn't be determined for any reason.public void setFileCache(FileCacheIF fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException {
if (cache != null) {
if (cache.release(this)) return;
}
reallyClose();
} setFileCache in interface FileCacheablefileCache - must store this, use it on close as above.public void getDetailInfo(java.util.Formatter sf)
FeatureDatasetgetDetailInfo in interface FeatureDatasetsf - append info herepublic java.lang.String getImplementationName()
FeatureDatasetgetImplementationName in interface FeatureDatasetpublic DateRange getDateRange()
FeatureDatasetgetDateRange in interface FeatureDatasetpublic java.util.Date getStartDate()
FeatureDatasetgetStartDate in interface FeatureDatasetpublic java.util.Date getEndDate()
FeatureDatasetgetEndDate in interface FeatureDataset