windkit.spatial.BBox.to_grid

BBox.to_grid(spacing, heights)[source]

Create a WindKit Grid starting from the minimum points of the bbox.

Parameters:
  • spacing (float) – Distance between each point.

  • heights (float or 1D array) – Heights to include in the grid.

Returns:

WindKit xarray dataset with dummy variable.

Return type:

xarray.Dataset

Notes

This assumes a “fence-post” approach to creating the grid, meaning that there may be a point that falls outside of the bounding box on the positive side.