windkit.spatial.to_point
- windkit.spatial.to_point(obj)[source]
Converts a WindKit xarray.Dataset or xarray.DataArray to ‘point’ structure
- NOTE: Objects that get round-tripped through this function will have a height
dimension added to all variables, even if they didn’t have them initially. If you wish to preserve the 2D nature of those fields, please use _spatial_stack and _spatial_unstack. To convert “to_point” and back respectively.
- Parameters:
obj (xarray.Dataset, xarray.DataArray) – WindKit xarray.Dataset or xarray.DataArray containing spatial dimensions and CRS variable
- Returns:
WindKit xarray.Dataset or xarray.DataArray as a ‘point’ dataset or dataarray.
- Return type: