! Started logfile: 0656+082_S.log on Tue Aug  7 10:44:47 2007
observe 0656+082_S.edt
! Reading UV FITS file: 0656+082_S.edt
! AN table 1: 44 integrations on 105 of 105 possible baselines.
! AN table 2: 14 integrations on 105 of 105 possible baselines.
! AN table 3: 25 integrations on 105 of 105 possible baselines.
! AN table 4: 5 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.12132 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1153 lines of history.
! 
! Reading 4484 visibilities.
![@gonzo7-0.4 0656+082_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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.400x0.400 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 481 telescope corrections were flagged in sub-array 1.
!  A total of 177 telescope corrections were flagged in sub-array 2.
!  A total of 244 telescope corrections were flagged in sub-array 3.
!  A total of 51 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 481 telescope corrections were flagged in sub-array 1.
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  A total of 244 telescope corrections were flagged in sub-array 3.
!  A total of 51 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 448 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
!  A total of 244 telescope corrections were flagged in sub-array 3.
!  A total of 51 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 484 telescope corrections were flagged in sub-array 1.
!  A total of 210 telescope corrections were flagged in sub-array 2.
!  A total of 244 telescope corrections were flagged in sub-array 3.
!  A total of 46 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.566704Jy  sigma=0.006083
! Fit after  self-cal, rms=0.560825Jy  sigma=0.006058
! 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=2.767 mas, bmaj=6.715 mas, bpa=-10.64 degrees
! Estimated noise=1411.46 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.373325 Jy
! Total flux subtracted in 50 components = 0.373325 Jy
! Clean residual min=-0.031598 max=0.120102 Jy/beam
! Clean residual mean=0.000028 rms=0.010369 Jy/beam
! Combined flux in latest and established models = 0.373325 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.373325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228534Jy  sigma=0.002310
! Fit after  self-cal, rms=0.228421Jy  sigma=0.002309
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.117984 Jy
! Total flux subtracted in 50 components = 0.117984 Jy
! Clean residual min=-0.024048 max=0.059955 Jy/beam
! Clean residual mean=0.000043 rms=0.006816 Jy/beam
! Combined flux in latest and established models = 0.491309 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 10 components and 0.491309 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175254Jy  sigma=0.001713
! Fit after  self-cal, rms=0.174528Jy  sigma=0.001708
! Inverting map 
! Added new window around map position (-6.4, 8.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0597976 Jy
! Total flux subtracted in 50 components = 0.0597976 Jy
! Clean residual min=-0.018942 max=0.028208 Jy/beam
! Clean residual mean=0.000051 rms=0.005487 Jy/beam
! Combined flux in latest and established models = 0.551107 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 15 components and 0.551107 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158326Jy  sigma=0.001519
! Fit after  self-cal, rms=0.157679Jy  sigma=0.001513
! 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=2.831 mas, bmaj=7.006 mas, bpa=-7.366 degrees
! Estimated noise=1028.37 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.0372686 Jy
! Component: 100  -  total flux cleaned = 0.0580268 Jy
! Total flux subtracted in 100 components = 0.0580268 Jy
! Clean residual min=-0.016326 max=0.018015 Jy/beam
! Clean residual mean=0.000017 rms=0.004399 Jy/beam
! Combined flux in latest and established models = 0.609134 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 37 components and 0.609134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149067Jy  sigma=0.001416
! Fit after  self-cal, rms=0.148372Jy  sigma=0.001410
! 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 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.88     HH        1.00*    HN        1.08     
!   KB        1.00*    KK        1.02     KP        0.82     LA        0.94     
!   MK        0.99     NL        0.96     NY        1.00*    OV        1.01     
!   PT        0.91     SC        1.08     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        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*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        1.05     HH        1.00*    HN        1.02     
!   KB        1.00*    KK        1.02     KP        0.69     LA        1.02     
!   MK        0.99     NL        1.14     NY        1.00*    OV        1.01     
!   PT        1.07     SC        0.87     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.81     FD        0.66     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.12     LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.86     
!   PT        0.85     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.88     HH        1.00*    HN        1.01     
!   KB        1.00*    KK        1.01     KP        0.87     LA        0.96     
!   MK        0.99     NL        1.02     NY        1.00*    OV        1.02     
!   PT        0.91     SC        1.04     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        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*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.15     FD        1.07     HH        1.00*    HN        1.00     
!   KB        1.00*    KK        1.04     KP        0.79     LA        1.07     
!   MK        0.92     NL        1.11     NY        1.00*    OV        1.01     
!   PT        1.07     SC        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.85     FD        0.69     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.90     LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.83     
!   PT        0.91     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.88     HH        1.00*    HN        1.05     
!   KB        1.00*    KK        1.01     KP        0.84     LA        0.98     
!   MK        0.97     NL        1.01     NY        1.00*    OV        1.03     
!   PT        0.93     SC        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        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*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        1.09     HH        1.00*    HN        1.07     
!   KB        1.00*    KK        1.07     KP        0.69     LA        1.04     
!   MK        0.96     NL        1.13     NY        1.00*    OV        1.00     
!   PT        1.05     SC        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.86     FD        0.68     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.80     LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.53     
!   PT        0.82     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.87     HH        1.00*    HN        1.06     
!   KB        1.00*    KK        0.99     KP        0.85     LA        0.95     
!   MK        1.00     NL        1.03     NY        1.00*    OV        1.01     
!   PT        0.95     SC        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        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*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.15     FD        1.09     HH        1.00*    HN        1.04     
!   KB        1.00*    KK        1.09     KP        0.74     LA        1.10     
!   MK        0.96     NL        1.11     NY        1.00*    OV        1.02     
!   PT        1.05     SC        0.86     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.76     FD        0.70     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.85     LA        1.00*    
!   MK        1.00*    NL        0.93     NY        1.00*    OV        0.84     
!   PT        0.85     SC        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.148372Jy  sigma=0.001410
! Fit after  self-cal, rms=0.118463Jy  sigma=0.001179
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.914 mas, bmaj=7.297 mas, bpa=-8.623 degrees
! Estimated noise=1032.19 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 (-12.4, 13.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0183072 Jy
! Component: 100  -  total flux cleaned = 0.0286424 Jy
! Total flux subtracted in 100 components = 0.0286424 Jy
! Clean residual min=-0.007031 max=0.013335 Jy/beam
! Clean residual mean=-0.000008 rms=0.001889 Jy/beam
! Combined flux in latest and established models = 0.637776 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 48 components and 0.637776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115771Jy  sigma=0.001146
! Fit after  self-cal, rms=0.115543Jy  sigma=0.001144
! Inverting map 
! Added new window around map position (-25.2, 18).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0124058 Jy
! Component: 100  -  total flux cleaned = 0.0201903 Jy
! Total flux subtracted in 100 components = 0.0201903 Jy
! Clean residual min=-0.006324 max=0.007010 Jy/beam
! Clean residual mean=0.000001 rms=0.001594 Jy/beam
! Combined flux in latest and established models = 0.657966 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 73 components and 0.657966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114249Jy  sigma=0.001128
! Fit after  self-cal, rms=0.114186Jy  sigma=0.001128
! 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.00651235 Jy
! Component: 100  -  total flux cleaned = 0.0104596 Jy
! Total flux subtracted in 100 components = 0.0104596 Jy
! Clean residual min=-0.006311 max=0.006334 Jy/beam
! Clean residual mean=0.000005 rms=0.001508 Jy/beam
! Combined flux in latest and established models = 0.668426 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 90 components and 0.668426 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113770Jy  sigma=0.001123
! Fit after  self-cal, rms=0.112363Jy  sigma=0.001104
! Inverting map and beam 
! Estimated beam: bmin=2.902 mas, bmaj=7.277 mas, bpa=-8.658 degrees
! Estimated noise=1033.49 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.00635601 Jy
! Component: 100  -  total flux cleaned = 0.0110191 Jy
! Total flux subtracted in 100 components = 0.0110191 Jy
! Clean residual min=-0.005037 max=0.004808 Jy/beam
! Clean residual mean=-0.000004 rms=0.001269 Jy/beam
! Combined flux in latest and established models = 0.679445 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 99 components and 0.679445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111993Jy  sigma=0.001099
! Fit after  self-cal, rms=0.111945Jy  sigma=0.001099
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0656+082_S
! Writing UV FITS file: 0656+082_S.uvf
! Writing 99 model components to file: 0656+082_S.mod
! wwins: Wrote 4 windows to 0656+082_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.902 x 7.277 at -8.658 degrees (North through East)
! Clean map  min=-0.0048971  max=0.43857 Jy/beam
! Writing clean map to FITS file: 0656+082_S.fits
! Writing difmap environment to: 0656+082_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0656+082_S]
device 0656+082_Suv.ps/vps,1,2
! Attempting to open device: '0656+082_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0656+082_Sim.ps/vps
! Attempting to open device: '0656+082_Sim.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=2.902 mas, bmaj=7.277 mas, bpa=-8.658 degrees
! Estimated noise=1033.49 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.902 x 7.277 at -8.658 degrees (North through East)
! Clean map  min=-0.0048971  max=0.43857 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 0656+082_S.log closed on Tue Aug  7 10:45:06 2007