! Started logfile: 0048-427_X.log on Wed Oct 31 12:46:56 2007
observe 0048-427_X.edt
! Reading UV FITS file: 0048-427_X.edt
! AN table 1: 61 integrations on 105 of 105 possible baselines.
! AN table 2: 97 integrations on 105 of 105 possible baselines.
! AN table 3: 8 integrations on 105 of 105 possible baselines.
! AN table 4: 82 integrations on 105 of 105 possible baselines.
! AN table 5: 83 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.103208 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0048-427
! 
! 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 969 lines of history.
! 
! Reading 14348 visibilities.
![@gonzo7-0.1 0048-427_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 816 telescope corrections were flagged in sub-array 1.
!  A total of 738 telescope corrections were flagged in sub-array 2.
!  A total of 116 telescope corrections were flagged in sub-array 3.
!  A total of 1122 telescope corrections were flagged in sub-array 4.
!  A total of 995 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 816 telescope corrections were flagged in sub-array 1.
!  A total of 738 telescope corrections were flagged in sub-array 2.
!  A total of 116 telescope corrections were flagged in sub-array 3.
!  A total of 1122 telescope corrections were flagged in sub-array 4.
!  A total of 995 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 816 telescope corrections were flagged in sub-array 1.
!  A total of 738 telescope corrections were flagged in sub-array 2.
!  A total of 116 telescope corrections were flagged in sub-array 3.
!  A total of 1122 telescope corrections were flagged in sub-array 4.
!  A total of 995 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 816 telescope corrections were flagged in sub-array 1.
!  A total of 738 telescope corrections were flagged in sub-array 2.
!  A total of 117 telescope corrections were flagged in sub-array 3.
!  A total of 1125 telescope corrections were flagged in sub-array 4.
!  A total of 995 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.684579Jy  sigma=0.007271
! Fit after  self-cal, rms=0.665377Jy  sigma=0.007329
! 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.5969 mas, bmaj=1.161 mas, bpa=2.109 degrees
! Estimated noise=1372.51 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.280188 Jy
! Total flux subtracted in 50 components = 0.280188 Jy
! Clean residual min=-0.039205 max=0.078168 Jy/beam
! Clean residual mean=0.000362 rms=0.009130 Jy/beam
! Combined flux in latest and established models = 0.280188 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 0.280188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276112Jy  sigma=0.002558
! Fit after  self-cal, rms=0.276112Jy  sigma=0.002558
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0651712 Jy
! Total flux subtracted in 50 components = 0.0651712 Jy
! Clean residual min=-0.028278 max=0.048537 Jy/beam
! Clean residual mean=0.000299 rms=0.008145 Jy/beam
! Combined flux in latest and established models = 0.345359 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.345359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258004Jy  sigma=0.002239
! Fit after  self-cal, rms=0.257995Jy  sigma=0.002239
! 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.8194 mas, bmaj=1.722 mas, bpa=-1.097 degrees
! Estimated noise=558.299 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.0535542 Jy
! Component: 100  -  total flux cleaned = 0.0753985 Jy
! Total flux subtracted in 100 components = 0.0753985 Jy
! Clean residual min=-0.028084 max=0.056325 Jy/beam
! Clean residual mean=0.000583 rms=0.013446 Jy/beam
! Combined flux in latest and established models = 0.420758 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 0.420758 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249693Jy  sigma=0.002077
! Fit after  self-cal, rms=0.249663Jy  sigma=0.002076
! 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:
!   FD        0.76     HH        1.00*    KB        1.00*    KP        0.61     
!   LA        0.84     MK        0.88     NL        1.71     NY        1.00*    
!   OV        0.82     PT        0.87     SC        1.13     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.87     HH        1.00*    KB        1.00*    KP        0.95     
!   LA        0.91     MK        1.02     NL        1.20     NY        1.00*    
!   OV        1.92     PT        0.89     SC        0.97     TC        0.99     
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.01     HH        1.00*    KB        1.00*    KP        0.75     
!   LA        0.87     MK        1.00*    NL        1.00*    NY        1.00*    
!   OV        1.00*    PT        1.00     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.84     HH        1.00*    KB        1.00*    KP        0.75     
!   LA        0.81     MK        0.92     NL        1.00*    NY        1.00*    
!   OV        5.28     PT        0.81     SC        1.00*    TC        1.70     
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.78     HH        1.00*    KB        1.00*    KP        0.57     
!   LA        0.85     MK        0.90     NL        1.71     NY        1.00*    
!   OV        0.79     PT        0.88     SC        1.15     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.88     HH        1.00*    KB        1.00*    KP        0.97     
!   LA        0.92     MK        1.03     NL        1.19     NY        1.00*    
!   OV        1.99     PT        0.89     SC        0.99     TC        1.04     
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.10     HH        1.00*    KB        1.00*    KP        0.83     
!   LA        0.97     MK        1.00*    NL        1.00*    NY        1.00*    
!   OV        1.00*    PT        0.83     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.84     HH        1.00*    KB        1.00*    KP        0.72     
!   LA        0.77     MK        0.91     NL        1.00*    NY        1.00*    
!   OV        5.50     PT        0.85     SC        1.00*    TC        1.73     
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.76     HH        1.00*    KB        1.00*    KP        0.58     
!   LA        0.89     MK        0.96     NL        1.71     NY        1.00*    
!   OV        0.81     PT        0.88     SC        1.15     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.90     HH        1.00*    KB        1.00*    KP        0.95     
!   LA        0.93     MK        1.03     NL        1.20     NY        1.00*    
!   OV        2.23     PT        0.90     SC        1.03     TC        0.99     
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     HH        1.00*    KB        1.00*    KP        0.79     
!   LA        1.03     MK        1.00*    NL        1.00*    NY        1.00*    
!   OV        1.00*    PT        1.05     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  A total of 108 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.84     HH        1.00*    KB        1.00*    KP        0.67     
!   LA        0.83     MK        0.97     NL        1.00*    NY        1.00*    
!   OV        5.37     PT        0.87     SC        1.00*    TC        1.64     
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.76     HH        1.00*    KB        1.00*    KP        0.56     
!   LA        0.89     MK        0.91     NL        1.77     NY        1.00*    
!   OV        0.85     PT        0.87     SC        1.14     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.89     HH        1.00*    KB        1.00*    KP        0.96     
!   LA        0.92     MK        1.02     NL        1.26     NY        1.00*    
!   OV        2.18     PT        0.91     SC        1.04     TC        1.04     
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.87     HH        1.00*    KB        1.00*    KP        0.72     
!   LA        0.81     MK        0.99     NL        1.00*    NY        1.00*    
!   OV        4.45     PT        0.86     SC        1.00*    TC        1.54     
!   WF        1.00*    WZ        1.00*    BR        1.00*    
! 
! 
! Fit before self-cal, rms=0.249663Jy  sigma=0.002076
! Fit after  self-cal, rms=0.244439Jy  sigma=0.001303
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8515 mas, bmaj=1.893 mas, bpa=-3.758 degrees
! Estimated noise=553.889 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.00304721 Jy
! Component: 100  -  total flux cleaned = 0.00320141 Jy
! Total flux subtracted in 100 components = 0.00320141 Jy
! Clean residual min=-0.008284 max=0.008079 Jy/beam
! Clean residual mean=-0.000169 rms=0.002008 Jy/beam
! Combined flux in latest and established models = 0.423959 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 24 components and 0.423959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244373Jy  sigma=0.001303
! Fit after  self-cal, rms=0.244771Jy  sigma=0.001301
! 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.000208404 Jy
! Component: 100  -  total flux cleaned = 0.000208299 Jy
! Total flux subtracted in 100 components = 0.000208299 Jy
! Clean residual min=-0.008239 max=0.008037 Jy/beam
! Clean residual mean=-0.000169 rms=0.002006 Jy/beam
! Combined flux in latest and established models = 0.424168 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 25 components and 0.424168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244756Jy  sigma=0.001301
! Fit after  self-cal, rms=0.254200Jy  sigma=0.001094
! Inverting map and beam 
! Estimated beam: bmin=0.8527 mas, bmaj=1.892 mas, bpa=-3.69 degrees
! Estimated noise=554.538 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 (2.2, -0.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00183737 Jy
! Component: 100  -  total flux cleaned = 0.00160783 Jy
! Total flux subtracted in 100 components = 0.00160783 Jy
! Clean residual min=-0.002924 max=0.002942 Jy/beam
! Clean residual mean=-0.000005 rms=0.000677 Jy/beam
! Combined flux in latest and established models = 0.425775 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 36 components and 0.425775 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254096Jy  sigma=0.001093
! Fit after  self-cal, rms=0.254176Jy  sigma=0.001093
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0048-427_X
! Writing UV FITS file: 0048-427_X.uvf
! Writing 36 model components to file: 0048-427_X.mod
! wwins: Wrote 2 windows to 0048-427_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8527 x 1.892 at -3.69 degrees (North through East)
! Clean map  min=-0.0029499  max=0.36767 Jy/beam
! Writing clean map to FITS file: 0048-427_X.fits
! Writing difmap environment to: 0048-427_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0048-427_X]
device 0048-427_Xuv.ps/vps,1,2
! Attempting to open device: '0048-427_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0048-427_Xim.ps/vps
! Attempting to open device: '0048-427_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.8527 mas, bmaj=1.892 mas, bpa=-3.69 degrees
! Estimated noise=554.538 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8527 x 1.892 at -3.69 degrees (North through East)
! Clean map  min=-0.0029499  max=0.36767 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0048-427_X.log closed on Wed Oct 31 12:47:18 2007