pywasp.lincom.create_wind
- pywasp.lincom.create_wind(wind_type, speed, w_height, z0, we, sn, srs, direction=None, nsec=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 locationw_height (
float) – Height of the windz0 (
float) – Roughness length for the windwe, sn (
float) – Location for the windsrs (
int,dict,strorCRS) – Value to create pyproj.CRS object or an existing pyproj.CRS objectdirection (
float, optional) – Direction of the wind (degrees), by default None. If None, then nsec will be used otherwise direction is use.nsec (
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