! Started logfile: 1040+244_S.log on Tue Aug  7 10:49:07 2007
observe 1040+244_S.edt
! Reading UV FITS file: 1040+244_S.edt
! AN table 1: 35 integrations on 105 of 105 possible baselines.
! AN table 2: 30 integrations on 105 of 105 possible baselines.
! AN table 3: 9 integrations on 105 of 105 possible baselines.
! AN table 4: 23 integrations on 105 of 105 possible baselines.
! AN table 5: 35 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0967532 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1040+244
! 
! 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 5364 visibilities.
![@gonzo7-0.4 1040+244_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 435 telescope corrections were flagged in sub-array 1.
!  A total of 375 telescope corrections were flagged in sub-array 2.
!  A total of 120 telescope corrections were flagged in sub-array 3.
!  A total of 280 telescope corrections were flagged in sub-array 4.
!  A total of 346 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 369 telescope corrections were flagged in sub-array 1.
!  A total of 375 telescope corrections were flagged in sub-array 2.
!  A total of 123 telescope corrections were flagged in sub-array 3.
!  A total of 280 telescope corrections were flagged in sub-array 4.
!  A total of 346 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 435 telescope corrections were flagged in sub-array 1.
!  A total of 375 telescope corrections were flagged in sub-array 2.
!  A total of 123 telescope corrections were flagged in sub-array 3.
!  A total of 277 telescope corrections were flagged in sub-array 4.
!  A total of 346 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 369 telescope corrections were flagged in sub-array 1.
!  A total of 375 telescope corrections were flagged in sub-array 2.
!  A total of 123 telescope corrections were flagged in sub-array 3.
!  A total of 280 telescope corrections were flagged in sub-array 4.
!  A total of 346 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.466792Jy  sigma=0.005230
! Fit after  self-cal, rms=0.429951Jy  sigma=0.004937
! 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.611 mas, bmaj=4.76 mas, bpa=-8.945 degrees
! Estimated noise=1421.9 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.465176 Jy
! Total flux subtracted in 50 components = 0.465176 Jy
! Clean residual min=-0.032412 max=0.129745 Jy/beam
! Clean residual mean=0.000046 rms=0.008770 Jy/beam
! Combined flux in latest and established models = 0.465176 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.465176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232379Jy  sigma=0.002550
! Fit after  self-cal, rms=0.232379Jy  sigma=0.002550
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.10144 Jy
! Total flux subtracted in 50 components = 0.10144 Jy
! Clean residual min=-0.023899 max=0.034204 Jy/beam
! Clean residual mean=-0.000021 rms=0.006694 Jy/beam
! Combined flux in latest and established models = 0.566615 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.566615 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186702Jy  sigma=0.002016
! Fit after  self-cal, rms=0.186702Jy  sigma=0.002016
! 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.599 mas, bmaj=5.5 mas, bpa=-9.685 degrees
! Estimated noise=908.397 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.0337658 Jy
! Component: 100  -  total flux cleaned = 0.0433598 Jy
! Total flux subtracted in 100 components = 0.0433598 Jy
! Clean residual min=-0.028144 max=0.034383 Jy/beam
! Clean residual mean=-0.000250 rms=0.007756 Jy/beam
! Combined flux in latest and established models = 0.609975 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 10 components and 0.609975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.181010Jy  sigma=0.001954
! Fit after  self-cal, rms=0.181008Jy  sigma=0.001954
! 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.90     FD        0.72     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.91     KP        0.88     LA        0.91     
!   MK        0.99     NL        0.94     NY        1.00*    OV        0.91     
!   PT        0.86     SC        1.13     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        2.11     HH        1.00*    HN        1.09     
!   KB        1.00*    KK        1.00*    KP        1.36     LA        1.11     
!   MK        1.00*    NL        1.09     NY        1.00*    OV        1.02     
!   PT        1.03     SC        0.77     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.71     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.03     KP        0.69     LA        0.97     
!   MK        1.05     NL        1.00*    NY        1.00*    OV        0.90     
!   PT        0.91     SC        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.13     FD        1.08     HH        1.00*    HN        1.18     
!   KB        0.90     KK        0.97     KP        0.71     LA        1.04     
!   MK        0.91     NL        1.09     NY        1.00*    OV        1.04     
!   PT        1.14     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        1.00*    HH        0.98     HN        1.55     
!   KB        1.00*    KK        0.98     KP        0.86     LA        0.90     
!   MK        0.97     NL        0.97     NY        0.96     OV        0.90     
!   PT        0.85     SC        1.03     WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        2.36     HH        1.00*    HN        1.05     
!   KB        1.00*    KK        1.00*    KP        1.13     LA        1.04     
!   MK        1.00*    NL        1.06     NY        1.00*    OV        0.96     
!   PT        1.08     SC        0.89     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.74     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.05     KP        0.70     LA        0.93     
!   MK        1.01     NL        1.00*    NY        1.00*    OV        0.90     
!   PT        0.89     SC        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.13     FD        1.11     HH        1.00*    HN        1.15     
!   KB        0.96     KK        0.93     KP        0.84     LA        1.06     
!   MK        0.95     NL        1.11     NY        1.00*    OV        1.07     
!   PT        1.11     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        0.67     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.96     KP        0.87     LA        0.91     
!   MK        0.95     NL        0.94     NY        1.00*    OV        0.90     
!   PT        0.88     SC        1.06     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        2.26     HH        1.00*    HN        1.09     
!   KB        1.00*    KK        1.00*    KP        1.00     LA        1.02     
!   MK        1.00*    NL        1.07     NY        1.00*    OV        1.00     
!   PT        1.06     SC        0.88     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.75     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.03     KP        0.64     LA        0.93     
!   MK        1.03     NL        1.00*    NY        1.00*    OV        0.91     
!   PT        0.94     SC        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.14     FD        1.10     HH        1.00*    HN        1.17     
!   KB        1.14     KK        0.99     KP        0.76     LA        1.03     
!   MK        0.94     NL        1.13     NY        1.00*    OV        1.03     
!   PT        1.10     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        0.68     HH        0.87     HN        1.32     
!   KB        1.00*    KK        0.93     KP        0.85     LA        0.88     
!   MK        0.94     NL        0.93     NY        1.17     OV        0.88     
!   PT        0.86     SC        1.11     WZ        0.94     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        2.05     HH        1.00*    HN        1.06     
!   KB        1.00*    KK        1.00*    KP        1.03     LA        1.05     
!   MK        1.00*    NL        1.05     NY        1.00*    OV        1.05     
!   PT        1.05     SC        0.89     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.78     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.10     KP        0.65     LA        0.93     
!   MK        0.97     NL        1.00*    NY        1.00*    OV        0.91     
!   PT        0.92     SC        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.16     FD        1.08     HH        1.00*    HN        1.16     
!   KB        1.89     KK        1.00     KP        0.79     LA        1.07     
!   MK        0.92     NL        1.03     NY        1.00*    OV        1.05     
!   PT        1.13     SC        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.181008Jy  sigma=0.001954
! Fit after  self-cal, rms=0.120600Jy  sigma=0.001134
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.651 mas, bmaj=5.58 mas, bpa=-8.21 degrees
! Estimated noise=910.352 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.00419678 Jy
! Component: 100  -  total flux cleaned = 0.00462953 Jy
! Total flux subtracted in 100 components = 0.00462953 Jy
! Clean residual min=-0.006728 max=0.006668 Jy/beam
! Clean residual mean=-0.000131 rms=0.001682 Jy/beam
! Combined flux in latest and established models = 0.614605 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 20 components and 0.614605 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120279Jy  sigma=0.001131
! Fit after  self-cal, rms=0.120317Jy  sigma=0.001130
! 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.000369304 Jy
! Component: 100  -  total flux cleaned = 0.000365797 Jy
! Total flux subtracted in 100 components = 0.000365797 Jy
! Clean residual min=-0.006662 max=0.006579 Jy/beam
! Clean residual mean=-0.000132 rms=0.001665 Jy/beam
! Combined flux in latest and established models = 0.61497 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 21 components and 0.61497 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120180Jy  sigma=0.001128
! Fit after  self-cal, rms=0.115923Jy  sigma=0.001075
! Inverting map and beam 
! Estimated beam: bmin=3.641 mas, bmaj=5.573 mas, bpa=-8.254 degrees
! Estimated noise=911.399 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)
! Added new window around map position (9.2, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00542119 Jy
! Component: 100  -  total flux cleaned = 0.00612232 Jy
! Total flux subtracted in 100 components = 0.00612232 Jy
! Clean residual min=-0.005221 max=0.004904 Jy/beam
! Clean residual mean=-0.000018 rms=0.001032 Jy/beam
! Combined flux in latest and established models = 0.621093 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 33 components and 0.621093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115679Jy  sigma=0.001072
! Fit after  self-cal, rms=0.115687Jy  sigma=0.001071
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1040+244_S
! Writing UV FITS file: 1040+244_S.uvf
! Writing 33 model components to file: 1040+244_S.mod
! wwins: Wrote 2 windows to 1040+244_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.641 x 5.573 at -8.254 degrees (North through East)
! Clean map  min=-0.0052031  max=0.60222 Jy/beam
! Writing clean map to FITS file: 1040+244_S.fits
! Writing difmap environment to: 1040+244_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1040+244_S]
device 1040+244_Suv.ps/vps,1,2
! Attempting to open device: '1040+244_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1040+244_Sim.ps/vps
! Attempting to open device: '1040+244_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.641 mas, bmaj=5.573 mas, bpa=-8.254 degrees
! Estimated noise=911.399 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.641 x 5.573 at -8.254 degrees (North through East)
! Clean map  min=-0.0052031  max=0.60222 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1040+244_S.log closed on Tue Aug  7 10:49:23 2007