pywgrib2_xr.Wgrib2DatasetAccessor.grid¶
-
Wgrib2DatasetAccessor.
grid
(grid, iptype='neighbour')[source]¶ Remaps all variables to points specified by longitude and latitude.
- Parameters
grid (Grid) – Target grid geometry. Projection can be one of {LatLon, RotLatLon, Mercator, PolarStereo, LambertConformal, Gaussian} To create ‘grid’ use factory method gd_fromstring or gd_fromdict.
iptype (dict or str: {'bilinear', 'bicubic', 'neighbour', 'budget', 'spectral'}) –
Interpolation method. Default is ‘neighbour’. Dictionary allows interpolation type specific to variable.
Example:
iptype = {'APCP': 'budget', 'default': 'bilinear'}
.
- Returns
New dataset.
- Return type