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()
CoverageDataset
getCoverages
in interface CoverageDataset
public Coverage findCoverage(String name)
CoverageDataset
findCoverage
in interface CoverageDataset
name
- full unescaped namepublic List<CoverageDataset.CoverageSet> getCoverageSets()
CoverageDataset
getCoverageSets
in interface CoverageDataset
public FeatureType getFeatureType()
FeatureDataset
getFeatureType
in interface FeatureDataset
public String getTitle()
FeatureDataset
getTitle
in interface FeatureDataset
public String getDescription()
FeatureDataset
getDescription
in interface FeatureDataset
public String getLocation()
FeatureDataset
getLocation
in interface FeatureDataset
getLocation
in interface FileCacheable
public CalendarDateRange getCalendarDateRange()
FeatureDataset
getCalendarDateRange
in interface FeatureDataset
public CalendarDate getCalendarDateStart()
FeatureDataset
getCalendarDateStart
in interface FeatureDataset
public CalendarDate getCalendarDateEnd()
FeatureDataset
getCalendarDateEnd
in interface FeatureDataset
public LatLonRect getBoundingBox()
FeatureDataset
getBoundingBox
in interface FeatureDataset
public void calcBounds() throws IOException
FeatureDataset
calcBounds
in interface FeatureDataset
IOException
- or read error.public List<Attribute> getGlobalAttributes()
FeatureDataset
getGlobalAttributes
in interface FeatureDataset
public Attribute findGlobalAttributeIgnoreCase(String name)
FeatureDataset
findGlobalAttributeIgnoreCase
in interface FeatureDataset
name
- attribute namepublic List<VariableSimpleIF> getDataVariables()
FeatureDataset
getDataVariables
in interface FeatureDataset
public VariableSimpleIF getDataVariable(String shortName)
FeatureDataset
getDataVariable
in interface FeatureDataset
shortName
- of data Variable.public NetcdfFile getNetcdfFile()
FeatureDataset
getNetcdfFile
in interface FeatureDataset
public void close() throws IOException
FeatureDataset
close
in interface FeatureDataset
close
in interface FileCacheable
IOException
- on io errorpublic long getLastModified()
FileCacheable
getLastModified
in interface FileCacheable
public void setFileCache(FileCache fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException { if (cache != null) { cache.release(this); } else { reallyClose(); }
setFileCache
in interface FileCacheable
fileCache
- must store this, use it on close as above.public void getDetailInfo(Formatter sf)
FeatureDataset
getDetailInfo
in interface FeatureDataset
sf
- append info herepublic String getImplementationName()
FeatureDataset
getImplementationName
in interface FeatureDataset
public DateRange getDateRange()
FeatureDataset
getDateRange
in interface FeatureDataset
public Date getStartDate()
FeatureDataset
getStartDate
in interface FeatureDataset
public Date getEndDate()
FeatureDataset
getEndDate
in interface FeatureDataset
Copyright © 1999–2013 UCAR/Unidata. All rights reserved.