Commits

Takahiro Tsutsumi authored 899f075295f
Added missing casalog output to report the antenna offests
No tags

casa5/gcwrap/python/scripts/correct_ant_posns_evla.py

Modified
192 192 ant_num_stas[ant_ind][4] += By
193 193 ant_num_stas[ant_ind][5] += Bz
194 194
195 195 ants = []
196 196 parms = []
197 197 for ant_num_sta in ant_num_stas:
198 198 if ant_num_sta[3] != 0.0 or ant_num_sta[4] != 0.0 or ant_num_sta[3] != 0.0:
199 199 if print_offsets:
200 200 print("Offsets for antenna %4s on pad %3s: %8.5f %8.5f %8.5f" % \
201 201 (ant_num_sta[1], ant_num_sta[2], ant_num_sta[3], ant_num_sta[4], ant_num_sta[5]))
202 + else:
203 + casalog.post("offsets for antenna %4s : %8.5f %8.5f %8.5f" % \
204 + (ant_num_sta[1], ant_num_sta[3], ant_num_sta[4], ant_num_sta[5]))
202 205 ants.append(ant_num_sta[1])
203 206 parms.append(ant_num_sta[3])
204 207 parms.append(ant_num_sta[4])
205 208 parms.append(ant_num_sta[5])
206 209 if len(parms) == 0 and print_offsets:
207 210 print("No offsets found for this MS")
208 211 ant_string = ','.join(["%s" % ii for ii in ants])
209 212 return [ 0, ant_string, parms ]
210 213
211 214 ######################################################################

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

Add shortcut