Detector geometry (wcc_sim.detectors)

Detector geometry for the WCC focal plane (array dims live here, not in wcc_etc).

class wcc_sim.detectors.DetectorGeometry(nx: int, ny: int, pixel_size_um: float, plate_scale_mas: float, default_focus: int)[source]

Bases: object

Parameters:
nx: int
ny: int
pixel_size_um: float
plate_scale_mas: float
default_focus: int
wcc_sim.detectors.make_base_simulation(sensorfilter, gain_mode=None)[source]

A wcc_etc Simulation for this sensorfilter (G2V mag-15 source, zodi bg).

Used for geometry, PSF context parameters, and sky/dark rates. Raises ValueError listing valid keys for an unknown sensorfilter. gain_mode selects the readout gain for detectors that have several (qCMOS: “high” is the 32x photon-number-resolving mode, “low” the 1x mode); None takes the wcc_etc config default.

wcc_sim.detectors.saturation_level_e(sensor)[source]

Per-frame electron ceiling: min(full well, ADC full scale x gain).

The qCMOS in its 32x high-gain mode clips at the 12-bit ADC, 4095 ADU x 0.1348 e-/ADU = 552 e-, long before the 7500 e- well (#17); in the 1x low-gain mode (4.132 e-/ADU) the well clips first. Bright fields want gain_mode=”low”. Recorded in the FITS header as SATLEVEL.

wcc_sim.detectors.get_geometry(sensorfilter, sim=None)[source]