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 locationheight (
float
) – Height of the windroughness (
float
) – Roughness length for the windwest_east, south_north (
float
) – Location for the windcrs (
int
,dict
,str
orCRS
) – 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 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