ybatchColdAtmHotAtmCycle

Workspace.ybatchColdAtmHotAtmCycle(self: pyarts.arts._Workspace, ybatch: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfVector]] = self.ybatch, sensor_time: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfTime]] = self.sensor_time, level0_data: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfVector]] = self.level0_data, level0_time: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfTime]] = self.level0_time, cold_temp: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector], hot_temp: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Vector], first_c_index: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = 0, verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None

Computes ybatch from input using standard calibration scheme of a cycle through cold-atm-hot-atm-cold-… observations

Computes for every full cycle reaching a new hot or cold:

y = cold_temp + (hot_temp - cold_temp) * (atm - cold) / (hot - cold)

Assumes data is ordered as Cold-Atm-Hot-Atm-Cold-Atm-Hot-Atm-…, but Cold does not have to be at data[0], instead the first cold position is set by first_c_index, which defaults to 0 but can be any positive index so that level0_data`[``first_c_index`] is a cold-measurements. Note that if first_c_index is larger than 1, then the first output data will be around the observation cycle -HAC-, where H is at first_c_index-2

Also returns the times of the Atm measurements in sensor_time if the measurement’s time data is provided

Author(s): Richard Larsson

Parameters:
  • ybatch (ArrayOfVector, optional) – Batch of spectra. See ybatch, defaults to self.ybatch [OUT]

  • sensor_time (ArrayOfTime, optional) – The time for each measurement block. See sensor_time, defaults to self.sensor_time [OUT]

  • level0_data (ArrayOfVector, optional) – List of L0 data. Can be of any type. See level0_data, defaults to self.level0_data [IN]

  • level0_time (ArrayOfTime, optional) – List of L0 times. Should be in UTC. See level0_time, defaults to self.level0_time [IN]

  • cold_temp (Vector) – Cold load calibration temperature (must match level0_data length). [IN]

  • hot_temp (Vector) – Hot load calibration temperature (must match level0_data length). [IN]

  • first_c_index (Index, optional) – Index offset of the first cold position. Defaults to 0 [IN]

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