Loading csst/msc/calib_pos.py +5 −3 Original line number Diff line number Diff line Loading @@ -192,7 +192,8 @@ class CsstProcMscPositionCalibration(CsstProcessor): outcat: filename of the cross matched catalog: ref.cat """ outcat = self.dm.pc_ref_cat outcat = self.dm.pc_combined_file("gaia","fits") refcat = self.dm.pc_ref_cat fname = self.dm.pc_combined_file("img","fits") hdu = fits.open(fname) header1 = hdu[0].header Loading Loading @@ -253,14 +254,15 @@ class CsstProcMscPositionCalibration(CsstProcessor): refcat.rename_column('ra_error', 'ERRA_WORLD') refcat.rename_column('dec_error', 'ERRB_WORLD') refcat.rename_column('phot_g_mean_mag', 'MAG') if outcat: refcat.write(outcat, format='fits', overwrite=True) hdu = refcat hdu = fits.open(outcat) hdu1 = self.convert_hdu_to_ldac(hdu) hdup = fits.PrimaryHDU() hdu = hdu1[0] tbhdu = hdu1[1] thdulist = fits.HDUList([hdup, hdu, tbhdu]) thdulist.writeto(outcat) thdulist.writeto(refcat) print('##################### end #####################') Loading csst/msc/data_manager.py +1 −1 Original line number Diff line number Diff line Loading @@ -171,7 +171,7 @@ class CsstMscDataManager: Parameters ---------- suffix: {"img", "wht", "flg", "cat", "head"} {"img", "wht", "flg", "cat", "head", "gaia"} ext: {"fits", "head", "ahead" } Loading Loading
csst/msc/calib_pos.py +5 −3 Original line number Diff line number Diff line Loading @@ -192,7 +192,8 @@ class CsstProcMscPositionCalibration(CsstProcessor): outcat: filename of the cross matched catalog: ref.cat """ outcat = self.dm.pc_ref_cat outcat = self.dm.pc_combined_file("gaia","fits") refcat = self.dm.pc_ref_cat fname = self.dm.pc_combined_file("img","fits") hdu = fits.open(fname) header1 = hdu[0].header Loading Loading @@ -253,14 +254,15 @@ class CsstProcMscPositionCalibration(CsstProcessor): refcat.rename_column('ra_error', 'ERRA_WORLD') refcat.rename_column('dec_error', 'ERRB_WORLD') refcat.rename_column('phot_g_mean_mag', 'MAG') if outcat: refcat.write(outcat, format='fits', overwrite=True) hdu = refcat hdu = fits.open(outcat) hdu1 = self.convert_hdu_to_ldac(hdu) hdup = fits.PrimaryHDU() hdu = hdu1[0] tbhdu = hdu1[1] thdulist = fits.HDUList([hdup, hdu, tbhdu]) thdulist.writeto(outcat) thdulist.writeto(refcat) print('##################### end #####################') Loading
csst/msc/data_manager.py +1 −1 Original line number Diff line number Diff line Loading @@ -171,7 +171,7 @@ class CsstMscDataManager: Parameters ---------- suffix: {"img", "wht", "flg", "cat", "head"} {"img", "wht", "flg", "cat", "head", "gaia"} ext: {"fits", "head", "ahead" } Loading