! Started logfile: 1842+681_S.log on Fri Apr 18 07:26:18 2008
observe 1842+681_S.edt
! Reading UV FITS file: 1842+681_S.edt
! AN table 1: 29 integrations on 136 of 136 possible baselines.
! AN table 2: 25 integrations on 136 of 136 possible baselines.
! AN table 3: 73 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.238073 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1842+681
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1142 lines of history.
! 
! Reading 16448 visibilities.
![@gonzo7-0.4 1842+681_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 3.6/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.400x0.400 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 204 telescope corrections were flagged in sub-array 1.
!  A total of 237 telescope corrections were flagged in sub-array 2.
!  A total of 886 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 204 telescope corrections were flagged in sub-array 1.
!  A total of 271 telescope corrections were flagged in sub-array 2.
!  A total of 865 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 204 telescope corrections were flagged in sub-array 1.
!  A total of 237 telescope corrections were flagged in sub-array 2.
!  A total of 865 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 230 telescope corrections were flagged in sub-array 1.
!  A total of 302 telescope corrections were flagged in sub-array 2.
!  A total of 942 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.579080Jy  sigma=0.007330
! Fit after  self-cal, rms=0.577865Jy  sigma=0.007347
! 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=1.956 mas, bmaj=2.385 mas, bpa=-38.03 degrees
! Estimated noise=1025.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.308081 Jy
! Total flux subtracted in 50 components = 0.308081 Jy
! Clean residual min=-0.023146 max=0.087964 Jy/beam
! Clean residual mean=-0.000110 rms=0.005790 Jy/beam
! Combined flux in latest and established models = 0.308081 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.308081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257280Jy  sigma=0.002571
! Fit after  self-cal, rms=0.257296Jy  sigma=0.002570
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0891408 Jy
! Total flux subtracted in 50 components = 0.0891408 Jy
! Clean residual min=-0.023994 max=0.038633 Jy/beam
! Clean residual mean=-0.000089 rms=0.004632 Jy/beam
! Combined flux in latest and established models = 0.397222 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 7 components and 0.397222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218690Jy  sigma=0.002057
! Fit after  self-cal, rms=0.218622Jy  sigma=0.002056
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0469495 Jy
! Total flux subtracted in 50 components = 0.0469495 Jy
! Clean residual min=-0.024569 max=0.027446 Jy/beam
! Clean residual mean=-0.000077 rms=0.004291 Jy/beam
! Combined flux in latest and established models = 0.444172 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 11 components and 0.444172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208344Jy  sigma=0.001925
! Fit after  self-cal, rms=0.208346Jy  sigma=0.001924
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Uniform Weighting CLEAN ***"
! *** Finished Uniform Weighting CLEAN *** 
print "****************************************"
! **************************************** 
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.532 mas, bmaj=3.14 mas, bpa=-33.64 degrees
! Estimated noise=511.222 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.0404154 Jy
! Component: 100  -  total flux cleaned = 0.0571048 Jy
! Total flux subtracted in 100 components = 0.0571048 Jy
! Clean residual min=-0.023419 max=0.031279 Jy/beam
! Clean residual mean=-0.000116 rms=0.005504 Jy/beam
! Combined flux in latest and established models = 0.501276 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 0.501276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198251Jy  sigma=0.001861
! Fit after  self-cal, rms=0.198138Jy  sigma=0.001860
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.94     HN        0.89     KB        1.00*    
!   KK        1.00*    KP        1.42     LA        0.93     MK        0.62     
!   NL        0.70     NY        1.00*    OV        1.26     PT        0.88     
!   SC        1.65     TS        1.00*    WF        0.80     WZ        1.00*    
!   ZC        1.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.99     HN        1.03     KB        6.06     
!   KK        1.07     KP        1.96     LA        0.90     MK        1.00*    
!   NL        1.03     NY        1.13     OV        1.12     PT        0.96     
!   SC        1.00*    TS        5.63     WF        1.03     WZ        1.00*    
!   ZC        0.84     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     HN        1.02     KB        0.92     
!   KK        1.11     KP        1.31     LA        0.99     MK        1.06     
!   NL        1.00     NY        0.87     OV        1.20     PT        1.01     
!   SC        0.53     TS        1.59     WF        0.95     WZ        1.00*    
!   ZC        1.11     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        0.91     HN        0.84     KB        1.00*    
!   KK        1.00*    KP        1.63     LA        0.86     MK        0.61     
!   NL        0.70     NY        1.00*    OV        1.30     PT        0.83     
!   SC        1.06     TS        1.00*    WF        0.84     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.02     FD        1.01     HN        1.05     KB        5.38     
!   KK        0.99     KP        4.59     LA        0.94     MK        1.00*    
!   NL        1.01     NY        1.00*    OV        1.13     PT        0.97     
!   SC        1.00*    TS       14.85     WF        0.99     WZ        1.00*    
!   ZC        0.80     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00     HN        1.00     KB        0.95     
!   KK        1.06     KP        1.10     LA        0.98     MK        1.10     
!   NL        0.96     NY        0.98     OV        1.17     PT        1.00     
!   SC        0.76     TS        1.12     WF        0.93     WZ        1.00*    
!   ZC        1.06     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.90     HN        0.86     KB        1.00*    
!   KK        1.00*    KP        1.87     LA        0.89     MK        0.99     
!   NL        0.72     NY        1.00*    OV        1.31     PT        0.85     
!   SC        1.21     TS        1.00*    WF        0.85     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     HN        1.02     KB        7.78     
!   KK        0.98     KP        3.33     LA        0.90     MK        1.00*    
!   NL        0.97     NY        1.15     OV        1.11     PT        0.94     
!   SC        1.00*    TS        7.17     WF        0.97     WZ        1.00*    
!   ZC        0.87     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.96     HN        0.98     KB        0.92     
!   KK        1.05     KP        1.11     LA        0.96     MK        1.06     
!   NL        0.97     NY        0.93     OV        1.17     PT        0.99     
!   SC        0.57     TS        1.10     WF        0.91     WZ        1.00*    
!   ZC        1.04     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.86     FD        1.00*    HN        0.82     KB        1.00*    
!   KK        1.00*    KP        1.80     LA        0.88     MK        0.99     
!   NL        0.74     NY        1.00*    OV        1.30     PT        0.86     
!   SC        1.14     TS        1.00*    WF        0.90     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    HN        1.06     KB        6.95     
!   KK        0.95     KP        3.61     LA        0.91     MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.09     PT        0.96     
!   SC        1.00*    TS        5.11     WF        1.00*    WZ        1.00*    
!   ZC        0.86     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    HN        0.96     KB        1.49     
!   KK        1.00     KP        1.10     LA        0.98     MK        1.08     
!   NL        0.98     NY        1.00*    OV        1.14     PT        0.97     
!   SC        0.57     TS        1.91     WF        0.89     WZ        1.00*    
!   ZC        1.01     
! 
! 
! Fit before self-cal, rms=0.198138Jy  sigma=0.001860
! Fit after  self-cal, rms=0.203907Jy  sigma=0.001243
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.56 mas, bmaj=3.192 mas, bpa=-31.24 degrees
! Estimated noise=505.292 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 (3.6, -3.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0175826 Jy
! Component: 100  -  total flux cleaned = 0.021011 Jy
! Total flux subtracted in 100 components = 0.021011 Jy
! Clean residual min=-0.005577 max=0.013715 Jy/beam
! Clean residual mean=0.000001 rms=0.001426 Jy/beam
! Combined flux in latest and established models = 0.522288 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 36 components and 0.522287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202593Jy  sigma=0.001211
! Fit after  self-cal, rms=0.204330Jy  sigma=0.001207
! Inverting map 
! Added new window around map position (4.4, -10.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0122038 Jy
! Component: 100  -  total flux cleaned = 0.0157121 Jy
! Total flux subtracted in 100 components = 0.0157121 Jy
! Clean residual min=-0.006632 max=0.006314 Jy/beam
! Clean residual mean=-0.000155 rms=0.001154 Jy/beam
! Combined flux in latest and established models = 0.538 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 57 components and 0.538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203693Jy  sigma=0.001188
! Fit after  self-cal, rms=0.203676Jy  sigma=0.001187
! 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.00319991 Jy
! Component: 100  -  total flux cleaned = 0.00465498 Jy
! Total flux subtracted in 100 components = 0.00465498 Jy
! Clean residual min=-0.006704 max=0.005510 Jy/beam
! Clean residual mean=-0.000198 rms=0.001097 Jy/beam
! Combined flux in latest and established models = 0.542655 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 61 components and 0.542655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203510Jy  sigma=0.001183
! Fit after  self-cal, rms=0.240773Jy  sigma=0.001148
! Inverting map and beam 
! Estimated beam: bmin=2.563 mas, bmaj=3.195 mas, bpa=-29.8 degrees
! Estimated noise=504.129 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00439965 Jy
! Component: 100  -  total flux cleaned = 0.00560614 Jy
! Total flux subtracted in 100 components = 0.00560614 Jy
! Clean residual min=-0.004495 max=0.004176 Jy/beam
! Clean residual mean=-0.000291 rms=0.000855 Jy/beam
! Combined flux in latest and established models = 0.548261 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 70 components and 0.548261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240567Jy  sigma=0.001141
! Fit after  self-cal, rms=0.237925Jy  sigma=0.001138
! Inverting map and beam 
! Estimated beam: bmin=2.563 mas, bmaj=3.194 mas, bpa=-29.12 degrees
! Estimated noise=503.004 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161506 Jy
! Component: 100  -  total flux cleaned = 0.00292468 Jy
! Total flux subtracted in 100 components = 0.00292468 Jy
! Clean residual min=-0.004447 max=0.003726 Jy/beam
! Clean residual mean=-0.000300 rms=0.000783 Jy/beam
! Combined flux in latest and established models = 0.551185 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 74 components and 0.551186 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237804Jy  sigma=0.001134
! Fit after  self-cal, rms=0.238930Jy  sigma=0.001133
! Inverting map and beam 
! Estimated beam: bmin=2.564 mas, bmaj=3.196 mas, bpa=-28.57 degrees
! Estimated noise=502.004 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.000492638 Jy
! Component: 100  -  total flux cleaned = 0.00159771 Jy
! Total flux subtracted in 100 components = 0.00159771 Jy
! Clean residual min=-0.004224 max=0.003267 Jy/beam
! Clean residual mean=-0.000296 rms=0.000737 Jy/beam
! Combined flux in latest and established models = 0.552783 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 80 components and 0.552783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238851Jy  sigma=0.001130
! Fit after  self-cal, rms=0.238874Jy  sigma=0.001130
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1842+681_S
! Writing UV FITS file: 1842+681_S.uvf
! Writing 80 model components to file: 1842+681_S.mod
! wwins: Wrote 3 windows to 1842+681_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.564 x 3.196 at -28.57 degrees (North through East)
! Clean map  min=-0.0034082  max=0.42427 Jy/beam
! Writing clean map to FITS file: 1842+681_S.fits
! Writing difmap environment to: 1842+681_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1842+681_S]
device 1842+681_Suv.ps/vps,1,2
! Attempting to open device: '1842+681_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1842+681_Sim.ps/vps
! Attempting to open device: '1842+681_Sim.ps/vps'
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
loglevs -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=2.564 mas, bmaj=3.196 mas, bpa=-28.57 degrees
! Estimated noise=502.004 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.564 x 3.196 at -28.57 degrees (North through East)
! Clean map  min=-0.0034082  max=0.42427 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1842+681_S.log closed on Fri Apr 18 07:26:43 2008