emc2.simulator.radar_moments.calc_radar_moments¶
-
emc2.simulator.radar_moments.
calc_radar_moments
(instrument, model, is_conv, OD_from_sfc=True, **kwargs)[source]¶ Calculates the reflectivity, doppler velocity, and spectral width in a given column for the given radar.
- Parameters
- instrument: Instrument
The instrument to simulate. The instrument must be a radar.
- model: Model
The model to generate the parameters for.
- is_conv: bool
True if the cell is convective
- z_field: str
The name of the altitude field to use.
- OD_from_sfc: bool
If True, then calculate optical depth from the surface.
- Additional keyword arguments are passed into
- :func:`emc2.simulator.reflectivity.calc_radar_reflectivity_conv` and
- :func:`emc2.simulator.attenuation.calc_radar_atm_attenuation`.
- Returns
- model:
emc2.core.Model()
The xarray Dataset containing the calculated radar moments.
- model: