Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
xin
Browse files
Options
Download
Email Patches
Plain Diff
galay spec bug, split pos bug
parent
1b917613
release_v3.0
11-csst
29-darktime-exptime-shtopen-shtstat-t
current_stable_for_tests
develop
master
milky_way_extinction
new_sim
release_v1.0
release_v2.0
revert-914004c1
sim_scheduler
sls_psf_pca_convolve
wcs_test_gridGalaxy
v3.1.0
v3.0.0
v2.1.0
v2.0.0
v1.0.5
4 merge requests
!11
release_v1.0.5
,
!10
version 1.0.5
,
!8
Sls rot wcs
,
!7
Sls rot wcs
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ObservationSim/Config/ChipOutput.py
+5
-5
ObservationSim/Config/ChipOutput.py
ObservationSim/MockObject/Galaxy.py
+1
-1
ObservationSim/MockObject/Galaxy.py
with
6 additions
and
6 deletions
+6
-6
ObservationSim/Config/ChipOutput.py
+
5
-
5
View file @
a93829b0
...
@@ -68,13 +68,13 @@ class ChipOutput(object):
...
@@ -68,13 +68,13 @@ class ChipOutput(object):
self
.
cat
.
write
(
self
.
hdr
)
self
.
cat
.
write
(
self
.
hdr
)
def
cat_add_obj
(
self
,
obj
,
pos_img
,
pos_shear
):
def
cat_add_obj
(
self
,
obj
,
pos_img
,
pos_shear
):
ximg
=
pos_img
.
x
-
self
.
chip
.
bound
.
xmin
+
1.0
#
ximg = pos_img.x - self.chip.bound.xmin + 1.0
yimg
=
pos_img
.
y
-
self
.
chip
.
bound
.
ymin
+
1.0
#
yimg = pos_img.y - self.chip.bound.ymin + 1.0
print
(
'-------------debug-----------------'
)
#
print('-------------debug-----------------')
print
(
'from global'
,
ximg
,
yimg
)
#
print('from global',ximg, yimg)
ximg
=
obj
.
real_pos
.
x
+
1.0
ximg
=
obj
.
real_pos
.
x
+
1.0
yimg
=
obj
.
real_pos
.
y
+
1.0
yimg
=
obj
.
real_pos
.
y
+
1.0
print
(
'from loacl'
,
ximg
,
yimg
)
#
print('from loacl',ximg, yimg)
line
=
self
.
fmt
%
(
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
,
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
,
...
...
This diff is collapsed.
Click to expand it.
ObservationSim/MockObject/Galaxy.py
+
1
-
1
View file @
a93829b0
...
@@ -272,7 +272,7 @@ class Galaxy(MockObject):
...
@@ -272,7 +272,7 @@ class Galaxy(MockObject):
gsp
=
galsim
.
GSParams
(
folding_threshold
=
folding_threshold
)
gsp
=
galsim
.
GSParams
(
folding_threshold
=
folding_threshold
)
# nphotons_sum = 0
# nphotons_sum = 0
xOrderSigPlus
=
{
'A'
:
1.3909419820029296
,
'B'
:
1.4760376591236062
,
'C'
:
4.035447379743442
,
'D'
:
5.5684364343742825
,
'E'
:
16.260021029735388
}
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
)):
for
i
in
range
(
len
(
bandpass_list
)):
bandpass
=
bandpass_list
[
i
]
bandpass
=
bandpass_list
[
i
]
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets