Commit 5972feeb authored by Zhang Xin's avatar Zhang Xin
Browse files

fig ISSUE48: TARGET seg error

parent 4f8ea7d1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ def generatePrimaryHeader(xlen=9216, ylen=9232, pointing_id='00000001', pointing
    co = coord.SkyCoord(ra, dec, unit='deg')

    ra_hms = format(co.ra.hms.h, '02.0f') + format(co.ra.hms.m,
                                                   '02.0f') + format(co.ra.hms.s, '02.1f')
                                                   '02.0f') + format(co.ra.hms.s, '04.1f')
    dec_hms = format(co.dec.dms.d, '02.0f') + format(abs(co.dec.dms.m),
                                                     '02.0f') + format(abs(co.dec.dms.s), '02.0f')
    if dec >= 0: