Skip to content

Commit 16ac627

Browse files
ivhclaude
andcommitted
Add CRIRES+ L-band example script
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9cb5622 commit 16ac627

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

examples/crires_lm.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"""
2+
CRIRES+ L-band example
3+
Runs trace, flat, and norm_flat on L3340 flat-field frames.
4+
"""
5+
6+
import os
7+
8+
from pyreduce import datasets
9+
from pyreduce.pipeline import Pipeline
10+
11+
instrument = "CRIRES_PLUS"
12+
target = ""
13+
night = ""
14+
channel = "L3340_det1"
15+
steps = (
16+
"flat",
17+
"trace",
18+
"norm_flat",
19+
)
20+
21+
base_dir = os.path.join(datasets.get_data_dir(), "CRIRES_LM")
22+
input_dir = ""
23+
output_dir = "reduced"
24+
25+
pipe = Pipeline.from_instrument(
26+
instrument,
27+
target,
28+
night=night,
29+
channel=channel,
30+
steps=steps,
31+
base_dir=base_dir,
32+
input_dir=input_dir,
33+
output_dir=output_dir,
34+
plot=1,
35+
)
36+
pipe._data["bias"] = None
37+
pipe._data["mask"] = None
38+
pipe._data["scatter"] = None
39+
pipe.run()
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"__inherits__": "CRIRES_PLUS/settings.json",
33
"trace": {
4-
"min_cluster": 5000
4+
"min_cluster": 5000,
5+
"filter_y": 400
56
}
67
}

0 commit comments

Comments
 (0)