ARTS built-in documentation server

Workspace Method AtmFieldsRefinePgrid


Refines the pressure grid and regrids the clearsky atmospheric
fields accordingly.

This method is, e.g., used for absorption lookup table testing. It
can also be used to refine the p_grid and atmospheric fields from
compact state atmospheres.

It adds additional vertical grid points to the atmospheric fields, by
interpolating them in the usual ARTS way (linear in log pressure).

How fine the new grid will be is determined by the keyword parameter
p_step. The definition of p_step, and the default interpolation
behavior, is consistent with abs_lookupSetup and
abs_lookupSetupBatch (new points are added between the original
ones, so that the spacing is always below p_step.)

Internally, AtmFieldsRefinePgrid applies p_gridRefine and
AtmFieldPRegrid to the clearsky atmospheric fields (T, z, vmr).

Atmospheric field related check WSV are reset to 0 (unchecked),
i.e., the corresponding checkedCalc methods have to be performed
(again) before yCalc or similar methods can be executed.

Authors: Stefan Buehler


AtmFieldsRefinePgrid( p_grid, t_field, z_field, vmr_field, atmfields_checked, atmgeom_checked, cloudbox_checked, lat_grid, lon_grid, atmosphere_dim, p_step, interp_order )


OUT+INp_grid(Vector)The pressure grid.
OUT+INt_field(Tensor3)The field of atmospheric temperatures.
OUT+INz_field(Tensor3)The field of geometrical altitudes.
OUT+INvmr_field(Tensor4)VMR field.
OUTatmfields_checked(Index)OK-flag for atmospheric grids and (physical) fields.
OUTatmgeom_checked(Index)OK-flag for the geometry of the model atmosphere.
OUTcloudbox_checked(Index)OK-flag for variables associated with the cloudbox.
INlat_grid(Vector)The latitude grid.
INlon_grid(Vector)The longitude grid.
INatmosphere_dim(Index)The atmospheric dimensionality (1-3).
GINp_step(Numeric)Maximum step in log(p[Pa]) (natural logarithm, as always). If the pressure grid is coarser than this, additional points are added until each log step is smaller than this.
GINinterp_order(Index, Default: 1)Interpolation order.