ybatchCalc
- Workspace.ybatchCalc(self: pyarts.arts._Workspace, ybatch: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfVector | None = self.ybatch, ybatch_aux: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfArrayOfVector | None = self.ybatch_aux, ybatch_jacobians: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfMatrix | None = self.ybatch_jacobians, ybatch_start: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.ybatch_start, ybatch_n: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.ybatch_n, ybatch_calc_agenda: pyarts.arts.WorkspaceVariable | pyarts.arts.Agenda | None = self.ybatch_calc_agenda, robust: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = 0, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None
Performs batch calculations for the measurement vector y.
We perform
ybatch_n
jobs, starting at indexybatch_start
. (Zero based indexing, as usual.) The output arrayybatch
will have ybatch_n elements. Indices in the output array start with zero, independent ofybatch_start
.The method performs the following:
Sets
ybatch_index
=ybatch_start
.- Performs a-d until
ybatch_index
=ybatch_start
+ybatch_n
. Executes
ybatch_calc_agenda
.If
ybatch_index
=ybatch_start
, resizesybatch
based onybatch_n
and length ofy
.Copies
y
toybatch_index
-ybatch_start
ofybatch
.Adds 1 to
ybatch_index
.
- Performs a-d until
Beside the
ybatch_calc_agenda
, the WSVsybatch_start
andybatch_n
must be set before calling this method. Further,ybatch_calc_agenda
is expected to produce a spectrum and should accordingly include a call ofyCalc()
(or asimilar method).The input variable
ybatch_start
is set to a default of zero.Jacobians are also collected, and stored in output variable
ybatch_jacobians
. (This will be empty ifyCalc()
produces empty Jacobians.)See the user guide for further practical examples.
Author(s): Stefan Buehler
- Parameters:
ybatch (ArrayOfVector, optional) – Batch of spectra. See
ybatch
, defaults toself.ybatch
[OUT]ybatch_aux (ArrayOfArrayOfVector, optional) – Data auxilary to
ybatch
. Seeybatch_aux
, defaults toself.ybatch_aux
[OUT]ybatch_jacobians (ArrayOfMatrix, optional) – All the Jacobians associated with ybatch. See
ybatch_jacobians
, defaults toself.ybatch_jacobians
[OUT]ybatch_start (Index, optional) – Start index for
ybatchCalc()
. Seeybatch_start
, defaults toself.ybatch_start
[IN]ybatch_n (Index, optional) – Number of batch cases for
ybatchCalc()
. Seeybatch_n
, defaults toself.ybatch_n
[IN]ybatch_calc_agenda (Agenda, optional) – Calculations to perform for each batch case. See
ybatch_calc_agenda
, defaults toself.ybatch_calc_agenda
[IN]robust (Index, optional) – A flag with value 1 or 0. If set to one, the batch calculation will continue, even if individual jobs fail. In that case, a warning message is written to screen and file (out1 output stream), and the
y
Vector entry for the failed job inybatch
is left empty. Defaults to0
[IN]verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]