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, Nids2Dataset

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
 
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
 
Constructor Summary
RadialDatasetSweepAdapter()
           
RadialDatasetSweepAdapter(NetcdfDataset ds)
           
 
Method Summary
protected  void addRadialVariable(VariableEnhanced varDS, RadialCoordSys gcs)
           
protected  void constructCoordinateSystems(NetcdfDataset ds, VariableEnhanced v)
           
 RadialDatasetSweep.Type getCommonType()
          If all the sweeps are the same type, return it here, else NONE
 java.lang.String getDetailInfo()
          Show debug / underlying implementation details
 EarthLocation getEarthLocation()
           
 DateUnit getTimeUnits()
          Get the units of Calendar time.
protected abstract  RadialDatasetSweep.RadialVariable makeRadialVariable(VariableEnhanced varDS, RadialCoordSys gcs)
           
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

constructCoordinateSystems

protected void constructCoordinateSystems(NetcdfDataset ds,
                                          VariableEnhanced v)

addRadialVariable

protected void addRadialVariable(VariableEnhanced varDS,
                                 RadialCoordSys gcs)

makeRadialVariable

protected abstract RadialDatasetSweep.RadialVariable makeRadialVariable(VariableEnhanced varDS,
                                                                        RadialCoordSys gcs)

setTimeUnits

protected abstract void setTimeUnits()

getDetailInfo

public java.lang.String getDetailInfo()
Description copied from interface: TypedDataset
Show debug / underlying implementation details

Specified by:
getDetailInfo in interface TypedDataset
Overrides:
getDetailInfo in class TypedDatasetImpl

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

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

getEarthLocation

public EarthLocation getEarthLocation()

setBoundingBox

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