Physics
Results are reported per resolution element on a grid with one point per resel,
\(\lambda_{j+1} = \lambda_j (1 + 1/R)\), \(\delta\lambda_j = \lambda_j / R\), and, since the
line-spread function was added (Line-spread function and detector pixels), per detector pixel as well (result.pixel).
The per-bin noise logic is that of the reference LFAST ETC notebook (2026-10-12), which the
test-suite reproduces to 1e-6 with lsf=None.
Source
A Source is a relative SED shape \(s(\lambda)\) and one magnitude. The
band flux of the magnitude in a box band of centre \(\lambda_0\), width \(\Delta\lambda\)
and Vega zero point \(f_{\nu,0}\) (Bessell et al. 1998) is
and \(F_\lambda(\lambda) = s(\lambda)\,F_{band}/\int_{band} s\,d\lambda\) in
W m-2 nm-1. The frequency width \(c\Delta\lambda/\lambda_0^2\) is the
reference-notebook approximation; the exact \(c\Delta\lambda/(\lambda_{lo}\lambda_{hi})\)
differs by ~1% (0.01 mag). Lines are multiplicative Gaussians added after normalisation, so
mag is the continuum magnitude.
Stellar electron rate
With \(N\) telescopes of area \(A\) each, point-source telescope throughput \(K_{opt}(\lambda)\), spectrograph efficiency \(S_{opt}\) (times the slit throughput for slit modes) and detector QE,
\(N_*\) is not divided by the number of pixels: the source is one process spread across \(n_{pix}\) pixels by the optics.
Throughput conventions
The bundled curves follow Choi et al. (2026, SPIE 14147). \(K_{opt}\) is the end-to-end point-source throughput of the telescope + fiber at the reference airmass; it already contains the fiber injection efficiency \(\eta_{fib}\) (the 50 um and 18 um \(K_{opt}\) curves differ by exactly \(\eta_{fib,50}/\eta_{fib,18}\)) and the site extinction. Hence
star (point source): \(K_{opt}\),
sky (fills the fiber uniformly, no injection loss): \(K_{opt}/\eta_{fib}\).
apply_extinction is therefore False by default; set it to True only with a
\(K_{opt}\) that excludes the atmosphere.
Sky
The SkyCalc table (ESO sky model at 2640 m, Paranal-like aerosols since SkyCalc has no Kitt Peak site; airmass 1.3, PWV 2.5 mm, moon up 45 degrees away at 45 degrees altitude, R=20,000 sampling) gives the radiance \(B_{sky}\) in ph s-1 m-2 um-1 arcsec-2. Every SkyCalc sample inside a resel is averaged (nearest sample if the resel is narrower than the table sampling). With the fiber solid angle \(\Omega\),
Pass Sky(path, scale) to use another SkyCalc file or a crude moon scaling (see Sky).
SNR and exposure time
For a total exposure \(t\) split into \(n_{exp}\) reads (Howell 2006),
exptime inverts this quadratic for \(t\) at a target SNR. Bins where \(K_{opt} < 10^{-6}\)
(telluric cores, lfast_etc.telescope.KOPT_EPS) are invalid and return NaN. The sky-subtraction noise term \((1 + n_{pix}/n_{sky})\) of
Howell is omitted, as in the reference notebook (a sky fiber is assumed well sampled).
\(n_{pix}\) is Howell’s full extraction aperture, pixels_per_resel (the dispersion width
of one resel: 2.2 pixels on the Bench, 6 / 5 / 2.5 for the CSHELL modes at 2.7 km/s per pixel)
times fiber_image_px (the spatial height of the fiber image; see Extraction aperture and detector profile). Because \(N_* \propto
10^{-0.4 m}\) the limiting magnitude at fixed \((t, \mathrm{SNR})\) is also a quadratic and is
solved analytically; snr_grid evaluates the SNR on a (magnitude, exposure) grid the same way.
Telescope combination
combine="fiber"(18 um fibers through the 20-to-1 combiner): \(N_*\) and \(N_{sky}\) scale with \(N\), dark current and read noise are paid once per combiner input, \(n_{in} = \lceil N / 20 \rceil\) (telescopes_per_input). Beyond one array the SNR therefore grows as \(\sqrt{n_{in}}\) on top of the single-array value; settelescopes_per_input=Nonefor an idealised single combiner.combine="independent"(50 um fibers, one spectrum per telescope, co-added afterwards): \(D \to N D\) and \(RN^2 \to N\,RN^2\), so \(\mathrm{SNR} = \sqrt{N}\,\mathrm{SNR}_1\) exactly.
Extraction aperture and detector profile
A fiber-fed spectrograph images the fiber face onto the detector, so one resel is a disc
pixels_per_resel wide along the dispersion direction and fiber_image_px high across it
(#13). fiber_image_px=None (the default) assumes a circular image, fiber_image_px =
pixels_per_resel; the CSHELL slit modes set it to the native 6 px fiber image explicitly because
the slit narrows the dispersion direction only. fiber_image_px=1.0 reproduces the reference
notebook, which counted the dispersion direction alone. Howell’s \(n_{pix}\) is the product,
so the sky, dark and read-noise terms all scale with the fiber-image height; for the Bench at
3.7 e- this is the dominant faint-end sensitivity (a factor 2.2 in \(n_{pix}\)). Replace the
default with the measured 1x1-binned fiber-image height when the LFAST team supplies it.
The shape of that disc sets the brightest pixel (#19). Instrument.profile chooses it:
"tophat"(default): an elliptical top hat of those two diameters, the image of a uniformly illuminated fiber face, convolved with a 0.35 px Gaussian camera blur;"uniform": the light spread evenly over \(n_{pix}\) pixels (peak fraction \(1/n_{pix}\), the pre-#19 convention);"gaussian": a Gaussian with those FWHMs (lower peak than the top hat because of its wings).
The image is rendered on a 20x sub-pixel grid centred on a pixel centre (the worst case) and binned
to pixels; Instrument.peak_fraction is the largest pixel’s share and plot_profile() draws
it. Seeing does not enter: the fiber scrambles the input, so the detector profile is the same in
any seeing. For the Bench’s 2.2 x 2.2 px image the top hat puts 25% of the resel in the peak
pixel, versus 21% uniform and 17% Gaussian.
Saturation
The brightest pixel is \((f\,(N_* + n_{pix} N_{sky})\,p + D)\,t/n_{exp}\) with \(p\) the
peak_fraction above and \(f\) the fraction of the telescopes on the most heavily loaded
input (a full group of 20 for N = 21, one telescope in independent mode), flagged against
full_well; reads_needed returns the smallest \(n_{exp}\) that keeps it under a margin of
the well. The image is centred on a pixel, the maximum for a single resel; for a continuum
source the neighbouring resels add along the dispersion, which makes the single-resel peak about
5% conservative for the top hat and about 10% optimistic for the Gaussian. An
Instrument without a full_well (inf) is never flagged and reports
saturated_fraction = None.
Throughput budget (Choi et al. 2026)
The shipped \(K_{opt}\) and \(\eta_{fib}\) curves are the end product of the component-by-component budget of Choi et al. (2026, SPIE 14147, 1414736). Two facts about the data let the budget be reconstructed without the paper’s intermediate curves:
K_opt_50 / K_opt_18equalseta_fib_50 / eta_fib_18at every wavelength to 1e-15, so \(K_{opt} = H(\lambda)\,\eta_{fib}(\lambda)\) with one fiber-independent hardware curve \(H\);\(H\) is zero in the telluric cores, so it includes the paper’s atmosphere (LBLRTM, Kitt Peak, airmass 1.3, 5 mm precipitable water vapour).
Telescope.throughput_cascade(wavelength_nm, path="star"|"sky") lays \(H\,\eta_{fib}\) out
as the paper’s stages. The wavelength-independent ones are quoted in the paper and shipped as
lfast_etc.telescope.CHOI_STAGES: 5.1% obscuration by the prime-focus corrector and spiders,
a 5% allowance for laser-ablation damage at the fiber puck, 92% Fresnel transmission for each of the
two circular fiber segments, 78.5% for the fiber combiner (microlens, dichroic, imaging lens,
rectangular output fiber) and four 1% miscellaneous losses. The wavelength-dependent remainder,
mirror reflectivity times the MgF2-coated corrector (8 surfaces, 74-89%) and bulk times fiber
attenuation over 62 m, is recovered as the residual \(H / T_{atm} / 0.575\); it comes out at
0.70-0.74 over 550-1550 nm, falling to 0.60 at 1750 nm and 0.34 at 400 nm, which is what
aluminium, MgF2 and silica Rayleigh scattering should give, so the budget is arithmetically
self-consistent. The atmosphere stage uses the SkyCalc transmission (airmass 1.3, 2.5 mm PWV)
as a proxy for the paper’s LBLRTM curve, so the residual absorbs the difference between the two
atmospheres, mostly in the water bands and below 450 nm. LFASTETC.throughput_cascade() appends
the spectrograph optics, slit and QE, and plot_throughput_cascade() draws the cumulative
curves like the paper’s Figure 11. At 550 nm on the Bench the star path runs 0.85 (atmosphere),
0.95, 0.70, 0.405 (injection), 0.95, 0.85, 0.785, 0.96, 0.30 (spectrograph), 0.75 (QE) to 2.2%
end to end at the design seeing.
Two open points for the LFAST team. (i) Telescope.diameter_m = 0.726 follows the reference
notebook, which says the 15.5 cm obscuration is already in the budget; it is (the 5.1% stage), but
0.726 m is 8.7% less area than the 0.76 m clear aperture of Angel et al. (2022), so either the
obscuration is counted twice or 0.726 m is a polished clear aperture not stated in the papers.
(ii) Separating the instrument-only curve from the LBLRTM transmission would remove the proxy
atmosphere here and fix the double attenuation of the sky path (#32).
Line-spread function and detector pixels
The reference notebook averages the source over each resolution element (a top hat of width
\(\lambda/R\)) and the sky over the SkyCalc samples inside it: a boxcar, critically sampled,
with no instrumental profile. A narrow line then lands in one bin, and anything drawn through the
bins turns it into a triangle. Since LFASTETC(lsf=...) (default "gaussian") the
calculation runs the way a spectrograph does:
Fine working grid.
oversample(8) samples per detector pixel on a geometric grid, padded on both sides so the kernel never meets an edge. The detector pixel grid is \(\lambda_{k+1} = \lambda_k (1 + 1/(R\,p))\) with \(p\) =pixels_per_resel, from the first resel wavelength, so pixel \(p\,j\) is centred on resel \(j\).Densities. The source photon flux (lines bin-averaged over the fine step, so a line narrower than a fine sample still keeps its equivalent width) times the collecting area, the throughput and the QE gives an electron-rate density in e- s-1 nm-1; the SkyCalc radiance (bin-averaged, nearest sample below the table’s R=20,000) times the fiber solid angle and the extended-source throughput gives the sky’s.
Atmosphere. \(K_{opt}\) ships with the paper’s atmosphere at 1 nm sampling, far coarser than any resel. On the fine grid \(K_{opt}\) is divided by the SkyCalc transmission box-averaged over 1 nm (floored at 0.2 so telluric cores do not blow up) and multiplied by the resolved SkyCalc transmission, so telluric lines have the sky table’s resolution instead of 1 nm (the workaround for #32; the two atmospheres differ in PWV, so the swap is approximate in the water bands). Samples where \(K_{opt} = 0\) stay zero-throughput.
Convolution with the LSF, a kernel of constant width in \(\ln\lambda\) since the grid is geometric:
"gaussian"has FWHM one resel (\(\lambda/R\));"tophat"is the fiber image on the detector, a top hatpixels_per_reselwide blurred by theBLUR_SIGMA_PXcamera blur of Extraction aperture and detector profile.Integration of the convolved densities over each detector pixel (
result.pixel, rates per extracted pixel with thespatial_pxpixels of the aperture summed in) and over each resolution element (the per-resel API; a resel is the sum of its pixels, half of each end pixel for evenpixels_per_resel). A pixel or resel is invalid as soon as one of its fine samples has zero throughput, the same neighbour-zeroing asTelescope.kopt(#12), so no bin is left on a \(10^{-6}\) wing of a telluric core with an absurd exposure time.
The per-resel noise model is unchanged, so for a smooth source the resel numbers move by about
\(10^{-4}\) (source) and \(10^{-3}\) (sky, now bin-averaged rather than nearest-sampled at
R > 20,000); narrow lines and airglow keep their equivalent width but get the instrument’s width.
Per pixel, snr is \(N_k t / \sqrt{N_k t + s\,(N_{sky} + D)\,t + s\,n_{exp}\,RN^2}\) with
\(s\) = spatial_px, which for a continuum source is the resel SNR over
\(\sqrt{p}\); exptime per pixel is solved per pixel for that equivalent target
(the resel’s time on a continuum, smooth across a sky line);
PixelResult.simulate scatters each pixel by a Gaussian draw of its own variance.
lsf=None (and any grid="uniform" run) is the reference boxcar with no pixel view.
Templates set the ceiling: the Pickles library is sampled at 5 A (R of a few thousand), the
SkyCalc table at R=20,000, so on CSHELL at R=43,000 stellar lines are template-limited and airglow
lines are the table’s shape convolved again; a higher-resolution sky table (SkyCalc serves up to
R=106 through skycalc_cli) and PHOENIX HiRes spectra (Husser et al. 2013) would lift both.
Seeing
The shipped \(K_{opt}\) and \(\eta_{fib}\) curves are for one seeing (Choi et al. 2026;
the value is not stated in the data, and Telescope.seeing_ref_arcsec = 1.0 is a placeholder
until it is confirmed). Telescope(seeing_arcsec=s) rescales the point-source throughput by the
geometric fraction of a seeing disc of FWHM \(s\) that falls inside the 1.48 arcsec fiber,
relative to the same fraction at the reference seeing (#14):
with \(r_f\) the fiber radius, \(\beta = 3.5\) by default (moffat_beta; 4.77 for pure
Kolmogorov turbulence, 2.5 for profiles with strong wings) and a Gaussian alternative
(seeing_psf="gaussian"). The seeing is scaled with wavelength as \(\lambda^{-1/5}\)
from its 500 nm value. The sky, which fills the fiber whatever the seeing, is unchanged. The
model is geometric (no diffraction, no focal-ratio degradation), so it is a relative correction
and only as good as the reference seeing. The 1.0 arcsec default is the seeing Choi et al. (2026) assume: a Moffat with
\(\beta = 4.765\), convolved with the mirror-figure PSF, wind shake and a 0.5 arcsec vibration
kernel, and integrated over the fiber. The shipped \(\eta_{fib}\) (0.405 at 550 nm) is 0.64
of a bare 1 arcsec Moffat coupling (0.636); the difference is that non-seeing blur. The default
seeing_psf="choi" therefore does not scale a bare disc: scripts/build_seeing_table.py
fits, at each wavelength, a Gaussian non-seeing kernel (FWHM 1.0-1.4 arcsec) and a grey floor to
reproduce both shipped curves (18 and 50 um fibers) at 1 arcsec, then tabulates
\(E(s)/E(1'')\) for seeing 0.4-3.0 arcsec. Because the non-seeing blur dominates part of the
image, the seeing dependence is gentler than the bare disc gives: at 550 nm, 1.5 arcsec costs 0.69
(bare Moffat 0.62), 2.0 arcsec 0.49 (0.40), and 0.8 arcsec gains 1.15 (1.20); at 1650 nm the
factors are 0.78, 0.60 and 1.09. The 50 um fiber keeps 0.83 at 2 arcsec. seeing_psf="moffat"
and "gaussian" remain available as the bare discs; implied_seeing_ref() (1.47 arcsec)
is the bare-disc upper limit. Seeing outside the table is clamped to its edges. Telescope.plot_fiber_coupling() draws
\(E(s)\) for both shapes.
Known limitations
QE is a flat placeholder per instrument (pass a callable
qe(wavelength_nm)for a curve).CSHELL slit losses are placeholders. Full wells are the WIYN STA1 value (87,500 e-) for the Bench and 55,000 e- for CSHELL (Brown et al. 2026, Table 1: the 1%-linear well at the default bias; up to 234,000 e- at higher bias).
One sky table at airmass 1.3, sampled at R=20,000; no airmass or moon-phase model beyond a scale factor. For the CSHELL presets (R > 20,000) each resel takes the nearest sample, so airglow lines are pre-smoothed to R=20,000; regenerate a finer SkyCalc table for line-level work.
\(K_{opt}\) is sampled at 1 nm; the telluric treatment is coarse and belongs to the airmass assumed by Choi et al., not necessarily 1.3.
The fiber-image height (
fiber_image_px) defaults to a circular image; the measured 1x1 value is still needed from the LFAST team, and the reference seeing of the throughput curves is a placeholder (see Extraction aperture and detector profile and Seeing).Reads shorter than
Instrument.min_exptime(8 s Fowler minimum for CSHELL) are flagged inETCResult.below_min_exptime; the read noise is not adjusted.No telluric absorption in the source path unless
apply_extinction=True(and then the extinction already in \(K_{opt}\) is double counted).Blackbody SEDs only, unless you supply a spectrum.
No spectral line-spread function: spectral lines are averaged over the resel (equivalent width preserved) but not convolved with the instrument profile; the detector
profileserves the peak-pixel estimate only.\(K_{opt}\) is sampled every 1 nm. Samples below
KOPT_EPS = 1e-6(687, 761, 1129 nm, the 1336-1424 nm water band, 1797 nm) are treated as exactly zero, and so is every wavelength whose interpolation interval touches such a sample, so a telluric core is NaN regardless of where the bin centres fall (#12). Small but finite samples (the 687 nm B-band wing, 950 nm) still give large, finite exposure times.The default sky is grey time (moon up); see Sky for a dark-time proxy.
grid="uniform"samples the band everystep_nmbut every bin stays one resel wide, so it over- or undersamples; it exists for plotting on a regular grid, not for summing counts.