ucar.nc2.dt.radial
Class Dorade2Dataset

java.lang.Object
  extended by ucar.nc2.dt.TypedDatasetImpl
      extended by ucar.nc2.dt.radial.RadialDatasetSweepAdapter
          extended by ucar.nc2.dt.radial.Dorade2Dataset
All Implemented Interfaces:
RadialDatasetSweep, TypedDataset, TypedDatasetFactoryIF, FeatureDataset, FileCacheable

public class Dorade2Dataset
extends RadialDatasetSweepAdapter
implements TypedDatasetFactoryIF

Make a Dorade 2 NetcdfDataset into a RadialDataset.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.dt.radial.RadialDatasetSweepAdapter
RadialDatasetSweepAdapter.MyRadialVariableAdapter
 
Nested classes/interfaces inherited from interface ucar.nc2.dt.RadialDatasetSweep
RadialDatasetSweep.RadialVariable, RadialDatasetSweep.Sweep, RadialDatasetSweep.Type
 
Field Summary
protected  DateUnit dateUnits
           
 
Fields inherited from class ucar.nc2.dt.radial.RadialDatasetSweepAdapter
csHash, fileCache, 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
Dorade2Dataset()
           
Dorade2Dataset(NetcdfDataset ds)
          Constructor.
 
Method Summary
protected  void addRadialVariable(NetcdfDataset nds, Variable var)
           
 void clearDatasetMemory()
          Remove cached data, if any.
 List getAttributes()
           
 EarthLocation getCommonOrigin()
          If all sweeps have the same origin, return it here, else null
 String getDataFormat()
           
 List getDataVariables()
          The data Variables available in this dataset.
 String getRadarID()
           
 String getRadarName()
           
 FeatureType getScientificDataType()
          What kind of cientific data type will this return?
 DateUnit getTimeUnits()
          Get the units of Calendar time.
 void getTimeUnits(DateUnit dateUnits)
           
 boolean isMine(NetcdfDataset ds)
          Determine if this dataset belongs to you
 boolean isStationary()
          Stationary versus moving radar.
 boolean isVolume()
          Get the basic property of Radar,
static void main(String[] args)
           
protected  RadialDatasetSweep.RadialVariable makeRadialVariable(NetcdfDataset nds, VariableSimpleIF v, Variable v0)
           
 TypedDataset open(NetcdfDataset ncd, CancelTask task, StringBuilder errlog)
          Open a NetcdfDataset as a TypedDataset.
protected  void setEarthLocation()
           
protected  void setEndDate()
           
protected  void setStartDate()
           
protected  void setTimeUnits()
           
 
Methods inherited from class ucar.nc2.dt.radial.RadialDatasetSweepAdapter
calcBounds, close, getCommonType, getDateRange, getDetailInfo, getDetailInfo, getEarthLocation, getFeatureType, getImplementationName, setBoundingBox, setFileCache, sync
 
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setDescription, setLocationURI, 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.TypedDataset
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
 
Methods inherited from interface ucar.nc2.ft.FeatureDataset
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDescription, getEndDate, getGlobalAttributes, getLocation, getNetcdfFile, getStartDate, getTitle
 

Field Detail

dateUnits

protected DateUnit dateUnits
Constructor Detail

Dorade2Dataset

public Dorade2Dataset()

Dorade2Dataset

public Dorade2Dataset(NetcdfDataset ds)
Constructor.

Parameters:
ds - must be from dorade IOSP
Method Detail

isMine

public boolean isMine(NetcdfDataset ds)
Description copied from interface: TypedDatasetFactoryIF
Determine if this dataset belongs to you

Specified by:
isMine in interface TypedDatasetFactoryIF
Parameters:
ds - examine this NetcdfDataset to see if it belongs to this class.
Returns:
true if this class knows how to create a TypedDataset out of this NetcdfDataset.

open

public TypedDataset open(NetcdfDataset ncd,
                         CancelTask task,
                         StringBuilder errlog)
                  throws IOException
Description copied from interface: TypedDatasetFactoryIF
Open a NetcdfDataset as a TypedDataset.

Specified by:
open in interface TypedDatasetFactoryIF
Parameters:
ncd - already opened NetcdfDataset.
task - use may cancel
errlog - place errors here
Returns:
a subclass of TypedDataset
Throws:
IOException - on error

getScientificDataType

public FeatureType getScientificDataType()
Description copied from interface: TypedDatasetFactoryIF
What kind of cientific data type will this return?

Specified by:
getScientificDataType in interface TypedDatasetFactoryIF
Returns:
scientific data type

getRadarID

public String getRadarID()
Specified by:
getRadarID in interface RadialDatasetSweep
Returns:
radar id

getRadarName

public String getRadarName()
Specified by:
getRadarName in interface RadialDatasetSweep
Returns:
radar name

getDataFormat

public String getDataFormat()
Specified by:
getDataFormat in interface RadialDatasetSweep
Returns:
data format

getCommonOrigin

public EarthLocation getCommonOrigin()
Description copied from interface: RadialDatasetSweep
If all sweeps have the same origin, return it here, else null

Specified by:
getCommonOrigin in interface RadialDatasetSweep
Returns:
common origin, or null

isStationary

public boolean isStationary()
Description copied from interface: RadialDatasetSweep
Stationary versus moving radar.

Specified by:
isStationary in interface RadialDatasetSweep
Returns:
true if this is stationary.

isVolume

public boolean isVolume()
Description copied from interface: RadialDatasetSweep
Get the basic property of Radar,

Specified by:
isVolume in interface RadialDatasetSweep
Returns:
0 if there is only one sweep

setEarthLocation

protected void setEarthLocation()
Specified by:
setEarthLocation in class RadialDatasetSweepAdapter

addRadialVariable

protected void addRadialVariable(NetcdfDataset nds,
                                 Variable var)
Specified by:
addRadialVariable in class RadialDatasetSweepAdapter

makeRadialVariable

protected RadialDatasetSweep.RadialVariable makeRadialVariable(NetcdfDataset nds,
                                                               VariableSimpleIF v,
                                                               Variable v0)
Specified by:
makeRadialVariable in class RadialDatasetSweepAdapter

getDataVariables

public List getDataVariables()
Description copied from interface: TypedDataset
The data Variables available in this dataset. Should just be data variable others might be searching for, not metadata or coordinate system variables, etc. The shape of this VariableSimpleIF does not necessarily match the

Specified by:
getDataVariables in interface RadialDatasetSweep
Specified by:
getDataVariables in interface TypedDataset
Specified by:
getDataVariables in interface FeatureDataset
Overrides:
getDataVariables in class TypedDatasetImpl
Returns:
List of type VariableSimpleIF

setStartDate

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

setEndDate

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

setTimeUnits

protected void setTimeUnits()
                     throws Exception
Specified by:
setTimeUnits in class RadialDatasetSweepAdapter
Throws:
Exception

getAttributes

public List getAttributes()

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
Overrides:
getTimeUnits in class RadialDatasetSweepAdapter
Returns:
units of Calendar time

getTimeUnits

public void getTimeUnits(DateUnit dateUnits)

clearDatasetMemory

public void clearDatasetMemory()
Description copied from interface: RadialDatasetSweep
Remove cached data, if any.

Specified by:
clearDatasetMemory in interface RadialDatasetSweep

main

public static void main(String[] args)
                 throws Exception,
                        IOException,
                        InstantiationException,
                        IllegalAccessException
Throws:
Exception
IOException
InstantiationException
IllegalAccessException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.