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 java.util.HashMap |
csHash |
protected DateUnit |
dateUnits |
protected FileCache |
fileCache |
protected EarthLocation |
origin |
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, titleLevelII, UF| 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.
|
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
|
DateUnit |
getTimeUnits()
Get the units of Calendar time.
|
protected abstract RadialDatasetSweep.RadialVariable |
makeRadialVariable(NetcdfDataset nds,
VariableSimpleIF v,
Variable v0) |
protected void |
setBoundingBox() |
protected abstract void |
setEarthLocation() |
void |
setFileCache(FileCache fileCache)
If the FileCache is set, the FileCacheable object must store it and call FileCache.release() on FileCacheable.close():
|
protected abstract void |
setTimeUnits() |
boolean |
sync()
Sync() is called when the FileCacheable is found in the cache, before returning the object to the
application.
|
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 FileCache 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 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 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 TypedDatasetclose in interface FeatureDatasetclose in interface FileCacheableclose in class TypedDatasetImpljava.io.IOExceptionpublic boolean sync()
throws java.io.IOException
FileCacheablesync in interface FileCacheablejava.io.IOException - on i/o error.public void setFileCache(FileCache fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException {
if (isClosed) return;
if (cache != null) {
cache.release(this);
} else {
reallyClose();
}
isClosed = true;
setFileCache in interface FileCacheablefileCache - must store this, use it on close as above.