Package ucar.unidata.data.radar
Class DoradeAdapter
java.lang.Object
ucar.unidata.data.radar.DoradeAdapter
- All Implemented Interfaces:
RadarAdapter,RadarConstants
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_ANGLE_TYPE, AZIMUTH_TYPE, ELEVATION_ANGLE_TYPE, RANGE_TYPEFields inherited from interface ucar.unidata.data.radar.RadarConstants
AZIMUTH, AZIMUTH_ANGLE, ELEVATION_ANGLE, PROP_2DOR3D, PROP_ANGLE, PROP_ANGLES, PROP_AZIMUTH, PROP_AZIMUTHS, PROP_CAPPI_LEVEL, PROP_CAPPI_LEVELS, PROP_TIMEHEIGHT, PROP_VCS, PROP_VCS_END, PROP_VCS_START, 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
ConstructorsConstructorDescriptionZero-argument constructor for construction via unpersistence.DoradeAdapter(DataSourceImpl source, String fileName) Construct a new DORADE adapter. -
Method Summary
Modifier and TypeMethodDescriptionvoidImplement the interce.voiddoRemove()Clean up whatever we need to when we are removed.booleanCheck to see if thisDoradeDataSourceis equal to the object in question.Get the base time for this sweepgetData(DataChoice dataChoice, DataSelection subset, Hashtable requestProperties) Get the data for the given DataChoice and selection criteria.getName()Return the name of the fileprotected RealType[]Get the parameters for this adapterucar.atd.dorade.ScanModeGet the scan mode for this sweepinthashCode()Get the hash code for this object.booleanisPPI()Is this sweep in ppi modebooleanisRHI()Is this sweep in rhi modebooleanisSurvey()Is this sweep in survey modestatic voidTest maintoString()to String.
-
Constructor Details
-
DoradeAdapter
public DoradeAdapter()Zero-argument constructor for construction via unpersistence. -
DoradeAdapter
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 Details
-
clearCachedData
public void clearCachedData()Implement the interce. For now lets not do anything- Specified by:
clearCachedDatain interfaceRadarAdapter
-
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:
getDatain interfaceRadarAdapter- Parameters:
dataChoice- DataChoice for selectionsubset- subsetting criteriarequestProperties- extra request properties- Returns:
- the Data object for the request
- Throws:
RemoteException- couldn't create a remote data objectVisADException- couldn't create the data
-
equals
Check to see if thisDoradeDataSourceis equal to the object in question. -
hashCode
public int hashCode()Get the hash code for this object. -
getBaseTime
Get the base time for this sweep- Specified by:
getBaseTimein interfaceRadarAdapter- Returns:
- time of sweep
-
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
Return the name of the file- Specified by:
getNamein interfaceRadarAdapter- Returns:
- name
-
toString
to String. -
main
Test main- Parameters:
args- cmd line args- Throws:
Exception- when bad things happen
-
doRemove
public void doRemove()Clean up whatever we need to when we are removed.- Specified by:
doRemovein interfaceRadarAdapter
-