! Started logfile: 2021+317_X.log on Thu Apr 17 14:08:29 2008
observe 2021+317_X.edt
! Reading UV FITS file: 2021+317_X.edt
! AN table 1: 33 integrations on 136 of 136 possible baselines.
! AN table 2: 138 integrations on 136 of 136 possible baselines.
! AN table 3: 6 integrations on 136 of 136 possible baselines.
! AN table 4: 39 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0631127 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2021+317
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1142 lines of history.
! 
! Reading 7416 visibilities.
![@gonzo7-0.1 2021+317_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 3.6/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.100x0.100 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 385 telescope corrections were flagged in sub-array 1.
!  A total of 1915 telescope corrections were flagged in sub-array 2.
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  A total of 580 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 385 telescope corrections were flagged in sub-array 1.
!  A total of 1915 telescope corrections were flagged in sub-array 2.
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  A total of 580 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 385 telescope corrections were flagged in sub-array 1.
!  A total of 1924 telescope corrections were flagged in sub-array 2.
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  A total of 580 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 388 telescope corrections were flagged in sub-array 1.
!  A total of 2035 telescope corrections were flagged in sub-array 2.
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  A total of 580 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.560334Jy  sigma=0.008863
! Fit after  self-cal, rms=0.548225Jy  sigma=0.008654
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvweight 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6147 mas, bmaj=1.112 mas, bpa=3.581 degrees
! Estimated noise=1064.67 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.478366 Jy
! Total flux subtracted in 50 components = 0.478366 Jy
! Clean residual min=-0.056235 max=0.195692 Jy/beam
! Clean residual mean=-0.001397 rms=0.017774 Jy/beam
! Combined flux in latest and established models = 0.478366 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.478366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.440573Jy  sigma=0.005918
! Fit after  self-cal, rms=0.440543Jy  sigma=0.005917
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.224369 Jy
! Total flux subtracted in 50 components = 0.224369 Jy
! Clean residual min=-0.040954 max=0.113963 Jy/beam
! Clean residual mean=-0.002010 rms=0.011843 Jy/beam
! Combined flux in latest and established models = 0.702735 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 40 components and 0.702735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325066Jy  sigma=0.004959
! Fit after  self-cal, rms=0.324895Jy  sigma=0.004958
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.135786 Jy
! Total flux subtracted in 50 components = 0.135786 Jy
! Clean residual min=-0.032085 max=0.071375 Jy/beam
! Clean residual mean=-0.002379 rms=0.008544 Jy/beam
! Combined flux in latest and established models = 0.838521 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 47 components and 0.838521 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271198Jy  sigma=0.004793
! Fit after  self-cal, rms=0.271122Jy  sigma=0.004793
! Inverting map 
! Added new window around map position (-0.6, -0.3).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0847909 Jy
! Total flux subtracted in 50 components = 0.0847909 Jy
! Clean residual min=-0.026885 max=0.045313 Jy/beam
! Clean residual mean=-0.002608 rms=0.006771 Jy/beam
! Combined flux in latest and established models = 0.923312 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 56 components and 0.923312 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247686Jy  sigma=0.004869
! Fit after  self-cal, rms=0.247589Jy  sigma=0.004869
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Uniform Weighting CLEAN ***"
! *** Finished Uniform Weighting CLEAN *** 
print "****************************************"
! **************************************** 
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7489 mas, bmaj=1.271 mas, bpa=1.063 degrees
! Estimated noise=659.451 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0253246 Jy
! Component: 100  -  total flux cleaned = 0.0267598 Jy
! Total flux subtracted in 100 components = 0.0267598 Jy
! Clean residual min=-0.070499 max=0.016237 Jy/beam
! Clean residual mean=-0.041017 rms=0.009316 Jy/beam
! Combined flux in latest and established models = 0.950072 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 72 components and 0.950072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240829Jy  sigma=0.004902
! Fit after  self-cal, rms=0.240760Jy  sigma=0.004902
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     HN        1.00*    KB        1.00*    
!   KK        0.93     KP        1.02     LA        0.97     MK        0.96     
!   NL        1.03     NY        1.00*    OV        0.86     PT        0.91     
!   SC        0.97     TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.68     HN        0.98     KB        1.86     
!   KK        0.79     KP        0.96     LA        0.93     MK        0.89     
!   NL        0.93     NY        1.00*    OV        1.00*    PT        0.98     
!   SC        1.15     TS       10.61     WF        1.00*    WZ        1.00*    
!   ZC        0.84     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.65     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.95     LA        0.97     MK        1.00*    
!   NL        1.00     NY        1.00*    OV        0.92     PT        0.96     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.94     HN        1.00     KB        1.00*    
!   KK        1.00*    KP        0.95     LA        0.93     MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.00*    PT        0.94     
!   SC        0.94     TS        1.00*    WF        0.88     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     HN        1.00*    KB        1.00*    
!   KK        0.83     KP        0.97     LA        0.97     MK        1.00     
!   NL        1.06     NY        1.00*    OV        0.86     PT        0.95     
!   SC        0.96     TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        0.69     HN        0.97     KB        1.94     
!   KK        0.75     KP        0.93     LA        0.96     MK        0.93     
!   NL        0.94     NY        1.00*    OV        1.00*    PT        0.97     
!   SC        1.16     TS        9.61     WF        1.00*    WZ        1.00*    
!   ZC        0.81     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.65     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.97     LA        0.99     MK        1.00*    
!   NL        1.04     NY        1.00*    OV        0.93     PT        0.96     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.93     HN        1.01     KB        1.00*    
!   KK        1.00*    KP        0.94     LA        0.94     MK        1.00*    
!   NL        0.99     NY        1.00*    OV        1.00*    PT        0.94     
!   SC        0.92     TS        1.00*    WF        0.90     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.98     HN        1.00*    KB        1.00*    
!   KK        0.95     KP        1.02     LA        0.97     MK        0.92     
!   NL        1.05     NY        1.00*    OV        0.84     PT        0.94     
!   SC        0.92     TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.69     HN        0.98     KB        1.56     
!   KK        0.97     KP        0.97     LA        0.97     MK        0.91     
!   NL        0.93     NY        1.00*    OV        1.00*    PT        1.00     
!   SC        1.24     TS       11.30     WF        1.00*    WZ        1.00*    
!   ZC        0.94     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.65     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        1.01     LA        0.96     MK        1.00*    
!   NL        1.04     NY        1.00*    OV        0.91     PT        0.95     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.97     HN        1.01     KB        1.00*    
!   KK        1.00*    KP        0.94     LA        0.94     MK        1.00*    
!   NL        1.00     NY        1.00*    OV        1.00*    PT        0.94     
!   SC        0.87     TS        1.00*    WF        0.90     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.99     HN        1.00*    KB        1.00*    
!   KK        0.91     KP        1.06     LA        0.97     MK        0.95     
!   NL        1.04     NY        1.00*    OV        0.82     PT        0.94     
!   SC        0.91     TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.72     HN        0.96     KB        1.77     
!   KK        0.89     KP        0.96     LA        0.99     MK        0.87     
!   NL        0.93     NY        1.00*    OV        1.00*    PT        0.98     
!   SC        1.27     TS       10.39     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.67     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.97     LA        1.02     MK        1.00*    
!   NL        1.06     NY        1.00*    OV        0.96     PT        0.96     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.94     HN        1.02     KB        1.00*    
!   KK        1.00*    KP        0.95     LA        0.94     MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.00*    PT        0.91     
!   SC        0.89     TS        1.00*    WF        0.97     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Fit before self-cal, rms=0.240760Jy  sigma=0.004902
! Fit after  self-cal, rms=0.215257Jy  sigma=0.001515
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7988 mas, bmaj=1.333 mas, bpa=3.296 degrees
! Estimated noise=712.196 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00411178 Jy
! Component: 100  -  total flux cleaned = 0.00495767 Jy
! Total flux subtracted in 100 components = 0.00495767 Jy
! Clean residual min=-0.020683 max=0.024689 Jy/beam
! Clean residual mean=0.000260 rms=0.004451 Jy/beam
! Combined flux in latest and established models = 0.955029 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 79 components and 0.955029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213694Jy  sigma=0.001495
! Fit after  self-cal, rms=0.213615Jy  sigma=0.001492
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-1, -7.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0116522 Jy
! Component: 100  -  total flux cleaned = 0.0115808 Jy
! Total flux subtracted in 100 components = 0.0115808 Jy
! Clean residual min=-0.019287 max=0.017811 Jy/beam
! Clean residual mean=0.000208 rms=0.004025 Jy/beam
! Combined flux in latest and established models = 0.96661 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 99 components and 0.96661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209165Jy  sigma=0.001437
! Fit after  self-cal, rms=0.354604Jy  sigma=0.001135
! Inverting map and beam 
! Estimated beam: bmin=0.7964 mas, bmaj=1.344 mas, bpa=2.042 degrees
! Estimated noise=713.89 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0043609 Jy
! Component: 100  -  total flux cleaned = 0.00646165 Jy
! Total flux subtracted in 100 components = 0.00646165 Jy
! Clean residual min=-0.005931 max=0.006999 Jy/beam
! Clean residual mean=0.000149 rms=0.001460 Jy/beam
! Combined flux in latest and established models = 0.973072 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 104 components and 0.973072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353795Jy  sigma=0.001126
! Fit after  self-cal, rms=0.354163Jy  sigma=0.001124
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2021+317_X
! Writing UV FITS file: 2021+317_X.uvf
! Writing 104 model components to file: 2021+317_X.mod
! wwins: Wrote 3 windows to 2021+317_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7964 x 1.344 at 2.042 degrees (North through East)
! Clean map  min=-0.0061916  max=0.593 Jy/beam
! Writing clean map to FITS file: 2021+317_X.fits
! Writing difmap environment to: 2021+317_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2021+317_X]
device 2021+317_Xuv.ps/vps,1,2
! Attempting to open device: '2021+317_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2021+317_Xim.ps/vps
! Attempting to open device: '2021+317_Xim.ps/vps'
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
loglevs -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=0.7964 mas, bmaj=1.344 mas, bpa=2.042 degrees
! Estimated noise=713.89 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7964 x 1.344 at 2.042 degrees (North through East)
! Clean map  min=-0.0061916  max=0.593 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 2021+317_X.log closed on Thu Apr 17 14:08:52 2008