pywasp.wasp.downscale_from_geostrophic_and_site_effects_to_bwc
- pywasp.wasp.downscale_from_geostrophic_and_site_effects_to_bwc(geowc, site_effects, conf=None, interp_method='given', mesoclimate=None, mesoclimate_interp_method='nearest', return_site_factors=False, add_met=False, bin_width=1.0)[source]
Downscale a geostrophic wind climate using precalculated site effects
Warning
This function is experimental and its signature may change.
- Parameters:
geowc (
xarray.Dataset
) – Geostrophic wind climate to downscalesite_effects (
xarray.Dataset
) – Site effects dataset created from TopographyMap.get_site_effects or TopographyMap.rose_to_site_effects.conf (
Config
) – Configuration information from WAsPinterp_method (
str
, optional{'nearest', 'given'}
) – String indicating interpolation method, by default ‘given’.mesoclimate (
xarray.Dataset
, defaultNone
) – If None use the ERA5 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 dataadd_met (
bool
, optional) – If True, add meteorological fields to the wind climate data
- Returns:
xarray.Dataset
– PyWAsP formated xr.Dataset containing a weibull wind climate
Notes
This will take a geostrophic binned wind climate and convert it to a site specific weibull distribution based on the local conditions.