atm_fieldSetData

Workspace.atm_fieldSetData(self, atm_field: AtmField = self.atm_field, alt_grid: AscendingGrid = self.alt_grid, lat_grid: LatGrid = self.lat_grid, lon_grid: LonGrid = self.lon_grid, key: AtmKey | QuantumLevelIdentifier | ScatteringSpeciesProperty | SpeciesEnum | SpeciesIsotope, data: SortedGriddedField3, extrapolation: InterpolationExtrapolation = "Linear") None

Set the data of a single atmospheric key onto the grids of the workspace.

The data of key ends up on alt_grid x lat_grid x lon_grid, sampled from data on the grids that data carries.

The methods that append to atm_field read their data from files or from built-in models. This one instead takes it from the workspace, which is what makes it possible to build an atm_field out of data that was computed or assembled during a run, and to put every key of a field on the same grids.

extrapolation applies to all six ends of the three grids. It is also what allows data to be sampled outside the grids it carries, so a grid that is narrower than the workspace grids needs an extrapolation method that reaches. A grid holding a single point is always extrapolated as Nearest, there being nothing to extrapolate from in that dimension.

Author: Richard Larsson

Parameters:
  • atm_field (~pyarts3.arts.AtmField, optional) – An atmospheric field in ARTS, this is the main atmospheric data structure in ARTS. Defaults to self.atm_field. [INOUT]

  • alt_grid (~pyarts3.arts.AscendingGrid, optional) – An ascending list of alt. Often related to a field or a profile. Defaults to self.alt_grid. [IN]

  • lat_grid (~pyarts3.arts.LatGrid, optional) – An ascending list of lat. Often related to a field or a profile. Defaults to self.lat_grid. [IN]

  • lon_grid (~pyarts3.arts.LonGrid, optional) – An ascending list of lon. Often related to a field or a profile. Defaults to self.lon_grid. [IN]

  • key (AtmKey | QuantumLevelIdentifier | ScatteringSpeciesProperty | SpeciesEnum | SpeciesIsotope) – Key of the data to set. [IN]

  • data (SortedGriddedField3) – Data on its own altitude, latitude and longitude grids. [IN]

  • extrapolation (~pyarts3.arts.InterpolationExtrapolation, optional) – Extrapolation method for all three grids. Defaults to Linear [IN]