! Started logfile: 2136+141_X.log on Wed Sep 20 17:19:08 2006
observe 2136+141_X.edt
! Reading UV FITS file: 2136+141_X.edt
! AN table 1: 42 integrations on 105 of 105 possible baselines.
! AN table 2: 28 integrations on 105 of 105 possible baselines.
! AN table 3: 23 integrations on 105 of 105 possible baselines.
! AN table 4: 48 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.140763 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2136+141
! 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 8336 visibilities.
![@gonzo8-0.1 2136+141_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 = 8.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 479 telescope corrections were flagged in sub-array 1.
!  A total of 338 telescope corrections were flagged in sub-array 2.
!  A total of 143 telescope corrections were flagged in sub-array 3.
!  A total of 509 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 480 telescope corrections were flagged in sub-array 1.
!  A total of 335 telescope corrections were flagged in sub-array 2.
!  A total of 143 telescope corrections were flagged in sub-array 3.
!  A total of 510 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 479 telescope corrections were flagged in sub-array 1.
!  A total of 335 telescope corrections were flagged in sub-array 2.
!  A total of 143 telescope corrections were flagged in sub-array 3.
!  A total of 509 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 479 telescope corrections were flagged in sub-array 1.
!  A total of 338 telescope corrections were flagged in sub-array 2.
!  A total of 157 telescope corrections were flagged in sub-array 3.
!  A total of 509 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.849788Jy  sigma=0.013280
! Fit after  self-cal, rms=0.843924Jy  sigma=0.013306
! 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.5055 mas, bmaj=1.02 mas, bpa=-31.52 degrees
! Estimated noise=832.051 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.04607 Jy
! Total flux subtracted in 50 components = 1.04607 Jy
! Clean residual min=-0.099266 max=0.392206 Jy/beam
! Clean residual mean=-0.000545 rms=0.024489 Jy/beam
! Combined flux in latest and established models = 1.04607 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 8 components and 1.04607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.806124Jy  sigma=0.012669
! Fit after  self-cal, rms=0.805703Jy  sigma=0.012662
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.42313 Jy
! Total flux subtracted in 50 components = 0.42313 Jy
! Clean residual min=-0.082216 max=0.196550 Jy/beam
! Clean residual mean=-0.000334 rms=0.016004 Jy/beam
! Combined flux in latest and established models = 1.4692 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 19 components and 1.4692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556471Jy  sigma=0.007871
! Fit after  self-cal, rms=0.555409Jy  sigma=0.007854
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.222933 Jy
! Total flux subtracted in 50 components = 0.222933 Jy
! Clean residual min=-0.066611 max=0.106964 Jy/beam
! Clean residual mean=-0.000226 rms=0.012727 Jy/beam
! Combined flux in latest and established models = 1.69214 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 24 components and 1.69214 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.473688Jy  sigma=0.006243
! Fit after  self-cal, rms=0.473277Jy  sigma=0.006236
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.125976 Jy
! Total flux subtracted in 50 components = 0.125976 Jy
! Clean residual min=-0.057867 max=0.063472 Jy/beam
! Clean residual mean=-0.000167 rms=0.011533 Jy/beam
! Combined flux in latest and established models = 1.81811 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 35 components and 1.81811 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.451423Jy  sigma=0.005854
! Fit after  self-cal, rms=0.451220Jy  sigma=0.005849
! 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.783 mas, bmaj=1.386 mas, bpa=-24.82 degrees
! Estimated noise=489.579 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.0328318 Jy
! Component: 100  -  total flux cleaned = 0.0398729 Jy
! Total flux subtracted in 100 components = 0.0398729 Jy
! Clean residual min=-0.069195 max=0.062190 Jy/beam
! Clean residual mean=-0.000949 rms=0.019967 Jy/beam
! Combined flux in latest and established models = 1.85799 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 42 components and 1.85798 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.447640Jy  sigma=0.005820
! Fit after  self-cal, rms=0.447590Jy  sigma=0.005820
! 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:
!   AP        0.90     BR        1.05     FD        1.03     HN        0.60     
!   KP        0.73     LA        0.92     MC        1.00*    MK        1.13     
!   NL        1.02     HO        0.80     NY        1.15     OV        1.01     
!   PT        0.96     SC        1.07     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.00*    BR        1.13     FD        1.00*    HN        1.00*    
!   KP        0.79     LA        1.03     MC        1.00*    MK        1.17     
!   NL        1.00*    HO        2.31     NY        1.75     OV        0.92     
!   PT        0.99     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.94     BR        1.01     FD        1.01     HN        1.09     
!   KP        1.05     LA        1.00     MC        1.05     MK        1.00*    
!   NL        0.91     HO        1.00*    NY        1.04     OV        0.91     
!   PT        0.98     SC        1.01     WZ        0.89     
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.00*    BR        1.00*    FD        1.01     HN        1.00*    
!   KP        0.63     LA        1.06     MC        1.00*    MK        1.00*    
!   NL        1.44     HO        2.31     NY        1.00*    OV        0.77     
!   PT        1.02     SC        0.91     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        0.90     BR        1.10     FD        1.04     HN        0.58     
!   KP        0.97     LA        0.95     MC        1.00*    MK        1.13     
!   NL        1.02     HO        0.79     NY        1.12     OV        0.97     
!   PT        0.97     SC        1.10     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.00*    BR        1.04     FD        1.00*    HN        1.00*    
!   KP        1.05     LA        1.01     MC        1.00*    MK        0.98     
!   NL        1.00*    HO        1.26     NY        1.89     OV        0.90     
!   PT        0.98     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.95     BR        0.93     FD        1.01     HN        1.07     
!   KP        1.07     LA        1.00     MC        1.06     MK        1.00*    
!   NL        0.91     HO        1.00*    NY        1.05     OV        0.90     
!   PT        0.96     SC        1.02     WZ        0.86     
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.00*    BR        1.00*    FD        1.00     HN        1.00*    
!   KP        1.00*    LA        1.05     MC        1.00*    MK        1.00*    
!   NL        1.47     HO        0.53     NY        1.00*    OV        0.75     
!   PT        1.03     SC        0.89     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:
!   AP        0.90     BR        1.10     FD        1.03     HN        0.71     
!   KP        0.92     LA        0.95     MC        1.00*    MK        1.13     
!   NL        1.01     HO        3.29     NY        1.18     OV        1.02     
!   PT        0.96     SC        1.11     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.00*    BR        1.02     FD        1.00*    HN        1.00*    
!   KP        1.04     LA        1.03     MC        1.00*    MK        0.98     
!   NL        1.00*    HO        1.10     NY        2.27     OV        0.94     
!   PT        1.00     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.91     BR        0.95     FD        1.13     HN        1.10     
!   KP        1.05     LA        1.00     MC        1.07     MK        1.00*    
!   NL        0.92     HO        1.00*    NY        1.07     OV        0.92     
!   PT        0.96     SC        1.02     WZ        0.86     
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.00*    BR        1.00*    FD        1.03     HN        1.00*    
!   KP        0.47     LA        1.07     MC        1.00*    MK        1.00*    
!   NL        1.47     HO        0.60     NY        1.00*    OV        0.79     
!   PT        1.05     SC        0.91     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:
!   AP        0.91     BR        1.14     FD        1.04     HN        0.73     
!   KP        0.96     LA        0.93     MC        1.00*    MK        1.15     
!   NL        1.01     HO        4.03     NY        1.13     OV        0.99     
!   PT        0.97     SC        1.09     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.00*    BR        1.16     FD        1.00*    HN        1.00*    
!   KP        1.05     LA        1.02     MC        1.00*    MK        0.97     
!   NL        1.00*    HO        1.92     NY        1.98     OV        0.91     
!   PT        1.00     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.93     BR        0.90     FD        1.12     HN        0.82     
!   KP        1.05     LA        0.99     MC        1.01     MK        1.00*    
!   NL        0.91     HO        1.00*    NY        1.01     OV        0.90     
!   PT        0.96     SC        1.06     WZ        0.86     
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.00*    BR        1.00*    FD        1.02     HN        1.00*    
!   KP        0.47     LA        1.07     MC        1.00*    MK        1.00*    
!   NL        1.40     HO        0.66     NY        1.00*    OV        0.79     
!   PT        1.05     SC        0.92     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.447590Jy  sigma=0.005820
! Fit after  self-cal, rms=0.265966Jy  sigma=0.003856
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7904 mas, bmaj=1.457 mas, bpa=-22.88 degrees
! Estimated noise=491.64 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.00842226 Jy
! Component: 100  -  total flux cleaned = 0.00939689 Jy
! Total flux subtracted in 100 components = 0.00939689 Jy
! Clean residual min=-0.031126 max=0.036030 Jy/beam
! Clean residual mean=-0.000369 rms=0.007231 Jy/beam
! Combined flux in latest and established models = 1.86738 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 45 components and 1.86738 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265330Jy  sigma=0.003847
! Fit after  self-cal, rms=0.265342Jy  sigma=0.003845
! 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.000515233 Jy
! Component: 100  -  total flux cleaned = -0.000263201 Jy
! Total flux subtracted in 100 components = -0.000263201 Jy
! Clean residual min=-0.031472 max=0.035649 Jy/beam
! Clean residual mean=-0.000368 rms=0.007206 Jy/beam
! Combined flux in latest and established models = 1.86712 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 48 components and 1.86712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265045Jy  sigma=0.003841
! Fit after  self-cal, rms=0.209670Jy  sigma=0.003178
! Inverting map and beam 
! Estimated beam: bmin=0.7887 mas, bmaj=1.458 mas, bpa=-22.43 degrees
! Estimated noise=490.886 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.0108133 Jy
! Component: 100  -  total flux cleaned = 0.0115604 Jy
! Total flux subtracted in 100 components = 0.0115604 Jy
! Clean residual min=-0.027521 max=0.035185 Jy/beam
! Clean residual mean=-0.000059 rms=0.006051 Jy/beam
! Combined flux in latest and established models = 1.87868 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 53 components and 1.87868 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208712Jy  sigma=0.003160
! Fit after  self-cal, rms=0.208672Jy  sigma=0.003160
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2136+141_X
! Writing UV FITS file: 2136+141_X.uvf
! Writing 53 model components to file: 2136+141_X.mod
! wwins: Wrote 1 windows to 2136+141_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7887 x 1.458 at -22.43 degrees (North through East)
! Clean map  min=-0.026723  max=1.4547 Jy/beam
! Writing clean map to FITS file: 2136+141_X.fits
! Writing difmap environment to: 2136+141_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2136+141_X]
device 2136+141_Xuv.ps/vps,1,2
! Attempting to open device: '2136+141_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2136+141_Xim.ps/vps
! Attempting to open device: '2136+141_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.7887 mas, bmaj=1.458 mas, bpa=-22.43 degrees
! Estimated noise=490.886 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7887 x 1.458 at -22.43 degrees (North through East)
! Clean map  min=-0.026723  max=1.4547 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 2136+141_X.log closed on Wed Sep 20 17:19:27 2006