sensor_responseFillFgrid

Workspace.sensor_responseFillFgrid(self: pyarts.arts._Workspace, sensor_response: pyarts.arts.WorkspaceVariable | pyarts.arts.Sparse | None = self.sensor_response, sensor_response_f: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.sensor_response_f, sensor_response_pol: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfIndex | None = self.sensor_response_pol, sensor_response_dlos: pyarts.arts.WorkspaceVariable | pyarts.arts.Matrix | None = self.sensor_response_dlos, sensor_response_f_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.sensor_response_f_grid, sensor_response_pol_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfIndex | None = self.sensor_response_pol_grid, sensor_response_dlos_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Matrix | None = self.sensor_response_dlos_grid, polyorder: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = 3, nfill: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = 2, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Polynomial frequency interpolation of spectra.

The sensor response methods treat the spectra to be piece-wise linear functions. This method is a workaround for making methods handling the spectra in a more elaborate way: it generates spectra on a more dense grid by polynomial interpolation. The interpolation is not done explicitly, it is incorporated into sensor_response.

This method should in general increase the calculation accuracy for a given f_grid. However, the selection of (original) grid points becomes more sensitive when using this method. A poor choice of grid points can result in a decreased accuracy, or generation of negative radiances. Test calculations indicated that the error easily can increase with this method close the edge of f_grid, and it could be wise to make f_grid a bit wider than actually necessary to avoid this effect

The method shall be inserted before the antenna stage. That is, this method shall normally be called directly after sensor_responseInit().

Between each neighbouring points of f_grid, this method adds nfill grid points. The polynomial order of the interpolation is polyorder.

Author(s): Patrick Eriksson

Parameters:
  • sensor_response (Sparse, optional) – The matrix modelling the total sensor response. See sensor_response, defaults to self.sensor_response [INOUT]

  • sensor_response_f (Vector, optional) – The frequencies associated with the output of sensor_response. See sensor_response_f, defaults to self.sensor_response_f [INOUT]

  • sensor_response_pol (ArrayOfIndex, optional) – The polarisation states associated with the output of. See sensor_response_pol, defaults to self.sensor_response_pol [INOUT]

  • sensor_response_dlos (Matrix, optional) – The relative zenith and azimuth angles associated with the output of. See sensor_response_dlos, defaults to self.sensor_response_dlos [INOUT]

  • sensor_response_f_grid (Vector, optional) – The frequency grid associated with sensor_response. See sensor_response_f_grid, defaults to self.sensor_response_f_grid [INOUT]

  • sensor_response_pol_grid (ArrayOfIndex, optional) – The “polarisation grid” associated with sensor_response. See sensor_response_pol_grid, defaults to self.sensor_response_pol_grid [IN]

  • sensor_response_dlos_grid (Matrix, optional) – The zenith and azimuth angles associated with sensor_response. See sensor_response_dlos_grid, defaults to self.sensor_response_dlos_grid [IN]

  • polyorder (Index, optional) – Polynomial order of interpolation. Defaults to 3 [IN]

  • nfill (Index, optional) – Number of points to insert in each gap of f_grid. Defaults to 2 [IN]

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