! Started logfile: 0656+082_X.log on Thu Apr 17 13:51:11 2008
observe 0656+082_X.edt
! Reading UV FITS file: 0656+082_X.edt
! AN table 1: 21 integrations on 136 of 136 possible baselines.
! AN table 2: 42 integrations on 136 of 136 possible baselines.
! AN table 3: 175 integrations on 136 of 136 possible baselines.
! AN table 4: 22 integrations on 136 of 136 possible baselines.
! AN table 5: 11 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0322064 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0656+082
! 
! 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 4748 visibilities.
![@gonzo7-0.1 0656+082_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 243 telescope corrections were flagged in sub-array 1.
!  A total of 702 telescope corrections were flagged in sub-array 2.
!  A total of 2700 telescope corrections were flagged in sub-array 3.
!  A total of 341 telescope corrections were flagged in sub-array 4.
!  A total of 163 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  A total of 702 telescope corrections were flagged in sub-array 2.
!  A total of 2697 telescope corrections were flagged in sub-array 3.
!  A total of 341 telescope corrections were flagged in sub-array 4.
!  A total of 160 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  A total of 714 telescope corrections were flagged in sub-array 2.
!  A total of 2784 telescope corrections were flagged in sub-array 3.
!  A total of 344 telescope corrections were flagged in sub-array 4.
!  A total of 160 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  A total of 714 telescope corrections were flagged in sub-array 2.
!  A total of 2784 telescope corrections were flagged in sub-array 3.
!  A total of 341 telescope corrections were flagged in sub-array 4.
!  A total of 160 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.590830Jy  sigma=0.009649
! Fit after  self-cal, rms=0.573561Jy  sigma=0.007400
! 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.7684 mas, bmaj=1.69 mas, bpa=-4.311 degrees
! Estimated noise=1636.64 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.329473 Jy
! Total flux subtracted in 50 components = 0.329473 Jy
! Clean residual min=-0.028503 max=0.094923 Jy/beam
! Clean residual mean=0.000567 rms=0.009046 Jy/beam
! Combined flux in latest and established models = 0.329473 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.329473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208290Jy  sigma=0.002444
! Fit after  self-cal, rms=0.208278Jy  sigma=0.002444
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0890736 Jy
! Total flux subtracted in 50 components = 0.0890736 Jy
! Clean residual min=-0.022533 max=0.034524 Jy/beam
! Clean residual mean=0.000420 rms=0.005864 Jy/beam
! Combined flux in latest and established models = 0.418546 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 12 components and 0.418546 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169310Jy  sigma=0.001809
! Fit after  self-cal, rms=0.169291Jy  sigma=0.001809
! 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=1.007 mas, bmaj=2.22 mas, bpa=0.9643 degrees
! Estimated noise=973.306 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.0482307 Jy
! Component: 100  -  total flux cleaned = 0.0684782 Jy
! Total flux subtracted in 100 components = 0.0684782 Jy
! Clean residual min=-0.011129 max=0.025535 Jy/beam
! Clean residual mean=0.005504 rms=0.004596 Jy/beam
! Combined flux in latest and established models = 0.487024 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 43 components and 0.487024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158175Jy  sigma=0.001590
! Fit after  self-cal, rms=0.158061Jy  sigma=0.001589
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.05     HN        1.00*    KB        1.00*    
!   KK        0.95     KP        1.07     LA        1.02     MK        0.99     
!   NL        1.07     NY        1.00*    OV        1.26     PT        0.97     
!   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 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.09     FD        0.71     HN        0.96     KB        0.98     
!   KK        0.89     KP        1.02     LA        0.96     MK        0.96     
!   NL        0.94     NY        1.00*    OV        1.14     PT        0.97     
!   SC        1.03     TS        0.89     WF        0.98     WZ        1.00*    
!   ZC        1.10     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.72     
!   KK        1.11     KP        1.00*    LA        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.68     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.05     HN        1.00*    KB        1.00*    
!   KK        0.97     KP        1.01     LA        1.02     MK        1.08     
!   NL        1.13     NY        1.00*    OV        1.27     PT        1.02     
!   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 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.11     FD        0.71     HN        0.98     KB        0.97     
!   KK        0.87     KP        0.96     LA        1.02     MK        1.00     
!   NL        0.97     NY        1.00*    OV        1.13     PT        0.97     
!   SC        1.02     TS        0.91     WF        1.07     WZ        1.00*    
!   ZC        1.07     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.70     
!   KK        1.08     KP        1.00*    LA        1.00*    MK        0.90     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.68     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.08     HN        1.00*    KB        1.00*    
!   KK        0.98     KP        1.08     LA        1.02     MK        1.02     
!   NL        1.04     NY        1.00*    OV        1.27     PT        0.98     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.11     FD        0.72     HN        0.97     KB        1.00*    
!   KK        1.00     KP        1.00     LA        1.00     MK        0.98     
!   NL        0.99     NY        1.00*    OV        1.40     PT        0.99     
!   SC        0.97     TS        1.00*    WF        0.98     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.69     
!   KK        1.21     KP        1.00*    LA        1.00*    MK        0.56     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.72     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.14     FD        1.04     HN        1.00*    KB        1.00*    
!   KK        0.95     KP        1.11     LA        1.03     MK        1.05     
!   NL        1.10     NY        1.00*    OV        1.30     PT        0.99     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.71     HN        0.96     KB        1.00*    
!   KK        0.95     KP        1.00     LA        1.00     MK        0.93     
!   NL        0.94     NY        1.00*    OV        1.30     PT        1.01     
!   SC        1.06     TS        1.00*    WF        1.03     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.69     
!   KK        1.24     KP        1.00*    LA        1.00*    MK        0.60     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.71     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
! 
! Fit before self-cal, rms=0.158061Jy  sigma=0.001589
! Fit after  self-cal, rms=0.131086Jy  sigma=0.001121
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.28 mas, bmaj=2.17 mas, bpa=-3.965 degrees
! Estimated noise=1057.51 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.0017416 Jy
! Component: 100  -  total flux cleaned = 0.00196172 Jy
! Total flux subtracted in 100 components = 0.00196172 Jy
! Clean residual min=-0.007118 max=0.010147 Jy/beam
! Clean residual mean=0.000365 rms=0.002120 Jy/beam
! Combined flux in latest and established models = 0.488986 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 49 components and 0.488986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131022Jy  sigma=0.001120
! Fit after  self-cal, rms=0.131053Jy  sigma=0.001119
! 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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000226802 Jy
! Component: 100  -  total flux cleaned = 0.000283157 Jy
! Total flux subtracted in 100 components = 0.000283157 Jy
! Clean residual min=-0.007071 max=0.010048 Jy/beam
! Clean residual mean=0.000358 rms=0.002106 Jy/beam
! Combined flux in latest and established models = 0.489269 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 55 components and 0.489269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131026Jy  sigma=0.001119
! Fit after  self-cal, rms=0.128882Jy  sigma=0.001084
! Inverting map and beam 
! Estimated beam: bmin=1.28 mas, bmaj=2.165 mas, bpa=-3.998 degrees
! Estimated noise=1059.04 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)
! Added new window around map position (-0.2, 10).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00876894 Jy
! Component: 100  -  total flux cleaned = 0.0124825 Jy
! Total flux subtracted in 100 components = 0.0124825 Jy
! Clean residual min=-0.004698 max=0.006431 Jy/beam
! Clean residual mean=-0.000036 rms=0.001415 Jy/beam
! Combined flux in latest and established models = 0.501752 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 86 components and 0.501752 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128274Jy  sigma=0.001076
! Fit after  self-cal, rms=0.128267Jy  sigma=0.001076
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0656+082_X
! Writing UV FITS file: 0656+082_X.uvf
! Writing 86 model components to file: 0656+082_X.mod
! wwins: Wrote 2 windows to 0656+082_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.28 x 2.165 at -3.998 degrees (North through East)
! Clean map  min=-0.0045105  max=0.44022 Jy/beam
! Writing clean map to FITS file: 0656+082_X.fits
! Writing difmap environment to: 0656+082_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0656+082_X]
device 0656+082_Xuv.ps/vps,1,2
! Attempting to open device: '0656+082_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0656+082_Xim.ps/vps
! Attempting to open device: '0656+082_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=1.28 mas, bmaj=2.165 mas, bpa=-3.998 degrees
! Estimated noise=1059.04 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.28 x 2.165 at -3.998 degrees (North through East)
! Clean map  min=-0.0045105  max=0.44022 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0656+082_X.log closed on Thu Apr 17 13:51:32 2008