Commit 6904f2fc authored by xin's avatar xin
Browse files

fix pointing bug in wcs for astrometry

parent a93829b0
...@@ -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( header_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=header_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!!")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment