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
a93829b0
Commit
a93829b0
authored
Sep 30, 2022
by
xin
Browse files
galay spec bug, split pos bug
parent
1b917613
Changes
2
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Config/ChipOutput.py
View file @
a93829b0
...
...
@@ -68,13 +68,13 @@ class ChipOutput(object):
self
.
cat
.
write
(
self
.
hdr
)
def
cat_add_obj
(
self
,
obj
,
pos_img
,
pos_shear
):
ximg
=
pos_img
.
x
-
self
.
chip
.
bound
.
xmin
+
1.0
yimg
=
pos_img
.
y
-
self
.
chip
.
bound
.
ymin
+
1.0
print
(
'-------------debug-----------------'
)
print
(
'from global'
,
ximg
,
yimg
)
#
ximg = pos_img.x - self.chip.bound.xmin + 1.0
#
yimg = pos_img.y - self.chip.bound.ymin + 1.0
#
print('-------------debug-----------------')
#
print('from global',ximg, yimg)
ximg
=
obj
.
real_pos
.
x
+
1.0
yimg
=
obj
.
real_pos
.
y
+
1.0
print
(
'from loacl'
,
ximg
,
yimg
)
#
print('from loacl',ximg, yimg)
line
=
self
.
fmt
%
(
obj
.
id
,
int
(
self
.
chipLabel
),
self
.
filt
.
filter_type
,
ximg
,
yimg
,
obj
.
ra
,
obj
.
dec
,
obj
.
ra_orig
,
obj
.
dec_orig
,
obj
.
z
,
obj
.
getMagFilter
(
self
.
filt
),
obj
.
type
,
...
...
ObservationSim/MockObject/Galaxy.py
View file @
a93829b0
...
...
@@ -272,7 +272,7 @@ class Galaxy(MockObject):
gsp
=
galsim
.
GSParams
(
folding_threshold
=
folding_threshold
)
# nphotons_sum = 0
xOrderSigPlus
=
{
'A'
:
1.3909419820029296
,
'B'
:
1.4760376591236062
,
'C'
:
4.035447379743442
,
'D'
:
5.5684364343742825
,
'E'
:
16.260021029735388
}
grating_split_pos_chip
=
chip
.
bound
.
xmin
+
grating_split_pos
grating_split_pos_chip
=
0
+
grating_split_pos
for
i
in
range
(
len
(
bandpass_list
)):
bandpass
=
bandpass_list
[
i
]
...
...
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