pha_mat_sptFromData
- Workspace.pha_mat_sptFromData(self: pyarts.arts._Workspace, pha_mat_spt: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor5 | None = self.pha_mat_spt, scat_data: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfArrayOfSingleScatteringData | None = self.scat_data, za_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.za_grid, aa_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.aa_grid, za_index: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.za_index, aa_index: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.aa_index, f_index: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.f_index, f_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.f_grid, rtp_temperature: pyarts.arts.WorkspaceVariable | pyarts.arts.Numeric | None = self.rtp_temperature, pnd_field: pyarts.arts.WorkspaceVariable | pyarts.arts.Tensor4 | None = self.pnd_field, scat_p_index: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.scat_p_index, scat_lat_index: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.scat_lat_index, scat_lon_index: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.scat_lon_index, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None
Calculation of the phase matrix of the individual scattering elements.
This function can be used in
pha_mat_spt_agenda
as part of the calculation of the scattering integral.First, data at the requested frequency (given by
f_grid
andf_index
) and temperature (given byrtp_temperature
) is extracted. This is followed by a transformation from the database coordinate system to the laboratory coordinate system.Frequency extraction is always done by (linear) interpolation. Temperature is (linearly) interpolated when at least two temperature grid points are present in the
scat_data
andrtp_temperature
is positive. If only a single temperature point is available, data for this point is used without modification. In order to speed up calculations, temperature interpolation can be avoided by passing artp_temperature
< 0. In this case, a specific temperature grid from thescat_data
grid is used without modification. The selection is as follows:-10 <
rtp_temperature
< 0 T_grid[0] lowest temperature-20 <
rtp_temperature
< -10 T_grid[nT-1] highest temperaturertp_temperature
< -20 T_grid[nT/2] median grid point
Author(s): Claudia Emde
- Parameters:
pha_mat_spt (Tensor5, optional) – Phase matrix for all individual scattering elements. See
pha_mat_spt
, defaults toself.pha_mat_spt
[INOUT]scat_data (ArrayOfArrayOfSingleScatteringData, optional) – Array of single scattering data. See
scat_data
, defaults toself.scat_data
[IN]za_grid (Vector, optional) – Zenith angle grid. See
za_grid
, defaults toself.za_grid
[IN]aa_grid (Vector, optional) – Azimuthal angle grid. See
aa_grid
, defaults toself.aa_grid
[IN]za_index (Index, optional) – Zenith angle index for scattering calculations. See
za_index
, defaults toself.za_index
[IN]aa_index (Index, optional) – Azimuth angle index for scattering calculations. See
aa_index
, defaults toself.aa_index
[IN]f_index (Index, optional) – Frequency index. See
f_index
, defaults toself.f_index
[IN]f_grid (Vector, optional) – The frequency grid for monochromatic pencil beam calculations. See
f_grid
, defaults toself.f_grid
[IN]rtp_temperature (Numeric, optional) – Temperature at a radiative transfer point. See
rtp_temperature
, defaults toself.rtp_temperature
[IN]pnd_field (Tensor4, optional) – Particle number density field. See
pnd_field
, defaults toself.pnd_field
[IN]scat_p_index (Index, optional) – Pressure index for scattering calculations. See
scat_p_index
, defaults toself.scat_p_index
[IN]scat_lat_index (Index, optional) – Latitude index for scattering calculations. See
scat_lat_index
, defaults toself.scat_lat_index
[IN]scat_lon_index (Index, optional) – Longitude index for scattering calculations. See
scat_lon_index
, defaults toself.scat_lon_index
[IN]verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]