! Started logfile: 1417+273_S.log on Fri Apr 18 07:20:39 2008
observe 1417+273_S.edt
! Reading UV FITS file: 1417+273_S.edt
! AN table 1: 107 integrations on 136 of 136 possible baselines.
! AN table 2: 60 integrations on 136 of 136 possible baselines.
! AN table 3: 200 integrations on 136 of 136 possible baselines.
! AN table 4: 53 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0653011 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1417+273
! 
! 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 14920 visibilities.
![@gonzo7-0.4 1417+273_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 1391 telescope corrections were flagged in sub-array 1.
!  A total of 694 telescope corrections were flagged in sub-array 2.
!  A total of 2695 telescope corrections were flagged in sub-array 3.
!  A total of 856 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1388 telescope corrections were flagged in sub-array 1.
!  A total of 693 telescope corrections were flagged in sub-array 2.
!  A total of 2684 telescope corrections were flagged in sub-array 3.
!  A total of 790 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1388 telescope corrections were flagged in sub-array 1.
!  A total of 694 telescope corrections were flagged in sub-array 2.
!  A total of 2650 telescope corrections were flagged in sub-array 3.
!  A total of 856 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1455 telescope corrections were flagged in sub-array 1.
!  A total of 747 telescope corrections were flagged in sub-array 2.
!  A total of 2845 telescope corrections were flagged in sub-array 3.
!  A total of 796 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.654415Jy  sigma=0.007117
! Fit after  self-cal, rms=0.650348Jy  sigma=0.007130
! 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.944 mas, bmaj=4.753 mas, bpa=12.81 degrees
! Estimated noise=1021.23 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.286064 Jy
! Total flux subtracted in 50 components = 0.286064 Jy
! Clean residual min=-0.017230 max=0.079806 Jy/beam
! Clean residual mean=-0.000022 rms=0.005423 Jy/beam
! Combined flux in latest and established models = 0.286064 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.286064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178906Jy  sigma=0.001740
! Fit after  self-cal, rms=0.178907Jy  sigma=0.001740
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0701432 Jy
! Total flux subtracted in 50 components = 0.0701432 Jy
! Clean residual min=-0.015041 max=0.029832 Jy/beam
! Clean residual mean=-0.000040 rms=0.003742 Jy/beam
! Combined flux in latest and established models = 0.356207 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 18 components and 0.356208 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156893Jy  sigma=0.001399
! Fit after  self-cal, rms=0.156885Jy  sigma=0.001398
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0347067 Jy
! Total flux subtracted in 50 components = 0.0347067 Jy
! Clean residual min=-0.014107 max=0.017800 Jy/beam
! Clean residual mean=-0.000049 rms=0.003222 Jy/beam
! Combined flux in latest and established models = 0.390914 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 33 components and 0.390914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151731Jy  sigma=0.001318
! Fit after  self-cal, rms=0.151718Jy  sigma=0.001318
! 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.429 mas, bmaj=5.378 mas, bpa=11.83 degrees
! Estimated noise=594.658 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 (2, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0198136 Jy
! Component: 100  -  total flux cleaned = 0.0208601 Jy
! Total flux subtracted in 100 components = 0.0208601 Jy
! Clean residual min=-0.014024 max=0.010826 Jy/beam
! Clean residual mean=-0.001837 rms=0.002671 Jy/beam
! Combined flux in latest and established models = 0.411774 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 53 components and 0.411774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149036Jy  sigma=0.001282
! Fit after  self-cal, rms=0.149031Jy  sigma=0.001282
! 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 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.13     FD        1.00     HN        0.96     KB        2.51     
!   KK        0.98     KP        1.09     LA        1.00     MK        1.28     
!   NL        1.02     NY        1.10     OV        0.98     PT        1.01     
!   SC        1.00*    TS        1.02     WF        0.93     WZ        1.00*    
!   ZC        0.92     
! 
!  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.98     KB        1.04     
!   KK        0.98     KP        0.82     LA        0.99     MK        0.96     
!   NL        0.97     NY        1.13     OV        0.85     PT        0.94     
!   SC        0.86     TS        1.09     WF        1.00*    WZ        1.00*    
!   ZC        0.98     
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.01     HN        1.00     KB        1.08     
!   KK        1.03     KP        1.02     LA        1.03     MK        1.00*    
!   NL        1.00     NY        1.09     OV        0.89     PT        1.04     
!   SC        0.93     TS        1.04     WF        1.00     WZ        1.00*    
!   ZC        0.94     
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.14     FD        1.01     HN        0.97     KB        2.51     
!   KK        0.95     KP        1.18     LA        1.00     MK        1.29     
!   NL        1.01     NY        1.13     OV        1.05     PT        1.02     
!   SC        1.00*    TS        1.02     WF        0.96     WZ        1.00*    
!   ZC        0.98     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.92     HN        0.99     KB        1.06     
!   KK        0.96     KP        0.83     LA        0.97     MK        0.96     
!   NL        0.95     NY        1.17     OV        0.84     PT        0.91     
!   SC        0.97     TS        1.09     WF        1.00*    WZ        1.00*    
!   ZC        1.00     
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00     HN        0.98     KB        1.01     
!   KK        1.02     KP        1.04     LA        1.03     MK        1.00*    
!   NL        1.00     NY        1.01     OV        0.90     PT        1.02     
!   SC        0.93     TS        1.02     WF        1.02     WZ        1.00*    
!   ZC        0.91     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        1.03     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        0.92     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.13     WF        1.00*    WZ        1.00*    
!   ZC        1.03     
! 
! 
! Correcting IF 3.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        1.01     HN        0.99     KB        2.65     
!   KK        0.99     KP        1.17     LA        1.01     MK        0.95     
!   NL        1.00     NY        1.15     OV        1.01     PT        1.05     
!   SC        1.00*    TS        0.96     WF        0.95     WZ        1.00*    
!   ZC        0.99     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.93     HN        0.98     KB        0.90     
!   KK        0.98     KP        0.76     LA        0.97     MK        0.94     
!   NL        0.97     NY        1.27     OV        0.84     PT        0.95     
!   SC        0.97     TS        1.05     WF        1.00*    WZ        1.00*    
!   ZC        1.06     
! 
!  A total of 132 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00     HN        0.99     KB        1.08     
!   KK        1.01     KP        1.05     LA        1.00     MK        1.00*    
!   NL        1.00     NY        1.12     OV        0.88     PT        1.02     
!   SC        0.95     TS        1.09     WF        0.95     WZ        1.00*    
!   ZC        0.94     
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 135 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        1.00*    HN        1.00*    KB        2.52     
!   KK        1.02     KP        1.13     LA        1.03     MK        0.95     
!   NL        1.00*    NY        1.22     OV        1.01     PT        1.01     
!   SC        1.00*    TS        0.91     WF        1.00*    WZ        1.00*    
!   ZC        0.96     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        1.00*    HN        0.99     KB        1.41     
!   KK        1.03     KP        0.79     LA        0.97     MK        0.93     
!   NL        0.94     NY        1.00*    OV        0.82     PT        0.95     
!   SC        1.00     TS        1.02     WF        1.00*    WZ        1.00*    
!   ZC        0.99     
! 
!  A total of 195 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.00*    HN        0.96     KB        1.67     
!   KK        0.98     KP        1.05     LA        1.00     MK        1.00*    
!   NL        0.98     NY        1.09     OV        0.89     PT        1.01     
!   SC        0.91     TS        1.02     WF        1.00*    WZ        1.00*    
!   ZC        0.93     
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        1.64     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        0.89     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.07     WF        1.00*    WZ        1.00*    
!   ZC        0.92     
! 
! 
! Fit before self-cal, rms=0.149031Jy  sigma=0.001282
! Fit after  self-cal, rms=0.165676Jy  sigma=0.001096
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.476 mas, bmaj=5.729 mas, bpa=11.19 degrees
! Estimated noise=611.878 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.000850056 Jy
! Component: 100  -  total flux cleaned = -0.000942441 Jy
! Total flux subtracted in 100 components = -0.000942441 Jy
! Clean residual min=-0.003922 max=0.003130 Jy/beam
! Clean residual mean=0.000083 rms=0.000781 Jy/beam
! Combined flux in latest and established models = 0.410832 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 63 components and 0.410832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165605Jy  sigma=0.001096
! Fit after  self-cal, rms=0.165909Jy  sigma=0.001095
! 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.000189374 Jy
! Component: 100  -  total flux cleaned = 0.000192855 Jy
! Total flux subtracted in 100 components = 0.000192855 Jy
! Clean residual min=-0.003765 max=0.003100 Jy/beam
! Clean residual mean=0.000078 rms=0.000772 Jy/beam
! Combined flux in latest and established models = 0.411025 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 71 components and 0.411025 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165868Jy  sigma=0.001095
! Fit after  self-cal, rms=0.168955Jy  sigma=0.001061
! Inverting map and beam 
! Estimated beam: bmin=2.484 mas, bmaj=5.719 mas, bpa=11 degrees
! Estimated noise=612.232 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.000655855 Jy
! Component: 100  -  total flux cleaned = 0.000911191 Jy
! Total flux subtracted in 100 components = 0.000911191 Jy
! Clean residual min=-0.002820 max=0.002384 Jy/beam
! Clean residual mean=-0.000082 rms=0.000573 Jy/beam
! Combined flux in latest and established models = 0.411936 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 80 components and 0.411936 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168889Jy  sigma=0.001061
! Fit after  self-cal, rms=0.168998Jy  sigma=0.001061
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1417+273_S
! Writing UV FITS file: 1417+273_S.uvf
! Writing 80 model components to file: 1417+273_S.mod
! wwins: Wrote 2 windows to 1417+273_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.484 x 5.719 at 11 degrees (North through East)
! Clean map  min=-0.0031332  max=0.36936 Jy/beam
! Writing clean map to FITS file: 1417+273_S.fits
! Writing difmap environment to: 1417+273_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1417+273_S]
device 1417+273_Suv.ps/vps,1,2
! Attempting to open device: '1417+273_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1417+273_Sim.ps/vps
! Attempting to open device: '1417+273_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.484 mas, bmaj=5.719 mas, bpa=11 degrees
! Estimated noise=612.232 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.484 x 5.719 at 11 degrees (North through East)
! Clean map  min=-0.0031332  max=0.36936 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1417+273_S.log closed on Fri Apr 18 07:21:08 2008