! Started logfile: 0607-157_X.log on Fri Nov  3 09:45:11 2006
observe 0607-157_X.edt
! Reading UV FITS file: 0607-157_X.edt
! AN table 1: 43 integrations on 136 of 136 possible baselines.
! AN table 2: 22 integrations on 136 of 136 possible baselines.
! AN table 3: 8 integrations on 136 of 136 possible baselines.
! AN table 4: 54 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.114 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0607-157
! 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 1577 lines of history.
! 
! Reading 7876 visibilities.
![@gonzo9-0.1_0537 0607-157_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 = 9.0
float win_mult
win_mult = 0.7
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 466 telescope corrections were flagged in sub-array 1.
!  A total of 229 telescope corrections were flagged in sub-array 2.
!  A total of 124 telescope corrections were flagged in sub-array 3.
!  A total of 754 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 492 telescope corrections were flagged in sub-array 1.
!  A total of 250 telescope corrections were flagged in sub-array 2.
!  A total of 124 telescope corrections were flagged in sub-array 3.
!  A total of 762 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 463 telescope corrections were flagged in sub-array 1.
!  A total of 229 telescope corrections were flagged in sub-array 2.
!  A total of 124 telescope corrections were flagged in sub-array 3.
!  A total of 762 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 487 telescope corrections were flagged in sub-array 1.
!  A total of 229 telescope corrections were flagged in sub-array 2.
!  A total of 124 telescope corrections were flagged in sub-array 3.
!  A total of 762 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.007082Jy  sigma=0.030242
! Fit after  self-cal, rms=2.004233Jy  sigma=0.030323
! 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.4809 mas, bmaj=0.8231 mas, bpa=-39.89 degrees
! Estimated noise=1196.62 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 = 2.01792 Jy
! Total flux subtracted in 50 components = 2.01792 Jy
! Clean residual min=-0.136266 max=0.637926 Jy/beam
! Clean residual mean=0.003453 rms=0.044813 Jy/beam
! Combined flux in latest and established models = 2.01792 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 2.01792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.098212Jy  sigma=0.016073
! Fit after  self-cal, rms=1.098227Jy  sigma=0.016073
! Inverting map 
! Added new window around map position (0, 0.3).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.589733 Jy
! Total flux subtracted in 50 components = 0.589733 Jy
! Clean residual min=-0.090409 max=0.255084 Jy/beam
! Clean residual mean=0.001988 rms=0.025307 Jy/beam
! Combined flux in latest and established models = 2.60766 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 10 components and 2.60766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.672711Jy  sigma=0.009167
! Fit after  self-cal, rms=0.671408Jy  sigma=0.009152
! Inverting map 
! Added new window around map position (-0.3, 0.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.24219 Jy
! Total flux subtracted in 50 components = 0.24219 Jy
! Clean residual min=-0.084345 max=0.192947 Jy/beam
! Clean residual mean=0.001386 rms=0.020832 Jy/beam
! Combined flux in latest and established models = 2.84985 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 18 components and 2.84985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.554353Jy  sigma=0.007223
! Fit after  self-cal, rms=0.552503Jy  sigma=0.007195
! 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.8387 mas, bmaj=1.243 mas, bpa=-15.4 degrees
! Estimated noise=600.027 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.209103 Jy
! Component: 100  -  total flux cleaned = 0.28912 Jy
! Total flux subtracted in 100 components = 0.28912 Jy
! Clean residual min=-0.085976 max=0.169241 Jy/beam
! Clean residual mean=0.000599 rms=0.021913 Jy/beam
! Combined flux in latest and established models = 3.13897 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 22 components and 3.13897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476920Jy  sigma=0.006138
! Fit after  self-cal, rms=0.476780Jy  sigma=0.006124
! 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 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.82     FD        0.90     HN        0.86     HO        0.98     
!   KP        0.91     LA        1.02     MK        1.09     NL        1.03     
!   NY        1.00*    OV        1.07     PT        1.04     MC        1.00*    
!   SC        1.03     SV        1.00*    TC        1.20     WF        1.15     
!   WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     HN        1.00*    HO        1.07     
!   KP        0.88     LA        0.99     MK        1.00*    NL        0.96     
!   NY        1.00*    OV        1.07     PT        1.02     MC        1.00*    
!   SC        1.10     SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.85     FD        0.92     HN        0.78     HO        1.11     
!   KP        0.87     LA        0.97     MK        1.02     NL        0.97     
!   NY        1.00*    OV        0.93     PT        1.04     MC        1.00*    
!   SC        1.06     SV        1.00*    TC        1.00*    WF        1.15     
!   WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        0.88     HN        0.88     HO        0.94     
!   KP        1.16     LA        1.01     MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.07     PT        1.03     MC        1.00*    
!   SC        1.06     SV        1.00*    TC        1.22     WF        1.14     
!   WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00     HN        1.00*    HO        1.07     
!   KP        0.93     LA        1.00*    MK        1.00*    NL        0.95     
!   NY        1.00*    OV        1.06     PT        1.01     MC        1.00*    
!   SC        1.14     SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        0.91     HN        1.00*    HO        1.06     
!   KP        0.92     LA        0.97     MK        1.15     NL        0.98     
!   NY        1.00*    OV        1.03     PT        1.04     MC        1.00*    
!   SC        1.03     SV        1.00*    TC        1.00*    WF        1.10     
!   WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.79     FD        0.87     HN        0.89     HO        0.91     
!   KP        1.20     LA        1.01     MK        1.08     NL        1.01     
!   NY        1.00*    OV        1.05     PT        1.03     MC        1.00*    
!   SC        1.05     SV        1.00*    TC        1.15     WF        1.12     
!   WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.07     HN        1.00*    HO        1.13     
!   KP        0.94     LA        0.99     MK        1.00*    NL        1.01     
!   NY        1.00*    OV        1.06     PT        1.02     MC        1.00*    
!   SC        1.18     SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        0.94     HN        1.00*    HO        1.10     
!   KP        0.95     LA        0.97     MK        1.09     NL        0.99     
!   NY        1.00*    OV        1.02     PT        1.05     MC        1.00*    
!   SC        1.08     SV        1.00*    TC        1.00*    WF        1.07     
!   WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.75     FD        0.86     HN        0.67     HO        0.97     
!   KP        1.06     LA        1.01     MK        1.08     NL        1.02     
!   NY        1.00*    OV        1.07     PT        1.05     MC        1.00*    
!   SC        1.11     SV        1.00*    TC        1.12     WF        1.11     
!   WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.07     HN        1.00*    HO        1.07     
!   KP        0.91     LA        0.98     MK        1.00*    NL        0.97     
!   NY        1.00*    OV        1.05     PT        1.01     MC        1.00*    
!   SC        1.27     SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.29     FD        0.93     HN        1.00*    HO        1.11     
!   KP        0.92     LA        1.00     MK        1.05     NL        0.94     
!   NY        1.00*    OV        1.01     PT        1.07     MC        1.00*    
!   SC        0.96     SV        1.00*    TC        1.00*    WF        1.16     
!   WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.476780Jy  sigma=0.006124
! Fit after  self-cal, rms=0.290043Jy  sigma=0.003591
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.87 mas, bmaj=1.361 mas, bpa=-17.45 degrees
! Estimated noise=607.281 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 (1.1, 0.1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0761776 Jy
! Component: 100  -  total flux cleaned = 0.0784823 Jy
! Total flux subtracted in 100 components = 0.0784823 Jy
! Clean residual min=-0.036495 max=0.047871 Jy/beam
! Clean residual mean=0.000201 rms=0.009767 Jy/beam
! Combined flux in latest and established models = 3.21745 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 31 components and 3.21745 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267792Jy  sigma=0.003295
! Fit after  self-cal, rms=0.261609Jy  sigma=0.003228
! 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.00549098 Jy
! Component: 100  -  total flux cleaned = 0.00824267 Jy
! Total flux subtracted in 100 components = 0.00824267 Jy
! Clean residual min=-0.037611 max=0.042645 Jy/beam
! Clean residual mean=0.000165 rms=0.009162 Jy/beam
! Combined flux in latest and established models = 3.22569 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 33 components and 3.22569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255875Jy  sigma=0.003138
! Fit after  self-cal, rms=0.176645Jy  sigma=0.002054
! Inverting map and beam 
! Estimated beam: bmin=0.8609 mas, bmaj=1.35 mas, bpa=-18.09 degrees
! Estimated noise=606.525 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.035104 Jy
! Component: 100  -  total flux cleaned = 0.036436 Jy
! Total flux subtracted in 100 components = 0.036436 Jy
! Clean residual min=-0.019221 max=0.028713 Jy/beam
! Clean residual mean=0.000310 rms=0.005868 Jy/beam
! Combined flux in latest and established models = 3.26213 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 34 components and 3.26213 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167939Jy  sigma=0.001918
! Fit after  self-cal, rms=0.164778Jy  sigma=0.001883
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0607-157_X
! Writing UV FITS file: 0607-157_X.uvf
! Writing 34 model components to file: 0607-157_X.mod
! wwins: Wrote 4 windows to 0607-157_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8609 x 1.35 at -18.09 degrees (North through East)
! Clean map  min=-0.022053  max=2.8696 Jy/beam
! Writing clean map to FITS file: 0607-157_X.fits
! Writing difmap environment to: 0607-157_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0607-157_X]
device 0607-157_Xuv.ps/vps,1,2
! Attempting to open device: '0607-157_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0607-157_Xim.ps/vps
! Attempting to open device: '0607-157_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.8609 mas, bmaj=1.35 mas, bpa=-18.09 degrees
! Estimated noise=606.525 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8609 x 1.35 at -18.09 degrees (North through East)
! Clean map  min=-0.022053  max=2.8696 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo9-0.1_0537]
quit
! Quitting program
! Log file 0607-157_X.log closed on Fri Nov  3 09:45:32 2006