Commits

Brian Kent authored 03006346897 Merge
Pull request #984: PIPE-1726-priorcals-antpos-correction

Merge in PIPE/pipeline from PIPE-1726-antenna-position-offsets to main * commit '57021a492a2ca5c6443ce5ef0a946216c9e4cd78': PIPE-1726. Update to VLA antenna position function in priorcals.py
No tags

pipeline/hifv/tasks/priorcals/priorcals.py

Modified
191 191 ant_num_stas[ant_ind][5] = 0.0
192 192 if put_time > obs_time and not ant_num_stas[ant_ind][6] and pad == ant_num_stas[ant_ind][2]:
193 193 # it's the right antenna/pad; add the offsets to those already accumulated
194 194 ant_num_stas[ant_ind][3] += Bx
195 195 ant_num_stas[ant_ind][4] += By
196 196 ant_num_stas[ant_ind][5] += Bz
197 197
198 198 ants = []
199 199 parms = []
200 200 for ant_num_sta in ant_num_stas:
201 - if ant_num_sta[3] != 0.0 or ant_num_sta[4] != 0.0 or ant_num_sta[3] != 0.0:
201 + if ant_num_sta[3] != 0.0 or ant_num_sta[4] != 0.0 or ant_num_sta[5] != 0.0:
202 202 if print_offsets:
203 203 LOG.info("Offsets for antenna %4s on pad %3s: %8.5f %8.5f %8.5f" %
204 204 (ant_num_sta[1], ant_num_sta[2], ant_num_sta[3], ant_num_sta[4], ant_num_sta[5]))
205 205 ants.append(ant_num_sta[1])
206 206 parms.append(ant_num_sta[3])
207 207 parms.append(ant_num_sta[4])
208 208 parms.append(ant_num_sta[5])
209 209 if len(parms) == 0 and print_offsets:
210 210 LOG.info("No offsets found for this MS")
211 211 ant_string = ','.join(["%s" % ii for ii in ants])

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut