Package ucar.unidata.data.radar
Class NetcdfSweepfileAdapter
java.lang.Object
ucar.unidata.data.radar.NetcdfSweepfileAdapter
- All Implemented Interfaces:
RadarAdapter,RadarConstants
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_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.NetcdfSweepfileAdapter(String location) Create a new NetcdfSweepfileAdapterNetcdfSweepfileAdapter(DataSourceImpl source, String location) 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 thisNetcdfSweepfileAdapteris equal to the object in question.Get the nominal time (time of first radial)getData()Get the Data object that this adapter representsgetData(DataChoice dataChoice, DataSelection subset, Hashtable requestProperties) Get the data for the given DataChoice and selection criteria.Get the data for the type supplied.getName()Get the name of this adapterprotected RealType[]Get the parameters for this adapterinthashCode()Get the hash code for this object.protected voidinit()Initialize this adapter
-
Constructor Details
-
NetcdfSweepfileAdapter
public NetcdfSweepfileAdapter()Zero-argument constructor for construction via unpersistence. -
NetcdfSweepfileAdapter
Create a new NetcdfSweepfileAdapter- Parameters:
location- location of data (filename or URL)- Throws:
VisADException- VisAD problem
-
NetcdfSweepfileAdapter
Construct a new DORADE adapter.- Parameters:
source- DataSource (may be null)location- location of data (filename or URL)- Throws:
VisADException- problem creating data
-
-
Method Details
-
init
Initialize this adapter- Throws:
Exception- problem initializing adapter
-
clearCachedData
public void clearCachedData()Implement the interce. For now lets not do anything- Specified by:
clearCachedDatain interfaceRadarAdapter
-
getData
Get the Data object that this adapter represents- Returns:
- the Data object
-
getBaseTime
Get the nominal time (time of first radial)- Specified by:
getBaseTimein interfaceRadarAdapter- Returns:
- nominal time
-
getField
Get the data for the type supplied.- Parameters:
type- RealType of the moment- Returns:
- the representative data deprecated Use getData(DataChoice, DataSelection, Hashtable)
-
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 thisNetcdfSweepfileAdapteris equal to the object in question. -
hashCode
public int hashCode()Get the hash code for this object. -
getParams
Get the parameters for this adapter- Returns:
- parameters
-
getName
Get the name of this adapter- Specified by:
getNamein interfaceRadarAdapter- Returns:
- the source of the data
-
doRemove
public void doRemove()Clean up whatever we need to when we are removed.- Specified by:
doRemovein interfaceRadarAdapter
-