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
Liu Dezi
csst_msc_sim
Commits
6904f2fc
Commit
6904f2fc
authored
Sep 30, 2022
by
xin
Browse files
fix pointing bug in wcs for astrometry
parent
a93829b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/ObservationSim.py
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!!")
...
...
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