! Started logfile: 2243-123_X.log on Mon Aug  7 22:16:07 2006
observe 2243-123_X.edt
! Reading UV FITS file: 2243-123_X.edt
! AN table 1: 60 integrations on 190 of 190 possible baselines.
! AN table 2: 35 integrations on 190 of 190 possible baselines.
! AN table 3: 21 integrations on 190 of 190 possible baselines.
! AN table 4: 32 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0529161 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2243-123
! 
! 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 1409 lines of history.
! 
! Reading 5952 visibilities.
![@gonzo8-0.1 2243-123_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 1082 telescope corrections were flagged in sub-array 1.
!  A total of 589 telescope corrections were flagged in sub-array 2.
!  A total of 396 telescope corrections were flagged in sub-array 3.
!  A total of 566 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1093 telescope corrections were flagged in sub-array 1.
!  A total of 589 telescope corrections were flagged in sub-array 2.
!  A total of 396 telescope corrections were flagged in sub-array 3.
!  A total of 587 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1082 telescope corrections were flagged in sub-array 1.
!  A total of 589 telescope corrections were flagged in sub-array 2.
!  A total of 396 telescope corrections were flagged in sub-array 3.
!  A total of 563 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1090 telescope corrections were flagged in sub-array 1.
!  A total of 589 telescope corrections were flagged in sub-array 2.
!  A total of 396 telescope corrections were flagged in sub-array 3.
!  A total of 563 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.958165Jy  sigma=0.013832
! Fit after  self-cal, rms=0.967462Jy  sigma=0.014106
! 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.5058 mas, bmaj=1.16 mas, bpa=13.65 degrees
! Estimated noise=1825.59 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.33666 Jy
! Total flux subtracted in 50 components = 1.33666 Jy
! Clean residual min=-0.122593 max=0.413878 Jy/beam
! Clean residual mean=0.001636 rms=0.038191 Jy/beam
! Combined flux in latest and established models = 1.33666 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 6 components and 1.33666 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.703151Jy  sigma=0.010310
! Fit after  self-cal, rms=0.703139Jy  sigma=0.010310
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.397154 Jy
! Total flux subtracted in 50 components = 0.397154 Jy
! Clean residual min=-0.085388 max=0.177565 Jy/beam
! Clean residual mean=0.001018 rms=0.024999 Jy/beam
! Combined flux in latest and established models = 1.73381 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 28 components and 1.73381 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463865Jy  sigma=0.006671
! Fit after  self-cal, rms=0.463795Jy  sigma=0.006668
! 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.6546 mas, bmaj=1.614 mas, bpa=2.738 degrees
! Estimated noise=1072.58 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.276546 Jy
! Component: 100  -  total flux cleaned = 0.419027 Jy
! Total flux subtracted in 100 components = 0.419027 Jy
! Clean residual min=-0.062275 max=0.138149 Jy/beam
! Clean residual mean=0.004955 rms=0.020929 Jy/beam
! Combined flux in latest and established models = 2.15284 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 51 components and 2.15284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314622Jy  sigma=0.004076
! Fit after  self-cal, rms=0.313618Jy  sigma=0.004068
! 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 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     GC        1.00*    HN        0.97     
!   LA        1.00     NL        0.98     OV        0.91     SC        1.00     
!   WF        0.97     GG        1.00*    HH        1.15     KK        1.00*    
!   KP        1.00     MA        1.00*    MC        1.12     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.95     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        0.92     GC        1.00*    HN        1.00*    
!   LA        0.88     NL        0.99     OV        0.95     SC        1.00*    
!   WF        1.70     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.96     MA        1.00*    MC        1.00*    MK        0.95     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.93     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.84     
!   KP        1.06     MA        1.00*    MC        1.00*    MK        1.03     
!   NY        1.00*    TS        0.94     WZ        1.00*    PT        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.02     
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.27     
!   WF        0.96     GG        1.00*    HH        1.01     KK        1.00*    
!   KP        1.00*    MA        1.06     MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.94     PT        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        1.03     FD        0.95     GC        1.00*    HN        0.98     
!   LA        1.01     NL        0.93     OV        0.91     SC        1.00*    
!   WF        0.94     GG        1.00*    HH        1.02     KK        1.00*    
!   KP        0.99     MA        1.00*    MC        1.12     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.95     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.11     FD        0.91     GC        1.00*    HN        1.00*    
!   LA        0.86     NL        0.99     OV        0.98     SC        1.00*    
!   WF        1.66     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.95     MA        1.00*    MC        1.00*    MK        0.95     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.95     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.90     
!   KP        1.03     MA        1.00*    MC        1.00*    MK        1.01     
!   NY        1.00*    TS        0.90     WZ        1.00*    PT        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.02     
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.25     
!   WF        0.94     GG        1.00*    HH        1.06     KK        1.00*    
!   KP        1.00*    MA        1.05     MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.89     PT        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.95     GC        1.00*    HN        0.97     
!   LA        1.00     NL        0.94     OV        0.88     SC        1.01     
!   WF        0.95     GG        1.00*    HH        0.93     KK        1.00*    
!   KP        0.97     MA        1.00*    MC        1.19     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.97     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.93     GC        1.00*    HN        1.00*    
!   LA        0.86     NL        0.98     OV        0.99     SC        1.00*    
!   WF        1.66     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.98     MA        1.00*    MC        1.00*    MK        0.95     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.90     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.87     
!   KP        1.02     MA        1.00*    MC        1.00*    MK        0.99     
!   NY        1.00*    TS        0.86     WZ        1.00*    PT        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.02     
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.28     
!   WF        1.11     GG        1.00*    HH        1.11     KK        1.00*    
!   KP        1.00*    MA        1.21     MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.86     PT        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.95     GC        1.00*    HN        0.96     
!   LA        0.98     NL        0.93     OV        0.88     SC        1.03     
!   WF        0.95     GG        1.00*    HH        1.11     KK        1.00*    
!   KP        0.97     MA        1.00*    MC        1.28     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.96     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.91     GC        1.00*    HN        1.00*    
!   LA        0.87     NL        0.98     OV        0.97     SC        1.00*    
!   WF        1.66     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.95     MA        1.00*    MC        1.00*    MK        0.96     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.94     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.86     
!   KP        1.01     MA        1.00*    MC        1.00*    MK        1.01     
!   NY        1.00*    TS        0.86     WZ        1.00*    PT        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.02     
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.34     
!   WF        1.10     GG        1.00*    HH        1.13     KK        1.00*    
!   KP        1.00*    MA        1.20     MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.92     PT        1.00*    
! 
! 
! Fit before self-cal, rms=0.313618Jy  sigma=0.004068
! Fit after  self-cal, rms=0.226072Jy  sigma=0.002559
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6639 mas, bmaj=1.658 mas, bpa=5.689 degrees
! Estimated noise=1186.91 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.0134727 Jy
! Component: 100  -  total flux cleaned = -0.0135056 Jy
! Total flux subtracted in 100 components = -0.0135056 Jy
! Clean residual min=-0.031861 max=0.062258 Jy/beam
! Clean residual mean=0.001747 rms=0.009530 Jy/beam
! Combined flux in latest and established models = 2.13933 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 55 components and 2.13933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222762Jy  sigma=0.002528
! Fit after  self-cal, rms=0.222925Jy  sigma=0.002527
! 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)
! Added new window around map position (1, 3.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0546717 Jy
! Component: 100  -  total flux cleaned = 0.0597504 Jy
! Total flux subtracted in 100 components = 0.0597504 Jy
! Clean residual min=-0.032354 max=0.033628 Jy/beam
! Clean residual mean=0.000448 rms=0.008262 Jy/beam
! Combined flux in latest and established models = 2.19908 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 65 components and 2.19908 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209623Jy  sigma=0.002317
! Fit after  self-cal, rms=0.177837Jy  sigma=0.002029
! Inverting map and beam 
! Estimated beam: bmin=0.6661 mas, bmaj=1.667 mas, bpa=5.648 degrees
! Estimated noise=1191.9 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.0322945 Jy
! Component: 100  -  total flux cleaned = 0.0341487 Jy
! Total flux subtracted in 100 components = 0.0341487 Jy
! Clean residual min=-0.025279 max=0.026844 Jy/beam
! Clean residual mean=0.000500 rms=0.006202 Jy/beam
! Combined flux in latest and established models = 2.23323 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 71 components and 2.23323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169617Jy  sigma=0.001900
! Fit after  self-cal, rms=0.168340Jy  sigma=0.001882
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2243-123_X
! Writing UV FITS file: 2243-123_X.uvf
! Writing 71 model components to file: 2243-123_X.mod
! wwins: Wrote 2 windows to 2243-123_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6661 x 1.667 at 5.648 degrees (North through East)
! Clean map  min=-0.026149  max=1.6788 Jy/beam
! Writing clean map to FITS file: 2243-123_X.fits
! Writing difmap environment to: 2243-123_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2243-123_X]
device 2243-123_Xuv.ps/vps,1,2
! Attempting to open device: '2243-123_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2243-123_Xim.ps/vps
! Attempting to open device: '2243-123_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.6661 mas, bmaj=1.667 mas, bpa=5.648 degrees
! Estimated noise=1191.9 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6661 x 1.667 at 5.648 degrees (North through East)
! Clean map  min=-0.026149  max=1.6788 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 2243-123_X.log closed on Mon Aug  7 22:16:32 2006