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
keyends up onalt_gridxlat_gridxlon_grid, sampled fromdataon the grids thatdatacarries.The methods that append to
atm_fieldread 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 anatm_fieldout of data that was computed or assembled during a run, and to put every key of a field on the same grids.extrapolationapplies to all six ends of the three grids. It is also what allowsdatato 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 asNearest, 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 toself.alt_grid. [IN]lat_grid (~pyarts3.arts.LatGrid, optional) – An ascending list of
lat. Often related to a field or a profile. Defaults toself.lat_grid. [IN]lon_grid (~pyarts3.arts.LonGrid, optional) – An ascending list of
lon. Often related to a field or a profile. Defaults toself.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]