! Started logfile: 1219+044_X.log on Tue Sep 19 16:00:48 2006
observe 1219+044_X.edt
! Reading UV FITS file: 1219+044_X.edt
! AN table 1: 48 integrations on 105 of 105 possible baselines.
! AN table 2: 12 integrations on 105 of 105 possible baselines.
! AN table 3: 3 integrations on 105 of 105 possible baselines.
! AN table 4: 22 integrations on 105 of 105 possible baselines.
! AN table 5: 14 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.117653 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1219+044
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! 
! 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 1641 lines of history.
! 
! Reading 4892 visibilities.
![@gonzo7-0.1 1219+044_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 497 telescope corrections were flagged in sub-array 1.
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  A total of 255 telescope corrections were flagged in sub-array 4.
!  A total of 96 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 498 telescope corrections were flagged in sub-array 1.
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  A total of 255 telescope corrections were flagged in sub-array 4.
!  A total of 89 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 498 telescope corrections were flagged in sub-array 1.
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  A total of 255 telescope corrections were flagged in sub-array 4.
!  A total of 89 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 499 telescope corrections were flagged in sub-array 1.
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  A total of 255 telescope corrections were flagged in sub-array 4.
!  A total of 92 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.474686Jy  sigma=0.008322
! Fit after  self-cal, rms=0.458381Jy  sigma=0.008261
! 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.5862 mas, bmaj=1.222 mas, bpa=-26.42 degrees
! Estimated noise=1037.19 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.406932 Jy
! Total flux subtracted in 50 components = 0.406932 Jy
! Clean residual min=-0.051177 max=0.128642 Jy/beam
! Clean residual mean=-0.000346 rms=0.013006 Jy/beam
! Combined flux in latest and established models = 0.406932 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 0.406932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271157Jy  sigma=0.003885
! Fit after  self-cal, rms=0.271144Jy  sigma=0.003884
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.114633 Jy
! Total flux subtracted in 50 components = 0.114633 Jy
! Clean residual min=-0.048931 max=0.054713 Jy/beam
! Clean residual mean=-0.000182 rms=0.010807 Jy/beam
! Combined flux in latest and established models = 0.521565 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 14 components and 0.521565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204126Jy  sigma=0.002950
! Fit after  self-cal, rms=0.204133Jy  sigma=0.002949
! 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.9093 mas, bmaj=1.687 mas, bpa=-16.07 degrees
! Estimated noise=649.052 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.0633351 Jy
! Component: 100  -  total flux cleaned = 0.0854698 Jy
! Total flux subtracted in 100 components = 0.0854698 Jy
! Clean residual min=-0.029935 max=0.030528 Jy/beam
! Clean residual mean=-0.000044 rms=0.007166 Jy/beam
! Combined flux in latest and established models = 0.607035 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 29 components and 0.607035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179440Jy  sigma=0.002772
! Fit after  self-cal, rms=0.179272Jy  sigma=0.002768
! 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:
!   AP        1.00*    BR        1.07     FD        1.01     HN        1.00*    
!   KP        1.09     LA        1.00     MC        1.00*    MK        0.96     
!   NL        1.00*    HO        1.23     NY        1.00*    OV        0.91     
!   PT        0.96     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.95     BR        1.00*    FD        1.00*    HN        0.79     
!   KP        1.00*    LA        0.83     MC        0.81     MK        1.00*    
!   NL        0.97     HO        1.00*    NY        0.88     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.67     BR        0.96     FD        1.25     HN        0.55     
!   KP        0.90     LA        0.99     MC        1.00*    MK        0.80     
!   NL        0.95     HO        1.00*    NY        1.00*    OV        1.03     
!   PT        1.03     SC        0.95     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.02     FD        0.99     HN        1.00*    
!   KP        1.02     LA        1.01     MC        1.00*    MK        0.90     
!   NL        1.00*    HO        1.52     NY        1.00*    OV        0.92     
!   PT        0.96     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.94     BR        1.00*    FD        1.00*    HN        0.85     
!   KP        1.00*    LA        1.02     MC        0.80     MK        1.00*    
!   NL        1.02     HO        1.00*    NY        0.87     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.73     BR        1.04     FD        1.27     HN        0.68     
!   KP        0.95     LA        0.97     MC        1.00*    MK        0.95     
!   NL        0.97     HO        1.00*    NY        1.00*    OV        1.06     
!   PT        0.98     SC        0.97     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.02     FD        0.97     HN        1.00*    
!   KP        1.04     LA        1.01     MC        1.00*    MK        0.86     
!   NL        1.00*    HO        1.39     NY        1.00*    OV        0.94     
!   PT        0.97     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.92     BR        1.00*    FD        1.00*    HN        0.92     
!   KP        1.00*    LA        1.00     MC        0.81     MK        1.00*    
!   NL        0.96     HO        1.00*    NY        0.83     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.65     BR        1.15     FD        1.32     HN        1.00     
!   KP        0.96     LA        0.80     MC        1.00*    MK        1.21     
!   NL        1.06     HO        1.00*    NY        1.00*    OV        1.07     
!   PT        1.01     SC        0.98     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        0.73     FD        0.96     HN        1.00*    
!   KP        1.01     LA        0.97     MC        1.00*    MK        0.90     
!   NL        1.00*    HO        1.67     NY        1.00*    OV        0.93     
!   PT        0.95     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.92     BR        1.00*    FD        1.00*    HN        0.77     
!   KP        1.00*    LA        0.98     MC        0.78     MK        1.00*    
!   NL        0.99     HO        1.00*    NY        0.88     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.71     BR        0.87     FD        1.32     HN        0.48     
!   KP        0.90     LA        0.65     MC        1.00*    MK        1.21     
!   NL        0.99     HO        1.00*    NY        1.00*    OV        0.93     
!   PT        0.97     SC        1.09     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.179272Jy  sigma=0.002768
! Fit after  self-cal, rms=0.127494Jy  sigma=0.002011
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9236 mas, bmaj=1.747 mas, bpa=-12.61 degrees
! Estimated noise=659.37 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.00231063 Jy
! Component: 100  -  total flux cleaned = -0.00118555 Jy
! Total flux subtracted in 100 components = -0.00118555 Jy
! Clean residual min=-0.021896 max=0.023051 Jy/beam
! Clean residual mean=-0.000040 rms=0.004768 Jy/beam
! Combined flux in latest and established models = 0.60585 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 32 components and 0.60585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126573Jy  sigma=0.001997
! Fit after  self-cal, rms=0.126503Jy  sigma=0.001992
! 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.000145377 Jy
! Component: 100  -  total flux cleaned = -0.000396426 Jy
! Total flux subtracted in 100 components = -0.000396426 Jy
! Clean residual min=-0.021906 max=0.022683 Jy/beam
! Clean residual mean=-0.000042 rms=0.004733 Jy/beam
! Combined flux in latest and established models = 0.605453 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 36 components and 0.605453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125892Jy  sigma=0.001984
! Fit after  self-cal, rms=0.122923Jy  sigma=0.001939
! Inverting map and beam 
! Estimated beam: bmin=0.9261 mas, bmaj=1.746 mas, bpa=-12.33 degrees
! Estimated noise=660.017 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.00101198 Jy
! Component: 100  -  total flux cleaned = -0.00078656 Jy
! Total flux subtracted in 100 components = -0.00078656 Jy
! Clean residual min=-0.021251 max=0.022731 Jy/beam
! Clean residual mean=-0.000044 rms=0.004693 Jy/beam
! Combined flux in latest and established models = 0.604667 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 37 components and 0.604667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.122380Jy  sigma=0.001932
! Fit after  self-cal, rms=0.122315Jy  sigma=0.001931
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1219+044_X
! Writing UV FITS file: 1219+044_X.uvf
! Writing 37 model components to file: 1219+044_X.mod
! wwins: Wrote 1 windows to 1219+044_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9261 x 1.746 at -12.33 degrees (North through East)
! Clean map  min=-0.020396  max=0.54608 Jy/beam
! Writing clean map to FITS file: 1219+044_X.fits
! Writing difmap environment to: 1219+044_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1219+044_X]
device 1219+044_Xuv.ps/vps,1,2
! Attempting to open device: '1219+044_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1219+044_Xim.ps/vps
! Attempting to open device: '1219+044_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.9261 mas, bmaj=1.746 mas, bpa=-12.33 degrees
! Estimated noise=660.017 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9261 x 1.746 at -12.33 degrees (North through East)
! Clean map  min=-0.020396  max=0.54608 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 1219+044_X.log closed on Tue Sep 19 16:01:03 2006