wradlib.verify.PolarNeighbours#
- class wradlib.verify.PolarNeighbours(r, az, site, crs, x, y, *, nnear=9)[source]#
For a set of projected point coordinates, extract the neighbouring bin values from a data set in polar coordinates.
Use as follows:
First, create an instance of PolarNeighbours by passing all the information needed to georeference the polar radar data to the points of interest (see parameters).
Second, use the method extract in order to extract the values from a data array which corresponds to the polar coordinates.
- Parameters:
r (
numpy.ndarray) – (seewradlib.georeffor documentation)az (
numpy.ndarray) – (seewradlib.georeffor documentation)site (sequence) – A sequence of floats (see
wradlib.georeffor documentation)crs (
pyproj.crs.CoordinateSystem,cartopy.crs.CRS,osgeo.osr.SpatialReference,strorint) – Any of the given projection objects, anything which can be consumed by pyproj.CRS.from_user_input or None (seewradlib.georeffor documentation)x (
numpy.ndarray) – array of x coordinates of the points in map projection corresponding to crsy (
numpy.ndarray) – array of y coordinates of the points in map projection corresponding to crsnnear (
int) – number of neighbouring radar bins you would like to find
Examples
See Routine verification measures for radar-based precipitation estimates.
|
Extracts the values from an array of shape (azimuth angles, range gages) which correspond to the indices computed during initialisation |
Returns all bin coordinates in map projection |
|
Returns bin coordinates only in the neighbourhood of points |