pywgrib2_xr.ipv_points

pywgrib2_xr.ipv_points(udata, vdata, iptype, grid, point, windNS=False, ipopt=None)[source]

Interface to NCEP subroutine ipolatev.

This function interpolates vector fields from any grid to a set of points given by their latitudes and longitudes. Only horizontal interpolation is performed.

Parameters
  • udata (array_like) – U-component of input grid.

  • vdata (array_like) – V-component of input grid.

  • iptype ({'bilinear', 'bicubic', 'neighbour', 'budget'}) – Interpolation method.

  • grid (Grid) – Input grid geometry instance. One of {GridLatLon, GridRotLatLon, GridMercator, GridPolarStereo, GridLambertConformal, GridGaussian}

  • point (Point,) – Destination geometry instance.

  • windNS (bool) – Force winds to be in Earth coordinates. Default is False.

  • ipopt (array_like) – Interpolation options.

Returns

A dictionary with keys {‘udata’, ‘vdata’}. Values are interpolated grids at locations given by ‘point’ argument.

Return type

dict