! Started logfile: 0729+259_S.log on Tue Aug  7 10:45:43 2007
observe 0729+259_S.edt
! Reading UV FITS file: 0729+259_S.edt
! AN table 1: 88 integrations on 105 of 105 possible baselines.
! AN table 2: 45 integrations on 105 of 105 possible baselines.
! AN table 3: 34 integrations on 105 of 105 possible baselines.
! AN table 4: 29 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0802235 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0729+259
! 
! 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 6604 visibilities.
![@gonzo7-0.4 0729+259_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 1084 telescope corrections were flagged in sub-array 1.
!  A total of 557 telescope corrections were flagged in sub-array 2.
!  A total of 432 telescope corrections were flagged in sub-array 3.
!  A total of 218 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1081 telescope corrections were flagged in sub-array 1.
!  A total of 608 telescope corrections were flagged in sub-array 2.
!  A total of 428 telescope corrections were flagged in sub-array 3.
!  A total of 218 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1087 telescope corrections were flagged in sub-array 1.
!  A total of 557 telescope corrections were flagged in sub-array 2.
!  A total of 435 telescope corrections were flagged in sub-array 3.
!  A total of 218 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1138 telescope corrections were flagged in sub-array 1.
!  A total of 608 telescope corrections were flagged in sub-array 2.
!  A total of 428 telescope corrections were flagged in sub-array 3.
!  A total of 218 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.590835Jy  sigma=0.006066
! Fit after  self-cal, rms=0.573732Jy  sigma=0.006042
! 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.112 mas, bmaj=3.502 mas, bpa=-21.42 degrees
! Estimated noise=1577.17 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.328562 Jy
! Total flux subtracted in 50 components = 0.328562 Jy
! Clean residual min=-0.022811 max=0.093149 Jy/beam
! Clean residual mean=0.000086 rms=0.006956 Jy/beam
! Combined flux in latest and established models = 0.328562 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.328562 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210609Jy  sigma=0.002177
! Fit after  self-cal, rms=0.210609Jy  sigma=0.002177
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.088797 Jy
! Total flux subtracted in 50 components = 0.088797 Jy
! Clean residual min=-0.015823 max=0.036170 Jy/beam
! Clean residual mean=-0.000066 rms=0.004368 Jy/beam
! Combined flux in latest and established models = 0.417359 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.417359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169296Jy  sigma=0.001640
! Fit after  self-cal, rms=0.169274Jy  sigma=0.001639
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0388565 Jy
! Total flux subtracted in 50 components = 0.0388565 Jy
! Clean residual min=-0.014819 max=0.018986 Jy/beam
! Clean residual mean=-0.000132 rms=0.003719 Jy/beam
! Combined flux in latest and established models = 0.456215 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 0.456215 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158709Jy  sigma=0.001500
! Fit after  self-cal, rms=0.158692Jy  sigma=0.001500
! 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.633 mas, bmaj=4.609 mas, bpa=-18.27 degrees
! Estimated noise=890.646 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.0366933 Jy
! Component: 100  -  total flux cleaned = 0.0548876 Jy
! Total flux subtracted in 100 components = 0.0548876 Jy
! Clean residual min=-0.020481 max=0.019267 Jy/beam
! Clean residual mean=-0.000667 rms=0.005180 Jy/beam
! Combined flux in latest and established models = 0.511103 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 48 components and 0.511103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151075Jy  sigma=0.001409
! Fit after  self-cal, rms=0.151016Jy  sigma=0.001409
! 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 135 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.16     FD        0.86     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.09     
!   MK        1.00*    NL        1.05     NY        1.00*    OV        1.00*    
!   PT        1.23     SC        1.01     WZ        1.00*    
! 
!  A total of 90 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    HH        1.00*    HN        1.06     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.86     
!   PT        0.97     SC        0.86     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     HH        1.00*    HN        0.99     
!   KB        1.00*    KK        1.04     KP        0.74     LA        0.96     
!   MK        1.13     NL        0.97     NY        1.01     OV        1.00*    
!   PT        0.95     SC        0.86     WZ        1.24     
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.14     FD        0.92     HH        1.02     HN        1.00*    
!   KB        0.98     KK        1.00*    KP        1.00*    LA        1.12     
!   MK        1.00*    NL        1.09     NY        0.96     OV        1.00*    
!   PT        1.08     SC        0.97     WZ        0.94     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    HH        1.00*    HN        1.11     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.95     
!   PT        0.98     SC        0.77     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        0.92     HN        0.88     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.28     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.97     HH        1.00*    HN        1.00     
!   KB        1.00*    KK        1.02     KP        0.77     LA        0.96     
!   MK        1.04     NL        0.97     NY        1.04     OV        1.00*    
!   PT        0.93     SC        0.98     WZ        1.20     
! 
! 
! Correcting IF 3.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.20     FD        0.90     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.11     
!   MK        1.00*    NL        1.06     NY        1.00*    OV        1.00*    
!   PT        1.13     SC        1.17     WZ        1.00*    
! 
!  A total of 90 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    HH        1.00*    HN        1.11     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.98     
!   PT        1.03     SC        0.93     WZ        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.98     HH        1.00*    HN        1.02     
!   KB        1.00*    KK        1.03     KP        0.71     LA        0.97     
!   MK        1.04     NL        0.99     NY        1.05     OV        1.00*    
!   PT        0.99     SC        0.99     WZ        1.17     
! 
! 
! Correcting IF 4.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.27     FD        0.88     HH        0.92     HN        1.00*    
!   KB        1.14     KK        1.00*    KP        1.00*    LA        1.11     
!   MK        1.00*    NL        1.09     NY        0.87     OV        1.00*    
!   PT        1.10     SC        0.95     WZ        0.86     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    HH        1.00*    HN        1.06     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.01     
!   PT        1.07     SC        0.75     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        0.86     HN        0.98     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.11     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.99     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        0.96     HH        1.00*    HN        0.99     
!   KB        1.00*    KK        1.09     KP        0.75     LA        0.97     
!   MK        1.04     NL        0.98     NY        1.14     OV        1.00*    
!   PT        0.96     SC        0.90     WZ        1.03     
! 
! 
! Fit before self-cal, rms=0.151016Jy  sigma=0.001409
! Fit after  self-cal, rms=0.126034Jy  sigma=0.001171
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.826 mas, bmaj=4.785 mas, bpa=-21.32 degrees
! Estimated noise=911.658 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 (-4, 4.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00969682 Jy
! Component: 100  -  total flux cleaned = 0.0114688 Jy
! Total flux subtracted in 100 components = 0.0114688 Jy
! Clean residual min=-0.004812 max=0.006971 Jy/beam
! Clean residual mean=0.000132 rms=0.001306 Jy/beam
! Combined flux in latest and established models = 0.522572 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 60 components and 0.522572 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125203Jy  sigma=0.001162
! Fit after  self-cal, rms=0.125160Jy  sigma=0.001161
! 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 (-11.2, 16.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0048744 Jy
! Component: 100  -  total flux cleaned = 0.00487232 Jy
! Total flux subtracted in 100 components = 0.00487232 Jy
! Clean residual min=-0.004476 max=0.004814 Jy/beam
! Clean residual mean=0.000097 rms=0.001184 Jy/beam
! Combined flux in latest and established models = 0.527444 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 73 components and 0.527444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124870Jy  sigma=0.001157
! Fit after  self-cal, rms=0.121627Jy  sigma=0.001099
! Inverting map and beam 
! Estimated beam: bmin=2.82 mas, bmaj=4.79 mas, bpa=-21.18 degrees
! Estimated noise=912.192 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.0049284 Jy
! Component: 100  -  total flux cleaned = 0.00697307 Jy
! Total flux subtracted in 100 components = 0.00697307 Jy
! Clean residual min=-0.004091 max=0.004126 Jy/beam
! Clean residual mean=0.000107 rms=0.001052 Jy/beam
! Combined flux in latest and established models = 0.534417 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 81 components and 0.534417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121399Jy  sigma=0.001096
! Fit after  self-cal, rms=0.121382Jy  sigma=0.001096
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0729+259_S
! Writing UV FITS file: 0729+259_S.uvf
! Writing 81 model components to file: 0729+259_S.mod
! wwins: Wrote 3 windows to 0729+259_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.82 x 4.79 at -21.18 degrees (North through East)
! Clean map  min=-0.0038008  max=0.4428 Jy/beam
! Writing clean map to FITS file: 0729+259_S.fits
! Writing difmap environment to: 0729+259_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0729+259_S]
device 0729+259_Suv.ps/vps,1,2
! Attempting to open device: '0729+259_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0729+259_Sim.ps/vps
! Attempting to open device: '0729+259_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.82 mas, bmaj=4.79 mas, bpa=-21.18 degrees
! Estimated noise=912.192 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.82 x 4.79 at -21.18 degrees (North through East)
! Clean map  min=-0.0038008  max=0.4428 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 0729+259_S.log closed on Tue Aug  7 10:46:04 2007