y_swathFromY

Workspace.y_swathFromY(self: pyarts.arts._Workspace, y_swath: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Tensor3]] = self.y_swath, y: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = self.y, y_f: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = self.y_f, sensor_response_f_grid: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector]] = self.sensor_response_f_grid, npixel: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index], safe: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = 1, verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None

Fills y_swath with data from y.

The method basically reshapes y to fit y_swath. It is assumed that swath forms the outermost loop in y. That is, first in y are the data for the first swath etc. The number of pixels per swath must be specified manually by a GIN parameter.

To set sensor_pos and sensor_los having data organised in swath format, use MatrixReshapeTensor3().

Default is to check that y_f does not change between posistions, i.e. that the channel frequencies do not vary.

Author(s): Patrick Eriksson

Parameters:
  • y_swath (Tensor3, optional) – Three-dimensional version of the measurement vector. See y_swath, defaults to self.y_swath [OUT]

  • y (Vector, optional) – The measurement vector. See y, defaults to self.y [IN]

  • y_f (Vector, optional) – The frequencies associated with y. See y_f, defaults to self.y_f [IN]

  • 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 [IN]

  • npixel (Index) – Number of pixels per swath. [IN]

  • safe (Index, optional) – Flag for checking that channels do not vary in frequency. Defaults to 1 [IN]

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