atmfields_checkedCalc
- Workspace.atmfields_checkedCalc(self: pyarts.arts._Workspace, atmfields_checked: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.atmfields_checked, atmosphere_dim: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.atmosphere_dim, p_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.p_grid, lat_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.lat_grid, lon_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.lon_grid, abs_species: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfArrayOfSpeciesTag | None = self.abs_species, t_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor3 | None = self.t_field, vmr_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor4 | None = self.vmr_field, wind_u_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor3 | None = self.wind_u_field, wind_v_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor3 | None = self.wind_v_field, wind_w_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor3 | None = self.wind_w_field, mag_u_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor3 | None = self.mag_u_field, mag_v_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor3 | None = self.mag_v_field, mag_w_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor3 | None = self.mag_w_field, abs_f_interp_order: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.abs_f_interp_order, negative_vmr_ok: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = 0, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None
Checks consistency of (clear sky) atmospheric fields.
The following WSVs are treated:
p_grid,lat_grid,lon_grid,t_field,vmr_field, wind_u/v/w_field and mag_u/v/w_field.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:
Atmospheric grids (p/lat/lon_grid) are OK with respect to
atmosphere_dim(and vmr_field also regardingabs_species).Atmospheric fields have sizes consistent with the atmospheric grids.
abs_f_interp_orderis not zero if any wind is nonzero.All values in
t_fieldare > 0.
Default is that values in
vmr_fieldare demanded to be >= 0 (ie. zero allowed, in contrast tot_field), but this requirement can be removed by thenegative_vmr_okargument.If any test fails, there is an error. Otherwise,
atmfields_checkedis set to 1.The cloudbox is covered by
cloudbox_checked,z_fieldis part of the checks done aroundatmgeom_checked.Author(s): Patrick Eriksson
- Parameters:
atmfields_checked (Index, optional) – OK-flag for atmospheric grids and (physical) fields. See
atmfields_checked, defaults toself.atmfields_checked[OUT]atmosphere_dim (Index, optional) – The atmospheric dimensionality (1-3). See
atmosphere_dim, defaults toself.atmosphere_dim[IN]p_grid (Vector, optional) – The pressure grid. See
p_grid, defaults toself.p_grid[IN]lat_grid (Vector, optional) – The latitude grid. See
lat_grid, defaults toself.lat_grid[IN]lon_grid (Vector, optional) – The longitude grid. See
lon_grid, defaults toself.lon_grid[IN]abs_species (ArrayOfArrayOfSpeciesTag, optional) – Tag groups for gas absorption. See
abs_species, defaults toself.abs_species[IN]t_field (Tensor3, optional) – The field of atmospheric temperatures. See
t_field, defaults toself.t_field[IN]vmr_field (Tensor4, optional) – VMR field. See
vmr_field, defaults toself.vmr_field[IN]wind_u_field (Tensor3, optional) – Zonal component of the wind field. See
wind_u_field, defaults toself.wind_u_field[IN]wind_v_field (Tensor3, optional) – Meridional component of the magnetic field. See
wind_v_field, defaults toself.wind_v_field[IN]wind_w_field (Tensor3, optional) – Vertical wind component field. See
wind_w_field, defaults toself.wind_w_field[IN]mag_u_field (Tensor3, optional) – Zonal component of the magnetic field. See
mag_u_field, defaults toself.mag_u_field[IN]mag_v_field (Tensor3, optional) – Meridional component of the magnetic field. See
mag_v_field, defaults toself.mag_v_field[IN]mag_w_field (Tensor3, optional) – Vertical component of the magnetic field. See
mag_w_field, defaults toself.mag_w_field[IN]abs_f_interp_order (Index, optional) – Frequency interpolation order for absorption lookup table. See
abs_f_interp_order, defaults toself.abs_f_interp_order[IN]negative_vmr_ok (Index, optional) – Flag whether to accept vmr_field < 0. Defaults to
0[IN]verbosity (Verbosity) – ARTS verbosity. See
verbosity, defaults toself.verbosity[IN]