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
e1c43dc4
Commit
e1c43dc4
authored
Jul 06, 2023
by
Fang Yuedong
Browse files
test C6
parent
93b4151b
Changes
3
Show whitespace changes
Inline
Side-by-side
ObservationSim/ObservationSim.py
View file @
e1c43dc4
...
@@ -111,8 +111,10 @@ class Observation(object):
...
@@ -111,8 +111,10 @@ class Observation(object):
if
self
.
config
[
"obs_setting"
][
"enable_straylight_model"
]:
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
]))
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========================"
)
chip_output
.
Log_info
(
"========================sky pix========================"
)
print
(
filt
.
sky_background
)
chip_output
.
Log_info
(
filt
.
sky_background
)
return
if
chip
.
survey_type
==
"photometric"
:
if
chip
.
survey_type
==
"photometric"
:
sky_map
=
None
sky_map
=
None
...
...
config/config_C6.yaml
View file @
e1c43dc4
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# OK to pass either way or both, as long as they are consistent
# OK to pass either way or both, as long as they are consistent
work_dir
:
"
/share/home/fangyuedong/fgs_sim/csst-simulation/workplace/"
work_dir
:
"
/share/home/fangyuedong/fgs_sim/csst-simulation/workplace/"
data_dir
:
"
/share/simudata/CSSOSDataProductsSims/data/"
data_dir
:
"
/share/simudata/CSSOSDataProductsSims/data/"
run_name
:
"
C6_
spectroscopic_20230225
"
run_name
:
"
C6_
test
"
# Whether to use MPI
# Whether to use MPI
run_option
:
run_option
:
...
@@ -94,13 +94,13 @@ obs_setting:
...
@@ -94,13 +94,13 @@ obs_setting:
# - give a list of indexes of pointings: [ip_1, ip_2...]
# - give a list of indexes of pointings: [ip_1, ip_2...]
# - run all pointings: null
# - run all pointings: null
# Note: only valid when a pointing list is specified
# Note: only valid when a pointing list is specified
run_pointings
:
[
0
]
run_pointings
:
[
0
,
1
,
2
,
3
,
4
,
5
]
# Run specific chip(s):
# Run specific chip(s):
# - give a list of indexes of chips: [ip_1, ip_2...]
# - give a list of indexes of chips: [ip_1, ip_2...]
# - run all chips: null
# - run all chips: null
# Note: for all pointings
# Note: for all pointings
run_chips
:
[
24
]
run_chips
:
null
# Whether to enable astrometric modeling
# Whether to enable astrometric modeling
enable_astrometric_model
:
True
enable_astrometric_model
:
True
...
...
run_C6.pbs
View file @
e1c43dc4
#!/bin/bash
#!/bin/bash
#PBS -N C6_TEST
#PBS -N SIMS
#PBS -l walltime=70:00:00
#PBS -l nodes=wcl-1:ppn=60
#PBS -j oe
###PBS -l nodes=wcl-1:ppn=24+wcl-2:ppn=24+wcl-3:ppn=24+wcl-4:ppn=24+wcl-5:ppn=24+wcl-6:ppn=24
##PBS -l nodes=wcl-1:ppn=16+wcl-2:ppn=16
#PBS -q batch
#PBS -u fangyuedong
#PBS -u fangyuedong
###PBS -j oe
cd
$PBS_O_WORKDIR
cd
$PBS_O_WORKDIR
NP
=
60
NP
=
80
hostfile
=
wcl-1,wcl-2
date
date
mpirun
-np
$NP
python
3
/share/home/fangyuedong/
fgs_sim/
csst-simulation/run_sim.py
\
mpirun
--oversubscribe
-H
$hostfile
-np
$NP
python /share/home/fangyuedong/csst-simulation/run_sim.py
\
--config_file
config_C6.yaml
\
--config_file
config_C6.yaml
\
--catalog
C6_Catalog
\
--catalog
C6_Catalog
\
-c
/share/home/fangyuedong/fgs_sim/csst-simulation/config
-c
/share/home/fangyuedong/csst-simulation/config
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