pywgrib2_xr.Wgrib2DatasetAccessor¶
-
class
pywgrib2_xr.Wgrib2DatasetAccessor(xarray_obj)[source]¶ Provides custom attributes and methods on xarray Dataset.
Do not instantiate this class directly, use accessor name ‘.wgrib2’ to call its method, for example:
>>> ds.wgrib2.grid()
Methods
__init__(xarray_obj)Initialize self.
get_grid()Returns GRIB2 grid definition as dictionary.
grid(grid[, iptype])Remaps all variables to points specified by longitude and latitude.
location(points[, iptype])Remaps all variables to point locations.
winds(winds[, inplace])Changes vector coordinates to grid/Earth direction.