rsl_get_sweep
This function returns a structure containing the requested sweep. The base scan
(lowest elevation) is returned by default.
Syntax
sweep = rsl_get_sweep(volume [, elevation] [, SWEEP_NUMBER=sweepnumber] [, SWEEP_INDEX=sweepindex])
Inputs
| volume |
A volume structure. |
| elevation |
Optional argument to select the sweep by elevation angle (in degrees).
The sweep closest to this elevation is returned.
|
Keyword parameters
| SWEEP_INDEX |
Select the sweep by index number,
where 0 is the base scan. If the elevation argument and
SWEEP_INDEX are both given, elevation is used.
|
| SWEEP_NUMBER |
Sweep number, where 1 is the base scan. If the elevation argument
and SWEEP_NUMBER are both given, elevation is used.
|
Example 1
Get the base scan sweep.
volume = rsl_get_volume(radar)
sweep = rsl_get_sweep(volume)
Example 2
Get the sweep closest to elevation 1.5 degrees.
sweep = rsl_get_sweep(volume, 1.5)
Example 3
To get the sweep at the second tilt, use either of the following:
sweep = rsl_get_sweep(volume, sweep_num=2)
or
sweep = rsl_get_sweep(volume, sweep_index=1)