IndexNumberOfAtmosphericPoints

Workspace.IndexNumberOfAtmosphericPoints(self: pyarts.arts._Workspace, n: pyarts.arts.WorkspaceVariable | pyarts.arts.Index, 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, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Counts number of points in the atmosphere.

For a 3D atmosphere the method sets n to:

p_grid.nelem() * lat_grid.nelem() * lon_grid.nelem()

For 1D and 2D the same calculation is done, but ignoring dimensions not active.

Author(s): Patrick Eriksson

Parameters:
  • n (Index) – Variable to set with number of points. [OUT]

  • atmosphere_dim (Index, optional) – The atmospheric dimensionality (1-3). See atmosphere_dim, defaults to self.atmosphere_dim [IN]

  • p_grid (Vector, optional) – The pressure grid. See p_grid, defaults to self.p_grid [IN]

  • lat_grid (Vector, optional) – The latitude grid. See lat_grid, defaults to self.lat_grid [IN]

  • lon_grid (Vector, optional) – The longitude grid. See lon_grid, defaults to self.lon_grid [IN]

  • verbosity (Verbosity) – ARTS verbosity. See verbosity, defaults to self.verbosity [IN]