applybeamtomodelcolumn seems not to work in specific case of gaincal
Created by: aroffringa
Jishnu was calibrating a set with gaincal, calibrating the visibilities from the DATA
column of some measurement set msin, to a different msout. The msin also had a MODEL_DATA
column which he was using as the model data for the calibration. He also used gaincal.applysolution=true
, but I don't know if that's relevant.
We were expecting the DATA
column of the msout to have the calibrated data. Instead, the DATA
column of the output ms became a copy of the MODEL_DATA
column. This only happens when applybeamtomodelcolumn=true
; setting it to false
gave the expected result.
There might be a technical reason for it, but it is quite confusing, so if it is technologically not possible it's better to report an error.
An example parset would look like this:
msin=input.ms
msin.datacolumn=DATA
msout=output.ms
msout.datacolumn=DATA
steps=[gaincal]
gaincal.caltype=fulljones
gaincal.parmdb=solutions.parmdb
gaincal.solint=1
gaincal.nchan=1
gaincal.usemodelcolumn=true
gaincal.applybeamtomodelcolumn=true
gaincal.applysolution=true
We also used a baseline cut, but I don't think that is relevant.