rsl_which_struct

This function returns the name of the rsl structure given as argument. If argument isn't an RSL structure, an empty string is returned.

Syntax

result = rsl_which_struct(structure)

Arguments

structure One of the structures radar, volume, sweep, or ray.

Return value

Return value is one of the following strings:
    'RADAR' 
    'VOLUME'
    'SWEEP'
    'RAY'
    '' (Empty string)

Example

The function rsl_vslice can take either a radar structure or volume structure as argument. The following condensed section of code illustrates the use of rsl_which_struct to determine the structure.
structype = rsl_which_struct(radar_or_vol)
if structype eq 'RADAR' then begin
    vol = rsl_get_volume(radar_or_vol, field)
endif else if structype eq 'VOLUME' then begin
    vol = radar_or_vol
endif else begin
    print,'Arg 1 must be either radar or volume structure.'
endelse