! Started logfile: 1749+096_S.log on Fri Apr 18 07:25:38 2008
observe 1749+096_S.edt
! Reading UV FITS file: 1749+096_S.edt
! AN table 1: 16 integrations on 136 of 136 possible baselines.
! AN table 2: 45 integrations on 136 of 136 possible baselines.
! AN table 3: 23 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.104429 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1749+096
! 
! 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 1141 lines of history.
! 
! Reading 4772 visibilities.
![@gonzo7-0.4 1749+096_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 269 telescope corrections were flagged in sub-array 1.
!  A total of 565 telescope corrections were flagged in sub-array 2.
!  A total of 292 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 269 telescope corrections were flagged in sub-array 1.
!  A total of 565 telescope corrections were flagged in sub-array 2.
!  A total of 292 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 232 telescope corrections were flagged in sub-array 1.
!  A total of 557 telescope corrections were flagged in sub-array 2.
!  A total of 292 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 232 telescope corrections were flagged in sub-array 1.
!  A total of 568 telescope corrections were flagged in sub-array 2.
!  A total of 298 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.742126Jy  sigma=0.008644
! Fit after  self-cal, rms=0.735617Jy  sigma=0.008672
! 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.202 mas, bmaj=6.069 mas, bpa=5.436 degrees
! Estimated noise=1579.61 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 = 1.27028 Jy
! Total flux subtracted in 50 components = 1.27028 Jy
! Clean residual min=-0.065333 max=0.354289 Jy/beam
! Clean residual mean=0.000906 rms=0.023235 Jy/beam
! Combined flux in latest and established models = 1.27028 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 1.27028 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.500262Jy  sigma=0.005788
! Fit after  self-cal, rms=0.500262Jy  sigma=0.005788
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.293621 Jy
! Total flux subtracted in 50 components = 0.293621 Jy
! Clean residual min=-0.041525 max=0.106750 Jy/beam
! Clean residual mean=0.000391 rms=0.013190 Jy/beam
! Combined flux in latest and established models = 1.5639 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 1.5639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312405Jy  sigma=0.003215
! Fit after  self-cal, rms=0.312436Jy  sigma=0.003215
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.116012 Jy
! Total flux subtracted in 50 components = 0.116012 Jy
! Clean residual min=-0.038131 max=0.058360 Jy/beam
! Clean residual mean=0.000186 rms=0.011025 Jy/beam
! Combined flux in latest and established models = 1.67991 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 18 components and 1.67991 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273520Jy  sigma=0.002608
! Fit after  self-cal, rms=0.273419Jy  sigma=0.002607
! 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.899 mas, bmaj=7.579 mas, bpa=0.3373 degrees
! Estimated noise=1011.87 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.082737 Jy
! Component: 100  -  total flux cleaned = 0.122209 Jy
! Total flux subtracted in 100 components = 0.122209 Jy
! Clean residual min=-0.030813 max=0.035031 Jy/beam
! Clean residual mean=-0.000131 rms=0.007503 Jy/beam
! Combined flux in latest and established models = 1.80212 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 35 components and 1.80212 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253710Jy  sigma=0.002262
! Fit after  self-cal, rms=0.253542Jy  sigma=0.002260
! 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.00*    FD        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*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.95     HN        0.99     KB        1.01     
!   KK        1.08     KP        0.93     LA        0.97     MK        1.16     
!   NL        0.97     NY        1.35     OV        1.01     PT        0.96     
!   SC        0.72     TS        1.01     WF        0.97     WZ        1.00*    
!   ZC        0.99     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00     HN        1.00*    KB        1.00*    
!   KK        1.00     KP        1.04     LA        0.98     MK        0.86     
!   NL        1.10     NY        1.00*    OV        1.14     PT        1.02     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        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.00*    FD        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*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.93     HN        0.97     KB        1.01     
!   KK        1.06     KP        1.01     LA        0.97     MK        1.01     
!   NL        0.96     NY        1.47     OV        1.01     PT        0.96     
!   SC        0.88     TS        1.03     WF        0.95     WZ        1.00*    
!   ZC        0.95     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.03     HN        1.00*    KB        1.00*    
!   KK        1.00     KP        0.97     LA        0.97     MK        0.86     
!   NL        1.10     NY        1.00*    OV        1.09     PT        1.03     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.85     
!   KK        0.89     KP        1.00*    LA        1.00*    MK        1.11     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.95     HN        0.97     KB        0.86     
!   KK        1.05     KP        0.97     LA        0.96     MK        1.03     
!   NL        1.00     NY        1.63     OV        1.03     PT        0.98     
!   SC        0.83     TS        1.01     WF        0.97     WZ        1.00*    
!   ZC        0.98     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.99     HN        1.00*    KB        1.00*    
!   KK        1.02     KP        0.94     LA        0.99     MK        0.81     
!   NL        1.07     NY        1.00*    OV        1.10     PT        1.01     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        1.61     
!   KK        0.89     KP        1.00*    LA        1.00*    MK        1.25     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.90     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    HN        0.97     KB        1.41     
!   KK        1.06     KP        0.96     LA        0.96     MK        1.05     
!   NL        0.96     NY        1.47     OV        1.02     PT        0.97     
!   SC        0.87     TS        0.98     WF        1.03     WZ        1.00*    
!   ZC        0.98     
! 
!  A total of 42 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        1.00*    
!   KK        1.00     KP        0.96     LA        0.98     MK        0.87     
!   NL        1.07     NY        1.00*    OV        1.09     PT        1.02     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Fit before self-cal, rms=0.253542Jy  sigma=0.002260
! Fit after  self-cal, rms=0.153593Jy  sigma=0.001324
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.102 mas, bmaj=7.808 mas, bpa=-1.158 degrees
! Estimated noise=1022.78 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, 4.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0190175 Jy
! Component: 100  -  total flux cleaned = 0.0245106 Jy
! Total flux subtracted in 100 components = 0.0245106 Jy
! Clean residual min=-0.008637 max=0.011254 Jy/beam
! Clean residual mean=0.000497 rms=0.002396 Jy/beam
! Combined flux in latest and established models = 1.82663 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 51 components and 1.82663 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151683Jy  sigma=0.001288
! Fit after  self-cal, rms=0.151416Jy  sigma=0.001285
! 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.00322238 Jy
! Component: 100  -  total flux cleaned = 0.00408905 Jy
! Total flux subtracted in 100 components = 0.00408905 Jy
! Clean residual min=-0.008162 max=0.009474 Jy/beam
! Clean residual mean=0.000439 rms=0.002257 Jy/beam
! Combined flux in latest and established models = 1.83072 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 61 components and 1.83072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151042Jy  sigma=0.001278
! Fit after  self-cal, rms=0.141284Jy  sigma=0.001151
! Inverting map and beam 
! Estimated beam: bmin=3.104 mas, bmaj=7.811 mas, bpa=-1.318 degrees
! Estimated noise=1023.53 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 (14.8, 26.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0088301 Jy
! Component: 100  -  total flux cleaned = 0.0135867 Jy
! Total flux subtracted in 100 components = 0.0135867 Jy
! Clean residual min=-0.004708 max=0.004712 Jy/beam
! Clean residual mean=0.000079 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 1.84431 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 77 components and 1.84431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140755Jy  sigma=0.001142
! Fit after  self-cal, rms=0.140719Jy  sigma=0.001142
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1749+096_S
! Writing UV FITS file: 1749+096_S.uvf
! Writing 77 model components to file: 1749+096_S.mod
! wwins: Wrote 3 windows to 1749+096_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.104 x 7.811 at -1.318 degrees (North through East)
! Clean map  min=-0.0045325  max=1.68 Jy/beam
! Writing clean map to FITS file: 1749+096_S.fits
! Writing difmap environment to: 1749+096_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1749+096_S]
device 1749+096_Suv.ps/vps,1,2
! Attempting to open device: '1749+096_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1749+096_Sim.ps/vps
! Attempting to open device: '1749+096_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.104 mas, bmaj=7.811 mas, bpa=-1.318 degrees
! Estimated noise=1023.53 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.104 x 7.811 at -1.318 degrees (North through East)
! Clean map  min=-0.0045325  max=1.68 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1749+096_S.log closed on Fri Apr 18 07:25:55 2008