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