- wradlib.georef.polar.spherical_to_xyz(r, phi, theta, sitecoords, re=None, ke=1.3333333333333333, squeeze=False, strict_dims=False)¶
Transforms spherical coordinates (r, phi, theta) to cartesian coordinates (x, y, z) centered at sitecoords (aeqd).
It takes the shortening of the great circle distance with increasing elevation angle as well as the resulting increase in height into account.
numpy.ndarray) – Contains the radial distances in meters.
numpy.ndarray) – Contains the azimuthal angles in degree.
numpy.ndarray) – Contains the elevation angles in degree.
sitecoords (sequence) – the lon / lat coordinates of the radar location and its altitude a.m.s.l. (in meters) if sitecoords is of length two, altitude is assumed to be zero
float) – earth’s radius [m]
float) – adjustment factor to account for the refractivity gradient that affects radar beam propagation. In principle this is wavelength- dependent. The default of 4/3 is a good approximation for most weather radar wavelengths.
bool) – If True, returns squeezed array. Defaults to False.
bool) – If True, generates output of (theta, phi, r, 3) in any case. If False, dimensions with same length are “merged”.