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

galaxy SED bug fixed

parent 1908e835
...@@ -339,7 +339,10 @@ class Observation(object): ...@@ -339,7 +339,10 @@ class Observation(object):
for ipoint in range(len(ra_cen)): for ipoint in range(len(ra_cen)):
for ichip in range(nchips_per_fp): for ichip in range(nchips_per_fp):
i = ipoint*nchips_per_fp + ichip 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: if i % num_thread != ind_thread:
continue continue
......
...@@ -3,7 +3,7 @@ import numpy as np ...@@ -3,7 +3,7 @@ import numpy as np
from Config import ReadConfig from Config import ReadConfig
from datetime import datetime 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/" data_dir = "/data/simudata/CSSOSDataProductsSims/data/"
config_file = os.path.join(work_dir, "ObservationSim.cfg") config_file = os.path.join(work_dir, "ObservationSim.cfg")
...@@ -51,4 +51,5 @@ timestamp_obs = np.array(timestamp_obs) ...@@ -51,4 +51,5 @@ timestamp_obs = np.array(timestamp_obs)
pointing_type = np.array(pointing_type) pointing_type = np.array(pointing_type)
# Define the range of pointing list # Define the range of pointing list
pRange = range(0, 2) # pRange = range(0, 2)
\ No newline at end of file pRange = [1, 22]
\ No newline at end of file
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
#PBS -q batch #PBS -q batch
#PBS -u fangyuedong #PBS -u fangyuedong
NP=40 NP=54
date date
echo $NP echo $NP
# mpirun -np $NP --oversubscribe -H comput101 python /public/home/fangyuedong/CSST/ObservationSim/runExposure.py # mpirun -np $NP --oversubscribe -H comput101 python /public/home/fangyuedong/CSST/ObservationSim/runExposure.py
python /public/home/fangyuedong/CSST/ObservationSim/preprocess.py python /public/home/fangyuedong/test/CSST/ObservationSim/preprocess.py
mpirun -np $NP python /public/home/fangyuedong/CSST/ObservationSim/runExposure.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