public class CoverageDatasetImpl extends Object implements CoverageDataset
CoverageDataset.CoverageSet| Constructor and Description |
|---|
CoverageDatasetImpl(NetcdfDataset ds,
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(String name)
find the named GridDatatype.
|
Attribute |
findGlobalAttributeIgnoreCase(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.
|
List<Coverage> |
getCoverages()
get the list of GridDatatype objects contained in this dataset.
|
List<CoverageDataset.CoverageSet> |
getCoverageSets()
Return GridDatatype objects grouped by GridCoordSystem.
|
VariableSimpleIF |
getDataVariable(String shortName)
Get the named data Variable.
|
List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset.
|
DateRange |
getDateRange()
Date range for the entire dataset.
|
String |
getDescription()
Text information about this dataset.
|
void |
getDetailInfo(Formatter sf)
Show debug / underlying implementation details
|
Date |
getEndDate()
Ending date for the entire dataset.
|
FeatureType |
getFeatureType()
Contains collections of this FeatureType.
|
List<Attribute> |
getGlobalAttributes()
List of global attributes.
|
String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Get last modified date of underlying file.
|
String |
getLocation()
The URI location of the dataset
|
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
Date |
getStartDate()
Starting date for the entire dataset.
|
String |
getTitle()
Title of the dataset.
|
void |
setFileCache(FileCache fileCache)
If the FileCache is set, the FileCacheable object must store it and call FileCache.release() on FileCacheable.close():
|
public CoverageDatasetImpl(NetcdfDataset ds, Formatter parseInfo)
public List<Coverage> getCoverages()
CoverageDatasetgetCoverages in interface CoverageDatasetpublic Coverage findCoverage(String name)
CoverageDatasetfindCoverage in interface CoverageDatasetname - full unescaped namepublic List<CoverageDataset.CoverageSet> getCoverageSets()
CoverageDatasetgetCoverageSets in interface CoverageDatasetpublic FeatureType getFeatureType()
FeatureDatasetgetFeatureType in interface FeatureDatasetpublic String getTitle()
FeatureDatasetgetTitle in interface FeatureDatasetpublic String getDescription()
FeatureDatasetgetDescription in interface FeatureDatasetpublic 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 IOException
FeatureDatasetcalcBounds in interface FeatureDatasetIOException - or read error.public List<Attribute> getGlobalAttributes()
FeatureDatasetgetGlobalAttributes in interface FeatureDatasetpublic Attribute findGlobalAttributeIgnoreCase(String name)
FeatureDatasetfindGlobalAttributeIgnoreCase in interface FeatureDatasetname - attribute namepublic List<VariableSimpleIF> getDataVariables()
FeatureDatasetgetDataVariables in interface FeatureDatasetpublic VariableSimpleIF getDataVariable(String shortName)
FeatureDatasetgetDataVariable in interface FeatureDatasetshortName - of data Variable.public NetcdfFile getNetcdfFile()
FeatureDatasetgetNetcdfFile in interface FeatureDatasetpublic void close()
throws IOException
FeatureDatasetclose in interface FeatureDatasetclose in interface FileCacheableIOException - on io errorpublic long getLastModified()
FileCacheablegetLastModified in interface FileCacheablepublic void setFileCache(FileCache fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException {
if (cache != null) {
cache.release(this);
} else {
reallyClose();
}
setFileCache in interface FileCacheablefileCache - must store this, use it on close as above.public void getDetailInfo(Formatter sf)
FeatureDatasetgetDetailInfo in interface FeatureDatasetsf - append info herepublic String getImplementationName()
FeatureDatasetgetImplementationName in interface FeatureDatasetpublic DateRange getDateRange()
FeatureDatasetgetDateRange in interface FeatureDatasetpublic Date getStartDate()
FeatureDatasetgetStartDate in interface FeatureDatasetpublic Date getEndDate()
FeatureDatasetgetEndDate in interface FeatureDatasetCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.