Skip to content

Commit 4d83a98

Browse files
authored
Merge pull request #115 from GalSim-developers/fix/issue-112-113
Fix/issue 112 113
2 parents 51026a4 + 99e84e8 commit 4d83a98

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

euclidlike/instrument_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77
import galsim
88

99
# Set these quantities
10-
gain = 3.4 # e-/ADU, https://www.euclid-ec.org/public/mission/vis/
10+
gain = 3.48 # e-/ADU, https://www.euclid-ec.org/public/mission/vis/
1111
pixel_scale = 0.1 # arcsec / pixel
1212
diameter = 1.2 # meters
1313
obscuration = 0.42 # meters, inferred from diameter and collecting area
1414
focal_length = 24.5 # meters
1515
fratio = focal_length / diameter # dimension-less, inferred from diameter and focal_length
1616
collecting_area = 9926 # cm^2, from https://www.euclid-ec.org/science/overview/
1717
long_exptime = 566 # s (for the longer exposures used for VIS images)
18+
long_exptime_eff = 560.53 # s (effective time VIS imaging exposures) (This is the one to use for flux computation)
1819
nisp_exptime_total = 112 # s (total time NISP imaging exposures)
1920
nisp_exptime_eff = 87.2 # s (effective time NISP imaging exposures) (This is the one to use for flux computation)
2021
short_exptime_vis = 95 # s (for the shorter exposures with VIS taken in parallel with NISP imaging)
22+
short_exptime_vis_eff = 89.52 # s (effective time VIS imaging exposures) (This is the one to use for flux computation)
2123
read_noise = 4.4 # e-, https://www.euclid-ec.org/public/mission/vis/
2224
saturation = 200000 # e-, from https://www.euclid-ec.org/public/mission/vis/
2325
n_dithers = 4
@@ -137,4 +139,4 @@
137139
# this module. However, pointing errors / jitter are quantified in the VIS paper.
138140
#
139141
# The impact of the dichroic and of charge transfer inefficiency are not included. Same for
140-
# saturation (200000 e-).
142+
# saturation (200000 e-).
5 Bytes
Binary file not shown.

scripts/make_obseq.py

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727

2828
from euclidlike.instrument_params import (
2929
long_exptime,
30+
long_exptime_eff,
3031
short_exptime_vis,
32+
short_exptime_vis_eff,
3133
nisp_exptime_total,
3234
nisp_exptime_eff,
3335
)
@@ -85,8 +87,12 @@ def convert_ecliptic_to_equatorial(elon, elat, epa):
8587
shift_2_years = 365 * 2 + 1
8688
shift_6_years = 365 * 6 + 1
8789

90+
VIS_exp_long_eff = long_exptime_eff
8891
VIS_exp_long = long_exptime
92+
VIS_exp_long_wait = VIS_exp_long - VIS_exp_long_eff
93+
VIS_exp_short_eff = short_exptime_vis_eff
8994
VIS_exp_short = short_exptime_vis
95+
VIS_exp_short_wait = VIS_exp_short - VIS_exp_short_eff
9096
NISP_exp_int = nisp_exptime_total
9197
NISP_exp_eff = nisp_exptime_eff
9298
NISP_exp_wait = NISP_exp_int - NISP_exp_eff
@@ -96,10 +102,11 @@ def convert_ecliptic_to_equatorial(elon, elat, epa):
96102
dither_seq = {
97103
0: {
98104
"VIS": [
99-
{"wait": 8},
100-
{"VIS_LONG": VIS_exp_long},
101-
{"wait": 40 + NISP_exp_int + 22 + NISP_exp_int + 22},
102-
{"VIS_SHORT": VIS_exp_short},
105+
{"wait": 8 + VIS_exp_long_wait / 2},
106+
{"VIS_LONG": VIS_exp_long_eff},
107+
{"wait": VIS_exp_long_wait / 2 + 40 + NISP_exp_int + 22 + NISP_exp_int + 22 + VIS_exp_short_wait / 2},
108+
{"VIS_SHORT": VIS_exp_short_eff},
109+
{"wait": VIS_exp_short_wait / 2},
103110
],
104111
"NISP": [
105112
{"wait": 574 + 40},
@@ -112,10 +119,11 @@ def convert_ecliptic_to_equatorial(elon, elat, epa):
112119
},
113120
1: {
114121
"VIS": [
115-
{"wait": 8},
116-
{"VIS_LONG": VIS_exp_long},
117-
{"wait": 40 + NISP_exp_int + 22 + NISP_exp_int + 22},
118-
{"VIS_SHORT": VIS_exp_short},
122+
{"wait": 8 + VIS_exp_long_wait / 2},
123+
{"VIS_LONG": VIS_exp_long_eff},
124+
{"wait": VIS_exp_long_wait / 2 + 40 + NISP_exp_int + 22 + NISP_exp_int + 22 + VIS_exp_short_wait / 2},
125+
{"VIS_SHORT": VIS_exp_short_eff},
126+
{"wait": VIS_exp_short_wait / 2},
119127
],
120128
"NISP": [
121129
{"wait": 574 + 40},
@@ -128,9 +136,9 @@ def convert_ecliptic_to_equatorial(elon, elat, epa):
128136
},
129137
2: {
130138
"VIS": [
131-
{"wait": 8},
132-
{"VIS_LONG": VIS_exp_long},
133-
{"wait": 40 + NISP_exp_int + 22 + NISP_exp_int + 22},
139+
{"wait": 8 + VIS_exp_long_wait / 2},
140+
{"VIS_LONG": VIS_exp_long_eff},
141+
{"wait": VIS_exp_long_wait / 2 + 40 + NISP_exp_int + 22 + NISP_exp_int + 22},
134142
{"VIS_SHORT": 0},
135143
],
136144
"NISP": [
@@ -144,9 +152,9 @@ def convert_ecliptic_to_equatorial(elon, elat, epa):
144152
},
145153
3: {
146154
"VIS": [
147-
{"wait": 8},
148-
{"VIS_LONG": VIS_exp_long},
149-
{"wait": 40 + NISP_exp_int + 22 + NISP_exp_int + 22},
155+
{"wait": 8 + VIS_exp_long_wait / 2},
156+
{"VIS_LONG": VIS_exp_long_eff},
157+
{"wait": VIS_exp_long_wait / 2 + 40 + NISP_exp_int + 22 + NISP_exp_int + 22},
150158
{"VIS_SHORT": 0},
151159
],
152160
"NISP": [

0 commit comments

Comments
 (0)