f_gridMetMM

Workspace.f_gridMetMM(self: pyarts.arts._Workspace, f_grid: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = self.f_grid, f_backend: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = self.f_backend, channel2fgrid_indexes: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfArrayOfIndex]] = self.channel2fgrid_indexes, channel2fgrid_weights: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfVector]] = self.channel2fgrid_weights, met_mm_backend: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Matrix]] = self.met_mm_backend, freq_spacing: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = std::initializer_list<Numeric>{.1e9}, freq_number: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfIndex]] = std::initializer_list<Index>{-1}, freq_merge_threshold: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = 1, verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None

Sets f_grid and associated variables match MetMM settings.

The method calculates f_grid to match the specifications of a met_mm_backend table and method arguments.

You have to specify the desired spacing using the keyword freq_spacing. You can pass a Vector with one element to apply the same spacing to all channels or pass a spacing value for each channel separately.

Optionally, freq_number can be set to specify the mininum number of frequencies per passband for each channel. The frequencies are placed equally spaced in each passband. The minimum spacing resulting from freq_number and freq_spacing will be used for the calculation. To explicitly use freq_spacing for a channel, freq_number can be set to -1 for this channel.

The number of elements in freq_number can either be the number of channels or 1. If only one element is given, this number is used for all channels. If freq_number is 1 and freq_spacing is wider than the bandwidth of the channel, one frequency is placed in the middle of each passband.

Frequencies that would be closer than freq_merge_threshold in the generated f_grid are merged together. This value should be left at the default value. This is only meant to compensate for numerical inaccuracies in the frequency calculation to merge frequency that are supposed to be identical.

Author(s): Oliver Lemke, Patrick Eriksson

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

  • f_backend (Vector, optional) – The frequency position of each backend (spectrometer) channel. See f_backend, defaults to self.f_backend [OUT]

  • channel2fgrid_indexes (ArrayOfArrayOfIndex, optional) – Definition of backend frequency response, link to f_grid. See channel2fgrid_indexes, defaults to self.channel2fgrid_indexes [OUT]

  • channel2fgrid_weights (ArrayOfVector, optional) – Definition of backend frequency response, weighting of f_grid. See channel2fgrid_weights, defaults to self.channel2fgrid_weights [OUT]

  • met_mm_backend (Matrix, optional) – Backend description for meteorological millimeter sensors with passbands. See met_mm_backend, defaults to self.met_mm_backend [IN]

  • freq_spacing (Vector, optional) – Desired grid spacing in Hz. Defaults to [.1e9] [IN]

  • freq_number (ArrayOfIndex, optional) – Number of frequencies per passband for each channel. Defaults to [-1] [IN]

  • freq_merge_threshold (Numeric, optional) – Merge frequencies that are closer than this value in Hz. Defaults to 1 [IN]

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