ucar.nc2.dt.radial
Class Nids2Dataset

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

public class Nids2Dataset
extends RadialDatasetSweepAdapter
implements TypedDatasetFactoryIF

Make a Nids NetcdfDataset into a RadialDataset.

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
 
Fields inherited from class ucar.nc2.dt.radial.RadialDatasetSweepAdapter
csHash, dateUnits, 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
Nids2Dataset()
           
Nids2Dataset(NetcdfDataset ds)
          Constructor.
 
Method Summary
protected  void addRadialVariable(NetcdfDataset nds, Variable var)
           
 void clearDatasetMemory()
          Remove cached data, if any.
 EarthLocation getCommonOrigin()
          If all sweeps have the same origin, return it here, else null
 String getDataFormat()
           
 String getInfo()
           
 String getRadarID()
           
 String getRadarName()
           
 FeatureType getScientificDataType()
          What kind of cientific data type will this return?
 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, getTimeUnits, setBoundingBox, setFileCache, sync
 
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, 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.RadialDatasetSweep
getDataVariables
 
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
 

Constructor Detail

Nids2Dataset

public Nids2Dataset()

Nids2Dataset

public Nids2Dataset(NetcdfDataset ds)
Constructor.

Parameters:
ds - must be from nids 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

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

getRadarID

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

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.

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

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

setTimeUnits

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

setStartDate

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

setEndDate

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

addRadialVariable

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

clearDatasetMemory

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

Specified by:
clearDatasetMemory in interface RadialDatasetSweep

makeRadialVariable

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

getInfo

public String getInfo()

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.