wradlib.ipol.RectBin

Contents

wradlib.ipol.RectBin#

class wradlib.ipol.RectBin(src, trg, fill=None)[source]#
Bin points values to regular grid cells

e.g. for transforming a radar sweep to a raster image

Based on scipy.stats.binned_statistic_dd

Parameters:
  • src (numpy.ndarray) – data point coordinates of the source points with shape (…, ndims).

  • trg (numpy.ndarray) – rectangular grid coordinates (center) with shape (…, 2)

  • fill (array of boolean with same shape as src) – used to fill nan with nearest neighbour value e.g. the radar mask

__call__(values, **kwargs)

Evaluate interpolator for values given at the source points.