! Started logfile: 0528+134_S.log on Thu Aug 11 16:25:48 2005
observe 0528+134_S.edt
! Reading UV FITS file: 0528+134_S.edt
! AN table 1: 113 integrations on 171 of 171 possible baselines.
! AN table 2: 35 integrations on 171 of 171 possible baselines.
! AN table 3: 20 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.156642 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0528+134
! 
! 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1565 lines of history.
! 
! Reading 18000 visibilities.
![@gonzo7-0.4 0528+134_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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.400x0.400 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 1723 telescope corrections were flagged in sub-array 1.
!  A total of 486 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1723 telescope corrections were flagged in sub-array 1.
!  A total of 486 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1733 telescope corrections were flagged in sub-array 1.
!  A total of 487 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1725 telescope corrections were flagged in sub-array 1.
!  A total of 486 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.912201Jy  sigma=0.013096
! Fit after  self-cal, rms=0.912356Jy  sigma=0.013095
! 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=1.801 mas, bmaj=3.807 mas, bpa=8.12 degrees
! Estimated noise=995.033 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.18992 Jy
! Total flux subtracted in 50 components = 1.18992 Jy
! Clean residual min=-0.089507 max=0.423436 Jy/beam
! Clean residual mean=0.000756 rms=0.031179 Jy/beam
! Combined flux in latest and established models = 1.18992 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 9 components and 1.18992 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.778298Jy  sigma=0.011131
! Fit after  self-cal, rms=0.778128Jy  sigma=0.011130
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.467595 Jy
! Total flux subtracted in 50 components = 0.467595 Jy
! Clean residual min=-0.047654 max=0.220159 Jy/beam
! Clean residual mean=0.000469 rms=0.017888 Jy/beam
! Combined flux in latest and established models = 1.65751 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 1.65751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.466270Jy  sigma=0.006535
! Fit after  self-cal, rms=0.465652Jy  sigma=0.006532
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.248159 Jy
! Total flux subtracted in 50 components = 0.248159 Jy
! Clean residual min=-0.036280 max=0.120492 Jy/beam
! Clean residual mean=0.000317 rms=0.011743 Jy/beam
! Combined flux in latest and established models = 1.90567 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 31 components and 1.90567 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321305Jy  sigma=0.004361
! Fit after  self-cal, rms=0.320929Jy  sigma=0.004358
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.140532 Jy
! Total flux subtracted in 50 components = 0.140532 Jy
! Clean residual min=-0.030971 max=0.075997 Jy/beam
! Clean residual mean=0.000232 rms=0.008940 Jy/beam
! Combined flux in latest and established models = 2.04621 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 43 components and 2.04621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255816Jy  sigma=0.003342
! Fit after  self-cal, rms=0.255535Jy  sigma=0.003340
! Inverting map 
! Added new window around map position (1.6, 4.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0893649 Jy
! Total flux subtracted in 50 components = 0.0893649 Jy
! Clean residual min=-0.027710 max=0.047734 Jy/beam
! Clean residual mean=0.000179 rms=0.007537 Jy/beam
! Combined flux in latest and established models = 2.13557 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 52 components and 2.13557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224250Jy  sigma=0.002836
! Fit after  self-cal, rms=0.223946Jy  sigma=0.002832
! 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=2.398 mas, bmaj=4.585 mas, bpa=9.445 degrees
! Estimated noise=574.014 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.0875641 Jy
! Component: 100  -  total flux cleaned = 0.136463 Jy
! Total flux subtracted in 100 components = 0.136463 Jy
! Clean residual min=-0.017935 max=0.031707 Jy/beam
! Clean residual mean=0.000848 rms=0.005965 Jy/beam
! Combined flux in latest and established models = 2.27203 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 75 components and 2.27203 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195149Jy  sigma=0.002333
! Fit after  self-cal, rms=0.194769Jy  sigma=0.002327
! 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:
!   BR        1.01     FD        0.99     GC        1.00*    HH        1.28     
!   HN        0.98     KK        1.00*    KP        0.98     LA        1.00     
!   MC        1.01     MK        1.00*    NL        0.99     NY        1.06     
!   ON        0.93     OV        1.00     PT        0.99     SC        0.94     
!   TS        1.00*    WF        0.98     WZ        0.86     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.01     LA        0.98     
!   MC        1.00*    MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.97     SC        1.01     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.98     
!   MC        1.00*    MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.94     
!   TS        1.11     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        1.00*    HH        1.28     
!   HN        0.98     KK        1.00*    KP        0.99     LA        1.00     
!   MC        0.88     MK        1.00*    NL        1.00     NY        1.07     
!   ON        1.05     OV        1.00     PT        1.00     SC        1.02     
!   TS        1.00*    WF        0.99     WZ        0.83     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.04     KK        1.00*    KP        1.00     LA        0.98     
!   MC        1.00*    MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.94     SC        1.05     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.96     
!   MC        1.00*    MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.04     
!   TS        1.12     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.02     GC        1.00*    HH        0.99     
!   HN        1.02     KK        1.00*    KP        1.03     LA        0.98     
!   MC        1.76     MK        1.00*    NL        1.00     NY        1.06     
!   ON        0.98     OV        1.00     PT        0.99     SC        1.08     
!   TS        1.00*    WF        1.01     WZ        0.84     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.01     LA        1.16     
!   MC        1.00*    MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.95     SC        1.06     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.84     
!   MC        1.00*    MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.11     
!   TS        1.05     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        1.00*    HH        0.91     
!   HN        0.98     KK        1.00*    KP        1.01     LA        1.00     
!   MC        1.42     MK        1.00*    NL        1.00     NY        1.00     
!   ON        0.99     OV        0.98     PT        1.00     SC        1.11     
!   TS        1.00*    WF        1.03     WZ        0.85     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.90     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.02     LA        0.97     
!   MC        1.00*    MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.81     PT        0.98     SC        1.07     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        0.98     
!   MC        1.00*    MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.13     
!   TS        1.09     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.194769Jy  sigma=0.002327
! Fit after  self-cal, rms=0.149695Jy  sigma=0.001482
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.448 mas, bmaj=4.663 mas, bpa=8.907 degrees
! Estimated noise=580.974 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 (4.4, 7.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0180507 Jy
! Component: 100  -  total flux cleaned = 0.0245568 Jy
! Total flux subtracted in 100 components = 0.0245568 Jy
! Clean residual min=-0.005966 max=0.007124 Jy/beam
! Clean residual mean=0.000511 rms=0.001470 Jy/beam
! Combined flux in latest and established models = 2.29659 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 91 components and 2.29659 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.147764Jy  sigma=0.001450
! Fit after  self-cal, rms=0.147661Jy  sigma=0.001448
! 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.00310468 Jy
! Component: 100  -  total flux cleaned = 0.00404072 Jy
! Total flux subtracted in 100 components = 0.00404072 Jy
! Clean residual min=-0.005511 max=0.006311 Jy/beam
! Clean residual mean=0.000485 rms=0.001384 Jy/beam
! Combined flux in latest and established models = 2.30063 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 94 components and 2.30063 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.147138Jy  sigma=0.001442
! Fit after  self-cal, rms=0.143146Jy  sigma=0.001374
! Inverting map and beam 
! Estimated beam: bmin=2.452 mas, bmaj=4.67 mas, bpa=8.93 degrees
! Estimated noise=581.571 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.00376108 Jy
! Component: 100  -  total flux cleaned = 0.00550384 Jy
! Total flux subtracted in 100 components = 0.00550384 Jy
! Clean residual min=-0.004187 max=0.006031 Jy/beam
! Clean residual mean=0.000402 rms=0.001159 Jy/beam
! Combined flux in latest and established models = 2.30614 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 99 components and 2.30613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142646Jy  sigma=0.001368
! Fit after  self-cal, rms=0.142614Jy  sigma=0.001368
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0528+134_S
! Writing UV FITS file: 0528+134_S.uvf
! Writing 99 model components to file: 0528+134_S.mod
! wwins: Wrote 3 windows to 0528+134_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.452 x 4.67 at 8.93 degrees (North through East)
! Clean map  min=-0.0038242  max=1.6569 Jy/beam
! Writing clean map to FITS file: 0528+134_S.fits
! Writing difmap environment to: 0528+134_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0528+134_S]
device 0528+134_Suv.ps/vps,1,2
! Attempting to open device: '0528+134_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0528+134_Sim.ps/vps
! Attempting to open device: '0528+134_Sim.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=2.452 mas, bmaj=4.67 mas, bpa=8.93 degrees
! Estimated noise=581.571 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.452 x 4.67 at 8.93 degrees (North through East)
! Clean map  min=-0.0038242  max=1.6569 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 0528+134_S.log closed on Thu Aug 11 16:26:27 2005