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

struct_name = rsl_which_struct(structure)

Arguments

structure A radar component structure, such as radar, volume, etc.

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.
struct = rsl_which_struct(radar_or_vol)
if struct eq 'RADAR' then begin
    vol = rsl_get_volume(radar_or_vol,field)
endif else if struct eq 'VOLUME' then begin
    vol = radar_or_vol
endif else begin
    print,'Arg 1 must be either radar or volume structure.'
endelse