Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
Zhang Xin
Browse files
Options
Download
Email Patches
Plain Diff
add whether use straylight model
parent
d64d3472
release_v3.0
11-csst
29-darktime-exptime-shtopen-shtstat-t
current_stable_for_tests
develop
master
milky_way_extinction
new_sim
release_v2.0
revert-914004c1
sim_scheduler
sls_psf_pca_convolve
wcs_test_gridGalaxy
v3.1.0
v3.0.0
v2.1.0
2 merge requests
!17
release version 2.1.0
,
!16
version 2.1.0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ObservationSim/Instrument/Filter.py
+1
-0
ObservationSim/Instrument/Filter.py
ObservationSim/ObservationSim.py
+3
-2
ObservationSim/ObservationSim.py
config/config_C6.yaml
+3
-0
config/config_C6.yaml
with
7 additions
and
2 deletions
+7
-2
ObservationSim/Instrument/Filter.py
+
1
-
0
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
...
...
This diff is collapsed.
Click to expand it.
ObservationSim/ObservationSim.py
+
3
-
2
View file @
d008c206
...
...
@@ -108,9 +108,10 @@ class Observation(object):
chip
.
img
.
setOrigin
(
chip
.
bound
.
xmin
,
chip
.
bound
.
ymin
)
chip
.
img
.
wcs
=
wcs_fp
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
]))
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"
:
...
...
This diff is collapsed.
Click to expand it.
config/config_C6.yaml
+
3
-
0
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"
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets