ARTS built-in documentation server

Workspace Method atm_fields_compactFromMatrix

Description

Set atm_fields_compact from 1D profiles in a matrix.

For clear-sky batch calculations it is handy to store atmospheric
profiles in an array of matrix. We take such a matrix, and create
atm_fields_compact from it.

The matrix must contain one row for each pressure level.
The matrix can contain some additional fields 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.
Recommended row format:

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

Works only for *atmosphere_dim==1.*

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

Authors: Stefan Buehler, Daniel Kreyling, Jana Mendrok

Synopsis

atm_fields_compactFromMatrix( atm_fields_compact, atmosphere_dim, gin1, field_names )

Variables

OUTatm_fields_compact(GriddedField4)A compact combination of all atmospheric fields for a clear-sky calculation on a common set of grids.
INatmosphere_dim(Index)The atmospheric dimensionality (1-3).
GINgin1(Matrix)One atmosphere matrix from batch input ArrayOfMatrix.
GINfield_names(ArrayOfString)Order/names of atmospheric fields.