Instruments and presets
An Instrument is a spectrograph configuration: bandpass, resolving power,
pixels per resel, optical efficiency, slit loss, and the detector (QE, read noise, dark current,
full well, shortest read). Presets are TOML files in src/lfast_etc/data/config.
from lfast_etc import Instrument, list_instruments
list_instruments()
ins = Instrument.from_preset("cshell_r43000", slit_throughput=0.6) # override any field
ins2 = ins.replace(read_noise=10) # copy with changes
ins.describe()
Bundled presets
Generated from the TOML files when the documentation is built.
preset |
nm |
R |
pix/resel |
S_opt |
slit |
QE |
RN e- |
dark e-/s/pix |
full well |
min read s |
description |
|---|---|---|---|---|---|---|---|---|---|---|---|
|
688-812 |
6,910 |
2.2 |
0.229 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 1200 @ 28.7 deg, order 1, 688-812 nm, R~6910 |
|
400-431 |
7,561 |
2.2 |
0.229 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 1200 @ 28.7 deg, order 2, 400-431 nm, R~7560 (clipped at 400 nm) |
|
644-669 |
31,284 |
2.2 |
0.208 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 316 @ 63.4 deg, order 9, 644-669 nm, R~31280 |
|
486-1014 |
1,438 |
2.2 |
0.292 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 316 @ 7.0 deg, order 1, 486-1014 nm, R~1440 |
|
400-507 |
1,438 |
2.2 |
0.292 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 316 @ 7.0 deg, order 2, 400-507 nm, R~1440 (clipped at 400 nm) |
|
498-526 |
18,108 |
2.2 |
0.3 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 3300 VPH, order 1, 498-526 nm, R~18110 |
|
400-710 |
1,202 |
2.2 |
0.292 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 400 @ 4.2 deg, order 1, 400-710 nm, R~1200 (clipped at 400 nm) (not recommended by WIYN: hard to focus over the range) |
|
614-886 |
2,875 |
2.2 |
0.292 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 600 @ 13.9 deg, order 1, 614-886 nm, R~2880 |
|
400-448 |
2,913 |
2.2 |
0.292 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 600 @ 13.9 deg, order 2, 400-448 nm, R~2910 (clipped at 400 nm) |
|
772-987 |
3,599 |
2.2 |
0.3 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 740 VPH, order 1, 772-987 nm, R~3600 |
|
446-554 |
4,091 |
2.2 |
0.3 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 740 VPH, order 2, 446-554 nm, R~4090 |
|
996-1164 |
7,220 |
2.2 |
0.271 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 860 @ 30.9 deg, order 1, 996-1164 nm, R~7220 |
|
558-642 |
8,543 |
2.2 |
0.271 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 860 @ 30.9 deg, order 2, 558-642 nm, R~8540 |
|
400-428 |
8,434 |
2.2 |
0.271 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 860 @ 30.9 deg, order 3, 400-428 nm, R~8430 (clipped at 400 nm) |
|
412-686 |
1,800 |
2.2 |
0.3 |
1 |
0.75 |
3.7 |
0.0003 |
87,500 |
1 |
WIYN Bench, 600 @ 10.1 deg, order 1, 412-686 nm, R~1800 (reference notebook) |
|
1080-1750 |
18,000 |
6 |
0.1 |
1 |
0.8 |
22 |
0.5 |
55,000 |
8 |
CSHELL, native fiber resolution R=18,000, 1.08-1.75 um |
|
1080-1750 |
21,500 |
5 |
0.1 |
0.75 |
0.8 |
22 |
0.5 |
55,000 |
8 |
CSHELL, 200 um slit, R=21,500, 1.08-1.75 um (slit loss placeholder) |
|
1080-1750 |
43,000 |
2.5 |
0.1 |
0.5 |
0.8 |
22 |
0.5 |
55,000 |
8 |
CSHELL, 100 um slit, R=43,000, 1.08-1.75 um (slit loss placeholder) |
WIYN Bench. bench_r1800 is the reference-notebook configuration (600 l/mm grating at
10.1 deg, order 1). The other bench_* presets are the rows of the WIYN Bench configuration
table that reach 400 nm, generated by
scripts/build_bench_presets.py: R keeps the table’s ratio to the anchor row, the
spectrograph efficiency scales with the grating’s peak efficiency relative to 72%, and
everything else is the anchor’s placeholder. The table’s resolutions are for the WIYN red fiber
cable at 2x2 binning, so these are scalings, not LFAST measurements. Wavelength ranges are
clipped to the 400-1800 nm throughput curves; bench_r1800 stops at 686 nm because
\(K_{opt}\) drops to 5e-9 at the 687 nm O2 band.
Bench detector and gain. The Bench presets describe the WIYN STA1 CCD (characteristics): 2600 x 4000 pixels of 12 um, an 18-bit
ADC and three gain modes. The presets assume medium gain; switch modes by overriding both
read_noise and full_well (at high gain the ADC clips before the well fills).
gain mode |
e-/DN |
read noise |
ADC limit |
binding limit |
|---|---|---|---|---|
high |
0.219 |
3.2 e- |
57,400 e- |
ADC (1% linearity 63,000 e-) |
medium (preset) |
0.438 |
3.7 e- |
114,800 e- |
full well 87,500 e- |
low |
0.876 |
4.3 e- |
229,600 e- |
full well 87,500 e- |
CSHELL. Three modes: the bare fiber at R = 18,000 and the 200 um and 100 um slits at
R = 21,500 and 43,000. The slit throughputs are placeholders (0.75 and 0.5) until measured. The
free spectral range is about \(2.5\times10^{-3}\lambda\), so one setting is 27 to 44 A wide;
pass wavelength_min_nm/wavelength_max_nm to LFASTETC for the
setting you care about. Reads shorter than 8 s (the Fowler-sampling minimum) are flagged.
Preset fields
All under [instrument] in the TOML file:
field |
meaning |
|---|---|
|
strings; |
|
bandpass of the configuration. An explicit range passed to
|
|
\(R = \lambda/\delta\lambda\) |
|
pixels spanned by one resel along the dispersion direction |
|
spatial height of the fiber image in pixels at 1x1 binning;
|
|
|
|
optical throughput of the spectrograph, excluding QE and slit |
|
extra factor for slit modes (1 for the bare fiber) |
|
detector QE, a number in TOML; in Python also a callable
|
|
e-/s/pixel |
|
e-/pixel per read |
|
e-/pixel, used only for the saturation flag |
|
shortest read [s] for which |
|
FSR / \(\lambda\) for echelles (informational) |
Efficiencies must lie in (0, 1]; every other field is validated as a positive number.
Adding a preset
Copy a TOML file, change the numbers, drop it next to the others; it appears in
list_instruments() without code changes. For a configuration that is not an LFAST
instrument, keep the throughput conventions of Physics in mind: spectrograph_efficiency
is the spectrograph alone, since the telescope and fiber are in \(K_{opt}\).
fig, ax = plt.subplots(figsize=(9, 3.6))
LFASTETC("bench_r1800").plot_throughput(ax=ax)
ax.set_title("bench_r1800: telescope, fiber, spectrograph x QE, end to end", fontsize=9)