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 downscale

  • site_effects (xarray.Dataset) – Site effects dataset created from TopographyMap.rose_to_site_effects or TopographyMap.get_site_effects.

  • conf (Config) – Configuration information from WAsP

  • genwc_interp (str, optional {'nearest','natural', None}) – String indicating interpolation method, by default None

  • mesoclimate (xarray.DataSet, default None) – If None use the CFSR reanalysis to obtain the mesoclimate, otherwise one can create a dataset using the ´get_climate´ method

  • mesoclimate_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)