pywasp.wasp.get_wasp_down
- pywasp.wasp.get_wasp_down(genwc, site_effects, conf=None, genwc_interp=None, mesoclimate=None, mesoclimate_interp_method='nearest', return_site_factors=False, add_met=False)[source]
Downscale a generalized wind climate using precalculated site effects
- Parameters:
genwc (
xarray.DataSet
) – Generalized wind climate xr.DataSet to downscalesite_effects (
xarray.Dataset
) – Site effects dataset created from TopographyMap.rose_to_site_effects or TopographyMap.get_site_effects.conf (
Config
) – Configuration information from WAsPgenwc_interp (
str
, optional{'nearest','natural', None}
) – String indicating interpolation method, by default Nonemesoclimate (
xarray.DataSet
, defaultNone
) – If None use the CFSR reanalysis to obtain the mesoclimate, otherwise one can create a dataset using the ´get_climate´ methodmesoclimate_interp_method (
str
, optional) – Interpolation method for mesoclimate, by default ‘nearest’
- Returns:
xarray.DataSet
– PyWAsP formated xr.DataSet containing sectorwise A, k, frequency at site
Notes
Run WAsP’s wprms_nt function to perform the “down” part of the WAsP framework. This will take the generalized data and convert it to a site specific weibull distribution based on the local conditions.
genwc_interp can be either ‘None’ (i.e., genwc will be interpolated on the same grid as output_locs) or ‘NN’ (i.e., Nearest Neighbor)