ucar.unidata.data.radar
Class NetcdfSweepfileAdapter

java.lang.Object
  extended by ucar.unidata.data.radar.NetcdfSweepfileAdapter
All Implemented Interfaces:
RadarAdapter, RadarConstants

public class NetcdfSweepfileAdapter
extends Object
implements RadarAdapter

Adapt a netCDF sweepfile to a VisAD data structure.

Version:
$Revision: 1.15 $ $Date: 2007/04/16 15:40:02 $
Author:
MetApps Development Team

Field Summary
 
Fields inherited from interface ucar.unidata.data.radar.RadarAdapter
AZIMUTH_TYPE, ELEVATION_ANGLE_TYPE, RANGE_TYPE
 
Fields inherited from interface ucar.unidata.data.radar.RadarConstants
AZIMUTH, ELEVATION_ANGLE, PROP_2DOR3D, PROP_ANGLE, PROP_ANGLES, PROP_AZIMUTH, PROP_CAPPI_LEVEL, PROP_CAPPI_LEVELS, PROP_TIMEHEIGHT, PROP_VCS, PROP_VOLUMEORSWEEP, PROP_VWP, RADAR_MOST_RECENT, RADIAL_VELOCITY_NAME, RANGE, REFLECTIVITY, REFLECTIVITY_NAME, SPECTRUM_WIDTH, SPECTRUM_WIDTH_NAME, STATION_LOCATION, VALUE_2D, VALUE_3D, VALUE_SWEEP, VALUE_VOLUME, VELOCITY
 
Constructor Summary
NetcdfSweepfileAdapter()
          Zero-argument constructor for construction via unpersistence.
NetcdfSweepfileAdapter(DataSourceImpl source, String location)
          Construct a new DORADE adapter.
NetcdfSweepfileAdapter(String location)
          Create a new NetcdfSweepfileAdapter
 
Method Summary
 void clearCachedData()
          Implement the interce.
 boolean equals(Object o)
          Check to see if this NetcdfSweepfileAdapter is equal to the object in question.
 DateTime getBaseTime()
          Get the nominal time (time of first radial)
 DataImpl getData()
          Get the Data object that this adapter represents
 DataImpl getData(DataChoice dataChoice, DataSelection subset, Hashtable requestProperties)
          Get the data for the given DataChoice and selection criteria.
 DataImpl getField(RealType type)
          Deprecated. Use getData(DataChoice, DataSelection, Hashtable)
 String getName()
          Get the name of this adapter
protected  RealType[] getParams()
          Get the parameters for this adapter
 int hashCode()
          Get the hash code for this object.
protected  void init()
          Initialize this adapter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetcdfSweepfileAdapter

public NetcdfSweepfileAdapter()
Zero-argument constructor for construction via unpersistence.


NetcdfSweepfileAdapter

public NetcdfSweepfileAdapter(String location)
                       throws VisADException
Create a new NetcdfSweepfileAdapter

Parameters:
location - location of data (filename or URL)
Throws:
VisADException - VisAD problem

NetcdfSweepfileAdapter

public NetcdfSweepfileAdapter(DataSourceImpl source,
                              String location)
                       throws VisADException
Construct a new DORADE adapter.

Parameters:
source - DataSource (may be null)
location - location of data (filename or URL)
Throws:
VisADException - problem creating data
Method Detail

init

protected void init()
             throws Exception
Initialize this adapter

Throws:
Exception - problem initializing adapter

clearCachedData

public void clearCachedData()
Implement the interce. For now lets not do anything

Specified by:
clearCachedData in interface RadarAdapter

getData

public DataImpl getData()
Get the Data object that this adapter represents

Returns:
the Data object

getBaseTime

public DateTime getBaseTime()
Get the nominal time (time of first radial)

Specified by:
getBaseTime in interface RadarAdapter
Returns:
nominal time

getField

public DataImpl getField(RealType type)
Deprecated. Use getData(DataChoice, DataSelection, Hashtable)

Get the data for the type supplied.

Parameters:
type - RealType of the moment
Returns:
the representative data

getData

public DataImpl getData(DataChoice dataChoice,
                        DataSelection subset,
                        Hashtable requestProperties)
                 throws VisADException,
                        RemoteException
Get the data for the given DataChoice and selection criteria.

Specified by:
getData in interface RadarAdapter
Parameters:
dataChoice - DataChoice for selection
subset - subsetting criteria
requestProperties - extra request properties
Returns:
the Data object for the request
Throws:
RemoteException - couldn't create a remote data object
VisADException - couldn't create the data

equals

public boolean equals(Object o)
Check to see if this NetcdfSweepfileAdapter is equal to the object in question.

Overrides:
equals in class Object
Parameters:
o - object in question
Returns:
true if they are the same or equivalent objects

hashCode

public int hashCode()
Get the hash code for this object.

Overrides:
hashCode in class Object
Returns:
hash code.

getParams

protected RealType[] getParams()
Get the parameters for this adapter

Returns:
parameters

getName

public String getName()
Get the name of this adapter

Specified by:
getName in interface RadarAdapter
Returns:
the source of the data