public abstract class AbstractRadialAdapter extends Object implements RadialDatasetSweep, FeatureDatasetFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractRadialAdapter.MyRadialVariableAdapter |
RadialDatasetSweep.RadialVariable, RadialDatasetSweep.Sweep, RadialDatasetSweep.Type| Modifier and Type | Field and Description |
|---|---|
protected LatLonRect |
boundingBox |
protected CalendarDateUnit |
calDateUnits |
protected HashMap |
csHash |
protected List<VariableSimpleIF> |
dataVariables |
protected DateUnit |
dateUnits |
protected String |
desc |
protected Date |
endDate |
protected FileCacheIF |
fileCache |
protected String |
location |
protected NetcdfDataset |
netcdfDataset |
protected EarthLocation |
origin |
protected StringBuffer |
parseInfo |
protected Date |
startDate |
protected String |
title |
| Constructor and Description |
|---|
AbstractRadialAdapter() |
AbstractRadialAdapter(NetcdfDataset ds) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addRadialVariable(NetcdfDataset ds,
Variable var) |
AttributeContainer |
attributes()
Get the global attributes.
|
void |
calcBounds() |
void |
close()
Close all resources associated with this dataset.
|
Attribute |
findGlobalAttributeIgnoreCase(String name)
Deprecated.
use attributes()
|
LatLonRect |
getBoundingBox()
The lat/lon boundingBox for the entire 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
|
VariableSimpleIF |
getDataVariable(String shortName)
Get the named data Variable.
|
List<VariableSimpleIF> |
getDataVariables()
The radial data variables available in the dataset.
|
DateRange |
getDateRange() |
String |
getDescription()
Text information about this dataset.
|
String |
getDetailInfo() |
void |
getDetailInfo(Formatter sf)
Show debug / underlying implementation details
|
EarthLocation |
getEarthLocation() |
Date |
getEndDate() |
FeatureType |
getFeatureType()
Contains collections of this FeatureType.
|
FeatureType[] |
getFeatureTypes()
This Factory can open these types of Feature datasets.
|
List<Attribute> |
getGlobalAttributes()
Deprecated.
use attributes()
|
String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Returns the time that the underlying file(s) were last modified.
|
String |
getLocation()
The URI location of the dataset
|
String |
getLocationURI() |
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
Date |
getStartDate() |
DateUnit |
getTimeUnits()
Get the units of Calendar time.
|
String |
getTitle()
Title of the dataset.
|
protected abstract RadialDatasetSweep.RadialVariable |
makeRadialVariable(NetcdfDataset nds,
Variable v0) |
void |
reacquire()
Deprecated.
do not use
|
void |
release()
Deprecated.
do not use
|
protected void |
removeDataVariable(String varName) |
protected void |
setBoundingBox() |
void |
setDescription(String desc) |
protected abstract void |
setEarthLocation() |
protected abstract void |
setEndDate() |
void |
setFileCache(FileCacheIF fileCache)
Deprecated.
do not use
|
void |
setLocationURI(String location) |
protected abstract void |
setStartDate() |
protected abstract void |
setTimeUnits() |
void |
setTitle(String title) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearDatasetMemory, getCommonOrigin, getDataFormat, getRadarID, getRadarName, isStationary, isVolumeisMine, openprotected NetcdfDataset netcdfDataset
protected String title
protected String desc
protected String location
protected Date startDate
protected Date endDate
protected LatLonRect boundingBox
protected List<VariableSimpleIF> dataVariables
protected StringBuffer parseInfo
protected EarthLocation origin
protected HashMap csHash
protected DateUnit dateUnits
protected CalendarDateUnit calDateUnits
protected FileCacheIF fileCache
public AbstractRadialAdapter()
public AbstractRadialAdapter(NetcdfDataset ds)
protected abstract void addRadialVariable(NetcdfDataset ds, Variable var)
protected abstract RadialDatasetSweep.RadialVariable makeRadialVariable(NetcdfDataset nds, Variable v0)
protected abstract void setEarthLocation()
protected abstract void setStartDate()
protected abstract void setEndDate()
public void setTitle(String title)
public void setDescription(String desc)
public void setLocationURI(String location)
protected void removeDataVariable(String varName)
protected void setBoundingBox()
public void calcBounds()
throws IOException
IOExceptionpublic Date getStartDate()
public Date getEndDate()
public LatLonRect getBoundingBox()
FeatureDatasetgetBoundingBox in interface FeatureDatasetpublic List<VariableSimpleIF> getDataVariables()
RadialDatasetSweepgetDataVariables in interface RadialDatasetSweepgetDataVariables in interface FeatureDatasetpublic VariableSimpleIF getDataVariable(String shortName)
FeatureDatasetgetDataVariable in interface FeatureDatasetshortName - of data Variable.public RadialDatasetSweep.Type getCommonType()
RadialDatasetSweepgetCommonType in interface RadialDatasetSweeppublic DateUnit getTimeUnits()
RadialDatasetSweepgetTimeUnits in interface RadialDatasetSweeppublic CalendarDateUnit getCalendarDateUnit()
public EarthLocation getEarthLocation()
public FeatureType[] getFeatureTypes()
FeatureDatasetFactorygetFeatureTypes in interface FeatureDatasetFactorypublic FeatureType getFeatureType()
FeatureDatasetgetFeatureType in interface FeatureDatasetpublic DateRange getDateRange()
public 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 FeatureDataset@Deprecated 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 FileCacheablefileCache - must store this, use it on close as above.public void close()
throws IOException
FeatureDatasetclose in interface Closeableclose in interface AutoCloseableclose in interface FeatureDatasetclose in interface FileCacheableIOException - on io error@Deprecated public void release() throws IOException
FileCacheablerelease in interface FileCacheableIOException@Deprecated public void reacquire() throws IOException
FileCacheablereacquire in interface FileCacheableIOExceptionpublic long getLastModified()
FileCacheableFileFactory.getLastModified in interface FileCacheablelong 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 NetcdfFile getNetcdfFile()
FeatureDatasetgetNetcdfFile in interface FeatureDatasetpublic String getTitle()
FeatureDatasetgetTitle in interface FeatureDatasetpublic String getDescription()
FeatureDatasetgetDescription in interface FeatureDatasetpublic String getLocationURI()
public String getLocation()
FeatureDatasetgetLocation in interface FeatureDatasetgetLocation in interface FileCacheablepublic AttributeContainer attributes()
FeatureDatasetattributes in interface FeatureDataset@Deprecated public List<Attribute> getGlobalAttributes()
FeatureDatasetgetGlobalAttributes in interface FeatureDataset@Deprecated public Attribute findGlobalAttributeIgnoreCase(String name)
FeatureDatasetfindGlobalAttributeIgnoreCase in interface FeatureDatasetname - attribute namepublic String getDetailInfo()