public abstract class FeatureDatasetImpl extends Object implements FeatureDataset
| Modifier and Type | Field and Description |
|---|---|
protected LatLonRect |
boundingBox |
protected List<VariableSimpleIF> |
dataVariables |
protected CalendarDateRange |
dateRange |
protected String |
desc |
protected ucar.nc2.util.cache.FileCacheIF |
fileCache |
protected String |
location |
protected NetcdfDataset |
netcdfDataset |
protected Formatter |
parseInfo |
protected String |
title |
| Modifier | Constructor and Description |
|---|---|
|
FeatureDatasetImpl()
No-arg constuctor
|
protected |
FeatureDatasetImpl(FeatureDatasetImpl from) |
|
FeatureDatasetImpl(NetcdfDataset netcdfDataset)
Constructor when theres a NetcdfFile underneath
|
|
FeatureDatasetImpl(String title,
String description,
String location)
Constructor when theres no NetcdfFile underneath.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all resources associated with this dataset.
|
Attribute |
findGlobalAttributeIgnoreCase(String name)
Return the global attribute with the given name, ignoring case.
|
LatLonRect |
getBoundingBox()
The lat/lon 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.
|
VariableSimpleIF |
getDataVariable(String shortName)
Get the named data Variable.
|
List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset.
|
String |
getDescription()
Text information about this dataset.
|
void |
getDetailInfo(Formatter sf)
Show debug / underlying implementation details
|
List<Attribute> |
getGlobalAttributes()
List of global attributes.
|
String |
getImplementationName()
Show who is implementing
|
long |
getLastModified() |
String |
getLocation()
The URI location of the dataset
|
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
String |
getTitle()
Title of the dataset.
|
void |
reacquire() |
void |
release() |
void |
setBoundingBox(LatLonRect boundingBox) |
void |
setDateRange(CalendarDateRange dateRange) |
protected void |
setDescription(String desc) |
void |
setFileCache(ucar.nc2.util.cache.FileCacheIF fileCache) |
protected void |
setLocationURI(String location) |
protected void |
setTitle(String title) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatureTypeprotected NetcdfDataset netcdfDataset
protected String title
protected String desc
protected String location
protected List<VariableSimpleIF> dataVariables
protected Formatter parseInfo
protected CalendarDateRange dateRange
protected LatLonRect boundingBox
protected ucar.nc2.util.cache.FileCacheIF fileCache
protected FeatureDatasetImpl(FeatureDatasetImpl from)
public FeatureDatasetImpl()
public FeatureDatasetImpl(String title, String description, String location)
title - title of the dataset.description - description of the dataset.location - URI of the datasetpublic FeatureDatasetImpl(NetcdfDataset netcdfDataset)
netcdfDataset - adapt this NetcdfDatasetprotected void setTitle(String title)
protected void setDescription(String desc)
protected void setLocationURI(String location)
public void setDateRange(CalendarDateRange dateRange)
public void setBoundingBox(LatLonRect boundingBox)
public NetcdfFile getNetcdfFile()
FeatureDatasetgetNetcdfFile in interface FeatureDatasetpublic String getTitle()
FeatureDatasetgetTitle in interface FeatureDatasetpublic String getDescription()
FeatureDatasetgetDescription in interface FeatureDatasetpublic String getLocation()
FeatureDatasetgetLocation in interface FeatureDatasetgetLocation in interface ucar.nc2.util.cache.FileCacheablepublic List<Attribute> getGlobalAttributes()
FeatureDatasetgetGlobalAttributes in interface FeatureDatasetpublic Attribute findGlobalAttributeIgnoreCase(String name)
FeatureDatasetfindGlobalAttributeIgnoreCase in interface FeatureDatasetname - attribute namepublic void getDetailInfo(Formatter sf)
FeatureDatasetgetDetailInfo in interface FeatureDatasetsf - append info herepublic CalendarDateRange getCalendarDateRange()
FeatureDatasetgetCalendarDateRange in interface FeatureDatasetpublic CalendarDate getCalendarDateStart()
FeatureDatasetgetCalendarDateStart in interface FeatureDatasetpublic CalendarDate getCalendarDateEnd()
FeatureDatasetgetCalendarDateEnd in interface FeatureDatasetpublic LatLonRect getBoundingBox()
FeatureDatasetgetBoundingBox in interface FeatureDatasetpublic List<VariableSimpleIF> getDataVariables()
FeatureDatasetgetDataVariables in interface FeatureDatasetpublic VariableSimpleIF getDataVariable(String shortName)
FeatureDatasetgetDataVariable in interface FeatureDatasetshortName - of data Variable.public String getImplementationName()
FeatureDatasetgetImplementationName in interface FeatureDatasetpublic void close()
throws IOException
FeatureDatasetclose in interface Closeableclose in interface AutoCloseableclose in interface FeatureDatasetclose in interface ucar.nc2.util.cache.FileCacheableIOException - on i/o errorpublic void release()
throws IOException
release in interface ucar.nc2.util.cache.FileCacheableIOExceptionpublic void reacquire()
throws IOException
reacquire in interface ucar.nc2.util.cache.FileCacheableIOExceptionpublic long getLastModified()
getLastModified in interface ucar.nc2.util.cache.FileCacheablepublic void setFileCache(ucar.nc2.util.cache.FileCacheIF fileCache)
setFileCache in interface ucar.nc2.util.cache.FileCacheable