! Started logfile: 2358+189_S.log on Tue Aug  7 11:06:47 2007
observe 2358+189_S.edt
! Reading UV FITS file: 2358+189_S.edt
! AN table 1: 35 integrations on 105 of 105 possible baselines.
! AN table 2: 27 integrations on 105 of 105 possible baselines.
! AN table 3: 58 integrations on 105 of 105 possible baselines.
! AN table 4: 6 integrations on 105 of 105 possible baselines.
! AN table 5: 28 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0705628 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2358+189
! 
! 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 1153 lines of history.
! 
! Reading 4564 visibilities.
![@gonzo7-0.4 2358+189_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 484 telescope corrections were flagged in sub-array 1.
!  A total of 372 telescope corrections were flagged in sub-array 2.
!  A total of 824 telescope corrections were flagged in sub-array 3.
!  A total of 71 telescope corrections were flagged in sub-array 4.
!  A total of 373 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 436 telescope corrections were flagged in sub-array 1.
!  A total of 357 telescope corrections were flagged in sub-array 2.
!  A total of 741 telescope corrections were flagged in sub-array 3.
!  A total of 66 telescope corrections were flagged in sub-array 4.
!  A total of 402 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 448 telescope corrections were flagged in sub-array 1.
!  A total of 376 telescope corrections were flagged in sub-array 2.
!  A total of 800 telescope corrections were flagged in sub-array 3.
!  A total of 74 telescope corrections were flagged in sub-array 4.
!  A total of 367 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 451 telescope corrections were flagged in sub-array 1.
!  A total of 372 telescope corrections were flagged in sub-array 2.
!  A total of 749 telescope corrections were flagged in sub-array 3.
!  A total of 62 telescope corrections were flagged in sub-array 4.
!  A total of 330 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.731751Jy  sigma=0.008484
! Fit after  self-cal, rms=0.709992Jy  sigma=0.008555
! 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.421 mas, bmaj=4.295 mas, bpa=-9.133 degrees
! Estimated noise=1792.75 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.223882 Jy
! Total flux subtracted in 50 components = 0.223882 Jy
! Clean residual min=-0.013642 max=0.062440 Jy/beam
! Clean residual mean=-0.000109 rms=0.004188 Jy/beam
! Combined flux in latest and established models = 0.223882 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 0.223882 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142660Jy  sigma=0.001444
! Fit after  self-cal, rms=0.142659Jy  sigma=0.001444
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0527966 Jy
! Total flux subtracted in 50 components = 0.0527966 Jy
! Clean residual min=-0.012728 max=0.019959 Jy/beam
! Clean residual mean=-0.000057 rms=0.002965 Jy/beam
! Combined flux in latest and established models = 0.276679 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 7 components and 0.276679 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.122520Jy  sigma=0.001195
! Fit after  self-cal, rms=0.122505Jy  sigma=0.001195
! 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.001 mas, bmaj=4.886 mas, bpa=-10.97 degrees
! Estimated noise=1243.62 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.0223196 Jy
! Component: 100  -  total flux cleaned = 0.0303697 Jy
! Total flux subtracted in 100 components = 0.0303697 Jy
! Clean residual min=-0.009833 max=0.009048 Jy/beam
! Clean residual mean=-0.000075 rms=0.002350 Jy/beam
! Combined flux in latest and established models = 0.307049 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 15 components and 0.307049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118165Jy  sigma=0.001156
! Fit after  self-cal, rms=0.118155Jy  sigma=0.001156
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.85     HH        1.00*    HN        1.14     
!   KB        1.00*    KK        1.00*    KP        1.06     LA        0.98     
!   MK        0.99     NL        1.01     NY        1.00*    OV        0.99     
!   PT        0.94     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.96     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.23     LA        1.06     
!   MK        1.10     NL        1.24     NY        1.00*    OV        0.93     
!   PT        0.96     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.06     HH        1.00*    HN        1.00*    
!   KB        1.08     KK        1.00*    KP        0.85     LA        0.97     
!   MK        0.89     NL        1.14     NY        1.00*    OV        1.02     
!   PT        1.01     SC        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.13     FD        0.52     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.39     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.95     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    HH        1.00*    HN        0.80     
!   KB        1.00*    KK        1.00*    KP        0.64     LA        1.00*    
!   MK        1.00*    NL        0.92     NY        1.00*    OV        1.14     
!   PT        0.95     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        0.89     HH        0.92     HN        1.03     
!   KB        1.00*    KK        1.04     KP        1.13     LA        1.02     
!   MK        1.01     NL        1.00*    NY        1.14     OV        0.98     
!   PT        0.91     SC        1.09     WZ        1.33     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.01     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.02     LA        0.92     
!   MK        1.10     NL        1.17     NY        1.00*    OV        0.81     
!   PT        0.96     SC        1.00*    WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.06     HH        1.00*    HN        1.00*    
!   KB        1.04     KK        1.00*    KP        0.82     LA        1.02     
!   MK        0.89     NL        1.15     NY        1.00*    OV        0.99     
!   PT        1.06     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.77     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.79     LA        1.15     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.30     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.89     HH        1.00*    HN        1.08     
!   KB        1.00*    KK        1.00     KP        1.21     LA        1.00     
!   MK        1.01     NL        1.01     NY        1.00*    OV        0.98     
!   PT        0.89     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.96     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.43     LA        0.98     
!   MK        1.09     NL        1.10     NY        1.00*    OV        0.94     
!   PT        1.00     SC        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.06     HH        1.00*    HN        1.00*    
!   KB        1.53     KK        1.00*    KP        0.85     LA        1.07     
!   MK        0.85     NL        1.11     NY        1.00*    OV        1.04     
!   PT        0.98     SC        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.38     FD        0.77     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.91     
!   PT        0.87     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        0.93     HH        1.00*    HN        0.77     
!   KB        1.00*    KK        1.00*    KP        0.69     LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.20     
!   PT        0.91     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.84     HH        1.00*    HN        1.09     
!   KB        1.00*    KK        1.08     KP        1.00*    LA        0.99     
!   MK        0.94     NL        1.08     NY        1.00*    OV        0.96     
!   PT        0.92     SC        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.94     LA        0.94     
!   MK        0.97     NL        1.23     NY        1.00*    OV        0.94     
!   PT        1.03     SC        1.00*    WZ        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     HH        1.00*    HN        1.00*    
!   KB        1.42     KK        1.00*    KP        0.87     LA        1.08     
!   MK        0.78     NL        1.16     NY        1.00*    OV        0.96     
!   PT        0.96     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.16     FD        1.45     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.10     
!   MK        1.03     NL        1.00*    NY        1.00*    OV        1.12     
!   PT        1.18     SC        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.09     FD        1.00*    HH        1.00*    HN        0.75     
!   KB        1.00*    KK        1.00*    KP        0.77     LA        1.09     
!   MK        1.00*    NL        0.87     NY        1.00*    OV        1.27     
!   PT        1.06     SC        0.77     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.118155Jy  sigma=0.001156
! Fit after  self-cal, rms=0.104215Jy  sigma=0.001058
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.127 mas, bmaj=7.005 mas, bpa=-7.156 degrees
! Estimated noise=1266.65 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 = -9.69143e-05 Jy
! Component: 100  -  total flux cleaned = -0.000142728 Jy
! Total flux subtracted in 100 components = -0.000142728 Jy
! Clean residual min=-0.005637 max=0.005677 Jy/beam
! Clean residual mean=-0.000029 rms=0.001374 Jy/beam
! Combined flux in latest and established models = 0.306906 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 20 components and 0.306906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104191Jy  sigma=0.001058
! Fit after  self-cal, rms=0.104159Jy  sigma=0.001058
! 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 = -8.92156e-05 Jy
! Component: 100  -  total flux cleaned = -8.64551e-05 Jy
! Total flux subtracted in 100 components = -8.64551e-05 Jy
! Clean residual min=-0.005651 max=0.005616 Jy/beam
! Clean residual mean=-0.000029 rms=0.001375 Jy/beam
! Combined flux in latest and established models = 0.306819 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 23 components and 0.306819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104139Jy  sigma=0.001058
! Fit after  self-cal, rms=0.103527Jy  sigma=0.001048
! Inverting map and beam 
! Estimated beam: bmin=3.128 mas, bmaj=7.013 mas, bpa=-7.166 degrees
! Estimated noise=1268.99 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.000818838 Jy
! Component: 100  -  total flux cleaned = 0.000916576 Jy
! Total flux subtracted in 100 components = 0.000916576 Jy
! Clean residual min=-0.005502 max=0.005277 Jy/beam
! Clean residual mean=-0.000024 rms=0.001354 Jy/beam
! Combined flux in latest and established models = 0.307736 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 27 components and 0.307736 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103513Jy  sigma=0.001048
! Fit after  self-cal, rms=0.103490Jy  sigma=0.001048
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2358+189_S
! Writing UV FITS file: 2358+189_S.uvf
! Writing 27 model components to file: 2358+189_S.mod
! wwins: Wrote 1 windows to 2358+189_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.128 x 7.013 at -7.166 degrees (North through East)
! Clean map  min=-0.0053263  max=0.29236 Jy/beam
! Writing clean map to FITS file: 2358+189_S.fits
! Writing difmap environment to: 2358+189_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2358+189_S]
device 2358+189_Suv.ps/vps,1,2
! Attempting to open device: '2358+189_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2358+189_Sim.ps/vps
! Attempting to open device: '2358+189_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.128 mas, bmaj=7.013 mas, bpa=-7.166 degrees
! Estimated noise=1268.99 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.128 x 7.013 at -7.166 degrees (North through East)
! Clean map  min=-0.0053263  max=0.29236 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 2358+189_S.log closed on Tue Aug  7 11:07:03 2007