windkit.landcover.LandCoverTable.from_dict_ora
- classmethod LandCoverTable.from_dict_ora(dic, z0frac=0.1, dfrac=0.6666666666666666, makecopy=True)[source]
Use ORA model to convert tree height to LandCoverTable.
Use ORA model [1] for describing roughness and displacement. Optionally one can specify a fraction for the roughness length z0frac and a fraction for the displacement dfrac in the dictionary. If these are not given they will be used from the function arguments.
Required in the dictionary are * h: tree height [m]
- Parameters:
dic (dict) – Dictionary with tree heights to be converted.
- Returns:
LandCoverTable class with valid roughness and displacement.
- Return type:
- Raises:
KeyError – For landcover classes that don’t have the keys to run the ORA model (h) nor the WAsP required keys z0 and d. * h: tree height [m]