-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjwst_fpa_config_ote-10.py
68 lines (50 loc) · 2.46 KB
/
jwst_fpa_config_ote-10.py
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import os
import numpy as np
home_dir = os.environ['HOME']
local_dir = os.path.dirname(os.path.abspath(__file__))
data_dir = os.path.join(home_dir, 'OTE-10/FGS1-NIRISS_alignment')
reference_catalog_type = 'hawki'
nominalpsf = True
##################################################################
alignment_reference_apertures = ['FGS1_FULL']
attitude_defining_apertures = ['FGS1_FULL']
calibration_alignment_reference_aperture_names = ['FGS1_FULL']
calibration_attitude_defining_aperture_names = ['FGS1_FULL']
apply_fpa_calibration_array = [False]
apertures_to_calibrate = ['NRCA3']
##################################################################
save_plot = True
verbose = True
verbose_figures = True
visit_groups = [0] ### TBD: This is probably used for HST multi-epoch analysis only
# Local distortion fit in v2, v3
k = 8 # or 6 or 4
# Global distortion fit for attitude determination
k_attitude_determination = 4 # or 8
generate_standardized_fpa_data = True
overwrite_source_extraction = False
overwrite_obs_xmatch_pickle = False
overwrite_obs_collection = True
overwrite_attitude_pickle = True
overwrite_alignment_results_pickle = True
overwrite_alignment_results_pickle = True
make_summary_plots = True # or False
show_summary_results = True
### NOTE: below are for calibrations as a function of time, so no need for commissioning.
show_camera_evolution = False
show_attitude_evolution = False
# This is used for Monte-Carlo type simulations, but just keep it to [0] for direct solutions.
random_realisations = [0] # for e.g., 9 random simulations, set this to "np.arange(9)"
correct_dva = False # No option to apply dva on jwst data, yet.
# Rotation parameter that will be minimized during the iterative aperture correction
rotation_name = 'Rotation in Y'
# Use 'spherical' below unless testing relative uncertainty for 'planar_approximation' (the other option).
idl_tel_method = 'spherical'
use_tel_boresight = False
restrict_analysis_to_these_apertures = None
restrict_to_sets_that_include_aperture_names = [None] * len(alignment_reference_apertures)
applied_calibration_file = None
write_calibration_result_file = True # or True # or False
# directory containing DVA correction source code and executable `compute-DVA.e`
## dva_source_dir = os.path.join(home_dir, 'jwst/tel/hst/focal_plane_calibration/DVA')
##dva_source_dir = os.path.join(local_dir, 'hst_dva_code')