! Started logfile: 2136+141_X.log on Fri Feb  5 12:23:02 1999
observe 2136+141_X.edt
! Reading UV FITS file: 2136+141_X.edt
! AN table 1: 27 integrations on 4 of 10 possible baselines.
! AN table 2: 68 integrations on 28 of 28 possible baselines.
! AN table 3: 60 integrations on 78 of 78 possible baselines.
! AN table 4: 139 integrations on 98 of 120 possible baselines.
! Apparent sampling: 0.235355 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2136+141
! 
! 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 1674 lines of history.
! 
! Reading 19124 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
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
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 = 4.0/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.
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 111 telescope corrections were flagged in sub-array 1.
!  A total of 332 telescope corrections were flagged in sub-array 2.
!  A total of 443 telescope corrections were flagged in sub-array 3.
!  A total of 1678 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 114 telescope corrections were flagged in sub-array 1.
!  A total of 346 telescope corrections were flagged in sub-array 2.
!  A total of 439 telescope corrections were flagged in sub-array 3.
!  A total of 1735 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 114 telescope corrections were flagged in sub-array 1.
!  A total of 336 telescope corrections were flagged in sub-array 2.
!  A total of 439 telescope corrections were flagged in sub-array 3.
!  A total of 1769 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 114 telescope corrections were flagged in sub-array 1.
!  A total of 336 telescope corrections were flagged in sub-array 2.
!  A total of 440 telescope corrections were flagged in sub-array 3.
!  A total of 1784 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.409997Jy  sigma=2.205779
! Fit after  self-cal, rms=0.408938Jy  sigma=2.201572
! 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.7135 mas, bmaj=1.397 mas, bpa=-8.842 degrees
! Estimated noise=1.90231 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.881399 Jy
! Total flux subtracted in 50 components = 0.881399 Jy
! Clean residual min=-0.056601 max=0.271901 Jy/beam
! Clean residual mean=0.000067 rms=0.017387 Jy/beam
! Combined flux in latest and established models = 0.881399 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.881399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.486710Jy  sigma=2.619888
! Fit after  self-cal, rms=0.486699Jy  sigma=2.619814
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.288579 Jy
! Total flux subtracted in 50 components = 0.288579 Jy
! Clean residual min=-0.029619 max=0.130820 Jy/beam
! Clean residual mean=0.000055 rms=0.009195 Jy/beam
! Combined flux in latest and established models = 1.16998 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 10 components and 1.16998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280963Jy  sigma=1.509963
! Fit after  self-cal, rms=0.280794Jy  sigma=1.509046
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.143882 Jy
! Total flux subtracted in 50 components = 0.143882 Jy
! Clean residual min=-0.017667 max=0.066798 Jy/beam
! Clean residual mean=0.000049 rms=0.005551 Jy/beam
! Combined flux in latest and established models = 1.31386 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 13 components and 1.31386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196048Jy  sigma=1.050872
! Fit after  self-cal, rms=0.195844Jy  sigma=1.049759
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0742771 Jy
! Total flux subtracted in 50 components = 0.0742771 Jy
! Clean residual min=-0.013632 max=0.035402 Jy/beam
! Clean residual mean=0.000046 rms=0.004078 Jy/beam
! Combined flux in latest and established models = 1.38814 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 18 components and 1.38814 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164560Jy  sigma=0.880238
! Fit after  self-cal, rms=0.164391Jy  sigma=0.879289
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0418888 Jy
! Total flux subtracted in 50 components = 0.0418888 Jy
! Clean residual min=-0.012090 max=0.028701 Jy/beam
! Clean residual mean=0.000044 rms=0.003498 Jy/beam
! Combined flux in latest and established models = 1.43003 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 23 components and 1.43003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152719Jy  sigma=0.816053
! Fit after  self-cal, rms=0.152585Jy  sigma=0.815279
! Inverting map 
! Added new window around map position (-1.2, -1.1).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0313341 Jy
! Total flux subtracted in 50 components = 0.0313341 Jy
! Clean residual min=-0.010535 max=0.019097 Jy/beam
! Clean residual mean=0.000042 rms=0.003136 Jy/beam
! Combined flux in latest and established models = 1.46136 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 33 components and 1.46136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146286Jy  sigma=0.780908
! Fit after  self-cal, rms=0.146082Jy  sigma=0.779758
! 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.8723 mas, bmaj=1.784 mas, bpa=-7.64 degrees
! Estimated noise=1.10521 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.0313709 Jy
! Component: 100  -  total flux cleaned = 0.0510873 Jy
! Total flux subtracted in 100 components = 0.0510873 Jy
! Clean residual min=-0.011084 max=0.019661 Jy/beam
! Clean residual mean=0.000013 rms=0.003063 Jy/beam
! Combined flux in latest and established models = 1.51245 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 50 components and 1.51245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139644Jy  sigma=0.744663
! Fit after  self-cal, rms=0.139415Jy  sigma=0.743350
! 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.00*    GC        0.00*    KK        0.00*    MC        0.00*    
!   ON        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     GN        1.03     HN        0.99     MC        0.98     
!   NL        0.98     ON        1.02     SC        1.01     WF        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        0.98     GN        1.03     
!   HN        1.03     KK        0.95     KP        0.99     LA        0.99     
!   NL        0.99     OV        0.97     PT        0.98     SC        1.07     
!   WF        0.98     
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.99     GC        0.99     GN        1.07     
!   HN        1.00     KK        1.00     KP        1.00     LA        0.98     
!   MC        1.06     MK        1.07     NL        0.99     ON        0.97     
!   OV        0.98     PT        0.99     SC        0.97     WF        1.02     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    GC        0.00*    KK        0.00*    MC        0.00*    
!   ON        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     GN        1.01     HN        0.98     MC        1.02     
!   NL        0.99     ON        0.97     SC        1.01     WF        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        0.97     GN        1.01     
!   HN        1.01     KK        0.98     KP        0.98     LA        0.99     
!   NL        0.99     OV        0.97     PT        0.98     SC        1.09     
!   WF        0.98     
! 
!  A total of 81 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        0.97     GN        1.04     
!   HN        1.00     KK        0.99     KP        1.00     LA        0.98     
!   MC        1.00*    MK        1.07     NL        0.97     ON        1.00*    
!   OV        0.98     PT        0.99     SC        0.97     WF        1.04     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    GC        0.00*    KK        0.00*    MC        0.00*    
!   ON        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     GN        1.04     HN        0.99     MC        1.06     
!   NL        1.00     ON        0.93     SC        1.01     WF        0.95     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.01     GN        1.01     
!   HN        1.02     KK        0.95     KP        0.98     LA        0.98     
!   NL        0.99     OV        0.97     PT        0.98     SC        1.08     
!   WF        1.00     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        1.00     GN        1.05     
!   HN        0.98     KK        0.96     KP        1.00     LA        0.97     
!   MC        1.00*    MK        1.04     NL        0.98     ON        1.00*    
!   OV        0.99     PT        0.99     SC        0.98     WF        1.06     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    GC        0.00*    KK        0.00*    MC        0.00*    
!   ON        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     GN        1.02     HN        0.98     MC        0.98     
!   NL        0.98     ON        0.94     SC        1.04     WF        0.95     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        0.97     GN        1.04     
!   HN        1.03     KK        0.96     KP        0.98     LA        0.97     
!   NL        0.99     OV        0.97     PT        0.97     SC        1.10     
!   WF        0.98     
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.97     GC        0.98     GN        1.07     
!   HN        0.99     KK        0.98     KP        1.01     LA        0.97     
!   MC        1.00*    MK        1.03     NL        0.97     ON        1.00*    
!   OV        0.98     PT        0.98     SC        0.96     WF        1.04     
! 
! 
! Fit before self-cal, rms=0.139415Jy  sigma=0.743350
! Fit after  self-cal, rms=0.127916Jy  sigma=0.679631
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8849 mas, bmaj=1.808 mas, bpa=-7.683 degrees
! Estimated noise=1.1152 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.00722885 Jy
! Component: 100  -  total flux cleaned = 0.00899311 Jy
! Total flux subtracted in 100 components = 0.00899311 Jy
! Clean residual min=-0.006007 max=0.007268 Jy/beam
! Clean residual mean=0.000054 rms=0.001469 Jy/beam
! Combined flux in latest and established models = 1.52144 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 59 components and 1.52144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127549Jy  sigma=0.677609
! Fit after  self-cal, rms=0.127504Jy  sigma=0.677310
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
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 (-1.6, -3.9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00694708 Jy
! Component: 100  -  total flux cleaned = 0.00850144 Jy
! Total flux subtracted in 100 components = 0.00850144 Jy
! Clean residual min=-0.005917 max=0.005155 Jy/beam
! Clean residual mean=0.000057 rms=0.001425 Jy/beam
! Combined flux in latest and established models = 1.52994 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 72 components and 1.52994 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127149Jy  sigma=0.675326
! Fit after  self-cal, rms=0.123647Jy  sigma=0.654248
! Inverting map and beam 
! Estimated beam: bmin=0.8846 mas, bmaj=1.808 mas, bpa=-7.684 degrees
! Estimated noise=1.11611 mJy/beam.
doamp = false
solint = solint / 1.5
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.00482298 Jy
! Component: 100  -  total flux cleaned = 0.00659298 Jy
! Total flux subtracted in 100 components = 0.00659298 Jy
! Clean residual min=-0.003588 max=0.004179 Jy/beam
! Clean residual mean=0.000014 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 1.53654 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 82 components and 1.53654 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123465Jy  sigma=0.653195
! Fit after  self-cal, rms=0.123449Jy  sigma=0.653107
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2136+141_X
! Writing UV FITS file: 2136+141_X.uvf
! Writing 82 model components to file: 2136+141_X.mod
! wwins: Wrote 3 windows to 2136+141_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8846 x 1.808 at -7.684 degrees (North through East)
! Clean map  min=-0.00334  max=1.1973 Jy/beam
! Writing clean map to FITS file: 2136+141_X.fits
! Writing difmap environment to: 2136+141_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2136+141_Xuv.ps/vps,1,2
! Attempting to open device: '2136+141_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 2136+141_Xim.ps/vps
! Attempting to open device: '2136+141_Xim.ps/vps'
cmul = 1.0
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 (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.8846 mas, bmaj=1.808 mas, bpa=-7.684 degrees
! Estimated noise=1.11611 mJy/beam.
! The new contour levels are:
!  -0.00261682 0.00261682 0.00523364 0.0104673 0.0209346 0.0418691 0.0837383 0.167477 0.334953 0.669906 1.33981 2.67962 5.35925 10.7185 21.437 42.874 85.748 171.496 342.992 685.984 1371.97 2743.94 5487.87 10975.7
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8846 x 1.808 at -7.684 degrees (North through East)
! Clean map  min=-0.00334  max=1.1973 Jy/beam
device 2136+141_Xim_un.ps/vps
! Attempting to open device: '2136+141_Xim_un.ps/vps'
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.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.7126 mas, bmaj=1.422 mas, bpa=-8.953 degrees
! Estimated noise=1.90985 mJy/beam.
! The new contour levels are:
!  -0.00458414 0.00458414 0.00916827 0.0183365 0.0366731 0.0733462 0.146692 0.293385 0.586769 1.17354 2.34708 4.69416 9.38831 18.7766 37.5532 75.1065 150.213 300.426 600.852 1201.7 2403.41 4806.82 9613.63 19227.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7126 x 1.422 at -8.953 degrees (North through East)
! Clean map  min=-0.006267  max=1.1066 Jy/beam
quit
! Quitting program
! Log file 2136+141_X.log closed on Fri Feb  5 12:25:58 1999