Commit a5e0e68b authored by niejuzi's avatar niejuzi
Browse files

update code

parent f6918de3
......@@ -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)
......
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