pywasp.lincom.create_wind

pywasp.lincom.create_wind(wind_type, speed, height, roughness, west_east, south_north, crs, direction=None, n_sectors=12)[source]

Creates an xarray object defining the input wind for a LINCOM simulation

Warning

This function is experimental and its signature may change.

Parameters:
  • wind_type (str) – Type of LINCOM wind to create, can be one of “geostropic”, “generalized”, or “observed”

  • speed (float) – The wind speed to store at each location

  • height (float) – Height of the wind

  • roughness (float) – Roughness length for the wind

  • west_east, south_north (float) – Location for the wind

  • crs (int, dict, str or CRS) – Value to create pyproj.CRS object or an existing pyproj.CRS object

  • direction (float, optional) – Direction of the wind (degrees), by default None. If None, then n_sectors will be used otherwise direction is use.

  • n_sectors (int, optional) – Number of sectors to apply the wind to, by default 12. Only used if direction is None.

Returns:

xarray.Dataset – Dataset containing a representation of the wind