pywasp.wasp.generalize_from_site_effects_to_geowc
- pywasp.wasp.generalize_from_site_effects_to_geowc(bwc, site_effects, conf=None, mesoclimate=None, mesoclimate_interp_method='nearest', return_site_factors=True, as_wv_count=True, ngbins=500)[source]
Creates a generalized wind climate using atlas_nt
Warning
This function is experimental and its signature may change.
- Parameters:
bwc (
xarray.Dataset
) – PyWAsP xr.Dataset containing wind climate to be generalizedsite_effects (
xarray.Dataset
) – Site effects datasetconf (
Config
) – PyWAsP configuration objectmesoclimate (
xarray.Dataset
, defaultNone
) – If None use the CFSR reanalysis to obtain the mesoclimate, otherwise one can create a dataset using thepw.wasp.get_climate()
methodmesoclimate_interp_method (
str
, optional) – Interpolation method for mesoclimate, by default ‘linear’return_site_factors (
bool
, optional) – If True, return site factors along with the wind climate dataas_wv_count (
bool
) – return the wind climate as a wv_count object or as a standard binned wind climatengbins (
int
, optional) – Number of bins for the wind speed distribution, by default 500
- Returns:
geo_wc (
xarray.Dataset
) – PyWAsP geostrophic wind climate
Notes
Run WAsP to perform the generalization to a geostrophic wind climate. The resulting geostrophic wind climate will have the same dimensions as the input bin_wind climate, except when nsecs is specified with a different number of sectors than in the bwc.