! Started logfile: 0201+113_X.log on Tue Jul 25 11:20:07 2006
observe 0201+113_X.edt
! Reading UV FITS file: 0201+113_X.edt
! AN table 1: 87 integrations on 190 of 190 possible baselines.
! AN table 2: 81 integrations on 190 of 190 possible baselines.
! AN table 3: 36 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.112926 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0201+113
! 
! 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 1409 lines of history.
! 
! Reading 17508 visibilities.
![@gonzo8-0.1 0201+113_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 = 8.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 1737 telescope corrections were flagged in sub-array 1.
!  A total of 1030 telescope corrections were flagged in sub-array 2.
!  A total of 430 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1737 telescope corrections were flagged in sub-array 1.
!  A total of 1037 telescope corrections were flagged in sub-array 2.
!  A total of 430 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1740 telescope corrections were flagged in sub-array 1.
!  A total of 1037 telescope corrections were flagged in sub-array 2.
!  A total of 463 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1740 telescope corrections were flagged in sub-array 1.
!  A total of 1035 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.469026Jy  sigma=0.005694
! Fit after  self-cal, rms=0.466919Jy  sigma=0.005694
! 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.4727 mas, bmaj=0.946 mas, bpa=13.55 degrees
! Estimated noise=1065.48 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.431288 Jy
! Total flux subtracted in 50 components = 0.431288 Jy
! Clean residual min=-0.038705 max=0.134913 Jy/beam
! Clean residual mean=0.000298 rms=0.010590 Jy/beam
! Combined flux in latest and established models = 0.431288 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.431288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246609Jy  sigma=0.003308
! Fit after  self-cal, rms=0.246418Jy  sigma=0.003306
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.126817 Jy
! Total flux subtracted in 50 components = 0.126817 Jy
! Clean residual min=-0.023520 max=0.074924 Jy/beam
! Clean residual mean=0.000220 rms=0.006328 Jy/beam
! Combined flux in latest and established models = 0.558105 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 9 components and 0.558105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177802Jy  sigma=0.002190
! Fit after  self-cal, rms=0.177391Jy  sigma=0.002187
! Inverting map 
! Added new window around map position (-0.7, 1.1).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0713593 Jy
! Total flux subtracted in 50 components = 0.0713593 Jy
! Clean residual min=-0.016556 max=0.038607 Jy/beam
! Clean residual mean=0.000175 rms=0.004249 Jy/beam
! Combined flux in latest and established models = 0.629464 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 16 components and 0.629464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148363Jy  sigma=0.001701
! Fit after  self-cal, rms=0.146372Jy  sigma=0.001674
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0409347 Jy
! Total flux subtracted in 50 components = 0.0409347 Jy
! Clean residual min=-0.010637 max=0.024066 Jy/beam
! Clean residual mean=0.000148 rms=0.003019 Jy/beam
! Combined flux in latest and established models = 0.670399 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 23 components and 0.670399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134606Jy  sigma=0.001466
! Fit after  self-cal, rms=0.133845Jy  sigma=0.001456
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0253764 Jy
! Total flux subtracted in 50 components = 0.0253764 Jy
! Clean residual min=-0.008709 max=0.016208 Jy/beam
! Clean residual mean=0.000131 rms=0.002423 Jy/beam
! Combined flux in latest and established models = 0.695776 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 28 components and 0.695776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128712Jy  sigma=0.001368
! Fit after  self-cal, rms=0.128376Jy  sigma=0.001363
! 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.5976 mas, bmaj=1.167 mas, bpa=12.34 degrees
! Estimated noise=488.57 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.0244649 Jy
! Component: 100  -  total flux cleaned = 0.0371437 Jy
! Total flux subtracted in 100 components = 0.0371437 Jy
! Clean residual min=-0.005685 max=0.009836 Jy/beam
! Clean residual mean=0.001059 rms=0.001876 Jy/beam
! Combined flux in latest and established models = 0.732919 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 48 components and 0.732919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123667Jy  sigma=0.001300
! Fit after  self-cal, rms=0.123474Jy  sigma=0.001297
! 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        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GC        1.00*    HN        1.02     
!   LA        1.02     NL        0.98     OV        1.00*    SC        1.01     
!   WF        0.86     GG        1.00*    HH        0.99     KK        1.00*    
!   KP        1.00*    MA        0.93     MC        0.93     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.99     PT        1.00     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00     GC        1.01     HN        1.00*    
!   LA        0.98     NL        0.97     OV        1.01     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.97     
!   KP        1.01     MA        1.00*    MC        1.00*    MK        1.02     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    HN        1.01     
!   LA        1.03     NL        0.98     OV        1.00*    SC        1.21     
!   WF        0.87     GG        1.00*    HH        1.02     KK        1.00*    
!   KP        1.00*    MA        1.00     MC        0.93     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.98     PT        1.02     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.01     GC        0.99     HN        1.00*    
!   LA        0.99     NL        1.03     OV        1.01     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.98     
!   KP        0.94     MA        1.00*    MC        1.00*    MK        1.02     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.01     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    HN        1.02     
!   LA        1.02     NL        1.00     OV        1.00*    SC        0.99     
!   WF        0.89     GG        1.00*    HH        1.08     KK        1.00*    
!   KP        1.00*    MA        1.11     MC        0.93     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.99     PT        1.07     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.01     GC        0.98     HN        1.00*    
!   LA        1.00*    NL        0.99     OV        0.97     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        0.95     MA        1.00*    MC        1.00*    MK        0.99     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.01     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    HN        1.01     
!   LA        1.03     NL        1.04     OV        1.00*    SC        1.01     
!   WF        0.87     GG        1.00*    HH        1.05     KK        1.00*    
!   KP        1.00*    MA        0.98     MC        0.96     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.92     PT        1.05     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.02     GC        0.95     HN        1.00*    
!   LA        0.99     NL        0.98     OV        1.02     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.94     
!   KP        0.95     MA        1.00*    MC        1.00*    MK        0.98     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.01     
! 
! 
! Fit before self-cal, rms=0.123474Jy  sigma=0.001297
! Fit after  self-cal, rms=0.112969Jy  sigma=0.001226
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.5993 mas, bmaj=1.181 mas, bpa=11.5 degrees
! Estimated noise=484.394 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 (-1.5, 0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00851665 Jy
! Component: 100  -  total flux cleaned = 0.0103988 Jy
! Total flux subtracted in 100 components = 0.0103988 Jy
! Clean residual min=-0.003117 max=0.004232 Jy/beam
! Clean residual mean=0.000204 rms=0.000894 Jy/beam
! Combined flux in latest and established models = 0.743318 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 64 components and 0.743318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112389Jy  sigma=0.001217
! Fit after  self-cal, rms=0.112331Jy  sigma=0.001216
! 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.00176181 Jy
! Component: 100  -  total flux cleaned = 0.00212463 Jy
! Total flux subtracted in 100 components = 0.00212463 Jy
! Clean residual min=-0.003274 max=0.003895 Jy/beam
! Clean residual mean=0.000183 rms=0.000841 Jy/beam
! Combined flux in latest and established models = 0.745443 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 77 components and 0.745442 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112224Jy  sigma=0.001215
! Fit after  self-cal, rms=0.111099Jy  sigma=0.001197
! Inverting map and beam 
! Estimated beam: bmin=0.5996 mas, bmaj=1.18 mas, bpa=11.34 degrees
! Estimated noise=484.852 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.0032391 Jy
! Component: 100  -  total flux cleaned = 0.00397637 Jy
! Total flux subtracted in 100 components = 0.00397637 Jy
! Clean residual min=-0.002677 max=0.003181 Jy/beam
! Clean residual mean=0.000096 rms=0.000703 Jy/beam
! Combined flux in latest and established models = 0.749419 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 84 components and 0.749419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111004Jy  sigma=0.001195
! Fit after  self-cal, rms=0.110998Jy  sigma=0.001195
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0201+113_X
! Writing UV FITS file: 0201+113_X.uvf
! Writing 84 model components to file: 0201+113_X.mod
! wwins: Wrote 3 windows to 0201+113_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5996 x 1.18 at 11.34 degrees (North through East)
! Clean map  min=-0.0026032  max=0.53258 Jy/beam
! Writing clean map to FITS file: 0201+113_X.fits
! Writing difmap environment to: 0201+113_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0201+113_X]
device 0201+113_Xuv.ps/vps,1,2
! Attempting to open device: '0201+113_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0201+113_Xim.ps/vps
! Attempting to open device: '0201+113_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.5996 mas, bmaj=1.18 mas, bpa=11.34 degrees
! Estimated noise=484.852 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5996 x 1.18 at 11.34 degrees (North through East)
! Clean map  min=-0.0026032  max=0.53258 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 0201+113_X.log closed on Tue Jul 25 11:20:39 2006