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_mci_sim
Commits
86564d14
Commit
86564d14
authored
May 08, 2024
by
Yan Zhaojun
Browse files
debug
parent
6215ea38
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
86564d14
...
@@ -2663,19 +2663,9 @@ class MCIsimulator():
...
@@ -2663,19 +2663,9 @@ class MCIsimulator():
continue
continue
nlayccd
=
nlayccd
+
1
nlayccd
=
nlayccd
+
1
####### test code only ########
# img['g']=lensed_images_g
# img['r']=lensed_images_g
# img['i']=lensed_images_g
# print('------------------------------------')
# print('galaxy mag=',srcs_cat[k1].header['magu'] ,srcs_cat[k1].header['magg'] ,srcs_cat[k1].header['magr'],srcs_cat[k1].header['magi'],srcs_cat[k1].header['magz'])
# print('total photons=', intscales['g'],intscales['r'],intscales['i'])
# print('k1 =',k1)
################################################
################################################
gx
=
dict
()
gx
=
dict
()
...
@@ -2690,8 +2680,6 @@ class MCIsimulator():
...
@@ -2690,8 +2680,6 @@ class MCIsimulator():
######################################################################
######################################################################
gal_ra
.
append
(
np
.
float64
(
galRa
/
3600.0
))
gal_ra
.
append
(
np
.
float64
(
galRa
/
3600.0
))
gal_dec
.
append
(
np
.
float64
(
galDec
/
3600.0
))
gal_dec
.
append
(
np
.
float64
(
galDec
/
3600.0
))
...
@@ -2718,12 +2706,6 @@ class MCIsimulator():
...
@@ -2718,12 +2706,6 @@ class MCIsimulator():
if
nlayccd
%
1000
==
0
:
if
nlayccd
%
1000
==
0
:
self
.
log
.
info
(
'Galaxy number on CCD is = %i'
%
(
nlayccd
))
self
.
log
.
info
(
'Galaxy number on CCD is = %i'
%
(
nlayccd
))
# gal_magu.append(np.float64(self.star['umag'][j]))
# gal_magg.append(np.float64(self.star['gmag'][j]))
# gal_magr.append(np.float64(self.star['rmag'][j]))
# gal_magi.append(np.float64(self.star['imag'][j]))
# gal_magz.append(np.float64(self.star['zmag'][j]))
psf
=
dict
()
psf
=
dict
()
...
...
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