askap-craco / CELEBI

The CRAFT Effortless Localisation and Enhanced Burst Inspection Pipeline
MIT License
4 stars 2 forks source link

Change hard-coded reference antennas in calibration #469

Open kgourdji opened 1 year ago

kgourdji commented 1 year ago

calibrateFRB.py uses ant 3 as reference (hard coded, line 502.) Antenna 3 is also specified in process image_field (calibration.nf, line 308). Because we have changed antenna numbering convention, this no longer grabs the third antenna in list of antennas available, but rather assigns ak03 as reference antenna, which is a problem if it doesn’t exist as AIPS won't derive calibration solutions to transfer. Suggested fix is to have a list of preferred antennas (exclude inner and outer antennas from that list) and grab the first antenna in the list that is present in the data. Also implement an option for the user to specify an antenna.