-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
38 lines (33 loc) · 1.03 KB
/
app.py
File metadata and controls
38 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s %(levelname)-7s %(message)s",
datefmt="%H:%M:%S",
)
from bayesian_astro_stacker import BayesianAstroStacker, PipelineConfig
cfg = PipelineConfig(
# Optics
aperture_mm = 100.0,
focal_length_mm = 553.0,
pixel_size_um = 3.76,
# MAP solver
scale_factor = 2,
map_mode = "fast", # "fast" (default) or "exact"
map_n_iter = 10,
map_alpha_tv = 5e-4,
map_alpha_kl = 0.0,
map_alpha_wav = 0.0,
# Pipeline control
force_recompute = False, # set True to delete all cached files and rerun from scratch
)
path = "C:/Users/lukas/Downloads/stacker_test/NGC6888-sv220/"
calibration_dir = f"{path}calibration/"
stacker = BayesianAstroStacker(cfg)
result = stacker.run(
light_dir = f"{path}lights/",
flat_dir = f"{path}flats/",
output_dir = f"{path}results/",
bias_dir = f"{calibration_dir}bias/",
dark_dir = f"{calibration_dir}darks/",
)
print(result.summary())