There is some complication for moving sources (use PL output coords):
For JIGGLE:
This routine tries to deal with the different versions of SCUCD (only affects SCAN/MAP data). For version 0:
RA/Decs of the scan were incorrectly stored as RJ. They are converted to RD before further processing. The coordinate frame of RA1, RA2, DEC1 and DEC2 fro SCAN/MAP depends on the CENTRE_COORDS of the observation. For CENTRE=RD the scan positions are in RD; for CENTRE=RB,RJ,GA the scans are in RJ and for centre=AZ the scans are in AZ. (SCULIB_SCAN_2_RD)
For version 1.0:
A bug was introduced concerning the calculation of the ends of the scans. The bug is recreated and inverted in order to compensate. (SCULIB_FIX_SCAN_V10)
Also, LO chopping for jiggle maps was broken until 19980730 such that the initial chop pa was calculated in Az but never updated as the sky rotated. This fix is only important for SCUBA2MEM where the positions of the off-beams are returned.
SURF Programming Interface