emc2.simulator.lidar_moments.calc_LDR¶
-
emc2.simulator.lidar_moments.
calc_LDR
(instrument, model, ext_OD, OD_from_sfc=True, LDR_per_hyd=None, is_conv=True)[source]¶ Calculates the lidar extinction mask and linear depolarization ratio for the given model and lidar.
- Parameters
- instrument: Instrument
The instrument to simulate. The instrument must be a lidar.
- model: Model
The model to generate the parameters for.
- ext_OD: float
The optical depth threshold for determining if the signal is extinct.
- OD_from_sfc: bool
If True, optical depth will be calculated from the surface. If False, optical depth will be calculated from the top of the atmosphere.
- LDR_per_hyd: dict or None
If a dict, the amount of LDR per hydrometeor class must be specified in a dictionary whose keywords are the model’s hydrometeor classes. If None, the default settings from the model will be used.
- is_conv: bool
If true, calculate LDR for convective clouds. If False, LDR will be calculated for stratiform clouds.
- Returns
- model: Model
The model with the added simulated lidar parameters.