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 HashMap |
csHash |
protected DateUnit |
dateUnits |
protected FileCacheIF |
fileCache |
protected EarthLocation |
origin |
boundingBox, dataVariables, desc, endDate, location, ncfile, 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.
|
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
|
long |
getLastModified()
Get last modified date of underlying file(s).
|
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(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 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)
public 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 IOException
FeatureDatasetcalcBounds in interface FeatureDatasetIOException - 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(Formatter sf)
FeatureDatasetgetDetailInfo in interface FeatureDatasetsf - append info herepublic String getImplementationName()
FeatureDatasetgetImplementationName in interface FeatureDatasetpublic void close()
throws IOException
TypedDatasetclose in interface AutoCloseableclose in interface TypedDatasetclose in interface FeatureDatasetclose in interface FileCacheableclose in class TypedDatasetImplIOException - on io errorpublic long getLastModified()
FileCacheablegetLastModified in interface FileCacheablepublic void setFileCache(FileCacheIF fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException {
if (cache != null) {
cache.release(this);
} else {
reallyClose();
}
setFileCache in interface FileCacheablefileCache - must store this, use it on close as above.Copyright © 1999–2015 UCAR/Unidata. All rights reserved.