Commit e1458fd3 authored by Fang Yuedong's avatar Fang Yuedong
Browse files

galaxy SED bug fixed

parent 1908e835
Showing with 10 additions and 6 deletions
+10 -6
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -339,7 +339,10 @@ class Observation(object):
for ipoint in range(len(ra_cen)):
for ichip in range(nchips_per_fp):
i = ipoint*nchips_per_fp + ichip
pointing_ID = pStart + ipoint
if pRange is None:
pointing_ID = pStart + ipoint
else:
pointing_ID = pRange[ipoint]
if i % num_thread != ind_thread:
continue
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -3,7 +3,7 @@ import numpy as np
from Config import ReadConfig
from datetime import datetime
work_dir = "/public/home/fangyuedong/CSST/test/"
work_dir = "/public/home/fangyuedong/test/CSST/test/"
data_dir = "/data/simudata/CSSOSDataProductsSims/data/"
config_file = os.path.join(work_dir, "ObservationSim.cfg")
......@@ -51,4 +51,5 @@ timestamp_obs = np.array(timestamp_obs)
pointing_type = np.array(pointing_type)
# Define the range of pointing list
pRange = range(0, 2)
\ No newline at end of file
# pRange = range(0, 2)
pRange = [1, 22]
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -12,11 +12,11 @@
#PBS -q batch
#PBS -u fangyuedong
NP=40
NP=54
date
echo $NP
# mpirun -np $NP --oversubscribe -H comput101 python /public/home/fangyuedong/CSST/ObservationSim/runExposure.py
python /public/home/fangyuedong/CSST/ObservationSim/preprocess.py
mpirun -np $NP python /public/home/fangyuedong/CSST/ObservationSim/runExposure.py
python /public/home/fangyuedong/test/CSST/ObservationSim/preprocess.py
mpirun -np $NP python /public/home/fangyuedong/test/CSST/ObservationSim/runExposure.py
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment