When a calibrator is strong enough in the same window as the source is observed, we can simply determine a selfcal solution6.8 for the calibrator and apply this to the source:
Here is an annoted section of C-shell code exemplifying this:
set vis=cx011.abaur_co.2006nov21.1.miriad # check phase in W2 (narrow) and W3 (wide) # TODO: lingo wwong here: W2/W3 vs. p,A smauvplt vis=$vis device=/xs axis=time,phase line=wide,1,3 "select=-source(abaur)" smauvplt vis=$vis device=/xs axis=time,amp line=wide,1,3 "select=-source(abaur)" # check bandpass uvspec vis=$vis device=/xs "select=-auto,source(3c111)" axis=chan,amp interval=999 uvspec vis=$vis device=/xs "select=-auto,source(3c111)" axis=chan,pha interval=999 uvspec vis=$vis device=/xs "select=-auto,source(0530+135)" axis=chan,amp interval=999 uvspec vis=$vis device=/xs "select=-auto,source(0530+135)" axis=chan,pha interval=999 # use W5 , the narrow band in this case rm -rf 0530+135 uvcat vis=$vis "select=-auto,source(0530+135)" out=0530+135 selfcal vis=0530+135 refant=5 interval=5 line=wide,1,5,1 options=amp,apriori,noscale flux=4.6 gpplt vis=0530+135 device=1/xs yaxis=amp nxy=5,3 yrange=0,3 gpplt vis=0530+135 device=2/xs yaxis=pha nxy=5,3 yrange=-180,180 rm -rf abaur uvcat vis=$vis "select=-auto,source(abaur),win(5)" out=abaur puthd in=abaur/restfreq type=double value=115.271203 gpcopy vis=0530+135 out=abaur # copyhd in=0530+135 out=abaur items=gains,ngains,nsols,interval