ARTS built-in documentation server
Workspace Method DOBatchCalc
Performs batch calculations for radiation fields.
We perform ybatch_n jobs, starting at index ybatch_start. (Zero
based indexing, as usual.) The output arrays will have
ybatch_n elements. Indices in the output array start
with zero, independent of ybatch_start.
WARNING, MEMORY INTENSIVE!!!: Since the outputs of this methods can
be very large, make sure you only pass back output you need.
Estimate the size of your output by looking at the dimensions
beforehand. If you only want to pass back some fields, make sure to
empty the others at the end of your dobatch_calc_agenda. E.g.:
Tensor7SetConstant(cloudbox_field, 0, 0, 0, 0, 0, 0, 0, 0.)
The method performs the following:
1. Sets ybatch_index = ybatch_start.
2. Performs a-d until
ybatch_index = ybatch_start + ybatch_n.
a. Executes dobatch_calc_agenda.
b. If ybatch_index = ybatch_start, resizes the output
arrays based on ybatch_n.
c. Copies calculated fields to ybatch_index - ybatch_start
of output arrays.
d. Adds 1 to ybatch_index.
Beside the dobatch_calc_agenda, the WSVs ybatch_start
and ybatch_n must be set before calling this method.
The input variable ybatch_start is set to a default of zero.
Authors: Oliver Lemke