! Started logfile: 1448+762_X.log on Thu Aug  3 11:38:02 2006
observe 1448+762_X.edt
! Reading UV FITS file: 1448+762_X.edt
! AN table 1: 124 integrations on 190 of 190 possible baselines.
! AN table 2: 58 integrations on 190 of 190 possible baselines.
! AN table 3: 16 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.246358 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1448+762
! 
! 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 37072 visibilities.
![@gonzo8-0.1 1448+762_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 1373 telescope corrections were flagged in sub-array 1.
!  A total of 629 telescope corrections were flagged in sub-array 2.
!  A total of 295 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1386 telescope corrections were flagged in sub-array 1.
!  A total of 630 telescope corrections were flagged in sub-array 2.
!  A total of 295 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1378 telescope corrections were flagged in sub-array 1.
!  A total of 630 telescope corrections were flagged in sub-array 2.
!  A total of 277 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1383 telescope corrections were flagged in sub-array 1.
!  A total of 633 telescope corrections were flagged in sub-array 2.
!  A total of 295 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.714228Jy  sigma=0.010768
! Fit after  self-cal, rms=0.713050Jy  sigma=0.010765
! 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.5113 mas, bmaj=0.6212 mas, bpa=58.03 degrees
! Estimated noise=623.978 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.19537 Jy
! Total flux subtracted in 50 components = 0.19537 Jy
! Clean residual min=-0.015852 max=0.063879 Jy/beam
! Clean residual mean=-0.000021 rms=0.003374 Jy/beam
! Combined flux in latest and established models = 0.19537 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.19537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157814Jy  sigma=0.002390
! Fit after  self-cal, rms=0.157732Jy  sigma=0.002390
! Inverting map 
! Added new window around map position (-0.6, -0.1).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.069087 Jy
! Total flux subtracted in 50 components = 0.069087 Jy
! Clean residual min=-0.010314 max=0.035541 Jy/beam
! Clean residual mean=-0.000012 rms=0.002163 Jy/beam
! Combined flux in latest and established models = 0.264457 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 10 components and 0.264457 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119005Jy  sigma=0.001748
! Fit after  self-cal, rms=0.118496Jy  sigma=0.001741
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0383152 Jy
! Total flux subtracted in 50 components = 0.0383152 Jy
! Clean residual min=-0.006337 max=0.022414 Jy/beam
! Clean residual mean=-0.000007 rms=0.001533 Jy/beam
! Combined flux in latest and established models = 0.302772 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 14 components and 0.302772 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103834Jy  sigma=0.001480
! Fit after  self-cal, rms=0.103388Jy  sigma=0.001473
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0222238 Jy
! Total flux subtracted in 50 components = 0.0222238 Jy
! Clean residual min=-0.005287 max=0.014221 Jy/beam
! Clean residual mean=-0.000004 rms=0.001218 Jy/beam
! Combined flux in latest and established models = 0.324996 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 17 components and 0.324996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.097783Jy  sigma=0.001365
! Fit after  self-cal, rms=0.097567Jy  sigma=0.001362
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0130487 Jy
! Total flux subtracted in 50 components = 0.0130487 Jy
! Clean residual min=-0.004697 max=0.009495 Jy/beam
! Clean residual mean=-0.000003 rms=0.001080 Jy/beam
! Combined flux in latest and established models = 0.338044 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 19 components and 0.338044 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095433Jy  sigma=0.001318
! Fit after  self-cal, rms=0.095324Jy  sigma=0.001316
! 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.6885 mas, bmaj=0.9148 mas, bpa=53.86 degrees
! Estimated noise=286.403 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.0150311 Jy
! Component: 100  -  total flux cleaned = 0.0224856 Jy
! Total flux subtracted in 100 components = 0.0224856 Jy
! Clean residual min=-0.003054 max=0.005746 Jy/beam
! Clean residual mean=0.000004 rms=0.000892 Jy/beam
! Combined flux in latest and established models = 0.36053 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 40 components and 0.36053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.093674Jy  sigma=0.001276
! Fit after  self-cal, rms=0.093655Jy  sigma=0.001275
! 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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.95     GC        1.00*    HN        0.99     
!   LA        0.99     NL        0.98     OV        0.97     SC        1.12     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.94     
!   KP        1.02     MA        1.00*    MC        1.05     MK        1.00     
!   NY        1.00*    TS        1.00*    WZ        0.95     PT        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.03     GC        1.03     HN        1.00     
!   LA        0.97     NL        1.02     OV        1.00     SC        1.01     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        1.00     MA        1.00*    MC        1.00*    MK        1.02     
!   NY        0.97     TS        1.04     WZ        1.00*    PT        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        1.11     HN        0.93     
!   LA        0.66     NL        1.05     OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.95     
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        1.00     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.94     GC        1.00*    HN        1.00     
!   LA        1.00     NL        0.97     OV        0.97     SC        1.25     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.98     
!   KP        0.98     MA        1.00*    MC        1.03     MK        1.01     
!   NY        1.00*    TS        1.00*    WZ        0.96     PT        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.08     HN        1.05     
!   LA        0.93     NL        1.00     OV        1.03     SC        1.01     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.01     
!   KP        1.00     MA        1.00*    MC        1.00*    MK        0.99     
!   NY        1.11     TS        1.01     WZ        1.00*    PT        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.96     GC        0.78     HN        1.04     
!   LA        0.85     NL        0.91     OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.97     
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        0.88     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.94     GC        1.00*    HN        0.99     
!   LA        1.00     NL        0.99     OV        0.98     SC        1.14     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.96     
!   KP        0.99     MA        1.00*    MC        1.01     MK        1.05     
!   NY        1.00*    TS        1.00*    WZ        0.93     PT        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.05     HN        1.03     
!   LA        0.97     NL        0.87     OV        1.02     SC        1.03     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.03     
!   KP        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NY        0.94     TS        0.98     WZ        1.00*    PT        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        0.89     HN        1.09     
!   LA        0.72     NL        1.00     OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        0.98     
!   NY        0.83     TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.94     GC        1.00*    HN        0.99     
!   LA        1.00     NL        1.03     OV        0.99     SC        1.17     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        0.99     MA        1.00*    MC        1.00     MK        1.01     
!   NY        1.00*    TS        1.00*    WZ        0.90     PT        1.03     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.99     GC        1.05     HN        1.02     
!   LA        0.90     NL        0.91     OV        0.99     SC        1.00     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.02     
!   KP        1.01     MA        1.00*    MC        1.00*    MK        0.99     
!   NY        0.99     TS        0.99     WZ        1.00*    PT        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.05     GC        0.94     HN        1.04     
!   LA        0.71     NL        1.01     OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.97     
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        1.15     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Fit before self-cal, rms=0.093655Jy  sigma=0.001275
! Fit after  self-cal, rms=0.092308Jy  sigma=0.001246
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6916 mas, bmaj=0.9172 mas, bpa=52.52 degrees
! Estimated noise=283.011 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.000293833 Jy
! Component: 100  -  total flux cleaned = -0.00046567 Jy
! Total flux subtracted in 100 components = -0.00046567 Jy
! Clean residual min=-0.002040 max=0.003277 Jy/beam
! Clean residual mean=-0.000001 rms=0.000512 Jy/beam
! Combined flux in latest and established models = 0.360064 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 41 components and 0.360064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092273Jy  sigma=0.001245
! Fit after  self-cal, rms=0.092284Jy  sigma=0.001245
! 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.7, -0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00198233 Jy
! Component: 100  -  total flux cleaned = 0.00167642 Jy
! Total flux subtracted in 100 components = 0.00167642 Jy
! Clean residual min=-0.002093 max=0.003292 Jy/beam
! Clean residual mean=0.000000 rms=0.000497 Jy/beam
! Combined flux in latest and established models = 0.361741 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 49 components and 0.361741 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092203Jy  sigma=0.001244
! Fit after  self-cal, rms=0.092099Jy  sigma=0.001221
! Inverting map and beam 
! Estimated beam: bmin=0.6911 mas, bmaj=0.9143 mas, bpa=52.45 degrees
! Estimated noise=283.667 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.000427294 Jy
! Component: 100  -  total flux cleaned = 0.000509599 Jy
! Total flux subtracted in 100 components = 0.000509599 Jy
! Clean residual min=-0.001674 max=0.002058 Jy/beam
! Clean residual mean=-0.000000 rms=0.000413 Jy/beam
! Combined flux in latest and established models = 0.36225 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 56 components and 0.36225 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092080Jy  sigma=0.001221
! Fit after  self-cal, rms=0.092089Jy  sigma=0.001221
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1448+762_X
! Writing UV FITS file: 1448+762_X.uvf
! Writing 56 model components to file: 1448+762_X.mod
! wwins: Wrote 3 windows to 1448+762_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6911 x 0.9143 at 52.45 degrees (North through East)
! Clean map  min=-0.0016202  max=0.25764 Jy/beam
! Writing clean map to FITS file: 1448+762_X.fits
! Writing difmap environment to: 1448+762_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1448+762_X]
device 1448+762_Xuv.ps/vps,1,2
! Attempting to open device: '1448+762_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1448+762_Xim.ps/vps
! Attempting to open device: '1448+762_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.6911 mas, bmaj=0.9143 mas, bpa=52.45 degrees
! Estimated noise=283.667 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6911 x 0.9143 at 52.45 degrees (North through East)
! Clean map  min=-0.0016202  max=0.25764 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 1448+762_X.log closed on Thu Aug  3 11:38:36 2006