Note

Please report issues with this page on the GitHub page.

supy.util.optimize_MO

supy.util.optimize_MO(df_val, z_meas, h_sfc)[source]

Calculates surface roughness and zero plane displacement height. Refer to https://suews-parameters-docs.readthedocs.io/en/latest/steps/roughness-SuPy.html for example

Parameters:
  • df_val (pd.DataFrame) – Index should be time with columns: ‘H’, ‘USTAR’, ‘TA’, ‘RH’, ‘PA’, ‘WS’
  • z_meas – measurement height in m
  • h_sfc – vegetation height in m
Returns:

  • z0 – surface roughness
  • d – zero displacement height
  • ser_ws (pd.series) – observation time series of WS (Neutral conditions)
  • ser_ustar (pd.series) – observation time series of u* (Neutral conditions)