Commit 83f3de50 authored by GZhao's avatar GZhao
Browse files

debug io target keyword preceision

parent 5ee85e61
Pipeline #8374 passed with stage
in 0 seconds
...@@ -300,7 +300,7 @@ def primary_hdu( ...@@ -300,7 +300,7 @@ def primary_hdu(
radec = SkyCoord(cstar['ra'], cstar['dec']) radec = SkyCoord(cstar['ra'], cstar['dec'])
ra_str = radec.ra.to_string(unit=u.hour, sep='', precision=1, pad=True) ra_str = radec.ra.to_string(unit=u.hour, sep='', precision=1, pad=True)
dec_str = radec.dec.to_string(unit=u.deg, sep='', alwayssign=True, pad=True) dec_str = radec.dec.to_string(unit=u.deg, sep='', precision=0, alwayssign=True, pad=True)
target_name = ra_str + dec_str target_name = ra_str + dec_str
header['OBJECT'] = cstar.get('name', target_name) header['OBJECT'] = cstar.get('name', target_name)
......
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