Loading csst/msc/calib_pos.py +3 −13 Original line number Diff line number Diff line Loading @@ -78,21 +78,11 @@ class CsstProcMscPositionCalibration(CsstProcessor): ------- The photometric catalog, with position and flux, e.g.,MSC_210304093000_0000000_06_img.cat """ cat_list = [] fn_list = [] print(ccd_ids,type(ccd_ids)) for this_ccd_id in ccd_ids: print(type(this_ccd_id),this_ccd_id) this_ccd_id=float(this_ccd_id) this_ccd_id=int(this_ccd_id) sex_cat = self.dm.l1_sci(ccd_id = this_ccd_id, suffix="img", ext="cat") fn = self.dm.l1_sci(ccd_id=this_ccd_id, suffix="img", ext="fits") cat_list.append(sex_cat) fn_list.append(fn) sex_cat = self.dm.l1_sci(ccd_id = ccd_ids, suffix="img", ext="cat") fn = self.dm.l1_sci(ccd_id = ccd_ids, suffix="img", ext="fits") config_sextractor = CONFIG_PATH + "new_csst_realtime.no.weight.sex" sex_comd1 = 'sex -c ' + config_sextractor + ' ' sex_comd2 = fn_list + ' -CATALOG_NAME ' + cat_list sex_comd2 = fn + ' -CATALOG_NAME ' + sex_cat sex_comd3 = ' -PARAMETERS_NAME ' + CONFIG_PATH + 'csst_realtime.param' + ' -FILTER_NAME ' + CONFIG_PATH + 'csst_realtime.conv' + ' -STARNNW_NAME ' + CONFIG_PATH + 'csst_realtime.nnw' sex_comd = sex_comd1 + sex_comd2 + sex_comd3 print(sex_comd) Loading Loading
csst/msc/calib_pos.py +3 −13 Original line number Diff line number Diff line Loading @@ -78,21 +78,11 @@ class CsstProcMscPositionCalibration(CsstProcessor): ------- The photometric catalog, with position and flux, e.g.,MSC_210304093000_0000000_06_img.cat """ cat_list = [] fn_list = [] print(ccd_ids,type(ccd_ids)) for this_ccd_id in ccd_ids: print(type(this_ccd_id),this_ccd_id) this_ccd_id=float(this_ccd_id) this_ccd_id=int(this_ccd_id) sex_cat = self.dm.l1_sci(ccd_id = this_ccd_id, suffix="img", ext="cat") fn = self.dm.l1_sci(ccd_id=this_ccd_id, suffix="img", ext="fits") cat_list.append(sex_cat) fn_list.append(fn) sex_cat = self.dm.l1_sci(ccd_id = ccd_ids, suffix="img", ext="cat") fn = self.dm.l1_sci(ccd_id = ccd_ids, suffix="img", ext="fits") config_sextractor = CONFIG_PATH + "new_csst_realtime.no.weight.sex" sex_comd1 = 'sex -c ' + config_sextractor + ' ' sex_comd2 = fn_list + ' -CATALOG_NAME ' + cat_list sex_comd2 = fn + ' -CATALOG_NAME ' + sex_cat sex_comd3 = ' -PARAMETERS_NAME ' + CONFIG_PATH + 'csst_realtime.param' + ' -FILTER_NAME ' + CONFIG_PATH + 'csst_realtime.conv' + ' -STARNNW_NAME ' + CONFIG_PATH + 'csst_realtime.nnw' sex_comd = sex_comd1 + sex_comd2 + sex_comd3 print(sex_comd) Loading