- wradlib.georef.polar.spherical_to_centroids(r, phi, theta, sitecoords, proj=None)¶
Generate 3-D centroids of the radar bins from the sperical coordinates (r, phi, theta).
Both azimuth and range arrays are assumed to be equidistant and to contain only unique values. The ranges are assumed to define the exterior boundaries of the range bins (thus they must be positive). The angles are assumed to describe the pointing direction fo the main beam lobe.
For further information refer to the documentation of
numpy.ndarray) – Array of ranges [m]; r defines the exterior boundaries of the range bins! (not the centroids). Thus, values must be positive!
numpy.ndarray) – Array of azimuth angles containing values between 0° and 360°. The angles are assumed to describe the pointing direction fo the main beam lobe! The first angle can start at any values, but make sure the array is sorted continuously positively clockwise and the angles are equidistant. An angle if 0 degree is pointing north.
float) – Elevation angle of scan
sitecoords (sequence) – the lon/lat/alt coordinates of the radar location
osgeo.osr.SpatialReference) – Destination Projection
Azimuth angles of 360 deg are internally converted to 0 deg.