ARTS built-in documentation server

Workspace Method p_gridDensify


A simple way to make p_grid more dense.

The method includes new values in p_grid. For each intermediate
pressure range, *nfill* points are added. That is, setting *nfill*
to zero returns an unmodified copy of *p_grid_old*. The number of
elements of the new p_grid is (n0-1)*(1+nfill)+1, where n0 is the
length of *p_grid_old*.

The new points are distributed equidistant in log(p).

For safety, new grid and old grid Vectors are not allowed to be the
same variable (both will be needed later on for regridding of the
atmospheric fields), and atmospheric field related *checked WSV are
reset to 0 (unchecked).

Authors: Patrick Eriksson, Jana Mendrok


p_gridDensify( p_grid, atmfields_checked, atmgeom_checked, cloudbox_checked, p_grid_old, nfill )


OUTp_grid(Vector)The pressure grid.
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.
GINp_grid_old(Vector)A copy of the current (the old) p_grid. Not allowed to be the same variable as the output p_grid.
GINnfill(Index, Default: -1)Number of points to add between adjacent pressure points.The default value (-1) results in an error.