! Started logfile: 1348+308_S.log on Tue Aug  7 10:54:01 2007
observe 1348+308_S.edt
! Reading UV FITS file: 1348+308_S.edt
! AN table 1: 12 integrations on 105 of 105 possible baselines.
! AN table 2: 17 integrations on 105 of 105 possible baselines.
! AN table 3: 54 integrations on 105 of 105 possible baselines.
! AN table 4: 18 integrations on 105 of 105 possible baselines.
! AN table 5: 1 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0901961 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1348+308
! 
! 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 3864 visibilities.
![@gonzo7-0.4 1348+308_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 116 telescope corrections were flagged in sub-array 1.
!  A total of 161 telescope corrections were flagged in sub-array 2.
!  A total of 728 telescope corrections were flagged in sub-array 3.
!  A total of 178 telescope corrections were flagged in sub-array 4.
!  A total of 10 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 116 telescope corrections were flagged in sub-array 1.
!  A total of 161 telescope corrections were flagged in sub-array 2.
!  A total of 662 telescope corrections were flagged in sub-array 3.
!  A total of 178 telescope corrections were flagged in sub-array 4.
!  A total of 9 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 116 telescope corrections were flagged in sub-array 1.
!  A total of 161 telescope corrections were flagged in sub-array 2.
!  A total of 737 telescope corrections were flagged in sub-array 3.
!  A total of 178 telescope corrections were flagged in sub-array 4.
!  A total of 10 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 116 telescope corrections were flagged in sub-array 1.
!  A total of 161 telescope corrections were flagged in sub-array 2.
!  A total of 677 telescope corrections were flagged in sub-array 3.
!  A total of 181 telescope corrections were flagged in sub-array 4.
!  A total of 10 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.644350Jy  sigma=0.007144
! Fit after  self-cal, rms=0.633274Jy  sigma=0.007139
! 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=3.173 mas, bmaj=4.275 mas, bpa=-49.05 degrees
! Estimated noise=1616.82 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.291623 Jy
! Total flux subtracted in 50 components = 0.291623 Jy
! Clean residual min=-0.018495 max=0.081335 Jy/beam
! Clean residual mean=-0.000056 rms=0.005278 Jy/beam
! Combined flux in latest and established models = 0.291623 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.291623 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152810Jy  sigma=0.001673
! Fit after  self-cal, rms=0.152809Jy  sigma=0.001673
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0636589 Jy
! Total flux subtracted in 50 components = 0.0636589 Jy
! Clean residual min=-0.013520 max=0.018096 Jy/beam
! Clean residual mean=-0.000018 rms=0.003393 Jy/beam
! Combined flux in latest and established models = 0.355282 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.355282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127492Jy  sigma=0.001349
! Fit after  self-cal, rms=0.127490Jy  sigma=0.001349
! 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.783 mas, bmaj=5.012 mas, bpa=-46.37 degrees
! Estimated noise=1084.6 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.0231775 Jy
! Component: 100  -  total flux cleaned = 0.0326595 Jy
! Total flux subtracted in 100 components = 0.0326595 Jy
! Clean residual min=-0.012918 max=0.015760 Jy/beam
! Clean residual mean=0.000018 rms=0.003480 Jy/beam
! Combined flux in latest and established models = 0.387942 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 19 components and 0.387942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124304Jy  sigma=0.001299
! Fit after  self-cal, rms=0.124280Jy  sigma=0.001299
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        0.83     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.02     KP        1.00*    LA        0.93     
!   MK        1.05     NL        0.93     NY        1.00*    OV        0.90     
!   PT        0.89     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00     KP        1.53     LA        1.00     
!   MK        1.00     NL        1.09     NY        1.00*    OV        0.93     
!   PT        1.03     SC        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        0.96     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.76     LA        0.98     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.07     
!   PT        0.90     SC        1.17     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        1.02     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.97     KP        0.91     LA        1.08     
!   MK        0.92     NL        1.00*    NY        1.00*    OV        1.04     
!   PT        1.06     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.09     FD        0.80     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.26     
!   MK        1.00*    NL        1.20     NY        1.00*    OV        1.00*    
!   PT        0.96     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.86     FD        0.83     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.03     KP        1.00*    LA        0.93     
!   MK        1.01     NL        0.94     NY        1.00*    OV        0.91     
!   PT        0.85     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.94     KP        1.18     LA        1.00     
!   MK        0.98     NL        1.10     NY        1.00*    OV        0.93     
!   PT        1.03     SC        1.00*    WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.87     FD        0.96     HH        1.17     HN        1.00*    
!   KB        1.30     KK        1.00*    KP        0.83     LA        0.97     
!   MK        1.00*    NL        1.00*    NY        0.98     OV        0.95     
!   PT        0.87     SC        1.28     WZ        0.91     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        0.96     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.09     KP        0.93     LA        1.09     
!   MK        0.96     NL        1.00*    NY        1.00*    OV        1.03     
!   PT        1.03     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        1.06     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.11     
!   MK        1.00*    NL        1.05     NY        1.00*    OV        1.00*    
!   PT        1.32     SC        0.73     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        0.84     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.03     KP        1.00*    LA        0.92     
!   MK        1.00     NL        0.98     NY        1.00*    OV        0.90     
!   PT        0.89     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.08     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.95     KP        1.10     LA        1.01     
!   MK        0.95     NL        1.16     NY        1.00*    OV        0.99     
!   PT        1.07     SC        1.00*    WZ        1.00*    
! 
!  A total of 42 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        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.81     LA        0.90     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.97     
!   PT        0.94     SC        1.25     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        1.09     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.99     KP        0.99     LA        1.15     
!   MK        1.00     NL        1.00*    NY        1.00*    OV        1.03     
!   PT        1.03     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.21     FD        1.19     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        0.92     
!   MK        1.00*    NL        1.22     NY        1.00*    OV        1.00*    
!   PT        0.92     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.82     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.04     KP        1.00*    LA        0.90     
!   MK        1.04     NL        0.97     NY        1.00*    OV        0.92     
!   PT        0.90     SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.09     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.97     KP        1.10     LA        1.01     
!   MK        0.92     NL        1.13     NY        1.00*    OV        0.97     
!   PT        1.05     SC        1.00*    WZ        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.94     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.79     LA        0.93     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.03     
!   PT        0.91     SC        1.04     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.11     FD        1.15     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.06     KP        0.96     LA        1.13     
!   MK        0.98     NL        1.00*    NY        1.00*    OV        1.03     
!   PT        1.04     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.14     FD        1.07     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.10     
!   MK        1.00*    NL        1.38     NY        1.00*    OV        1.00*    
!   PT        0.84     SC        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.124280Jy  sigma=0.001299
! Fit after  self-cal, rms=0.110400Jy  sigma=0.001092
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.136 mas, bmaj=5.806 mas, bpa=-38.06 degrees
! Estimated noise=1108.36 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.000274412 Jy
! Component: 100  -  total flux cleaned = 0.000353498 Jy
! Total flux subtracted in 100 components = 0.000353498 Jy
! Clean residual min=-0.005389 max=0.005755 Jy/beam
! Clean residual mean=-0.000090 rms=0.001506 Jy/beam
! Combined flux in latest and established models = 0.388295 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 27 components and 0.388295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110323Jy  sigma=0.001091
! Fit after  self-cal, rms=0.110327Jy  sigma=0.001091
! 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 = 4.99318e-06 Jy
! Component: 100  -  total flux cleaned = 7.74337e-06 Jy
! Total flux subtracted in 100 components = 7.74337e-06 Jy
! Clean residual min=-0.005404 max=0.005755 Jy/beam
! Clean residual mean=-0.000090 rms=0.001501 Jy/beam
! Combined flux in latest and established models = 0.388303 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 29 components and 0.388303 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110292Jy  sigma=0.001090
! Fit after  self-cal, rms=0.108911Jy  sigma=0.001062
! Inverting map and beam 
! Estimated beam: bmin=4.127 mas, bmaj=5.797 mas, bpa=-37.55 degrees
! Estimated noise=1110 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.00185287 Jy
! Component: 100  -  total flux cleaned = 0.00185525 Jy
! Total flux subtracted in 100 components = 0.00185525 Jy
! Clean residual min=-0.004265 max=0.005172 Jy/beam
! Clean residual mean=-0.000059 rms=0.001189 Jy/beam
! Combined flux in latest and established models = 0.390158 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 30 components and 0.390158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108839Jy  sigma=0.001061
! Fit after  self-cal, rms=0.108853Jy  sigma=0.001061
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1348+308_S
! Writing UV FITS file: 1348+308_S.uvf
! Writing 30 model components to file: 1348+308_S.mod
! wwins: Wrote 1 windows to 1348+308_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.127 x 5.797 at -37.55 degrees (North through East)
! Clean map  min=-0.0041758  max=0.37687 Jy/beam
! Writing clean map to FITS file: 1348+308_S.fits
! Writing difmap environment to: 1348+308_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1348+308_S]
device 1348+308_Suv.ps/vps,1,2
! Attempting to open device: '1348+308_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1348+308_Sim.ps/vps
! Attempting to open device: '1348+308_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=4.127 mas, bmaj=5.797 mas, bpa=-37.55 degrees
! Estimated noise=1110 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.127 x 5.797 at -37.55 degrees (North through East)
! Clean map  min=-0.0041758  max=0.37687 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1348+308_S.log closed on Tue Aug  7 10:54:16 2007