yApplyUnit

Workspace.yApplyUnit(self: pyarts.arts._Workspace, y: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.y, jacobian: pyarts.arts.WorkspaceVariable | pyarts.arts.Matrix | None = self.jacobian, y_f: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.y_f, y_pol: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfIndex | None = self.y_pol, iy_unit: pyarts.arts.WorkspaceVariable | pyarts.arts.String | None = self.iy_unit, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Conversion of y to other spectral units.

Any conversion to brightness temperature is normally made inside yCalc(). This method makes it possible to also make this conversion after yCalc(), but with restrictions for jacobian and with. respect to the n2-law of radiance.

The conversion made inside iyEmissionStandard() is mimiced and see that method for constraints and selection of output units. This with the restriction that the n2-law can be ignored. The later is the case if the sensor is placed in space, or if the refractive only devaites slightly from unity.

The method handles y and jacobian in parallel, where the last variable is only considered if it is set. The input data must be in original radiance units. A completely stringent check of this can not be performed.

The method can not be used with jacobian quantities that are not obtained through radiative transfer calculations. One example on quantity that can not be handled is jacobianAddPolyfit(). There are no automatic checks warning for incorrect usage!

If you are using this method, iy_unit should be set to “1” when calling yCalc(), and be changed before calling this method.

Conversion of y_aux is not supported.

Author(s): Patrick Eriksson

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

  • jacobian (Matrix, optional) – The Jacobian matrix. See jacobian, defaults to self.jacobian [INOUT]

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

  • y_pol (ArrayOfIndex, optional) – The polarisation states associated with y. See y_pol, defaults to self.y_pol [IN]

  • iy_unit (String, optional) – Selection of output unit for radiative transfer methods. See iy_unit, defaults to self.iy_unit [IN]

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