! Started logfile: 0641+392_S.log on Tue Aug  7 10:44:25 2007
observe 0641+392_S.edt
! Reading UV FITS file: 0641+392_S.edt
! AN table 1: 37 integrations on 105 of 105 possible baselines.
! AN table 2: 27 integrations on 105 of 105 possible baselines.
! AN table 3: 69 integrations on 105 of 105 possible baselines.
! AN table 4: 59 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0908234 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0641+392
! 
! 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 7324 visibilities.
![@gonzo7-0.4 0641+392_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 409 telescope corrections were flagged in sub-array 1.
!  A total of 366 telescope corrections were flagged in sub-array 2.
!  A total of 853 telescope corrections were flagged in sub-array 3.
!  A total of 638 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 394 telescope corrections were flagged in sub-array 1.
!  A total of 363 telescope corrections were flagged in sub-array 2.
!  A total of 805 telescope corrections were flagged in sub-array 3.
!  A total of 641 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 409 telescope corrections were flagged in sub-array 1.
!  A total of 363 telescope corrections were flagged in sub-array 2.
!  A total of 853 telescope corrections were flagged in sub-array 3.
!  A total of 638 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 415 telescope corrections were flagged in sub-array 1.
!  A total of 381 telescope corrections were flagged in sub-array 2.
!  A total of 811 telescope corrections were flagged in sub-array 3.
!  A total of 638 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.594207Jy  sigma=0.005844
! Fit after  self-cal, rms=0.587293Jy  sigma=0.005812
! 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.335 mas, bmaj=3.268 mas, bpa=-10.83 degrees
! Estimated noise=1319.35 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.330072 Jy
! Total flux subtracted in 50 components = 0.330072 Jy
! Clean residual min=-0.015571 max=0.092085 Jy/beam
! Clean residual mean=0.000078 rms=0.005083 Jy/beam
! Combined flux in latest and established models = 0.330072 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.330072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197119Jy  sigma=0.001815
! Fit after  self-cal, rms=0.197119Jy  sigma=0.001815
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0826146 Jy
! Total flux subtracted in 50 components = 0.0826146 Jy
! Clean residual min=-0.013839 max=0.032849 Jy/beam
! Clean residual mean=-0.000016 rms=0.003471 Jy/beam
! Combined flux in latest and established models = 0.412686 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.412686 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164883Jy  sigma=0.001426
! Fit after  self-cal, rms=0.164874Jy  sigma=0.001426
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0374021 Jy
! Total flux subtracted in 50 components = 0.0374021 Jy
! Clean residual min=-0.013054 max=0.021142 Jy/beam
! Clean residual mean=-0.000058 rms=0.003081 Jy/beam
! Combined flux in latest and established models = 0.450089 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 24 components and 0.450089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157737Jy  sigma=0.001338
! Fit after  self-cal, rms=0.157725Jy  sigma=0.001338
! Inverting map 
! Added new window around map position (0.8, 4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0235259 Jy
! Total flux subtracted in 50 components = 0.0235259 Jy
! Clean residual min=-0.012139 max=0.014295 Jy/beam
! Clean residual mean=-0.000084 rms=0.002914 Jy/beam
! Combined flux in latest and established models = 0.473614 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 30 components and 0.473614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155020Jy  sigma=0.001305
! Fit after  self-cal, rms=0.154987Jy  sigma=0.001305
! 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.78 mas, bmaj=3.797 mas, bpa=-11.22 degrees
! Estimated noise=914.016 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.0165007 Jy
! Component: 100  -  total flux cleaned = 0.026169 Jy
! Total flux subtracted in 100 components = 0.026169 Jy
! Clean residual min=-0.011732 max=0.016355 Jy/beam
! Clean residual mean=-0.000361 rms=0.003234 Jy/beam
! Combined flux in latest and established models = 0.499783 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 42 components and 0.499783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153297Jy  sigma=0.001288
! Fit after  self-cal, rms=0.153265Jy  sigma=0.001287
! 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 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HH        1.00*    HN        1.11     
!   KB        1.04     KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.16     NY        1.08     OV        1.00*    
!   PT        1.00*    SC        1.15     WZ        0.97     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     HH        1.00*    HN        0.87     
!   KB        1.00*    KK        0.92     KP        0.94     LA        0.97     
!   MK        0.98     NL        1.07     NY        0.91     OV        1.02     
!   PT        0.99     SC        1.20     WZ        1.19     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.00     HH        1.00*    HN        1.01     
!   KB        1.00*    KK        0.96     KP        0.75     LA        1.03     
!   MK        1.31     NL        1.05     NY        1.00*    OV        1.20     
!   PT        0.98     SC        0.87     WZ        1.08     
! 
! 
! Correcting IF 2.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HH        0.95     HN        0.97     
!   KB        1.08     KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.19     NY        1.09     OV        1.00*    
!   PT        1.00*    SC        1.05     WZ        0.94     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.95     HH        1.02     HN        0.86     
!   KB        1.17     KK        1.04     KP        0.87     LA        1.00     
!   MK        1.01     NL        1.08     NY        1.03     OV        1.02     
!   PT        0.98     SC        1.19     WZ        0.95     
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     HH        1.00*    HN        0.97     
!   KB        1.00*    KK        0.98     KP        0.80     LA        1.03     
!   MK        1.02     NL        1.06     NY        1.00*    OV        1.10     
!   PT        0.97     SC        1.02     WZ        1.04     
! 
! 
! Correcting IF 3.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HH        1.00*    HN        1.06     
!   KB        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.14     NY        1.07     OV        1.00*    
!   PT        1.00*    SC        0.96     WZ        0.96     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.04     HH        1.00*    HN        0.82     
!   KB        1.00*    KK        1.12     KP        0.88     LA        0.97     
!   MK        0.95     NL        1.09     NY        0.90     OV        0.99     
!   PT        0.96     SC        1.21     WZ        0.86     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        0.98     HH        1.00*    HN        0.97     
!   KB        1.00*    KK        1.01     KP        0.71     LA        1.04     
!   MK        0.95     NL        1.05     NY        1.00*    OV        1.09     
!   PT        1.01     SC        1.03     WZ        0.97     
! 
! 
! Correcting IF 4.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HH        1.00*    HN        1.03     
!   KB        1.06     KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.12     NY        1.09     OV        1.00*    
!   PT        1.00*    SC        0.99     WZ        0.92     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.95     HH        0.97     HN        0.81     
!   KB        1.01     KK        1.05     KP        0.85     LA        0.98     
!   MK        0.85     NL        1.05     NY        1.02     OV        1.01     
!   PT        0.99     SC        0.97     WZ        0.99     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        0.99     HH        1.00*    HN        0.99     
!   KB        1.00*    KK        0.98     KP        0.75     LA        1.01     
!   MK        0.96     NL        1.04     NY        1.00*    OV        1.12     
!   PT        1.03     SC        0.92     WZ        0.98     
! 
! 
! Fit before self-cal, rms=0.153265Jy  sigma=0.001287
! Fit after  self-cal, rms=0.139044Jy  sigma=0.001162
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.832 mas, bmaj=3.951 mas, bpa=-12.33 degrees
! Estimated noise=950.743 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.00523025 Jy
! Component: 100  -  total flux cleaned = -0.00603538 Jy
! Total flux subtracted in 100 components = -0.00603538 Jy
! Clean residual min=-0.009211 max=0.008215 Jy/beam
! Clean residual mean=-0.000566 rms=0.002121 Jy/beam
! Combined flux in latest and established models = 0.493748 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 47 components and 0.493748 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138799Jy  sigma=0.001161
! Fit after  self-cal, rms=0.138752Jy  sigma=0.001160
! 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.000660574 Jy
! Component: 100  -  total flux cleaned = -0.000659979 Jy
! Total flux subtracted in 100 components = -0.000659979 Jy
! Clean residual min=-0.009148 max=0.008193 Jy/beam
! Clean residual mean=-0.000562 rms=0.002114 Jy/beam
! Combined flux in latest and established models = 0.493088 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 52 components and 0.493088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138682Jy  sigma=0.001160
! Fit after  self-cal, rms=0.136500Jy  sigma=0.001066
! Inverting map and beam 
! Estimated beam: bmin=2.844 mas, bmaj=3.95 mas, bpa=-11.88 degrees
! Estimated noise=952.432 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 (60.4, -62.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00452198 Jy
! Component: 100  -  total flux cleaned = 0.00572651 Jy
! Total flux subtracted in 100 components = 0.00572651 Jy
! Clean residual min=-0.004157 max=0.004605 Jy/beam
! Clean residual mean=0.000124 rms=0.000991 Jy/beam
! Combined flux in latest and established models = 0.498815 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 64 components and 0.498815 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136309Jy  sigma=0.001065
! Fit after  self-cal, rms=0.136282Jy  sigma=0.001065
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0641+392_S
! Writing UV FITS file: 0641+392_S.uvf
! Writing 64 model components to file: 0641+392_S.mod
! wwins: Wrote 3 windows to 0641+392_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.844 x 3.95 at -11.88 degrees (North through East)
! Clean map  min=-0.0039305  max=0.4237 Jy/beam
! Writing clean map to FITS file: 0641+392_S.fits
! Writing difmap environment to: 0641+392_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0641+392_S]
device 0641+392_Suv.ps/vps,1,2
! Attempting to open device: '0641+392_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0641+392_Sim.ps/vps
! Attempting to open device: '0641+392_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.844 mas, bmaj=3.95 mas, bpa=-11.88 degrees
! Estimated noise=952.432 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.844 x 3.95 at -11.88 degrees (North through East)
! Clean map  min=-0.0039305  max=0.4237 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 0641+392_S.log closed on Tue Aug  7 10:44:47 2007