|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.radar.CDMRadarAdapter
public class CDMRadarAdapter
A data adapter for Common Data Model radial data (Level II, Level III, DORADE)
| Field Summary |
|---|
| Fields inherited from interface ucar.unidata.data.radar.RadarAdapter |
|---|
AZIMUTH_ANGLE_TYPE, AZIMUTH_TYPE, ELEVATION_ANGLE_TYPE, RANGE_TYPE |
| Fields 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 | |
|---|---|
CDMRadarAdapter()
Zero-argument constructor for construction via unpersistence. |
|
CDMRadarAdapter(DataSourceImpl source,
String fileName)
Construct a new DORADE adapter. |
|
| Method Summary | |
|---|---|
void |
clearCachedData()
Clear the rds data |
void |
doRemove()
Clean up whatever we need to when we are removed. |
boolean |
equals(Object o)
Check to see if this CDMDataSource is equal to the object
in question. |
protected double[] |
getAngles(String vname)
Get the angles for this parameter |
DateTime |
getBaseTime()
Get the base time for this sweep |
ucar.unidata.geoloc.Bearing |
getBearing(double lat,
double lon)
calculate the bearing of one location to the radar location |
FieldImpl |
getCAPPI(int moment,
String varName,
Real level)
This api is based on the rsl c library from TRMM Office Radar Software Library. |
Object[] |
getCutIdx(ucar.nc2.dt.RadialDatasetSweep.RadialVariable sweepVar)
get radar sweep index |
DataImpl |
getData(DataChoice dataChoice,
DataSelection subset,
Hashtable requestProperties)
Get the data for the given DataChoice and selection criteria. |
String |
getDataFormatName()
Get the data format name (e.g. |
float[] |
getFloatNaN(int n)
get float array init with NaN |
float[] |
getIntersectionOfRayAndLine(EarthLocation radarCenter,
float azi,
float lat3,
float lon3,
float lat4,
float lon4)
calculate the intersection of ray and a line |
float[] |
getIntersectionOfTwoLines(float lat1,
float lon1,
float lat2,
float lon2,
float lat3,
float lon3,
float lat4,
float lon4)
alculate the intersection of two lines |
String |
getName()
Return the name of the file |
protected RealType[] |
getParams()
Get the parameters for this adapter |
FieldImpl |
getRadarCrossSection(int moment,
String varName,
LatLonPoint p1,
LatLonPoint p2)
Makes a field of all data from one common data model radar adapter; |
EarthLocation |
getRadarStationInFile()
Get the radar location from the dataset. |
FlatField |
getRaster(int moment,
String varName)
Create the initial spatial domain |
FieldImpl |
getRHI(int moment,
String varName,
double rhiAz)
Makes a field of all data from one common data model radar adapter; |
FieldImpl |
getRHIOld(int moment,
String varName,
double rhiAz)
Makes a field of all data from one common data model radar adapter; |
FieldImpl |
getRHISweep(int moment,
double azimus,
String varName,
int idx,
boolean want3D)
Makes a field of all data from one common data model radar adapter; |
FlatField |
getRHIVolume(int moment,
String varName)
Makes a field of all data from one common data model radar adapter; |
String |
getStationID()
Get the station ID |
EarthLocation |
getStationLocation()
Get the parameters for this adapter |
String |
getStationName()
Get the parameters for this adapter |
FlatField |
getSweep(int moment,
double elevation,
String varName,
int idx,
boolean want3D)
Makes a field of all data from one common data model radar adapter; |
int |
getSweepNumber(String vname,
double angle)
Get the sweep number for the particular variable and elevation angle |
protected double |
getVCPAngle(double angle,
short id)
Find the closest angle to the given VCP angles |
protected double[] |
getVCPAngles(short id,
double[] origAngles)
Get the parameters for this adapter |
protected short |
getVCPid(String vname)
Get the parameters for this adapter |
FlatField |
getVolume(int moment,
String varName)
Makes a field of all data from one common data model radar adapter; |
int |
hashCode()
Get the hash code for this object. |
boolean |
isRaster()
Get the parameters for this adapter |
boolean |
isRHI()
Get the parameters for this adapter |
boolean |
isVolume()
Get the parameters for this adapter |
static void |
main(String[] args)
main |
static void |
mainDorade(String[] args)
Test main |
LatLonPoint |
setCrossSectionLinePosition(float azi)
setting the init crosssection line position with azimuth angle |
void |
setStationLocation(EarthLocation el)
Set the station location |
String |
toString()
to String. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CDMRadarAdapter()
public CDMRadarAdapter(DataSourceImpl source,
String fileName)
throws VisADException
source - DataSource (may be null)fileName - name of the DORADE file to read
VisADException - problem creating data| Method Detail |
|---|
public boolean equals(Object o)
CDMDataSource is equal to the object
in question.
equals in class Objecto - object in question
public int hashCode()
hashCode in class Objectpublic EarthLocation getRadarStationInFile()
public String toString()
toString in class Objectprotected double[] getAngles(String vname)
vname - variable name
public DateTime getBaseTime()
getBaseTime in interface RadarAdapterprotected short getVCPid(String vname)
vname - variable name
protected double[] getVCPAngles(short id,
double[] origAngles)
id - vcp id numberorigAngles - The original angles
protected double getVCPAngle(double angle,
short id)
angle - to findid - of VCP
public FieldImpl getCAPPI(int moment,
String varName,
Real level)
throws VisADException,
RemoteException,
IOException
moment - the momentvarName - variable namelevel - the level
IOException - problem reading the file
RemoteException - problem with Java RMI
VisADException - problem creating VisAD object
public DataImpl getData(DataChoice dataChoice,
DataSelection subset,
Hashtable requestProperties)
throws VisADException,
RemoteException
getData in interface RadarAdapterdataChoice - DataChoice for selectionsubset - subsetting criteriarequestProperties - extra request properties
RemoteException - couldn't create a remote data object
VisADException - couldn't create the datapublic void clearCachedData()
clearCachedData in interface RadarAdapterpublic String getName()
getName in interface RadarAdapterprotected RealType[] getParams()
public FieldImpl getRHIOld(int moment,
String varName,
double rhiAz)
throws VisADException,
RemoteException,
IOException
moment - momentvarName - variable namerhiAz - azimuth for RHI
IOException - Problem reading data
RemoteException - Java RMI problem
VisADException - Couldn't create VisAD Object
public FieldImpl getRadarCrossSection(int moment,
String varName,
LatLonPoint p1,
LatLonPoint p2)
throws VisADException,
IOException
moment - momentvarName - variable namep1 - cross lint start pointp2 - cross lint end point
IOException - Problem reading data
VisADException - Couldn't create VisAD Object
public ucar.unidata.geoloc.Bearing getBearing(double lat,
double lon)
lat - input latitudelon - input longitude
public LatLonPoint setCrossSectionLinePosition(float azi)
throws VisADException,
RemoteException
azi - input azimuth angle
RemoteException
VisADException
public float[] getIntersectionOfRayAndLine(EarthLocation radarCenter,
float azi,
float lat3,
float lon3,
float lat4,
float lon4)
radarCenter - earthlocation of radarazi - ray azimuthlat3 - line latitude of one endlon3 - line longitude of one endlat4 - line latitude of another endlon4 - _more_
public float[] getIntersectionOfTwoLines(float lat1,
float lon1,
float lat2,
float lon2,
float lat3,
float lon3,
float lat4,
float lon4)
lat1 - latitude of line 1lon1 - longitude of line 1lat2 - latitude of line 1lon2 - longitude of line 1lat3 - latitude of line 2lon3 - longitude of line 2lat4 - latitude of line 2lon4 - longitude of line 2
public FieldImpl getRHI(int moment,
String varName,
double rhiAz)
throws VisADException,
RemoteException,
IOException
moment - momentvarName - variable namerhiAz - azimuth for RHI
IOException - Problem reading data
RemoteException - Java RMI problem
VisADException - Couldn't create VisAD Objectpublic String getStationID()
public EarthLocation getStationLocation()
public void setStationLocation(EarthLocation el)
throws VisADException,
RemoteException
el - location of the radar
VisADException - couldn't create VisAD object
RemoteException - couldn't create remote objectpublic String getStationName()
public String getDataFormatName()
public FlatField getRaster(int moment,
String varName)
throws VisADException,
RemoteException,
IOException,
ucar.ma2.InvalidRangeException
moment - varName - variable name
IOException - Problem reading data
ucar.ma2.InvalidRangeException - Problem reading data
RemoteException - Java RMI problem
VisADException - problem creating domain
public FieldImpl getRHISweep(int moment,
double azimus,
String varName,
int idx,
boolean want3D)
throws VisADException,
RemoteException,
IOException
moment - momentazimus - azimuth anglevarName - variable nameidx - indexwant3D - true if should return a 3D field
IOException - Problem reading data
RemoteException - Java RMI problem
VisADException - Couldn't create VisAD Object
public FlatField getSweep(int moment,
double elevation,
String varName,
int idx,
boolean want3D)
throws VisADException,
RemoteException,
IOException
moment - momentelevation - elevation anglevarName - variable nameidx - _more_want3D - true if should return a 3D field
IOException - Problem reading data
RemoteException - Java RMI problem
VisADException - Couldn't create VisAD Object
public int getSweepNumber(String vname,
double angle)
vname - variable nameangle - elevation angle
public Object[] getCutIdx(ucar.nc2.dt.RadialDatasetSweep.RadialVariable sweepVar)
sweepVar - radar variable
public FlatField getVolume(int moment,
String varName)
throws VisADException,
RemoteException,
IOException
moment - momentvarName - variable name
IOException - Problem reading data
RemoteException - Java RMI problem
VisADException - Couldn't create VisAD Object
public FlatField getRHIVolume(int moment,
String varName)
throws VisADException,
RemoteException,
IOException
moment - momentvarName - variable name
IOException - Problem reading data
RemoteException - Java RMI problem
VisADException - Couldn't create VisAD Objectpublic float[] getFloatNaN(int n)
n - 1 D array length
public boolean isRaster()
public boolean isVolume()
public boolean isRHI()
public static void mainDorade(String[] args)
throws Exception
args - cmd line args
Exception - when bad things happen
public static void main(String[] args)
throws Exception
args - args
Exception - On badnesspublic void doRemove()
doRemove in interface RadarAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||