p_gridDensify
- Workspace.p_gridDensify(self: pyarts.arts._Workspace, p_grid: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = self.p_grid, atmfields_checked: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = self.atmfields_checked, atmgeom_checked: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = self.atmgeom_checked, cloudbox_checked: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = self.cloudbox_checked, p_grid_old: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector], nfill: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = -1, verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None
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, settingnfill
to zero returns an unmodified copy ofp_grid_old
. The number of elements of the newp_grid
is (n0-1)*(1+nfill)+1, where n0 is the length ofp_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).Author(s): Patrick Eriksson, Jana Mendrok
- Parameters:
p_grid (Vector, optional) – The pressure grid. See
p_grid
, defaults toself.p_grid
[OUT]atmfields_checked (Index, optional) – OK-flag for atmospheric grids and (physical) fields. See
atmfields_checked
, defaults toself.atmfields_checked
[OUT]atmgeom_checked (Index, optional) – OK-flag for the geometry of the model atmosphere. See
atmgeom_checked
, defaults toself.atmgeom_checked
[OUT]cloudbox_checked (Index, optional) – OK-flag for variables associated with the cloudbox. See
cloudbox_checked
, defaults toself.cloudbox_checked
[OUT]p_grid_old (Vector) – A copy of the current (the old) p_grid. Not allowed to be the same variable as the output
p_grid
. [IN]nfill (Index, optional) – Number of points to add between adjacent pressure points.The default value (-1) results in an error. Defaults to
-1
[IN]verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]