measurement_sensorAddCamera
- Workspace.measurement_sensorAddCamera(self, measurement_sensor: ArrayOfSensorObsel = self.measurement_sensor, measurement_sensor_meta: ArrayOfSensorMetaInfo = self.measurement_sensor_meta, freq_grid: AscendingGrid = self.freq_grid, pos: Vector3, los: Vector2, pol: Stokvec = [1, 0, 0, 0], n_h: Index, n_w: Index, ccd_h: Numeric, ccd_w: Numeric, focal_length: Numeric, aperture_diameter: Numeric, focus_distance: Numeric) None
Adds a simple thin-lens camera model to the measurement sensor.
The camera is described by a CCD array of
n_hxn_wpixels with physical dimensionsccd_hxccd_w(in meters), a lens with the givenfocal_lengthandaperture_diameter, and afocus_distancethat determines the in-focus plane distance from the lens.Each pixel maps to a unique line-of-sight direction computed via the thin-lens equation. The image distance (lens-to-CCD) is derived from the thin-lens formula:
\[d_i = \frac{f \cdot d_o}{d_o - f}\]where
fis the focal length andd_ois the focus distance.The angular offset of pixel
(ih, iw)from the CCD center is:\[\Delta\theta_{zen} = -\arctan\!\left(\frac{\Delta y}{d_i}\right),\quad \Delta\theta_{azi} = -\arctan\!\left(\frac{\Delta x}{d_i}\right)\](negated because the CCD image is inverted by the lens).
A Dirac weight is assigned per pixel per frequency channel, yielding
n_h x n_w x nfreqobservation elements. All observation elements share the same frequency grid and the same PosLos grid (one entry per pixel).Author: Richard Larsson
- Parameters:
measurement_sensor (~pyarts3.arts.ArrayOfSensorObsel, optional) – A list of sensor elements that fully describe one or more observing sensor(s). Defaults to
self.measurement_sensor. [INOUT]measurement_sensor_meta (~pyarts3.arts.ArrayOfSensorMetaInfo, optional) – Metadata describing each sensor’s block in
measurement_vec. Defaults toself.measurement_sensor_meta. [INOUT]freq_grid (~pyarts3.arts.AscendingGrid, optional) – A frequency grid. Unit: Hz. Defaults to
self.freq_grid. [IN]pos (Vector3) – Observer position [alt, lat, lon]. [IN]
los (Vector2) – Central pixel line of sight [zenith, azimuth]. [IN]
pol (~pyarts3.arts.Stokvec, optional) – Polarization Stokes weight per pixel. Defaults to
1 0 0 0[IN]n_h (Index) – Number of pixels along the CCD height (rows). [IN]
n_w (Index) – Number of pixels along the CCD width (columns). [IN]
ccd_h (Numeric) – Physical height of the CCD in meters. [IN]
ccd_w (Numeric) – Physical width of the CCD in meters. [IN]
focal_length (Numeric) – Focal length of the lens in meters. [IN]
aperture_diameter (Numeric) – Diameter of the lens aperture in meters. [IN]
focus_distance (Numeric) – Distance to the in-focus plane in meters (must be > focal_length). [IN]