! Started logfile: 0548+378_X.log on Tue Aug  7 10:05:02 2007
observe 0548+378_X.edt
! Reading UV FITS file: 0548+378_X.edt
! AN table 1: 11 integrations on 105 of 105 possible baselines.
! AN table 2: 6 integrations on 105 of 105 possible baselines.
! AN table 3: 34 integrations on 105 of 105 possible baselines.
! AN table 4: 25 integrations on 105 of 105 possible baselines.
! AN table 5: 176 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0851474 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0548+378
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1066 lines of history.
! 
! Reading 9012 visibilities.
![@gonzo7-0.1 0548+378_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
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.100x0.100 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 118 telescope corrections were flagged in sub-array 1.
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  A total of 370 telescope corrections were flagged in sub-array 3.
!  A total of 263 telescope corrections were flagged in sub-array 4.
!  A total of 2032 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 118 telescope corrections were flagged in sub-array 1.
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  A total of 370 telescope corrections were flagged in sub-array 3.
!  A total of 253 telescope corrections were flagged in sub-array 4.
!  A total of 2032 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 128 telescope corrections were flagged in sub-array 1.
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  A total of 370 telescope corrections were flagged in sub-array 3.
!  A total of 263 telescope corrections were flagged in sub-array 4.
!  A total of 2032 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 125 telescope corrections were flagged in sub-array 1.
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  A total of 397 telescope corrections were flagged in sub-array 3.
!  A total of 263 telescope corrections were flagged in sub-array 4.
!  A total of 2032 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.747917Jy  sigma=0.009020
! Fit after  self-cal, rms=0.747866Jy  sigma=0.009021
! 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=0.6173 mas, bmaj=0.8244 mas, bpa=-34.55 degrees
! Estimated noise=1116.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.202711 Jy
! Total flux subtracted in 50 components = 0.202711 Jy
! Clean residual min=-0.017133 max=0.061087 Jy/beam
! Clean residual mean=-0.000031 rms=0.004004 Jy/beam
! Combined flux in latest and established models = 0.202711 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.202711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151359Jy  sigma=0.001522
! Fit after  self-cal, rms=0.151323Jy  sigma=0.001522
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0575336 Jy
! Total flux subtracted in 50 components = 0.0575336 Jy
! Clean residual min=-0.011946 max=0.021855 Jy/beam
! Clean residual mean=-0.000044 rms=0.002544 Jy/beam
! Combined flux in latest and established models = 0.260244 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 6 components and 0.260244 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131306Jy  sigma=0.001227
! Fit after  self-cal, rms=0.131100Jy  sigma=0.001227
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0221697 Jy
! Total flux subtracted in 50 components = 0.0221697 Jy
! Clean residual min=-0.010152 max=0.012745 Jy/beam
! Clean residual mean=-0.000048 rms=0.002271 Jy/beam
! Combined flux in latest and established models = 0.282414 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 9 components and 0.282414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127250Jy  sigma=0.001179
! Fit after  self-cal, rms=0.127143Jy  sigma=0.001179
! 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=0.6403 mas, bmaj=0.8103 mas, bpa=-31.18 degrees
! Estimated noise=688.45 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.0155788 Jy
! Component: 100  -  total flux cleaned = 0.0159418 Jy
! Total flux subtracted in 100 components = 0.0159418 Jy
! Clean residual min=-0.009646 max=0.010339 Jy/beam
! Clean residual mean=-0.000226 rms=0.002293 Jy/beam
! Combined flux in latest and established models = 0.298356 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 13 components and 0.298356 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124525Jy  sigma=0.001166
! Fit after  self-cal, rms=0.124448Jy  sigma=0.001166
! 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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.97     KP        1.04     LA        1.00*    
!   MK        1.03     NL        1.00*    NY        1.00*    OV        0.99     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.94     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.99     LA        0.94     
!   MK        1.00*    NL        0.99     NY        1.00*    OV        1.00     
!   PT        0.94     SC        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.07     HH        1.00*    HN        0.85     
!   KB        1.00*    KK        1.00*    KP        1.01     LA        1.07     
!   MK        1.12     NL        1.05     NY        1.00*    OV        1.01     
!   PT        1.09     SC        0.95     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     HH        1.00*    HN        1.81     
!   KB        1.00*    KK        0.84     KP        0.95     LA        0.97     
!   MK        0.96     NL        1.00*    NY        1.00*    OV        0.98     
!   PT        0.99     SC        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.20     FD        1.00*    HH        0.93     HN        1.10     
!   KB        1.03     KK        1.00*    KP        1.00*    LA        1.31     
!   MK        1.00*    NL        1.16     NY        0.85     OV        1.00*    
!   PT        1.00*    SC        1.09     WZ        0.94     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.12     KP        0.95     LA        1.00*    
!   MK        1.03     NL        1.00*    NY        1.00*    OV        1.00     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.89     FD        0.93     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.98     LA        0.94     
!   MK        1.00*    NL        1.03     NY        1.00*    OV        0.94     
!   PT        1.01     SC        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.10     HH        1.00*    HN        0.85     
!   KB        1.00*    KK        1.00*    KP        1.01     LA        1.02     
!   MK        1.11     NL        1.12     NY        1.00*    OV        1.01     
!   PT        1.07     SC        0.94     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.02     HH        1.00*    HN        1.21     
!   KB        1.00*    KK        0.84     KP        0.98     LA        0.98     
!   MK        0.95     NL        1.00*    NY        1.00*    OV        0.99     
!   PT        1.02     SC        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.29     FD        1.00*    HH        0.94     HN        1.10     
!   KB        1.08     KK        1.00*    KP        1.00*    LA        1.21     
!   MK        1.00*    NL        1.12     NY        0.85     OV        1.00*    
!   PT        1.00*    SC        1.12     WZ        0.83     
! 
! 
! Correcting IF 3.
!  A total of 9 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.00*    
!   KB        1.00*    KK        0.96     KP        1.06     LA        1.00*    
!   MK        1.08     NL        1.00*    NY        1.00*    OV        0.91     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.95     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.98     LA        0.94     
!   MK        1.00*    NL        1.04     NY        1.00*    OV        0.99     
!   PT        0.93     SC        1.00*    WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.05     HH        1.00*    HN        0.90     
!   KB        1.00*    KK        1.00*    KP        0.98     LA        0.96     
!   MK        1.16     NL        1.08     NY        1.00*    OV        1.01     
!   PT        1.06     SC        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.95     HH        1.00*    HN        1.76     
!   KB        1.00*    KK        0.85     KP        0.94     LA        1.00     
!   MK        0.94     NL        1.00*    NY        1.00*    OV        1.00     
!   PT        0.99     SC        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.19     FD        1.00*    HH        0.95     HN        1.23     
!   KB        1.08     KK        1.00*    KP        1.00*    LA        1.18     
!   MK        1.00*    NL        1.16     NY        0.83     OV        1.00*    
!   PT        1.00*    SC        1.04     WZ        0.87     
! 
! 
! Correcting IF 4.
!  A total of 12 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.00*    
!   KB        1.00*    KK        1.08     KP        1.00     LA        1.00*    
!   MK        0.97     NL        1.00*    NY        1.00*    OV        0.97     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.90     LA        1.06     
!   MK        1.00*    NL        0.97     NY        1.00*    OV        0.97     
!   PT        0.93     SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     HH        1.00*    HN        0.86     
!   KB        1.00*    KK        1.00*    KP        0.98     LA        1.02     
!   MK        1.00*    NL        1.06     NY        1.00*    OV        1.07     
!   PT        0.98     SC        0.94     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.02     HH        1.00*    HN        1.63     
!   KB        1.00*    KK        0.88     KP        0.96     LA        1.00     
!   MK        0.97     NL        1.00*    NY        1.00*    OV        0.98     
!   PT        1.00     SC        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.12     FD        1.00*    HH        1.03     HN        1.08     
!   KB        1.17     KK        1.00*    KP        1.00*    LA        1.28     
!   MK        1.00*    NL        1.12     NY        0.81     OV        1.00*    
!   PT        1.00*    SC        1.05     WZ        0.86     
! 
! 
! Fit before self-cal, rms=0.124448Jy  sigma=0.001166
! Fit after  self-cal, rms=0.108702Jy  sigma=0.001068
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6407 mas, bmaj=0.8013 mas, bpa=-36.8 degrees
! Estimated noise=682.996 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.00337157 Jy
! Component: 100  -  total flux cleaned = 0.00351082 Jy
! Total flux subtracted in 100 components = 0.00351082 Jy
! Clean residual min=-0.004931 max=0.004405 Jy/beam
! Clean residual mean=-0.000085 rms=0.001021 Jy/beam
! Combined flux in latest and established models = 0.301867 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 21 components and 0.301867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108373Jy  sigma=0.001066
! Fit after  self-cal, rms=0.108356Jy  sigma=0.001066
! 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.55982e-05 Jy
! Component: 100  -  total flux cleaned = -0.000235349 Jy
! Total flux subtracted in 100 components = -0.000235349 Jy
! Clean residual min=-0.004851 max=0.004084 Jy/beam
! Clean residual mean=-0.000085 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 0.301631 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 24 components and 0.301631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108237Jy  sigma=0.001065
! Fit after  self-cal, rms=0.112304Jy  sigma=0.001035
! Inverting map and beam 
! Estimated beam: bmin=0.6408 mas, bmaj=0.8074 mas, bpa=-36.02 degrees
! Estimated noise=687.868 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.00227782 Jy
! Component: 100  -  total flux cleaned = 0.00228492 Jy
! Total flux subtracted in 100 components = 0.00228492 Jy
! Clean residual min=-0.003600 max=0.003237 Jy/beam
! Clean residual mean=0.000004 rms=0.000774 Jy/beam
! Combined flux in latest and established models = 0.303916 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 25 components and 0.303916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112204Jy  sigma=0.001034
! Fit after  self-cal, rms=0.112184Jy  sigma=0.001034
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0548+378_X
! Writing UV FITS file: 0548+378_X.uvf
! Writing 25 model components to file: 0548+378_X.mod
! wwins: Wrote 1 windows to 0548+378_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6408 x 0.8074 at -36.02 degrees (North through East)
! Clean map  min=-0.0032341  max=0.2539 Jy/beam
! Writing clean map to FITS file: 0548+378_X.fits
! Writing difmap environment to: 0548+378_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0548+378_X]
device 0548+378_Xuv.ps/vps,1,2
! Attempting to open device: '0548+378_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0548+378_Xim.ps/vps
! Attempting to open device: '0548+378_Xim.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=0.6408 mas, bmaj=0.8074 mas, bpa=-36.02 degrees
! Estimated noise=687.868 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6408 x 0.8074 at -36.02 degrees (North through East)
! Clean map  min=-0.0032341  max=0.2539 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0548+378_X.log closed on Tue Aug  7 10:05:24 2007