ARTS built-in documentation server

Workspace Method atmgeom_checkedCalc

Description

Checks consistency of geometric considerations of the atmosphere.

The following WSVs are checked: z_field, refellipsoid, z_surface,
lat_true and lon_true. If any of the variables above is changed,
then this method shall be called again (no automatic check that this is
fulfilled!).

The tests include that:
 1. refellipsoid has correct size, and that eccentricity is
    set to zero if 1D atmosphere.
 2. z_field and z_surface have sizes consistent with the
    atmospheric grids.
 3. There is no gap between z_surface and z_field.
 4. A rough search of maximum gradient of the altitude of the pressure
    level closest to 500 hPa is made. If this value exceeds the GIN
    *max500hpa_gradient* an error is issued. Please note that the unit
    of this GIN is m per 100km. For normal conditions on Earth, large
    scale gradients of the 500 hPa level is in the order of 20m/100km.

lat_true and lon_true are allowed to be empty.

If any test fails, there is an error. Otherwise, atmgeom_checked
is set to 1.

See further atmgeom_checkedCalc.

Authors: Patrick Eriksson

Synopsis

atmgeom_checkedCalc( atmgeom_checked, atmosphere_dim, p_grid, lat_grid, lon_grid, z_field, refellipsoid, z_surface, lat_true, lon_true, max500hpa_gradient )

Variables

OUTatmgeom_checked(Index)OK-flag for the geometry of the model atmosphere.
INatmosphere_dim(Index)The atmospheric dimensionality (1-3).
INp_grid(Vector)The pressure grid.
INlat_grid(Vector)The latitude grid.
INlon_grid(Vector)The longitude grid.
INz_field(Tensor3)The field of geometrical altitudes.
INrefellipsoid(Vector)Reference ellipsoid.
INz_surface(Matrix)The surface altitude.
INlat_true(Vector)Latitudinal geolocation for 1D and 2D data.
INlon_true(Vector)Longitudinal geolocation for 1D and 2D data.
GINmax500hpa_gradient(Numeric, Default: 500)The maximum allowed gradient of 500 hPa pressure level [m/100km].