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, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearDatasetMemory, getCommonOrigin, getDataFormat, getDataVariables, getRadarID, getRadarName, isStationary, isVolume
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocation, getNetcdfFile, getStartDate, getTitle
protected 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.Exception
public java.lang.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 CalendarDateUnit getCalendarDateUnit()
public EarthLocation getEarthLocation()
protected void setBoundingBox()
setBoundingBox
in class TypedDatasetImpl
public void calcBounds() throws java.io.IOException
FeatureDataset
calcBounds
in interface FeatureDataset
java.io.IOException
- or read error.public FeatureType getFeatureType()
FeatureDataset
getFeatureType
in interface FeatureDataset
public DateRange getDateRange()
FeatureDataset
getDateRange
in interface FeatureDataset
public CalendarDateRange getCalendarDateRange()
FeatureDataset
getCalendarDateRange
in interface FeatureDataset
public CalendarDate getCalendarDateStart()
FeatureDataset
getCalendarDateStart
in interface FeatureDataset
public CalendarDate getCalendarDateEnd()
FeatureDataset
getCalendarDateEnd
in interface FeatureDataset
public void getDetailInfo(java.util.Formatter sf)
FeatureDataset
getDetailInfo
in interface FeatureDataset
sf
- append info herepublic java.lang.String getImplementationName()
FeatureDataset
getImplementationName
in interface FeatureDataset
public void close() throws java.io.IOException
TypedDataset
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface TypedDataset
close
in interface FeatureDataset
close
in interface FileCacheable
close
in class TypedDatasetImpl
java.io.IOException
- on io errorpublic void release() throws java.io.IOException
release
in interface FileCacheable
java.io.IOException
public void reacquire() throws java.io.IOException
reacquire
in interface FileCacheable
java.io.IOException
public long getLastModified()
FileCacheable
FileFactory
.getLastModified
in interface FileCacheable
long
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 FileCacheable
fileCache
- must store this, use it on close as above.