public abstract class AbstractRadialAdapter extends java.lang.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 java.util.HashMap |
csHash |
protected java.util.List<VariableSimpleIF> |
dataVariables |
protected DateUnit |
dateUnits |
protected java.lang.String |
desc |
protected java.util.Date |
endDate |
protected FileCacheIF |
fileCache |
protected java.lang.String |
location |
protected NetcdfDataset |
netcdfDataset |
protected EarthLocation |
origin |
protected java.lang.StringBuffer |
parseInfo |
protected java.util.Date |
startDate |
protected java.lang.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(java.lang.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(java.lang.String shortName)
Get the named data Variable.
|
java.util.List<VariableSimpleIF> |
getDataVariables()
The radial data variables available in the dataset.
|
DateRange |
getDateRange() |
java.lang.String |
getDescription()
Text information about this dataset.
|
java.lang.String |
getDetailInfo() |
void |
getDetailInfo(java.util.Formatter sf)
Show debug / underlying implementation details
|
EarthLocation |
getEarthLocation() |
java.util.Date |
getEndDate() |
FeatureType |
getFeatureType()
Contains collections of this FeatureType.
|
FeatureType[] |
getFeatureTypes()
This Factory can open these types of Feature datasets.
|
java.util.List<Attribute> |
getGlobalAttributes()
Deprecated.
use attributes()
|
java.lang.String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Returns the time that the underlying file(s) were last modified.
|
java.lang.String |
getLocation()
The URI location of the dataset
|
java.lang.String |
getLocationURI() |
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
java.util.Date |
getStartDate() |
DateUnit |
getTimeUnits()
Get the units of Calendar time.
|
java.lang.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(java.lang.String varName) |
protected void |
setBoundingBox() |
void |
setDescription(java.lang.String desc) |
protected abstract void |
setEarthLocation() |
protected abstract void |
setEndDate() |
void |
setFileCache(FileCacheIF fileCache)
Deprecated.
do not use
|
void |
setLocationURI(java.lang.String location) |
protected abstract void |
setStartDate() |
protected abstract void |
setTimeUnits() |
void |
setTitle(java.lang.String title) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearDatasetMemory, getCommonOrigin, getDataFormat, getRadarID, getRadarName, isStationary, isVolume
isMine, open
protected NetcdfDataset netcdfDataset
protected java.lang.String title
protected java.lang.String desc
protected java.lang.String location
protected java.util.Date startDate
protected java.util.Date endDate
protected LatLonRect boundingBox
protected java.util.List<VariableSimpleIF> dataVariables
protected java.lang.StringBuffer parseInfo
protected EarthLocation origin
protected java.util.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 setTimeUnits() throws java.lang.Exception
java.lang.Exception
protected abstract void setEarthLocation()
protected abstract void setStartDate()
protected abstract void setEndDate()
public void setTitle(java.lang.String title)
public void setDescription(java.lang.String desc)
public void setLocationURI(java.lang.String location)
protected void removeDataVariable(java.lang.String varName)
protected void setBoundingBox()
public void calcBounds() throws java.io.IOException
java.io.IOException
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public LatLonRect getBoundingBox()
FeatureDataset
getBoundingBox
in interface FeatureDataset
public java.util.List<VariableSimpleIF> getDataVariables()
RadialDatasetSweep
getDataVariables
in interface RadialDatasetSweep
getDataVariables
in interface FeatureDataset
public VariableSimpleIF getDataVariable(java.lang.String shortName)
FeatureDataset
getDataVariable
in interface FeatureDataset
shortName
- of data Variable.public RadialDatasetSweep.Type getCommonType()
RadialDatasetSweep
getCommonType
in interface RadialDatasetSweep
public DateUnit getTimeUnits()
RadialDatasetSweep
getTimeUnits
in interface RadialDatasetSweep
public CalendarDateUnit getCalendarDateUnit()
public EarthLocation getEarthLocation()
public FeatureType[] getFeatureTypes()
FeatureDatasetFactory
getFeatureTypes
in interface FeatureDatasetFactory
public FeatureType getFeatureType()
FeatureDataset
getFeatureType
in interface FeatureDataset
public DateRange getDateRange()
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
@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 FileCacheable
fileCache
- must store this, use it on close as above.public void close() throws java.io.IOException
FeatureDataset
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface FeatureDataset
close
in interface FileCacheable
java.io.IOException
- on io error@Deprecated public void release() throws java.io.IOException
FileCacheable
release
in interface FileCacheable
java.io.IOException
@Deprecated public void reacquire() throws java.io.IOException
FileCacheable
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 NetcdfFile getNetcdfFile()
FeatureDataset
getNetcdfFile
in interface FeatureDataset
public java.lang.String getTitle()
FeatureDataset
getTitle
in interface FeatureDataset
public java.lang.String getDescription()
FeatureDataset
getDescription
in interface FeatureDataset
public java.lang.String getLocationURI()
public java.lang.String getLocation()
FeatureDataset
getLocation
in interface FeatureDataset
getLocation
in interface FileCacheable
public AttributeContainer attributes()
FeatureDataset
attributes
in interface FeatureDataset
@Deprecated public java.util.List<Attribute> getGlobalAttributes()
FeatureDataset
getGlobalAttributes
in interface FeatureDataset
@Deprecated public Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
FeatureDataset
findGlobalAttributeIgnoreCase
in interface FeatureDataset
name
- attribute namepublic java.lang.String getDetailInfo()