public abstract class AbstractRadialAdapter extends java.lang.Object implements RadialDatasetSweep, FeatureDatasetFactory
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractRadialAdapter.MyRadialVariableAdapter |
RadialDatasetSweep.RadialVariable, RadialDatasetSweep.Sweep, RadialDatasetSweep.Type| Modifier and Type | Field and Description |
|---|---|
protected LatLonRect |
boundingBox |
protected CalendarDateUnit |
calDateUnits |
protected java.util.HashMap |
csHash |
protected java.util.List<VariableSimpleIF> |
dataVariables |
protected DateUnit |
dateUnits |
protected java.lang.String |
desc |
protected java.util.Date |
endDate |
protected FileCacheIF |
fileCache |
protected java.lang.String |
location |
protected NetcdfDataset |
netcdfDataset |
protected EarthLocation |
origin |
protected java.lang.StringBuffer |
parseInfo |
protected java.util.Date |
startDate |
protected java.lang.String |
title |
| Constructor and Description |
|---|
AbstractRadialAdapter() |
AbstractRadialAdapter(NetcdfDataset ds) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addRadialVariable(NetcdfDataset ds,
Variable var) |
void |
calcBounds() |
void |
close()
Close all resources associated with this dataset.
|
Attribute |
findGlobalAttributeIgnoreCase(java.lang.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.
|
CalendarDateUnit |
getCalendarDateUnit() |
RadialDatasetSweep.Type |
getCommonType()
If all the sweeps are the same type, return it here, else NONE
|
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable.
|
java.util.List<VariableSimpleIF> |
getDataVariables()
The radial data variables available in the dataset.
|
DateRange |
getDateRange() |
java.lang.String |
getDescription()
Text information about this dataset.
|
java.lang.String |
getDetailInfo() |
void |
getDetailInfo(java.util.Formatter sf)
Show debug / underlying implementation details
|
EarthLocation |
getEarthLocation() |
java.util.Date |
getEndDate() |
FeatureType |
getFeatureType()
Contains collections of this FeatureType.
|
FeatureType[] |
getFeatureTypes()
This Factory can open these types of Feature datasets.
|
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
|
java.lang.String |
getLocationURI() |
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
java.util.Date |
getStartDate() |
DateUnit |
getTimeUnits()
Get the units of Calendar time.
|
java.lang.String |
getTitle()
Title of the dataset.
|
protected abstract RadialDatasetSweep.RadialVariable |
makeRadialVariable(NetcdfDataset nds,
VariableSimpleIF v,
Variable v0) |
void |
reacquire()
Reacquire any resources like file handles
Used when reactivating in cache.
|
void |
release()
Release any system resources like file handles.
|
protected void |
removeDataVariable(java.lang.String varName) |
protected void |
setBoundingBox() |
void |
setDescription(java.lang.String desc) |
protected abstract void |
setEarthLocation() |
protected abstract void |
setEndDate() |
void |
setFileCache(FileCacheIF fileCache)
If the FileCache is not null, FileCacheable.close() must call FileCache.release()
|
void |
setLocationURI(java.lang.String location) |
protected abstract void |
setStartDate() |
protected abstract void |
setTimeUnits() |
void |
setTitle(java.lang.String title) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearDatasetMemory, getCommonOrigin, getDataFormat, getRadarID, getRadarName, isStationary, isVolumeisMine, openprotected NetcdfDataset netcdfDataset
protected java.lang.String title
protected java.lang.String desc
protected java.lang.String location
protected java.util.Date startDate
protected java.util.Date endDate
protected LatLonRect boundingBox
protected java.util.List<VariableSimpleIF> dataVariables
protected java.lang.StringBuffer parseInfo
protected EarthLocation origin
protected java.util.HashMap csHash
protected DateUnit dateUnits
protected CalendarDateUnit calDateUnits
protected FileCacheIF fileCache
public AbstractRadialAdapter()
public AbstractRadialAdapter(NetcdfDataset ds)
protected abstract void addRadialVariable(NetcdfDataset ds, Variable var)
protected abstract RadialDatasetSweep.RadialVariable makeRadialVariable(NetcdfDataset nds, VariableSimpleIF v, Variable v0)
protected abstract void setTimeUnits()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void setEarthLocation()
protected abstract void setStartDate()
protected abstract void setEndDate()
public void setTitle(java.lang.String title)
public void setDescription(java.lang.String desc)
public void setLocationURI(java.lang.String location)
protected void removeDataVariable(java.lang.String varName)
protected void setBoundingBox()
public void calcBounds()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Date getStartDate()
public java.util.Date getEndDate()
public LatLonRect getBoundingBox()
FeatureDatasetgetBoundingBox in interface FeatureDatasetpublic java.util.List<VariableSimpleIF> getDataVariables()
RadialDatasetSweepgetDataVariables in interface RadialDatasetSweepgetDataVariables in interface FeatureDatasetpublic VariableSimpleIF getDataVariable(java.lang.String shortName)
FeatureDatasetgetDataVariable in interface FeatureDatasetshortName - of data Variable.public RadialDatasetSweep.Type getCommonType()
RadialDatasetSweepgetCommonType in interface RadialDatasetSweeppublic DateUnit getTimeUnits()
RadialDatasetSweepgetTimeUnits in interface RadialDatasetSweeppublic CalendarDateUnit getCalendarDateUnit()
public EarthLocation getEarthLocation()
public FeatureType[] getFeatureTypes()
FeatureDatasetFactorygetFeatureTypes in interface FeatureDatasetFactorypublic FeatureType getFeatureType()
FeatureDatasetgetFeatureType in interface FeatureDatasetpublic DateRange getDateRange()
public CalendarDateRange getCalendarDateRange()
FeatureDatasetgetCalendarDateRange in interface FeatureDatasetpublic CalendarDate getCalendarDateStart()
FeatureDatasetgetCalendarDateStart in interface FeatureDatasetpublic CalendarDate getCalendarDateEnd()
FeatureDatasetgetCalendarDateEnd in interface FeatureDatasetpublic void getDetailInfo(java.util.Formatter sf)
FeatureDatasetgetDetailInfo in interface FeatureDatasetsf - append info herepublic java.lang.String getImplementationName()
FeatureDatasetgetImplementationName in interface FeatureDatasetpublic 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 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
FileCacheablerelease in interface FileCacheablejava.io.IOExceptionpublic void reacquire()
throws java.io.IOException
FileCacheablereacquire 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 NetcdfFile getNetcdfFile()
FeatureDatasetgetNetcdfFile in interface FeatureDatasetpublic java.lang.String getTitle()
FeatureDatasetgetTitle in interface FeatureDatasetpublic java.lang.String getDescription()
FeatureDatasetgetDescription in interface FeatureDatasetpublic java.lang.String getLocationURI()
public java.lang.String getLocation()
FeatureDatasetgetLocation in interface FeatureDatasetgetLocation in interface FileCacheablepublic java.util.List<Attribute> getGlobalAttributes()
FeatureDatasetgetGlobalAttributes in interface FeatureDatasetpublic Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
FeatureDatasetfindGlobalAttributeIgnoreCase in interface FeatureDatasetname - attribute namepublic java.lang.String getDetailInfo()