windkit.spatial.to_raster

windkit.spatial.to_raster(obj, ignore_raster_check=False)[source]

Converts a point based object to a raster based object

Parameters:
  • obj (xarray.Dataset, xarray.DataArray) – WindKit xarray dataset or dataarray containing spatial dimensions and CRS variable

  • ignore_raster_check (bool) – Check if the object satisfy the requirements to become a raster Default set to False (i.e., not to check)

Returns:

Raster version of WindKit xarray dataset or dataarray

Return type:

xarray.Dataset, xarray.DataArray

Raises:

ValueError – If dataset cannot be converted to raster