! Started logfile: 0059+581_X.log on Tue Sep 19 15:50:49 2006
observe 0059+581_X.edt
! Reading UV FITS file: 0059+581_X.edt
! AN table 1: 5 integrations on 105 of 105 possible baselines.
! AN table 2: 7 integrations on 105 of 105 possible baselines.
! AN table 3: 64 integrations on 105 of 105 possible baselines.
! AN table 4: 19 integrations on 105 of 105 possible baselines.
! AN table 5: 4 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.101972 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0059+581
! 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 4240 visibilities.
![@gonzo7-0.1 0059+581_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 59 telescope corrections were flagged in sub-array 1.
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  A total of 816 telescope corrections were flagged in sub-array 3.
!  A total of 146 telescope corrections were flagged in sub-array 4.
!  A total of 60 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 59 telescope corrections were flagged in sub-array 1.
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  A total of 816 telescope corrections were flagged in sub-array 3.
!  A total of 145 telescope corrections were flagged in sub-array 4.
!  A total of 60 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 59 telescope corrections were flagged in sub-array 1.
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  A total of 816 telescope corrections were flagged in sub-array 3.
!  A total of 145 telescope corrections were flagged in sub-array 4.
!  A total of 60 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 59 telescope corrections were flagged in sub-array 1.
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  A total of 816 telescope corrections were flagged in sub-array 3.
!  A total of 145 telescope corrections were flagged in sub-array 4.
!  A total of 60 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.201178Jy  sigma=0.018481
! Fit after  self-cal, rms=1.188374Jy  sigma=0.018358
! 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.5626 mas, bmaj=0.887 mas, bpa=-27.45 degrees
! Estimated noise=1065.95 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.59751 Jy
! Total flux subtracted in 50 components = 1.59751 Jy
! Clean residual min=-0.088809 max=0.445561 Jy/beam
! Clean residual mean=0.000197 rms=0.023683 Jy/beam
! Combined flux in latest and established models = 1.59751 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 1.59751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.663833Jy  sigma=0.009537
! Fit after  self-cal, rms=0.663833Jy  sigma=0.009537
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.349356 Jy
! Total flux subtracted in 50 components = 0.349356 Jy
! Clean residual min=-0.068266 max=0.103108 Jy/beam
! Clean residual mean=0.000136 rms=0.015739 Jy/beam
! Combined flux in latest and established models = 1.94686 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 5 components and 1.94686 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.451543Jy  sigma=0.006209
! Fit after  self-cal, rms=0.451569Jy  sigma=0.006208
! 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.8296 mas, bmaj=0.9648 mas, bpa=-25.76 degrees
! Estimated noise=700.314 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.118373 Jy
! Component: 100  -  total flux cleaned = 0.16866 Jy
! Total flux subtracted in 100 components = 0.16866 Jy
! Clean residual min=-0.052427 max=0.062696 Jy/beam
! Clean residual mean=0.000193 rms=0.013174 Jy/beam
! Combined flux in latest and established models = 2.11552 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 2.11552 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414422Jy  sigma=0.005844
! Fit after  self-cal, rms=0.414191Jy  sigma=0.005842
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.00*    FD        1.00*    HN        1.00*    
!   KP        1.00*    LA        1.00*    MC        1.00     MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.00     OV        1.00*    
!   PT        1.00*    SC        1.02     WZ        0.92     
! 
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.88     BR        1.06     FD        1.00*    HN        0.89     
!   KP        1.00*    LA        1.05     MC        0.93     MK        1.00*    
!   NL        1.07     HO        1.00*    NY        0.97     OV        0.95     
!   PT        1.02     SC        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.00*    FD        0.98     HN        1.00*    
!   KP        1.16     LA        1.00     MC        1.00*    MK        0.93     
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        1.01     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.51     BR        1.03     FD        1.00     HN        0.78     
!   KP        0.97     LA        1.00     MC        0.94     MK        1.02     
!   NL        1.01     HO        1.00*    NY        1.04     OV        1.00     
!   PT        1.00     SC        1.01     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.00*    FD        1.00*    HN        1.00*    
!   KP        1.00*    LA        1.00*    MC        0.99     MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.00     OV        1.00*    
!   PT        1.00*    SC        1.03     WZ        0.92     
! 
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.86     BR        1.04     FD        1.00*    HN        1.45     
!   KP        1.00*    LA        1.03     MC        0.91     MK        1.00*    
!   NL        1.07     HO        1.00*    NY        0.96     OV        0.98     
!   PT        1.02     SC        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.00*    FD        0.97     HN        1.00*    
!   KP        1.02     LA        0.99     MC        1.00*    MK        0.97     
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        1.02     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.42     BR        1.03     FD        0.99     HN        0.86     
!   KP        1.00     LA        0.99     MC        0.95     MK        1.02     
!   NL        1.03     HO        1.00*    NY        1.05     OV        1.00     
!   PT        1.00     SC        1.03     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.00*    FD        1.00*    HN        1.00*    
!   KP        1.00*    LA        1.00*    MC        1.00     MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.01     OV        1.00*    
!   PT        1.00*    SC        1.04     WZ        0.92     
! 
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.86     BR        1.02     FD        1.00*    HN        1.35     
!   KP        1.00*    LA        1.02     MC        0.90     MK        1.00*    
!   NL        1.07     HO        1.00*    NY        0.96     OV        0.96     
!   PT        1.04     SC        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.00*    FD        1.09     HN        1.00*    
!   KP        1.02     LA        0.99     MC        1.00*    MK        0.97     
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        1.02     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.44     BR        1.01     FD        1.00     HN        0.99     
!   KP        0.98     LA        0.99     MC        0.94     MK        1.03     
!   NL        1.01     HO        1.00*    NY        1.02     OV        1.00     
!   PT        1.00     SC        1.02     WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.00*    FD        1.00*    HN        1.00*    
!   KP        1.00*    LA        1.00*    MC        1.00     MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.01     OV        1.00*    
!   PT        1.00*    SC        1.01     WZ        0.91     
! 
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.86     BR        0.98     FD        1.00*    HN        1.06     
!   KP        1.00*    LA        1.03     MC        1.07     MK        1.00*    
!   NL        1.07     HO        1.00*    NY        0.94     OV        0.96     
!   PT        1.04     SC        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.00*    FD        1.07     HN        1.00*    
!   KP        1.02     LA        0.98     MC        1.00*    MK        0.97     
!   NL        1.00*    HO        1.00*    NY        1.00*    OV        1.02     
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.44     BR        1.10     FD        0.99     HN        0.73     
!   KP        0.99     LA        0.99     MC        0.91     MK        1.02     
!   NL        1.01     HO        1.00*    NY        1.05     OV        0.99     
!   PT        0.99     SC        1.02     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Fit before self-cal, rms=0.414191Jy  sigma=0.005842
! Fit after  self-cal, rms=0.325621Jy  sigma=0.004658
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7858 mas, bmaj=1.029 mas, bpa=-22.69 degrees
! Estimated noise=731.551 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.0443938 Jy
! Component: 100  -  total flux cleaned = 0.0590472 Jy
! Total flux subtracted in 100 components = 0.0590472 Jy
! Clean residual min=-0.041939 max=0.048311 Jy/beam
! Clean residual mean=0.000356 rms=0.010350 Jy/beam
! Combined flux in latest and established models = 2.17457 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 30 components and 2.17457 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316629Jy  sigma=0.004628
! Fit after  self-cal, rms=0.316457Jy  sigma=0.004623
! 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.00284158 Jy
! Component: 100  -  total flux cleaned = 0.00285547 Jy
! Total flux subtracted in 100 components = 0.00285547 Jy
! Clean residual min=-0.042386 max=0.046799 Jy/beam
! Clean residual mean=0.000358 rms=0.010328 Jy/beam
! Combined flux in latest and established models = 2.17743 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 34 components and 2.17743 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315327Jy  sigma=0.004611
! Fit after  self-cal, rms=0.226728Jy  sigma=0.003360
! Inverting map and beam 
! Estimated beam: bmin=0.7797 mas, bmaj=1.027 mas, bpa=-23.01 degrees
! Estimated noise=733.922 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)
! Added new window around map position (-1.3, -2.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0266232 Jy
! Component: 100  -  total flux cleaned = 0.0315877 Jy
! Total flux subtracted in 100 components = 0.0315877 Jy
! Clean residual min=-0.034662 max=0.032533 Jy/beam
! Clean residual mean=0.000035 rms=0.006485 Jy/beam
! Combined flux in latest and established models = 2.20901 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 44 components and 2.20901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219924Jy  sigma=0.003262
! Fit after  self-cal, rms=0.219595Jy  sigma=0.003255
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0059+581_X
! Writing UV FITS file: 0059+581_X.uvf
! Writing 44 model components to file: 0059+581_X.mod
! wwins: Wrote 2 windows to 0059+581_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7797 x 1.027 at -23.01 degrees (North through East)
! Clean map  min=-0.031249  max=2.0648 Jy/beam
! Writing clean map to FITS file: 0059+581_X.fits
! Writing difmap environment to: 0059+581_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0059+581_X]
device 0059+581_Xuv.ps/vps,1,2
! Attempting to open device: '0059+581_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0059+581_Xim.ps/vps
! Attempting to open device: '0059+581_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.7797 mas, bmaj=1.027 mas, bpa=-23.01 degrees
! Estimated noise=733.922 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7797 x 1.027 at -23.01 degrees (North through East)
! Clean map  min=-0.031249  max=2.0648 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0059+581_X.log closed on Tue Sep 19 15:51:04 2006