rsl_get_ray

This function takes either a volume or sweep as input and returns the ray closest to the given azimuth, or the first ray of sweep if azimuth is omitted. If volume is given instead of sweep, the elevation may also be specified to select a sweep. Otherwise, the base scan is used. If ray is not found, function returns -1.

Syntax

ray = rsl_get_ray(volume [, elevation] [, azimuth])
ray = rsl_get_ray(sweep [, azimuth])

Arguments

volume a volume structure.
sweep a sweep structure.
elevation elevation angle of sweep from which ray is to be selected. Default is base scan.
azimuth azimuth of ray to be returned. Azimuth values range from 0 to 360 degrees, increasing clockwise, with 0 being north. Default is first ray of sweep.