windkit.Workspace.get_mesoclimate#
- Workspace.get_mesoclimate(ID=None, crs=None)[source]#
Mesoscale climate WAsP generalised with, at a generalised wind climate.
These are the sector-wise stability and baroclinicity parameters WAsP stored with the generalised wind climate, under the names PyWAsP uses for them, so the result can be passed as the
mesoclimateargument of PyWAsP’s generalization and downscaling. WAsP writes them since 12.8; older workspaces hold none. The reference values behind the air density are read withget_air_density_reference().- Parameters:
- Returns:
mean_temp_scale_land,rms_temp_scale_land,mean_temp_scale_sea,rms_temp_scale_sea,mean_pblh_scale_landandmean_pblh_scale_sea(stability), andmean_dgdzandmean_dgdz_dir(baroclinicity), on (sector, point), at the position of the generalised wind climate.- Return type:
- Raises:
ValueError – If the ID does not exist or is not linked to a generalised wind climate, ID is None and the workspace holds no or several of them, the generalised wind climate stores no mesoscale climate, its sectors are not windkit’s, or its position has no CRS, as in
get_gwc().- Warns:
UserWarning – If WAsP marked the generalised wind climate as not up to date, or as in
get_gwc().