wradlib.comp.CompMethods.togrid#
- CompMethods.togrid(trg, radius, center, data, interpol, *args, **kwargs)[source]#
Interpolate data from a radar location to the composite grid or set of locations
- Parameters
src (
numpy.ndarray
) – array of float of shape (numpoints, ndim), cartesian x / y coordinates of the radar binstrg (
numpy.ndarray
) – array of float of shape (numpoints, ndim), cartesian x / y coordinates of the compositeradius (
float
) – the radius of the radar circle (same units as src and trg)center (
numpy.ndarray
) – array of float, the location coordinates of the radardata (
numpy.ndarray
) – array of float, the data that should be transferred to compositeinterpol (
IpolBase
) – an interpolation class name fromwradlib.ipol
e.g.Nearest
orIdw
- Other Parameters
*args (
dict
) – arguments of Interpolator (see class documentation)- Keyword Arguments
**kwargs (
dict
) – keyword arguments of Interpolator (see class documentation)- Returns
output (
numpy.ndarray
) – array of float, data of the radar circle which is interpolated on the composite grid
Note
Keyword arguments to be used while calling the interpolator can be issued as call_kwargs, eg. togrid(…, call_kwargs=dict(maxdist=10))
Examples
See Gridding.