xradar.util.get_first_angle#

xradar.util.get_first_angle(ds)[source]#

Return name of first angle dimension from given dataset.

Parameters:

ds (xarray.Dataset) – Dateset to get first angle name from.

Returns:

first_angle (str) – Name of first angle dimension, azimuth or elevation.

Raises:

ValueError – If the dataset has no range dimension, none or both of azimuth and elevation as dimension, time as ray dimension (swap it for the angle first), or the angle has no coordinate.