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

bench_1200_28p7_o1

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

bench_1200_28p7_o2

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)

bench_316_63p4_o9

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

bench_316_7p0_o1

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

bench_316_7p0_o2

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)

bench_3300vph_o1

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

bench_400_4p2_o1

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)

bench_600_13p9_o1

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

bench_600_13p9_o2

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)

bench_740vph_o1

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

bench_740vph_o2

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

bench_860_30p9_o1

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

bench_860_30p9_o2

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

bench_860_30p9_o3

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)

bench_r1800

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)

cshell_r18000

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

cshell_r21500

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)

cshell_r43000

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

name, description

strings; description is shown in the web app

wavelength_min_nm, _max_nm

bandpass of the configuration. An explicit range passed to LFASTETC is clipped to it.

resolving_power

\(R = \lambda/\delta\lambda\)

pixels_per_resel

pixels spanned by one resel along the dispersion direction

fiber_image_px

spatial height of the fiber image in pixels at 1x1 binning; None means circular (= pixels_per_resel). Howell’s \(n_{pix}\) is the product (Extraction aperture and detector profile)

profile

"tophat" (default), "uniform" or "gaussian": the fiber-image shape for the peak-pixel estimate (Extraction aperture and detector profile)

spectrograph_efficiency

optical throughput of the spectrograph, excluding QE and slit

slit_throughput

extra factor for slit modes (1 for the bare fiber)

qe

detector QE, a number in TOML; in Python also a callable qe(wavelength_nm) for a curve

dark_current

e-/s/pixel

read_noise

e-/pixel per read

full_well

e-/pixel, used only for the saturation flag

min_exptime

shortest read [s] for which read_noise holds (flagged, not enforced)

free_spectral_range_frac

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)
_images/instruments-1.png