! Started logfile: 0151+474_X.log on Tue Sep 19 15:51:52 2006
observe 0151+474_X.edt
! Reading UV FITS file: 0151+474_X.edt
! AN table 1: 40 integrations on 105 of 105 possible baselines.
! AN table 2: 122 integrations on 105 of 105 possible baselines.
! AN table 3: 29 integrations on 105 of 105 possible baselines.
! AN table 4: 12 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.155806 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0151+474
! 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 13284 visibilities.
![@gonzo7-0.1 0151+474_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 531 telescope corrections were flagged in sub-array 1.
!  A total of 1212 telescope corrections were flagged in sub-array 2.
!  A total of 353 telescope corrections were flagged in sub-array 3.
!  A total of 133 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 531 telescope corrections were flagged in sub-array 1.
!  A total of 1212 telescope corrections were flagged in sub-array 2.
!  A total of 353 telescope corrections were flagged in sub-array 3.
!  A total of 121 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 531 telescope corrections were flagged in sub-array 1.
!  A total of 1212 telescope corrections were flagged in sub-array 2.
!  A total of 353 telescope corrections were flagged in sub-array 3.
!  A total of 125 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 531 telescope corrections were flagged in sub-array 1.
!  A total of 1206 telescope corrections were flagged in sub-array 2.
!  A total of 353 telescope corrections were flagged in sub-array 3.
!  A total of 121 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.692038Jy  sigma=0.011488
! Fit after  self-cal, rms=0.688590Jy  sigma=0.011565
! 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.5778 mas, bmaj=0.7462 mas, bpa=0.6929 degrees
! Estimated noise=725.137 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.237579 Jy
! Total flux subtracted in 50 components = 0.237579 Jy
! Clean residual min=-0.018458 max=0.066372 Jy/beam
! Clean residual mean=0.000126 rms=0.004026 Jy/beam
! Combined flux in latest and established models = 0.237579 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.237579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156433Jy  sigma=0.002050
! Fit after  self-cal, rms=0.156432Jy  sigma=0.002050
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0630217 Jy
! Total flux subtracted in 50 components = 0.0630217 Jy
! Clean residual min=-0.014417 max=0.026784 Jy/beam
! Clean residual mean=0.000098 rms=0.002921 Jy/beam
! Combined flux in latest and established models = 0.3006 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 11 components and 0.3006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130463Jy  sigma=0.001642
! Fit after  self-cal, rms=0.130445Jy  sigma=0.001642
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0285632 Jy
! Total flux subtracted in 50 components = 0.0285632 Jy
! Clean residual min=-0.013401 max=0.015482 Jy/beam
! Clean residual mean=0.000085 rms=0.002677 Jy/beam
! Combined flux in latest and established models = 0.329164 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 15 components and 0.329164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123956Jy  sigma=0.001576
! Fit after  self-cal, rms=0.123933Jy  sigma=0.001576
! 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.726 mas, bmaj=0.9243 mas, bpa=0.7826 degrees
! Estimated noise=393.699 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.0123898 Jy
! Component: 100  -  total flux cleaned = 0.0152264 Jy
! Total flux subtracted in 100 components = 0.0152264 Jy
! Clean residual min=-0.010623 max=0.013226 Jy/beam
! Clean residual mean=0.000243 rms=0.002478 Jy/beam
! Combined flux in latest and established models = 0.34439 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 21 components and 0.34439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121936Jy  sigma=0.001566
! Fit after  self-cal, rms=0.121925Jy  sigma=0.001565
! 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 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.42     BR        1.03     FD        1.04     HN        1.22     
!   KP        0.70     LA        1.06     MC        0.90     MK        1.02     
!   NL        0.96     HO        1.00*    NY        0.97     OV        1.01     
!   PT        1.04     SC        0.96     WZ        0.94     
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.21     BR        0.96     FD        1.00*    HN        1.18     
!   KP        1.00*    LA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.02     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.00*    BR        0.95     FD        1.17     HN        1.00*    
!   KP        1.00*    LA        0.97     MC        1.00*    MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.01     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.42     BR        1.01     FD        1.05     HN        1.10     
!   KP        0.94     LA        1.05     MC        0.95     MK        1.04     
!   NL        0.95     HO        1.00*    NY        1.00     OV        0.96     
!   PT        1.02     SC        0.94     WZ        0.93     
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.30     BR        1.02     FD        1.00*    HN        1.11     
!   KP        1.00*    LA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.13     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.00*    BR        1.03     FD        1.19     HN        1.00*    
!   KP        0.52     LA        0.98     MC        1.00*    MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        0.92     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.38     BR        1.02     FD        1.17     HN        1.09     
!   KP        0.86     LA        1.04     MC        0.93     MK        1.03     
!   NL        0.96     HO        1.00*    NY        0.99     OV        1.00     
!   PT        1.01     SC        0.96     WZ        0.91     
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.25     BR        1.32     FD        1.00*    HN        0.97     
!   KP        1.00*    LA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.07     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.00*    BR        1.24     FD        1.25     HN        1.00*    
!   KP        0.46     LA        0.82     MC        1.00*    MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        0.97     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.45     BR        0.74     FD        1.14     HN        1.21     
!   KP        0.89     LA        1.05     MC        0.88     MK        1.04     
!   NL        0.93     HO        1.00*    NY        0.94     OV        0.96     
!   PT        1.01     SC        0.95     WZ        0.92     
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.37     BR        0.87     FD        1.00*    HN        1.18     
!   KP        1.00*    LA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.10     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.00*    BR        0.85     FD        1.24     HN        1.00*    
!   KP        0.48     LA        0.70     MC        1.00*    MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        0.92     SC        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.121925Jy  sigma=0.001565
! Fit after  self-cal, rms=0.099892Jy  sigma=0.001354
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7075 mas, bmaj=0.9192 mas, bpa=2.788 degrees
! Estimated noise=399.248 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.00322197 Jy
! Component: 100  -  total flux cleaned = 0.00371031 Jy
! Total flux subtracted in 100 components = 0.00371031 Jy
! Clean residual min=-0.009453 max=0.008273 Jy/beam
! Clean residual mean=-0.000010 rms=0.001656 Jy/beam
! Combined flux in latest and established models = 0.3481 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 24 components and 0.3481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099609Jy  sigma=0.001353
! Fit after  self-cal, rms=0.099609Jy  sigma=0.001353
! 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.0001366 Jy
! Component: 100  -  total flux cleaned = 0.000278942 Jy
! Total flux subtracted in 100 components = 0.000278942 Jy
! Clean residual min=-0.009139 max=0.008375 Jy/beam
! Clean residual mean=-0.000010 rms=0.001649 Jy/beam
! Combined flux in latest and established models = 0.348379 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 27 components and 0.348379 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099508Jy  sigma=0.001352
! Fit after  self-cal, rms=0.083314Jy  sigma=0.001235
! Inverting map and beam 
! Estimated beam: bmin=0.7043 mas, bmaj=0.9309 mas, bpa=1.125 degrees
! Estimated noise=401.211 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.000677024 Jy
! Component: 100  -  total flux cleaned = 0.000486098 Jy
! Total flux subtracted in 100 components = 0.000486098 Jy
! Clean residual min=-0.007410 max=0.007098 Jy/beam
! Clean residual mean=-0.000014 rms=0.001318 Jy/beam
! Combined flux in latest and established models = 0.348865 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 35 components and 0.348865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.083173Jy  sigma=0.001233
! Fit after  self-cal, rms=0.083173Jy  sigma=0.001233
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0151+474_X
! Writing UV FITS file: 0151+474_X.uvf
! Writing 35 model components to file: 0151+474_X.mod
! wwins: Wrote 1 windows to 0151+474_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7043 x 0.9309 at 1.125 degrees (North through East)
! Clean map  min=-0.0067909  max=0.3087 Jy/beam
! Writing clean map to FITS file: 0151+474_X.fits
! Writing difmap environment to: 0151+474_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0151+474_X]
device 0151+474_Xuv.ps/vps,1,2
! Attempting to open device: '0151+474_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0151+474_Xim.ps/vps
! Attempting to open device: '0151+474_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.7043 mas, bmaj=0.9309 mas, bpa=1.125 degrees
! Estimated noise=401.211 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7043 x 0.9309 at 1.125 degrees (North through East)
! Clean map  min=-0.0067909  max=0.3087 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0151+474_X.log closed on Tue Sep 19 15:52:11 2006