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 HashMap |
csHash |
protected DateUnit |
dateUnits |
protected FileCache |
fileCache |
protected EarthLocation |
origin |
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title
LevelII, 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.
|
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.
|
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.
|
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() |
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 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)
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 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(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
- on io errorpublic long getLastModified()
FileCacheable
getLastModified
in interface FileCacheable
public void setFileCache(FileCache fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException { if (cache != null) { cache.release(this); } else { reallyClose(); }
setFileCache
in interface FileCacheable
fileCache
- must store this, use it on close as above.Copyright © 1999–2013 UCAR/Unidata. All rights reserved.