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
Liu Dezi
csst_msc_sim
Commits
6904f2fc
Commit
6904f2fc
authored
2 years ago
by
xin
Browse files
Options
Download
Email Patches
Plain Diff
fix pointing bug in wcs for astrometry
parent
a93829b0
release_v2.0
11-csst
29-darktime-exptime-shtopen-shtstat-t
C6_codes
current_stable_for_tests
develop
fitsStamp
liudezi-develop-patch-58263
master
new_sim
new_sim_sls
release_v1.0
sim_scheduler
sls_rot_wcs
staylight_header
wcs_test
wcs_test_gridGalaxy
v2.1.0
v2.0.0
v1.0.5
internal_test_20240425
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ObservationSim/ObservationSim.py
+4
-4
ObservationSim/ObservationSim.py
with
4 additions
and
4 deletions
+4
-4
ObservationSim/ObservationSim.py
+
4
-
4
View file @
6904f2fc
...
@@ -258,11 +258,11 @@ class Observation(object):
...
@@ -258,11 +258,11 @@ class Observation(object):
raise
ValueError
(
"Unknown shear input"
)
raise
ValueError
(
"Unknown shear input"
)
# chip_output.logger.info("debug point #4")
# chip_output.logger.info("debug point #4")
h
_ext
=
generateExtensionHeader
(
h
eader_wcs
=
generateExtensionHeader
(
xlen
=
chip
.
npix_x
,
xlen
=
chip
.
npix_x
,
ylen
=
chip
.
npix_y
,
ylen
=
chip
.
npix_y
,
ra
=
pointing
.
ra
,
ra
=
ra_cen
,
dec
=
pointing
.
dec
,
dec
=
dec_cen
,
pa
=
pointing
.
img_pa
.
deg
,
pa
=
pointing
.
img_pa
.
deg
,
gain
=
chip
.
gain
,
gain
=
chip
.
gain
,
readout
=
chip
.
read_noise
,
readout
=
chip
.
read_noise
,
...
@@ -273,7 +273,7 @@ class Observation(object):
...
@@ -273,7 +273,7 @@ class Observation(object):
col_num
=
chip
.
colID
,
col_num
=
chip
.
colID
,
extName
=
'raw'
)
extName
=
'raw'
)
pos_img
,
offset
,
local_wcs
,
real_wcs
=
obj
.
getPosImg_Offset_WCS
(
img
=
chip
.
img
,
fdmodel
=
self
.
fd_model
,
chip
=
chip
,
verbose
=
False
,
img_header
=
h
_ext
)
pos_img
,
offset
,
local_wcs
,
real_wcs
=
obj
.
getPosImg_Offset_WCS
(
img
=
chip
.
img
,
fdmodel
=
self
.
fd_model
,
chip
=
chip
,
verbose
=
False
,
img_header
=
h
eader_wcs
)
if
pos_img
.
x
==
-
1
or
pos_img
.
y
==
-
1
:
if
pos_img
.
x
==
-
1
or
pos_img
.
y
==
-
1
:
# Exclude object which is outside the chip area (after field distortion)
# Exclude object which is outside the chip area (after field distortion)
# print("obj missed!!")
# print("obj missed!!")
...
...
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