! Started logfile: 1417+385_X.log on Thu Apr 17 14:02:01 2008
observe 1417+385_X.edt
! Reading UV FITS file: 1417+385_X.edt
! AN table 1: 27 integrations on 136 of 136 possible baselines.
! AN table 2: 23 integrations on 136 of 136 possible baselines.
! AN table 3: 48 integrations on 136 of 136 possible baselines.
! AN table 4: 21 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.123455 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1417+385
! 
! 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 7992 visibilities.
![@gonzo7-0.1 1417+385_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 347 telescope corrections were flagged in sub-array 1.
!  A total of 202 telescope corrections were flagged in sub-array 2.
!  A total of 620 telescope corrections were flagged in sub-array 3.
!  A total of 255 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 347 telescope corrections were flagged in sub-array 1.
!  A total of 194 telescope corrections were flagged in sub-array 2.
!  A total of 620 telescope corrections were flagged in sub-array 3.
!  A total of 256 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 347 telescope corrections were flagged in sub-array 1.
!  A total of 209 telescope corrections were flagged in sub-array 2.
!  A total of 638 telescope corrections were flagged in sub-array 3.
!  A total of 263 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 351 telescope corrections were flagged in sub-array 1.
!  A total of 201 telescope corrections were flagged in sub-array 2.
!  A total of 642 telescope corrections were flagged in sub-array 3.
!  A total of 263 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.659828Jy  sigma=0.007775
! Fit after  self-cal, rms=0.654129Jy  sigma=0.007649
! 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.6834 mas, bmaj=1.079 mas, bpa=-24.04 degrees
! Estimated noise=1125.22 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.25817 Jy
! Total flux subtracted in 50 components = 0.25817 Jy
! Clean residual min=-0.013210 max=0.080820 Jy/beam
! Clean residual mean=0.000213 rms=0.004411 Jy/beam
! Combined flux in latest and established models = 0.25817 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.25817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188483Jy  sigma=0.002041
! Fit after  self-cal, rms=0.188486Jy  sigma=0.002041
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0799944 Jy
! Total flux subtracted in 50 components = 0.0799944 Jy
! Clean residual min=-0.009570 max=0.033381 Jy/beam
! Clean residual mean=0.000153 rms=0.002745 Jy/beam
! Combined flux in latest and established models = 0.338164 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 11 components and 0.338164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151715Jy  sigma=0.001524
! Fit after  self-cal, rms=0.151708Jy  sigma=0.001524
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0367826 Jy
! Total flux subtracted in 50 components = 0.0367826 Jy
! Clean residual min=-0.008781 max=0.017827 Jy/beam
! Clean residual mean=0.000126 rms=0.002266 Jy/beam
! Combined flux in latest and established models = 0.374947 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 0.374947 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142515Jy  sigma=0.001381
! Fit after  self-cal, rms=0.142514Jy  sigma=0.001381
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0209872 Jy
! Total flux subtracted in 50 components = 0.0209872 Jy
! Clean residual min=-0.008413 max=0.010580 Jy/beam
! Clean residual mean=0.000111 rms=0.002090 Jy/beam
! Combined flux in latest and established models = 0.395934 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 23 components and 0.395934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139477Jy  sigma=0.001330
! Fit after  self-cal, rms=0.139478Jy  sigma=0.001330
! 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.9009 mas, bmaj=1.323 mas, bpa=-30.25 degrees
! Estimated noise=737.384 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.0171836 Jy
! Component: 100  -  total flux cleaned = 0.0247687 Jy
! Total flux subtracted in 100 components = 0.0247687 Jy
! Clean residual min=-0.007586 max=0.009975 Jy/beam
! Clean residual mean=0.001555 rms=0.002441 Jy/beam
! Combined flux in latest and established models = 0.420703 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 27 components and 0.420703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137879Jy  sigma=0.001302
! Fit after  self-cal, rms=0.137882Jy  sigma=0.001302
! 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 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.14     HN        1.06     KB        1.00*    
!   KK        0.94     KP        1.05     LA        1.01     MK        1.09     
!   NL        1.03     NY        1.00*    OV        1.14     PT        1.00     
!   SC        1.00*    TS        1.00*    WF        1.05     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.68     HN        0.99     KB        1.00*    
!   KK        1.10     KP        1.02     LA        0.99     MK        1.03     
!   NL        0.98     NY        1.00*    OV        1.09     PT        1.00     
!   SC        0.99     TS        1.00*    WF        0.97     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    HN        1.30     KB        0.80     
!   KK        1.01     KP        1.03     LA        1.05     MK        0.87     
!   NL        1.33     NY        1.00*    OV        1.00     PT        1.14     
!   SC        1.06     TS        0.88     WF        1.06     WZ        1.00*    
!   ZC        1.32     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.97     HN        1.02     KB        1.00*    
!   KK        1.00*    KP        0.97     LA        0.99     MK        1.07     
!   NL        1.04     NY        1.00*    OV        0.76     PT        1.02     
!   SC        1.00*    TS        1.00*    WF        1.02     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.04     HN        1.04     KB        1.00*    
!   KK        0.97     KP        0.97     LA        1.05     MK        1.05     
!   NL        1.03     NY        1.00*    OV        1.21     PT        1.01     
!   SC        1.00*    TS        1.00*    WF        1.12     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.72     HN        1.03     KB        1.00*    
!   KK        1.19     KP        0.99     LA        0.98     MK        1.02     
!   NL        0.99     NY        1.00*    OV        1.07     PT        0.97     
!   SC        0.99     TS        1.00*    WF        0.99     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    HN        0.91     KB        0.75     
!   KK        1.02     KP        1.06     LA        1.03     MK        0.86     
!   NL        1.44     NY        1.00*    OV        1.01     PT        1.14     
!   SC        1.31     TS        0.86     WF        0.96     WZ        1.00*    
!   ZC        1.43     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.01     HN        1.02     KB        1.00*    
!   KK        1.00*    KP        1.01     LA        0.97     MK        1.04     
!   NL        1.05     NY        1.00*    OV        0.76     PT        1.01     
!   SC        1.00*    TS        1.00*    WF        0.95     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.14     FD        1.04     HN        0.97     KB        1.00*    
!   KK        0.98     KP        1.05     LA        1.00     MK        1.05     
!   NL        1.00     NY        1.00*    OV        1.17     PT        0.99     
!   SC        1.00*    TS        1.00*    WF        1.07     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.69     HN        1.00     KB        1.00*    
!   KK        1.23     KP        1.01     LA        1.00     MK        1.01     
!   NL        0.99     NY        1.00*    OV        1.08     PT        1.00     
!   SC        0.97     TS        1.00*    WF        0.99     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    HN        1.04     KB        0.84     
!   KK        1.23     KP        1.08     LA        1.02     MK        0.58     
!   NL        1.44     NY        1.00*    OV        1.01     PT        1.13     
!   SC        1.22     TS        0.91     WF        0.86     WZ        1.00*    
!   ZC        1.19     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.01     HN        1.06     KB        1.00*    
!   KK        1.00*    KP        1.01     LA        1.01     MK        1.07     
!   NL        1.04     NY        1.00*    OV        0.71     PT        1.01     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.05     HN        1.01     KB        1.00*    
!   KK        1.13     KP        1.06     LA        1.06     MK        1.10     
!   NL        0.99     NY        1.00*    OV        1.18     PT        1.00     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        0.70     HN        1.02     KB        1.00*    
!   KK        1.31     KP        1.01     LA        0.98     MK        1.04     
!   NL        1.01     NY        1.00*    OV        1.04     PT        1.00     
!   SC        0.99     TS        1.00*    WF        1.02     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    HN        0.82     KB        0.82     
!   KK        1.11     KP        1.07     LA        1.03     MK        0.62     
!   NL        1.44     NY        1.00*    OV        0.99     PT        1.08     
!   SC        1.18     TS        0.89     WF        1.15     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.94     HN        1.03     KB        1.00*    
!   KK        1.00*    KP        0.98     LA        0.98     MK        1.06     
!   NL        1.03     NY        1.00*    OV        0.72     PT        0.99     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Fit before self-cal, rms=0.137882Jy  sigma=0.001302
! Fit after  self-cal, rms=0.125899Jy  sigma=0.001124
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8846 mas, bmaj=1.324 mas, bpa=-31.69 degrees
! Estimated noise=752.372 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.000443431 Jy
! Component: 100  -  total flux cleaned = 0.00107083 Jy
! Total flux subtracted in 100 components = 0.00107083 Jy
! Clean residual min=-0.003871 max=0.004939 Jy/beam
! Clean residual mean=0.000388 rms=0.001113 Jy/beam
! Combined flux in latest and established models = 0.421773 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 32 components and 0.421773 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125737Jy  sigma=0.001122
! Fit after  self-cal, rms=0.125777Jy  sigma=0.001121
! 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.000681491 Jy
! Component: 100  -  total flux cleaned = 0.00104944 Jy
! Total flux subtracted in 100 components = 0.00104944 Jy
! Clean residual min=-0.003848 max=0.004936 Jy/beam
! Clean residual mean=0.000379 rms=0.001101 Jy/beam
! Combined flux in latest and established models = 0.422823 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 37 components and 0.422823 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125694Jy  sigma=0.001120
! Fit after  self-cal, rms=0.129182Jy  sigma=0.001084
! Inverting map and beam 
! Estimated beam: bmin=0.8775 mas, bmaj=1.325 mas, bpa=-31.67 degrees
! Estimated noise=752.751 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.00238866 Jy
! Component: 100  -  total flux cleaned = 0.00280934 Jy
! Total flux subtracted in 100 components = 0.00280934 Jy
! Clean residual min=-0.002990 max=0.003548 Jy/beam
! Clean residual mean=0.000276 rms=0.000776 Jy/beam
! Combined flux in latest and established models = 0.425632 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 46 components and 0.425632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129090Jy  sigma=0.001083
! Fit after  self-cal, rms=0.129110Jy  sigma=0.001083
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1417+385_X
! Writing UV FITS file: 1417+385_X.uvf
! Writing 46 model components to file: 1417+385_X.mod
! wwins: Wrote 1 windows to 1417+385_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8775 x 1.325 at -31.67 degrees (North through East)
! Clean map  min=-0.0029068  max=0.35151 Jy/beam
! Writing clean map to FITS file: 1417+385_X.fits
! Writing difmap environment to: 1417+385_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1417+385_X]
device 1417+385_Xuv.ps/vps,1,2
! Attempting to open device: '1417+385_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1417+385_Xim.ps/vps
! Attempting to open device: '1417+385_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.8775 mas, bmaj=1.325 mas, bpa=-31.67 degrees
! Estimated noise=752.751 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8775 x 1.325 at -31.67 degrees (North through East)
! Clean map  min=-0.0029068  max=0.35151 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 1417+385_X.log closed on Thu Apr 17 14:02:20 2008