ARTS built-in documentation server

Workspace Method batch_atm_fields_compactFromArrayOfMatrix

Description

Expand batch of 1D atmospheric states to a batch_atm_fields_compact.

This is used to handle 1D batch cases, for example from the Chevallier
data set, stored in a matrix.

The matrix must contain one row for each pressure level.
The matrix can contain some additional fiels which are not directly used
by ARTS for calculations but can be required for further processing,
for e.g. wind speed and direction. In this case, additional fields must
be put at the end of the matrix and they must be flagged by 'ignore',
large or small letters, in the field names.
Row format:

p[Pa] T[K] z[m] VMR_1[fractional] ... VMR[fractional] IGNORE ... IGNORE

Keywords:
   field_names : Field names to store in atm_fields_compact.
                 This should be, e.g.:
                 ["T", "z", "H2O", "O3", "ignore"]
                 There must be one name less than matrix columns,
                 because the first column must contain pressure.

   extra_field_names : You can add additional constant VMR fields,
                       which is handy for O2 and N2. Give here the
                       field name, e.g., "O2". Default: Empty.

   extra_field_values : Give here the constant field value. Default:
                        Empty. Dimension must match extra_field_names.

Authors: Stefan Buehler, Daniel Kreyling, Jana Mendrok

Synopsis

batch_atm_fields_compactFromArrayOfMatrix( batch_atm_fields_compact, atmosphere_dim, gin1, field_names, extra_field_names, extra_field_values )

Variables

OUTbatch_atm_fields_compact(ArrayOfGriddedField4)An array of compact atmospheric states.
INatmosphere_dim(Index)The atmospheric dimensionality (1-3).
GINgin1(ArrayOfMatrix)Batch of atmospheres stored in one array of matrix
GINfield_names(ArrayOfString)Order/names of atmospheric fields.
GINextra_field_names(ArrayOfString, Default: [])Names of additional atmospheric fields, with constant values.
GINextra_field_values(Vector, Default: [])Constant values of additional fields.