ucar.nc2.dt.radial
Class RadialDatasetSweepAdapter

java.lang.Object
  extended by ucar.nc2.dt.TypedDatasetImpl
      extended by ucar.nc2.dt.radial.RadialDatasetSweepAdapter
All Implemented Interfaces:
RadialDatasetSweep, TypedDataset
Direct Known Subclasses:
Dorade2Dataset, LevelII2Dataset, Netcdf2Dataset, Nids2Dataset, UF2Dataset

public abstract class RadialDatasetSweepAdapter
extends TypedDatasetImpl
implements RadialDatasetSweep

Make a NetcdfDataset into a RadialDatasetSweep.

Version:
$Revision:51 $ $Date:2006-07-12 17:13:13Z $
Author:
yuan

Nested Class Summary
 class RadialDatasetSweepAdapter.MyRadialVariableAdapter
           
 
Nested classes/interfaces inherited from interface ucar.nc2.dt.RadialDatasetSweep
RadialDatasetSweep.RadialVariable, RadialDatasetSweep.Sweep, RadialDatasetSweep.Type
 
Field Summary
protected  java.util.HashMap csHash
           
protected  DateUnit dateUnits
           
protected  EarthLocation origin
           
 
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title
 
Fields inherited from interface ucar.nc2.dt.RadialDatasetSweep
LevelII, UF
 
Constructor Summary
RadialDatasetSweepAdapter()
           
RadialDatasetSweepAdapter(NetcdfDataset ds)
           
 
Method Summary
protected abstract  void addRadialVariable(NetcdfDataset ds, Variable var)
           
 RadialDatasetSweep.Type getCommonType()
          If all the sweeps are the same type, return it here, else NONE
 java.lang.String getDetailInfo()
           
 EarthLocation getEarthLocation()
           
 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()
           
protected abstract  void setTimeUnits()
           
 
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setDescription, setEndDate, setLocationURI, setStartDate, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.nc2.dt.RadialDatasetSweep
clearDatasetMemory, getCommonOrigin, getDataFormat, getDataVariables, getRadarID, getRadarName, isStationary, isVolume
 
Methods inherited from interface ucar.nc2.dt.TypedDataset
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
 

Field Detail

origin

protected EarthLocation origin

csHash

protected java.util.HashMap csHash

dateUnits

protected DateUnit dateUnits
Constructor Detail

RadialDatasetSweepAdapter

public RadialDatasetSweepAdapter()

RadialDatasetSweepAdapter

public RadialDatasetSweepAdapter(NetcdfDataset ds)
Method Detail

addRadialVariable

protected abstract void addRadialVariable(NetcdfDataset ds,
                                          Variable var)

makeRadialVariable

protected abstract RadialDatasetSweep.RadialVariable makeRadialVariable(NetcdfDataset nds,
                                                                        VariableSimpleIF v,
                                                                        Variable v0)

setTimeUnits

protected abstract void setTimeUnits()
                              throws java.lang.Exception
Throws:
java.lang.Exception

getDetailInfo

public java.lang.String getDetailInfo()
Specified by:
getDetailInfo in interface TypedDataset
Overrides:
getDetailInfo in class TypedDatasetImpl
Returns:
debug / underlying implementation details

setEarthLocation

protected abstract void setEarthLocation()

getCommonType

public RadialDatasetSweep.Type getCommonType()
Description copied from interface: RadialDatasetSweep
If all the sweeps are the same type, return it here, else NONE

Specified by:
getCommonType in interface RadialDatasetSweep
Returns:
type of sweep, or NONE

getTimeUnits

public DateUnit getTimeUnits()
Description copied from interface: RadialDatasetSweep
Get the units of Calendar time. To get a Date, from a time value, call DateUnit.getStandardDate(double value). To get units as a String, call DateUnit.getUnitsString().

Specified by:
getTimeUnits in interface RadialDatasetSweep
Returns:
units of Calendar time

getEarthLocation

public EarthLocation getEarthLocation()

setBoundingBox

protected void setBoundingBox()
Specified by:
setBoundingBox in class TypedDatasetImpl