ARTS built-in documentation server
Workspace Method cloudboxSetAutomatically
Description
Sets the cloud box to encompass the cloud given by the entries
in ``particle_field``.
This WSM handles one Tensor4 type ``particle_field`` at a time. It can
be used to determine the cloudbox from particle_bulkprop_field
The function must be called before executing any WSM that applies
cloudbox_limits.
The function iterates over all 3D fields in ``particle_field`` (which
might correspond to different particle bulk properties as in
particle_bulkprop_field). Each field is searched for the first
and last pressure index, where the value is unequal to zero. This
index is then copied to cloudbox_limits.
If ``particle_field`` is empty, the cloudbox is switched off
(cloudbox_on = 0).
Additionaly the lower cloudbox_limit is altered by ``cloudbox_margin``.
The margin is given as a height difference in meters and transformed
into a pressure (via isothermal barometric height formula). This
alteration is to ensure covering photons that leave the cloud, but
reenter through a limb path.
If ``cloudbox_margin`` is set to -1 (default), the cloudbox will extend
to the surface. Hence, the lower cloudbox_limit is set to 0 (index
of first pressure level).
``cloudbox_margin`` will be applied on each call of the WSM.
Works only for atmosphere_dim == 1.
Authors: Jana Mendrok, Daniel Kreyling
Synopsis
Variables