Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_msc_sim
Commits
d008c206
Commit
d008c206
authored
Jul 04, 2023
by
Zhang Xin
Browse files
add whether use straylight model
parent
d64d3472
Changes
3
Show whitespace changes
Inline
Side-by-side
ObservationSim/Instrument/Filter.py
View file @
d008c206
...
...
@@ -40,6 +40,7 @@ class Filter(object):
self
.
sky_background
=
filter_param
.
param
[
filter_type
][
5
]
self
.
mag_saturation
=
filter_param
.
param
[
filter_type
][
6
]
self
.
mag_limiting
=
filter_param
.
param
[
filter_type
][
7
]
self
.
zodical_spec
=
None
def
is_too_bright
(
self
,
mag
,
margin
=-
2.5
):
return
mag
<=
self
.
mag_saturation
+
margin
...
...
ObservationSim/ObservationSim.py
View file @
d008c206
...
...
@@ -108,9 +108,10 @@ class Observation(object):
chip
.
img
.
setOrigin
(
chip
.
bound
.
xmin
,
chip
.
bound
.
ymin
)
chip
.
img
.
wcs
=
wcs_fp
if
self
.
config
[
"obs_setting"
][
"enable_straylight_model"
]:
filt
.
setFilterStrayLightPixel
(
jtime
=
pointing
.
jdt
,
sat_pos
=
np
.
array
([
pointing
.
sat_x
,
pointing
.
sat_y
,
pointing
.
sat_z
]),
pointing_radec
=
np
.
array
([
pointing
.
ra
,
pointing
.
dec
]),
sun_pos
=
np
.
array
([
pointing
.
sun_x
,
pointing
.
sun_y
,
pointing
.
sun_z
]))
print
(
"========================sky pix========================
\n
"
)
print
(
"========================sky pix========================"
)
print
(
filt
.
sky_background
)
if
chip
.
survey_type
==
"photometric"
:
...
...
config/config_C6.yaml
View file @
d008c206
...
...
@@ -105,6 +105,9 @@ obs_setting:
# Whether to enable astrometric modeling
enable_astrometric_model
:
True
# Whether to enable straylight model
enable_straylight_model
:
False
# Cut by saturation magnitude in which band?
cut_in_band
:
"
z"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment