ARTS built-in documentation server
Workspace Method cloudboxSetAutomatically
Description
Sets the cloud box to encompass the cloud given by the entries
in massdensity_field.
The function must be called before any cloudbox_limits using
WSMs.
NOTE: only 1-dim case is handeled in the moment!
The function iterates over all part_species and performs a
check, to see if the corresponding scattering particle profiles do not
contain a cloud (all values equal zero). If, after all iterations,
all the considrered profiles proove to contain no cloud,
the cloudbox is switched off! (see WSM cloudboxOff)
Each scattering particle profile is searched for the first and last
pressure index, where the value is unequal to zero. This index
is then copied to cloudbox_limits.
Additionaly the lower cloudbox_limit is altered by
*cloudbox_margin*.
The margin is given as a height difference in meters and
trasformed into a pressure.(via isothermal barometric heightformula)
This alteration is needed to ensure, that scattered photons
do not leave and re-enter the cloudbox, due to its convex
shape.
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).
Authors: Daniel Kreyling
Synopsis
Variables