|
||||||||||
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 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. |
String |
getDetailInfo()
|
void |
getDetailInfo(Formatter sf)
Show debug / underlying implementation details |
EarthLocation |
getEarthLocation()
|
FeatureType |
getFeatureType()
Contains collections of this FeatureType. |
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. |
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 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 Exception
Exception
public String getDetailInfo()
getDetailInfo
in interface TypedDataset
getDetailInfo
in class TypedDatasetImpl
protected abstract void setEarthLocation()
public RadialDatasetSweep.Type getCommonType()
RadialDatasetSweep
getCommonType
in interface RadialDatasetSweep
public DateUnit getTimeUnits()
RadialDatasetSweep
getTimeUnits
in interface RadialDatasetSweep
public EarthLocation getEarthLocation()
protected void setBoundingBox()
setBoundingBox
in class TypedDatasetImpl
public void calcBounds() throws IOException
FeatureDataset
calcBounds
in interface FeatureDataset
IOException
- or read error.public FeatureType getFeatureType()
FeatureDataset
getFeatureType
in interface FeatureDataset
public DateRange getDateRange()
FeatureDataset
getDateRange
in interface FeatureDataset
public void getDetailInfo(Formatter sf)
FeatureDataset
getDetailInfo
in interface FeatureDataset
sf
- append info herepublic String getImplementationName()
FeatureDataset
getImplementationName
in interface FeatureDataset
public void close() throws IOException
TypedDataset
close
in interface TypedDataset
close
in interface FeatureDataset
close
in interface FileCacheable
close
in class TypedDatasetImpl
IOException
public boolean sync() throws IOException
FileCacheable
sync
in interface FileCacheable
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 FileCacheable
fileCache
- 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 |