ucar.unidata.data.radar
Class DoradeAdapter

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

public class DoradeAdapter
extends Object
implements RadarAdapter

A data adapter for DORADE radar data

Version:
$Revision: 1.19 $
Author:
IDV Development Team @ ATD

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
DoradeAdapter()
          Zero-argument constructor for construction via unpersistence.
DoradeAdapter(DataSourceImpl source, String fileName)
          Construct a new DORADE adapter.
 
Method Summary
 void clearCachedData()
          Implement the interce.
 boolean equals(Object o)
          Check to see if this DoradeDataSource is equal to the object in question.
 DateTime getBaseTime()
          Get the base time for this sweep
 DataImpl getData(DataChoice dataChoice, DataSelection subset, Hashtable requestProperties)
          Get the data for the given DataChoice and selection criteria.
 String getName()
          Return the name of the file
protected  RealType[] getParams()
          Get the parameters for this adapter
 ucar.atd.dorade.ScanMode getScanMode()
          Get the scan mode for this sweep
 int hashCode()
          Get the hash code for this object.
 boolean isPPI()
          Is this sweep in ppi mode
 boolean isRHI()
          Is this sweep in rhi mode
 boolean isSurvey()
          Is this sweep in survey mode
static void main(String[] args)
          Test main
 String toString()
          to String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoradeAdapter

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


DoradeAdapter

public DoradeAdapter(DataSourceImpl source,
                     String fileName)
              throws VisADException
Construct a new DORADE adapter.

Parameters:
source - DataSource (may be null)
fileName - name of the DORADE file to read
Throws:
VisADException - problem creating data
Method Detail

clearCachedData

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

Specified by:
clearCachedData in interface RadarAdapter

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 DoradeDataSource 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.

getBaseTime

public DateTime getBaseTime()
Get the base time for this sweep

Specified by:
getBaseTime in interface RadarAdapter
Returns:
time of sweep

getParams

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

Returns:
parameters

isPPI

public boolean isPPI()
Is this sweep in ppi mode

Returns:
Is ppi mode

isRHI

public boolean isRHI()
Is this sweep in rhi mode

Returns:
Is RHI mode

isSurvey

public boolean isSurvey()
Is this sweep in survey mode

Returns:
Is survey mode

getScanMode

public ucar.atd.dorade.ScanMode getScanMode()
Get the scan mode for this sweep

Returns:
The scan mode

getName

public String getName()
Return the name of the file

Specified by:
getName in interface RadarAdapter
Returns:
name

toString

public String toString()
to String.

Overrides:
toString in class Object
Returns:
to string

main

public static void main(String[] args)
                 throws Exception
Test main

Parameters:
args - cmd line args
Throws:
Exception - when bad things happen