public abstract class RadialDatasetSweepAdapter extends TypedDatasetImpl implements RadialDatasetSweep
| Modifier and Type | Class and Description |
|---|---|
class |
RadialDatasetSweepAdapter.MyRadialVariableAdapter |
RadialDatasetSweep.RadialVariable, RadialDatasetSweep.Sweep, RadialDatasetSweep.Type| Modifier and Type | Field and Description |
|---|---|
protected CalendarDateUnit |
calDateUnits |
protected java.util.HashMap |
csHash |
protected DateUnit |
dateUnits |
protected FileCacheIF |
fileCache |
protected EarthLocation |
origin |
boundingBox, dataVariables, desc, endDate, location, netcdfDataset, parseInfo, startDate, title| Constructor and Description |
|---|
RadialDatasetSweepAdapter() |
RadialDatasetSweepAdapter(NetcdfDataset ds) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addRadialVariable(NetcdfDataset ds,
Variable var) |
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.
|
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
|
DateRange |
getDateRange()
Date range for the entire dataset.
|
java.lang.String |
getDetailInfo() |
void |
getDetailInfo(java.util.Formatter sf)
Show debug / underlying implementation details
|
EarthLocation |
getEarthLocation() |
FeatureType |
getFeatureType()
Contains collections of this FeatureType.
|
java.lang.String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Returns the time that the underlying file(s) were last modified.
|
DateUnit |
getTimeUnits()
Get the units of Calendar time.
|
protected abstract RadialDatasetSweep.RadialVariable |
makeRadialVariable(NetcdfDataset nds,
VariableSimpleIF v,
Variable v0) |
void |
reacquire() |
void |
release() |
protected void |
setBoundingBox() |
protected abstract void |
setEarthLocation() |
void |
setFileCache(FileCacheIF fileCache)
If the FileCache is not null, FileCacheable.close() must call FileCache.release()
|
protected abstract void |
setTimeUnits() |
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setDescription, setEndDate, setLocationURI, setStartDate, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearDatasetMemory, getCommonOrigin, getDataFormat, getDataVariables, getRadarID, getRadarName, isStationary, isVolumefindGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitlefindGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocation, getNetcdfFile, getStartDate, getTitleprotected EarthLocation origin
protected java.util.HashMap csHash
protected DateUnit dateUnits
protected CalendarDateUnit calDateUnits
protected FileCacheIF fileCache
public RadialDatasetSweepAdapter()
public RadialDatasetSweepAdapter(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.Exceptionpublic java.lang.String getDetailInfo()
getDetailInfo in interface TypedDatasetgetDetailInfo in class TypedDatasetImplprotected abstract void setEarthLocation()
public RadialDatasetSweep.Type getCommonType()
RadialDatasetSweepgetCommonType in interface RadialDatasetSweeppublic DateUnit getTimeUnits()
RadialDatasetSweepgetTimeUnits in interface RadialDatasetSweeppublic CalendarDateUnit getCalendarDateUnit()
public EarthLocation getEarthLocation()
protected void setBoundingBox()
setBoundingBox in class TypedDatasetImplpublic void calcBounds()
throws java.io.IOException
FeatureDatasetcalcBounds in interface FeatureDatasetjava.io.IOException - or read error.public FeatureType getFeatureType()
FeatureDatasetgetFeatureType in interface FeatureDatasetpublic DateRange getDateRange()
FeatureDatasetgetDateRange in interface FeatureDatasetpublic 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 close()
throws java.io.IOException
TypedDatasetclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface TypedDatasetclose in interface FeatureDatasetclose in interface FileCacheableclose in class TypedDatasetImpljava.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.