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 and f_index) and temperature (given by rtp_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 and rtp_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 a rtp_temperature < 0. In this case, a specific temperature grid from the scat_data grid is used without modification. The selection is as follows:

Author(s): Claudia Emde

Parameters:
  • pha_mat_spt (Tensor5, optional) – Phase matrix for all individual scattering elements. See pha_mat_spt, defaults to self.pha_mat_spt [INOUT]

  • scat_data (ArrayOfArrayOfSingleScatteringData, optional) – Array of single scattering data. See scat_data, defaults to self.scat_data [IN]

  • za_grid (Vector, optional) – Zenith angle grid. See za_grid, defaults to self.za_grid [IN]

  • aa_grid (Vector, optional) – Azimuthal angle grid. See aa_grid, defaults to self.aa_grid [IN]

  • za_index (Index, optional) – Zenith angle index for scattering calculations. See za_index, defaults to self.za_index [IN]

  • aa_index (Index, optional) – Azimuth angle index for scattering calculations. See aa_index, defaults to self.aa_index [IN]

  • f_index (Index, optional) – Frequency index. See f_index, defaults to self.f_index [IN]

  • f_grid (Vector, optional) – The frequency grid for monochromatic pencil beam calculations. See f_grid, defaults to self.f_grid [IN]

  • rtp_temperature (Numeric, optional) – Temperature at a radiative transfer point. See rtp_temperature, defaults to self.rtp_temperature [IN]

  • pnd_field (Tensor4, optional) – Particle number density field. See pnd_field, defaults to self.pnd_field [IN]

  • scat_p_index (Index, optional) – Pressure index for scattering calculations. See scat_p_index, defaults to self.scat_p_index [IN]

  • scat_lat_index (Index, optional) – Latitude index for scattering calculations. See scat_lat_index, defaults to self.scat_lat_index [IN]

  • scat_lon_index (Index, optional) – Longitude index for scattering calculations. See scat_lon_index, defaults to self.scat_lon_index [IN]

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