windkit.spatial.to_point#
- windkit.spatial.to_point(obj)[source]#
Converts a WindKit xarray.Dataset or xarray.DataArray to ‘point’ structure
- NOTE: Variables with
height_dim_policy: "forbidden"metadata retain their absence of a height dimension when converted back with
to_stacked_point. Other variables may gain a height dimension; use_spatial_stackand_spatial_unstackwhen an exact structural round trip is required.
- 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:
- NOTE: Variables with