public class Level2Adapter extends java.lang.Object implements RadarAdapter
AZIMUTH_ANGLE_TYPE, AZIMUTH_TYPE, ELEVATION_ANGLE_TYPE, RANGE_TYPEAZIMUTH, 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 and Description | 
|---|
Level2Adapter(DataSourceImpl source,
             java.lang.String filename)
Construct a new Level2Adapter 
 | 
Level2Adapter(DataSourceImpl source,
             java.lang.String filename,
             visad.georef.EarthLocation radarLocation)
Construct a new Level2Adapter for the radar location given 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clearCachedData()
Implement the interce. 
 | 
void | 
doRemove()
Clean up whatever we need to when we are removed. 
 | 
double[] | 
getAngles()
Get the array of sweep tilts in this files volume scan. 
 | 
visad.DateTime | 
getBaseTime()
Get the starting time of this Volume 
 | 
visad.FieldImpl | 
getCAPPI(int moment,
        visad.Real level)
Get a CAPPI for the given moment at the given level 
 | 
visad.FlatField | 
getCut(int moment,
      double elevation)
Get a 2D sweep of a particular moment at the specified elevation
 angle. 
 | 
visad.FlatField | 
getCut(int moment,
      double elevation,
      boolean want3D)
Get a 2D sweep of a particular moment at the specified elevation
 angle. 
 | 
visad.DataImpl | 
getData(DataChoice choice,
       DataSelection ds,
       java.util.Hashtable requestProperties)
Get the data for this DataChoice 
 | 
static java.lang.String | 
getMomentName(int moment)
Print out the name of the moment. 
 | 
java.lang.String | 
getName()
Return the name of the file 
 | 
visad.FieldImpl | 
getRHI(int moment,
      double rhiAz)
Get an RHI for the given azimuth 
 | 
static NamedStationTable | 
getStations()
Read in the nexrad stations from the
 idv/resources/nexradstns.xml resource 
 | 
visad.FlatField | 
getVolume(int moment)
Makes a field of all data from one level II file (one volume scan);
  which is composed of severla azimuthal sweeps at different
  angles (titls, elevations) above the horizontal. 
 | 
visad.FlatField | 
getVWP(double altitudeLimit)
Make a data object to display in the IDV as a VAD Wind Profile. 
 | 
void | 
setRadarLocation(visad.georef.EarthLocation el)
Set the radar location 
 | 
java.lang.String | 
toString()
String representation of this adapter. 
 | 
public Level2Adapter(DataSourceImpl source, java.lang.String filename) throws visad.VisADException, java.rmi.RemoteException, java.io.IOException
source - DataSource for cachingfilename - path of filevisad.VisADException - couldn't create VisAD objectjava.rmi.RemoteException - couldn't create remote objectjava.io.IOException - problem opening or reading filepublic Level2Adapter(DataSourceImpl source, java.lang.String filename, visad.georef.EarthLocation radarLocation) throws visad.VisADException, java.rmi.RemoteException, java.io.IOException
source - DataSource for cachingfilename - path of fileradarLocation - location of the radarvisad.VisADException - couldn't create VisAD objectjava.rmi.RemoteException - couldn't create remote objectjava.io.IOException - problem opening or reading filepublic void clearCachedData()
clearCachedData in interface RadarAdapterpublic visad.DateTime getBaseTime()
getBaseTime in interface RadarAdapterpublic double[] getAngles()
public void setRadarLocation(visad.georef.EarthLocation el)
                      throws visad.VisADException,
                             java.rmi.RemoteException
el - location of the radarvisad.VisADException - couldn't create VisAD objectjava.rmi.RemoteException - couldn't create remote objectpublic visad.DataImpl getData(DataChoice choice, DataSelection ds, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
getData in interface RadarAdapterchoice - choice describing the datads - sub-selection criteriarequestProperties - extra request criteria (e.g, used to get
                            RHI azimuth)visad.VisADException - couldn't create VisAD objectjava.rmi.RemoteException - couldn't create remote objectpublic visad.FlatField getCut(int moment,
                              double elevation)
                       throws visad.VisADException,
                              java.rmi.RemoteException
moment - moment (REFLECTIVITY, VELOCITY, SPECTRUM_WIDTH) of dataelevation - elevation anglejava.rmi.RemoteException - couldn't create remote objectvisad.VisADException - couldn't create VisAD objectpublic visad.FlatField getCut(int moment,
                              double elevation,
                              boolean want3D)
                       throws visad.VisADException,
                              java.rmi.RemoteException
moment - moment (REFLECTIVITY, VELOCITY, SPECTRUM_WIDTH) of dataelevation - elevation anglewant3D - true if you want this as a 3-D fieldjava.rmi.RemoteException - couldn't create remote objectvisad.VisADException - couldn't create VisAD objectpublic visad.FlatField getVWP(double altitudeLimit)
                       throws visad.VisADException,
                              java.rmi.RemoteException
altitudeLimit - typically 10 to 15 km; highest wind used.java.rmi.RemoteException - couldn't create remote objectvisad.VisADException - couldn't create VisAD objectpublic visad.FieldImpl getRHI(int moment,
                              double rhiAz)
                       throws visad.VisADException,
                              java.rmi.RemoteException
moment - moment (REFLECTIVITY, VELOCITY, SPECTRUM_WIDTH) of datarhiAz - azimuth for the RHIjava.rmi.RemoteException - couldn't create remote objectvisad.VisADException - couldn't create VisAD objectpublic visad.FieldImpl getCAPPI(int moment,
                                visad.Real level)
                         throws visad.VisADException,
                                java.rmi.RemoteException
moment - moment (REFLECTIVITY, VELOCITY, SPECTRUM_WIDTH) of datalevel - level (Altitude)java.rmi.RemoteException - couldn't create remote objectvisad.VisADException - couldn't create VisAD objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
getName in interface RadarAdapterpublic visad.FlatField getVolume(int moment)
                          throws visad.VisADException,
                                 java.rmi.RemoteException
moment - moment (REFLECTIVITY, VELOCITY, SPECTRUM_WIDTH) of datajava.rmi.RemoteException - couldn't create remote objectvisad.VisADException - couldn't create VisAD objectpublic static NamedStationTable getStations()
NamedStation-spublic static java.lang.String getMomentName(int moment)
moment - radar moment (ex: REFLECTIVITY)public void doRemove()
doRemove in interface RadarAdapter