|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.dt.TypedDatasetImpl
ucar.nc2.dt.radial.RadialDatasetSweepAdapter
public abstract class RadialDatasetSweepAdapter
Make a NetcdfDataset into a RadialDatasetSweep.
| Nested Class Summary | |
|---|---|
class |
RadialDatasetSweepAdapter.MyRadialVariableAdapter
|
| Nested classes/interfaces inherited from interface ucar.nc2.dt.RadialDatasetSweep |
|---|
RadialDatasetSweep.RadialVariable, RadialDatasetSweep.Sweep, RadialDatasetSweep.Type |
| Field Summary | |
|---|---|
protected java.util.HashMap |
csHash
|
protected DateUnit |
dateUnits
|
protected FileCache |
fileCache
|
protected EarthLocation |
origin
|
| Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
| Fields inherited from interface ucar.nc2.dt.RadialDatasetSweep |
|---|
LevelII, UF |
| Constructor Summary | |
|---|---|
RadialDatasetSweepAdapter()
|
|
RadialDatasetSweepAdapter(NetcdfDataset ds)
|
|
| Method Summary | |
|---|---|
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)
FileCacheable must store the FileCache and call it on 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. |
| Methods inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setDescription, setEndDate, setLocationURI, setStartDate, setTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ucar.nc2.dt.RadialDatasetSweep |
|---|
clearDatasetMemory, getCommonOrigin, getDataFormat, getDataVariables, getRadarID, getRadarName, isStationary, isVolume |
| Methods inherited from interface ucar.nc2.dt.TypedDataset |
|---|
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle |
| Methods inherited from interface ucar.nc2.ft.FeatureDataset |
|---|
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocation, getNetcdfFile, getStartDate, getTitle |
| Field Detail |
|---|
protected EarthLocation origin
protected java.util.HashMap csHash
protected DateUnit dateUnits
protected FileCache fileCache
| Constructor Detail |
|---|
public RadialDatasetSweepAdapter()
public RadialDatasetSweepAdapter(NetcdfDataset ds)
| Method Detail |
|---|
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()
RadialDatasetSweep
getCommonType in interface RadialDatasetSweeppublic DateUnit getTimeUnits()
RadialDatasetSweep
getTimeUnits in interface RadialDatasetSweeppublic EarthLocation getEarthLocation()
protected void setBoundingBox()
setBoundingBox in class TypedDatasetImpl
public void calcBounds()
throws java.io.IOException
FeatureDataset
calcBounds in interface FeatureDatasetjava.io.IOException - or read error.public FeatureType getFeatureType()
FeatureDataset
getFeatureType in interface FeatureDatasetpublic DateRange getDateRange()
FeatureDataset
getDateRange in interface FeatureDatasetpublic void getDetailInfo(java.util.Formatter sf)
FeatureDataset
getDetailInfo in interface FeatureDatasetsf - append info herepublic java.lang.String getImplementationName()
FeatureDataset
getImplementationName in interface FeatureDataset
public void close()
throws java.io.IOException
TypedDataset
close in interface TypedDatasetclose in interface FeatureDatasetclose in interface FileCacheableclose in class TypedDatasetImpljava.io.IOException
public boolean sync()
throws java.io.IOException
FileCacheable
sync 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||