! Started logfile: 2145+067_S.log on Thu Dec 19 08:32:52 2002
observe 2145+067_S.edt
! Reading UV FITS file: 2145+067_S.edt
! AN table 1: 60 integrations on 120 of 120 possible baselines.
! AN table 2: 51 integrations on 120 of 120 possible baselines.
! AN table 3: 32 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.237529 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2145+067
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 6827 lines of history.
! 
! Reading 16304 visibilities.
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 = 6.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 790 telescope corrections were flagged in sub-array 1.
!  A total of 585 telescope corrections were flagged in sub-array 2.
!  A total of 217 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 790 telescope corrections were flagged in sub-array 1.
!  A total of 576 telescope corrections were flagged in sub-array 2.
!  A total of 217 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 790 telescope corrections were flagged in sub-array 1.
!  A total of 576 telescope corrections were flagged in sub-array 2.
!  A total of 217 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 790 telescope corrections were flagged in sub-array 1.
!  A total of 576 telescope corrections were flagged in sub-array 2.
!  A total of 217 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.241079Jy  sigma=8.668137
! Fit after  self-cal, rms=1.240971Jy  sigma=8.670575
! 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.529 mas, bmaj=5.175 mas, bpa=-6.339 degrees
! Estimated noise=1.37366 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 = 1.561 Jy
! Total flux subtracted in 50 components = 1.561 Jy
! Clean residual min=-0.063834 max=0.435479 Jy/beam
! Clean residual mean=0.000566 rms=0.018702 Jy/beam
! Combined flux in latest and established models = 1.561 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.561 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.755835Jy  sigma=5.276513
! Fit after  self-cal, rms=0.755835Jy  sigma=5.276513
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.379663 Jy
! Total flux subtracted in 50 components = 0.379663 Jy
! Clean residual min=-0.046969 max=0.228490 Jy/beam
! Clean residual mean=0.000433 rms=0.012112 Jy/beam
! Combined flux in latest and established models = 1.94066 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 6 components and 1.94066 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.509702Jy  sigma=3.559283
! Fit after  self-cal, rms=0.509236Jy  sigma=3.555892
! Inverting map 
! Added new window around map position (4, -4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.226814 Jy
! Total flux subtracted in 50 components = 0.226814 Jy
! Clean residual min=-0.037832 max=0.113322 Jy/beam
! Clean residual mean=0.000354 rms=0.008791 Jy/beam
! Combined flux in latest and established models = 2.16747 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 13 components and 2.16747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385412Jy  sigma=2.690164
! Fit after  self-cal, rms=0.381942Jy  sigma=2.665409
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.146207 Jy
! Total flux subtracted in 50 components = 0.146207 Jy
! Clean residual min=-0.031137 max=0.077554 Jy/beam
! Clean residual mean=0.000301 rms=0.006748 Jy/beam
! Combined flux in latest and established models = 2.31368 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 19 components and 2.31368 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311678Jy  sigma=2.173541
! Fit after  self-cal, rms=0.310490Jy  sigma=2.165020
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.100199 Jy
! Total flux subtracted in 50 components = 0.100199 Jy
! Clean residual min=-0.027585 max=0.053487 Jy/beam
! Clean residual mean=0.000264 rms=0.005607 Jy/beam
! Combined flux in latest and established models = 2.41388 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 2.41388 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269394Jy  sigma=1.876617
! Fit after  self-cal, rms=0.268746Jy  sigma=1.871960
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0694835 Jy
! Total flux subtracted in 50 components = 0.0694835 Jy
! Clean residual min=-0.025023 max=0.037334 Jy/beam
! Clean residual mean=0.000239 rms=0.004970 Jy/beam
! Combined flux in latest and established models = 2.48336 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 29 components and 2.48336 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245096Jy  sigma=1.705616
! Fit after  self-cal, rms=0.244774Jy  sigma=1.703295
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0490282 Jy
! Total flux subtracted in 50 components = 0.0490282 Jy
! Clean residual min=-0.023262 max=0.036353 Jy/beam
! Clean residual mean=0.000221 rms=0.004625 Jy/beam
! Combined flux in latest and established models = 2.53239 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 41 components and 2.53239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231277Jy  sigma=1.608115
! Fit after  self-cal, rms=0.231110Jy  sigma=1.606920
! Inverting map 
! Added new window around map position (23.6, -70).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0404041 Jy
! Total flux subtracted in 50 components = 0.0404041 Jy
! Clean residual min=-0.022425 max=0.023211 Jy/beam
! Clean residual mean=0.000209 rms=0.004385 Jy/beam
! Combined flux in latest and established models = 2.5728 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 55 components and 2.5728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221826Jy  sigma=1.541576
! Fit after  self-cal, rms=0.221720Jy  sigma=1.540849
! 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=3.009 mas, bmaj=6.818 mas, bpa=-6.601 degrees
! Estimated noise=0.902558 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.0634146 Jy
! Component: 100  -  total flux cleaned = 0.10984 Jy
! Total flux subtracted in 100 components = 0.10984 Jy
! Clean residual min=-0.018586 max=0.040409 Jy/beam
! Clean residual mean=0.003686 rms=0.006858 Jy/beam
! Combined flux in latest and established models = 2.68264 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 47 model components to the UV plane model.
! The established model now contains 84 components and 2.68264 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202369Jy  sigma=1.404016
! Fit after  self-cal, rms=0.201885Jy  sigma=1.400745
! Inverting map 
! Added new window around map position (26, -54).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0446259 Jy
! Component: 100  -  total flux cleaned = 0.0791324 Jy
! Total flux subtracted in 100 components = 0.0791324 Jy
! Clean residual min=-0.017076 max=0.028525 Jy/beam
! Clean residual mean=0.003147 rms=0.005999 Jy/beam
! Combined flux in latest and established models = 2.76177 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 52 model components to the UV plane model.
! The established model now contains 132 components and 2.76177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191140Jy  sigma=1.324498
! Fit after  self-cal, rms=0.190864Jy  sigma=1.322773
! 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 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     GC        1.05     HN        0.97     
!   KK        1.00*    KP        1.12     LA        1.00     MC        1.00*    
!   MK        1.03     NL        1.02     NY        1.09     OV        1.00     
!   PT        1.00     SC        1.03     WF        0.97     GN        0.94     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.97     GC        1.09     HN        0.99     
!   KK        1.05     KP        1.10     LA        0.98     MC        1.00*    
!   MK        1.07     NL        1.02     NY        1.00*    OV        1.01     
!   PT        0.98     SC        1.02     WF        0.99     GN        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.99     GC        1.03     HN        1.01     
!   KK        0.98     KP        1.12     LA        0.98     MC        1.00*    
!   MK        1.05     NL        1.00     NY        1.00*    OV        1.01     
!   PT        0.98     SC        1.03     WF        1.02     GN        0.97     
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.01     GC        1.03     HN        0.97     
!   KK        1.00*    KP        1.15     LA        0.99     MC        1.00*    
!   MK        1.00     NL        1.05     NY        1.06     OV        1.00     
!   PT        0.99     SC        1.03     WF        0.98     GN        0.95     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.07     HN        0.98     
!   KK        1.02     KP        1.13     LA        0.97     MC        1.00*    
!   MK        1.03     NL        1.02     NY        1.08     OV        1.02     
!   PT        0.97     SC        1.02     WF        0.98     GN        0.95     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.03     HN        1.01     
!   KK        0.94     KP        1.14     LA        0.97     MC        1.00*    
!   MK        1.02     NL        1.00     NY        1.00*    OV        1.02     
!   PT        0.98     SC        1.03     WF        1.02     GN        0.95     
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        0.99     HN        0.94     
!   KK        1.00*    KP        1.05     LA        0.97     MC        1.00*    
!   MK        1.00     NL        0.99     NY        1.05     OV        0.98     
!   PT        0.98     SC        0.98     WF        0.97     GN        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GC        1.04     HN        0.95     
!   KK        0.99     KP        1.06     LA        0.96     MC        1.00*    
!   MK        1.03     NL        0.99     NY        1.06     OV        0.98     
!   PT        0.95     SC        0.98     WF        0.96     GN        0.95     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.95     GC        1.01     HN        0.98     
!   KK        0.94     KP        1.04     LA        0.96     MC        1.00*    
!   MK        1.01     NL        0.97     NY        1.00*    OV        0.98     
!   PT        0.96     SC        0.99     WF        1.00     GN        0.96     
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.99     HN        0.93     
!   KK        1.00*    KP        1.09     LA        0.96     MC        1.00*    
!   MK        0.98     NL        0.99     NY        1.00     OV        0.96     
!   PT        0.99     SC        0.98     WF        0.97     GN        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.95     GC        1.03     HN        0.94     
!   KK        1.00     KP        1.08     LA        0.95     MC        1.00*    
!   MK        1.01     NL        0.98     NY        1.04     OV        0.96     
!   PT        1.03     SC        0.97     WF        0.95     GN        0.93     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.96     GC        0.99     HN        0.96     
!   KK        0.93     KP        1.09     LA        0.95     MC        1.00*    
!   MK        0.98     NL        0.96     NY        1.00*    OV        0.96     
!   PT        1.02     SC        0.98     WF        0.99     GN        0.94     
! 
! 
! Fit before self-cal, rms=0.190864Jy  sigma=1.322773
! Fit after  self-cal, rms=0.133016Jy  sigma=0.913765
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.003 mas, bmaj=6.86 mas, bpa=-6.385 degrees
! Estimated noise=0.898348 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 (21.2, -69.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0257844 Jy
! Component: 100  -  total flux cleaned = 0.0455778 Jy
! Total flux subtracted in 100 components = 0.0455777 Jy
! Clean residual min=-0.005893 max=0.014995 Jy/beam
! Clean residual mean=0.001711 rms=0.002491 Jy/beam
! Combined flux in latest and established models = 2.80735 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 164 components and 2.80735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127654Jy  sigma=0.874139
! Fit after  self-cal, rms=0.127508Jy  sigma=0.873063
! Inverting map 
! Added new window around map position (27.2, -68.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0174384 Jy
! Component: 100  -  total flux cleaned = 0.0315366 Jy
! Total flux subtracted in 100 components = 0.0315366 Jy
! Clean residual min=-0.006393 max=0.013194 Jy/beam
! Clean residual mean=0.001481 rms=0.002144 Jy/beam
! Combined flux in latest and established models = 2.83888 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 191 components and 2.83888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124870Jy  sigma=0.853543
! Fit after  self-cal, rms=0.124763Jy  sigma=0.852857
! Inverting map 
! Added new window around map position (-1.6, -14).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0138914 Jy
! Component: 100  -  total flux cleaned = 0.0249281 Jy
! Total flux subtracted in 100 components = 0.0249281 Jy
! Clean residual min=-0.006744 max=0.011008 Jy/beam
! Clean residual mean=0.001289 rms=0.001916 Jy/beam
! Combined flux in latest and established models = 2.86381 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 216 components and 2.86381 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123066Jy  sigma=0.840324
! Fit after  self-cal, rms=0.123015Jy  sigma=0.840003
! Inverting map 
! Added new window around map position (34.4, -50.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0109402 Jy
! Component: 100  -  total flux cleaned = 0.0178414 Jy
! Total flux subtracted in 100 components = 0.0178414 Jy
! Clean residual min=-0.005644 max=0.008853 Jy/beam
! Clean residual mean=0.001162 rms=0.001757 Jy/beam
! Combined flux in latest and established models = 2.88165 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 44 model components to the UV plane model.
! The established model now contains 245 components and 2.88165 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121814Jy  sigma=0.831096
! Fit after  self-cal, rms=0.121771Jy  sigma=0.830815
! Inverting map 
! Added new window around map position (14.4, -2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00903218 Jy
! Component: 100  -  total flux cleaned = 0.0149914 Jy
! Total flux subtracted in 100 components = 0.0149914 Jy
! Clean residual min=-0.004969 max=0.008392 Jy/beam
! Clean residual mean=0.001046 rms=0.001646 Jy/beam
! Combined flux in latest and established models = 2.89664 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 41 model components to the UV plane model.
! The established model now contains 277 components and 2.89664 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120919Jy  sigma=0.824452
! Fit after  self-cal, rms=0.120898Jy  sigma=0.824291
! Inverting map 
! Added new window around map position (17.2, -49.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00735317 Jy
! Component: 100  -  total flux cleaned = 0.0127569 Jy
! Total flux subtracted in 100 components = 0.0127569 Jy
! Clean residual min=-0.004712 max=0.007805 Jy/beam
! Clean residual mean=0.000950 rms=0.001550 Jy/beam
! Combined flux in latest and established models = 2.9094 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 39 model components to the UV plane model.
! The established model now contains 301 components and 2.9094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120203Jy  sigma=0.819216
! Fit after  self-cal, rms=0.120182Jy  sigma=0.819065
! 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 (13.2, -82).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00689001 Jy
! Component: 100  -  total flux cleaned = 0.0119854 Jy
! Total flux subtracted in 100 components = 0.0119854 Jy
! Clean residual min=-0.004732 max=0.006648 Jy/beam
! Clean residual mean=0.000860 rms=0.001492 Jy/beam
! Combined flux in latest and established models = 2.92139 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 49 model components to the UV plane model.
! The established model now contains 334 components and 2.92139 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119618Jy  sigma=0.814944
! Fit after  self-cal, rms=0.112251Jy  sigma=0.758194
! Inverting map and beam 
! Estimated beam: bmin=3.002 mas, bmaj=6.857 mas, bpa=-6.39 degrees
! Estimated noise=0.898868 mJy/beam.
! Added new window around map position (5.6, -12.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00915456 Jy
! Component: 100  -  total flux cleaned = 0.016369 Jy
! Total flux subtracted in 100 components = 0.016369 Jy
! Clean residual min=-0.003700 max=0.005894 Jy/beam
! Clean residual mean=0.000920 rms=0.001314 Jy/beam
! Combined flux in latest and established models = 2.93776 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 361 components and 2.93776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111438Jy  sigma=0.752239
! Fit after  self-cal, rms=0.110556Jy  sigma=0.745436
! Inverting map and beam 
! Estimated beam: bmin=3.002 mas, bmaj=6.856 mas, bpa=-6.386 degrees
! Estimated noise=0.899057 mJy/beam.
! Added new window around map position (76.8, -83.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00726254 Jy
! Component: 100  -  total flux cleaned = 0.0133728 Jy
! Total flux subtracted in 100 components = 0.0133728 Jy
! Clean residual min=-0.003625 max=0.005532 Jy/beam
! Clean residual mean=0.000851 rms=0.001233 Jy/beam
! Combined flux in latest and established models = 2.95113 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 385 components and 2.95113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110011Jy  sigma=0.741430
! Fit after  self-cal, rms=0.109637Jy  sigma=0.738421
! Inverting map and beam 
! Estimated beam: bmin=3.002 mas, bmaj=6.855 mas, bpa=-6.384 degrees
! Estimated noise=0.8993 mJy/beam.
! Added new window around map position (-14, -1.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00671705 Jy
! Component: 100  -  total flux cleaned = 0.0122576 Jy
! Total flux subtracted in 100 components = 0.0122576 Jy
! Clean residual min=-0.003527 max=0.005235 Jy/beam
! Clean residual mean=0.000785 rms=0.001162 Jy/beam
! Combined flux in latest and established models = 2.96339 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 42 model components to the UV plane model.
! The established model now contains 407 components and 2.96339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.109175Jy  sigma=0.735014
! Fit after  self-cal, rms=0.108980Jy  sigma=0.733347
! Inverting map and beam 
! Estimated beam: bmin=3.001 mas, bmaj=6.854 mas, bpa=-6.381 degrees
! Estimated noise=0.899529 mJy/beam.
! Added new window around map position (-29.6, -30.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00581833 Jy
! Component: 100  -  total flux cleaned = 0.0108126 Jy
! Total flux subtracted in 100 components = 0.0108126 Jy
! Clean residual min=-0.003459 max=0.004972 Jy/beam
! Clean residual mean=0.000727 rms=0.001126 Jy/beam
! Combined flux in latest and established models = 2.9742 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 49 model components to the UV plane model.
! The established model now contains 422 components and 2.9742 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108618Jy  sigma=0.730689
! Fit after  self-cal, rms=0.108503Jy  sigma=0.729674
! Inverting map and beam 
! Estimated beam: bmin=3.001 mas, bmaj=6.853 mas, bpa=-6.376 degrees
! Estimated noise=0.89975 mJy/beam.
! Added new window around map position (-42, 26.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00531078 Jy
! Component: 100  -  total flux cleaned = 0.00984274 Jy
! Total flux subtracted in 100 components = 0.00984274 Jy
! Clean residual min=-0.003287 max=0.004852 Jy/beam
! Clean residual mean=0.000684 rms=0.001079 Jy/beam
! Combined flux in latest and established models = 2.98404 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 55 model components to the UV plane model.
! The established model now contains 437 components and 2.98404 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108206Jy  sigma=0.727438
! Fit after  self-cal, rms=0.108130Jy  sigma=0.726764
! Inverting map and beam 
! Estimated beam: bmin=3.001 mas, bmaj=6.852 mas, bpa=-6.373 degrees
! Estimated noise=0.899964 mJy/beam.
! Added new window around map position (62.8, -54.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00520333 Jy
! Component: 100  -  total flux cleaned = 0.00952507 Jy
! Total flux subtracted in 100 components = 0.00952507 Jy
! Clean residual min=-0.003174 max=0.004471 Jy/beam
! Clean residual mean=0.000642 rms=0.001036 Jy/beam
! Combined flux in latest and established models = 2.99357 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 45 model components to the UV plane model.
! The established model now contains 457 components and 2.99357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107844Jy  sigma=0.724681
! Fit after  self-cal, rms=0.107796Jy  sigma=0.724252
! Inverting map and beam 
! Estimated beam: bmin=3.001 mas, bmaj=6.852 mas, bpa=-6.371 degrees
! Estimated noise=0.900083 mJy/beam.
! Added new window around map position (-25.6, 16).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00466672 Jy
! Component: 100  -  total flux cleaned = 0.00849214 Jy
! Total flux subtracted in 100 components = 0.00849214 Jy
! Clean residual min=-0.003242 max=0.004205 Jy/beam
! Clean residual mean=0.000602 rms=0.001001 Jy/beam
! Combined flux in latest and established models = 3.00206 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 50 model components to the UV plane model.
! The established model now contains 472 components and 3.00206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107564Jy  sigma=0.722508
! Fit after  self-cal, rms=0.107534Jy  sigma=0.722199
! Inverting map and beam 
! Estimated beam: bmin=3.001 mas, bmaj=6.852 mas, bpa=-6.369 degrees
! Estimated noise=0.900234 mJy/beam.
! Added new window around map position (-32, 66.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00449537 Jy
! Component: 100  -  total flux cleaned = 0.00814794 Jy
! Total flux subtracted in 100 components = 0.00814794 Jy
! Clean residual min=-0.003303 max=0.003967 Jy/beam
! Clean residual mean=0.000556 rms=0.000973 Jy/beam
! Combined flux in latest and established models = 3.01021 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 49 model components to the UV plane model.
! The established model now contains 481 components and 3.01021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107314Jy  sigma=0.720622
! Fit after  self-cal, rms=0.107298Jy  sigma=0.720415
! Inverting map and beam 
! Estimated beam: bmin=3.001 mas, bmaj=6.851 mas, bpa=-6.369 degrees
! Estimated noise=0.900369 mJy/beam.
! Added new window around map position (-74.8, -6.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00413028 Jy
! Component: 100  -  total flux cleaned = 0.0074078 Jy
! Total flux subtracted in 100 components = 0.0074078 Jy
! Clean residual min=-0.003269 max=0.003822 Jy/beam
! Clean residual mean=0.000516 rms=0.000952 Jy/beam
! Combined flux in latest and established models = 3.01761 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 47 model components to the UV plane model.
! The established model now contains 489 components and 3.01761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107109Jy  sigma=0.719056
! Fit after  self-cal, rms=0.107103Jy  sigma=0.718913
! Inverting map and beam 
! Estimated beam: bmin=3.001 mas, bmaj=6.851 mas, bpa=-6.368 degrees
! Estimated noise=0.900483 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.00325297 Jy
! Component: 100  -  total flux cleaned = 0.00615455 Jy
! Total flux subtracted in 100 components = 0.00615455 Jy
! Clean residual min=-0.003317 max=0.003785 Jy/beam
! Clean residual mean=0.000487 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 3.02377 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 60 model components to the UV plane model.
! The established model now contains 500 components and 3.02377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106957Jy  sigma=0.717853
! Fit after  self-cal, rms=0.106905Jy  sigma=0.717432
! Inverting map 
! Added new window around map position (70.4, -60.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00358695 Jy
! Component: 100  -  total flux cleaned = 0.00619777 Jy
! Total flux subtracted in 100 components = 0.00619777 Jy
! Clean residual min=-0.003340 max=0.003522 Jy/beam
! Clean residual mean=0.000448 rms=0.000906 Jy/beam
! Combined flux in latest and established models = 3.02997 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 48 model components to the UV plane model.
! The established model now contains 515 components and 3.02997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106755Jy  sigma=0.716343
! Fit after  self-cal, rms=0.106754Jy  sigma=0.716290
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2145+067_S
! Writing UV FITS file: 2145+067_S.uvf
! Writing 515 model components to file: 2145+067_S.mod
! wwins: Wrote 21 windows to 2145+067_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.001 x 6.851 at -6.368 degrees (North through East)
! Clean map  min=-0.0031903  max=2.0707 Jy/beam
! Writing clean map to FITS file: 2145+067_S.fits
! Writing difmap environment to: 2145+067_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2145+067_Suv.ps/vps,1,2
! Attempting to open device: '2145+067_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2145+067_Sim.ps/vps
! Attempting to open device: '2145+067_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=3.001 mas, bmaj=6.851 mas, bpa=-6.368 degrees
! Estimated noise=0.900483 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.001 x 6.851 at -6.368 degrees (North through East)
! Clean map  min=-0.0031903  max=2.0707 Jy/beam
quit
! Quitting program
! Log file 2145+067_S.log closed on Thu Dec 19 08:34:35 2002