pywgrib2_xr.Wgrib2DatasetAccessor.location

Wgrib2DatasetAccessor.location(points, iptype='neighbour')[source]

Remaps all variables to point locations.

Parameters
  • points (Point) – Point geometry instance.

  • iptype (dict or str: {'bilinear', 'bicubic', 'neighbour'}) –

    Interpolation method. Default is ‘neighbour’. Dictionary allows interpolation type specific to variable.

    Example: iptype = {'CEIL': 'neighbour', 'default': 'bilinear'}.

Returns

New dataset.

Return type

xarray.Dataset