emc2.simulator.subcolumn.set_precip_sub_col_frac

emc2.simulator.subcolumn.set_precip_sub_col_frac(model, convective=True, N_columns=None)[source]

Sets the hydrometeor fraction due to precipitation in each subcolumn. This module works for both stratiform and convective precipitation.

Parameters
model: :py:func: `emc2.core.Model`

The model we are generating the subcolumns of stratiform fraction for.

convective: bool

Set to True to generate subcolumns for convective precipitation. Set to False to generate subcolumns for stratiform precipitation.

N_columns: int or None

Use this to set the number of subcolumns in the model. This can only be set once. After the number of subcolumns is set, use None to make EMC2 automatically detect the number of subcolumns.

Returns
model: :py:func: emc2.core.Model

The Model object with the stratiform hydrometeor fraction in each subcolumn added.