! Started logfile: 0528+134_X.log on Wed Nov 18 12:29:54 1998
observe 0528+134_X.edt
! Reading UV FITS file: 0528+134_X.edt
! AN table 1: 77 integrations on 86 of 91 possible baselines.
! AN table 2: 127 integrations on 104 of 105 possible baselines.
! AN table 3: 52 integrations on 3 of 3 possible baselines.
! Apparent sampling: 0.296107 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  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 1270 lines of history.
! 
! Reading 23672 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
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
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 = 4.0/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.
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 579 telescope corrections were flagged in sub-array 1.
!  A total of 1105 telescope corrections were flagged in sub-array 2.
!  A total of 132 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 579 telescope corrections were flagged in sub-array 1.
!  A total of 1105 telescope corrections were flagged in sub-array 2.
!  A total of 132 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 579 telescope corrections were flagged in sub-array 1.
!  A total of 1105 telescope corrections were flagged in sub-array 2.
!  A total of 135 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 579 telescope corrections were flagged in sub-array 1.
!  A total of 1105 telescope corrections were flagged in sub-array 2.
!  A total of 132 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.975943Jy  sigma=10.655317
! Fit after  self-cal, rms=1.976132Jy  sigma=10.657143
! 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.5557 mas, bmaj=1.381 mas, bpa=-6.135 degrees
! Estimated noise=1.45452 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.9755 Jy
! Total flux subtracted in 50 components = 1.9755 Jy
! Clean residual min=-0.104374 max=0.655040 Jy/beam
! Clean residual mean=0.000711 rms=0.031391 Jy/beam
! Combined flux in latest and established models = 1.9755 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.9755 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.141095Jy  sigma=6.160479
! Fit after  self-cal, rms=1.141052Jy  sigma=6.160223
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.687125 Jy
! Total flux subtracted in 50 components = 0.687125 Jy
! Clean residual min=-0.064903 max=0.304062 Jy/beam
! Clean residual mean=0.000398 rms=0.017353 Jy/beam
! Combined flux in latest and established models = 2.66263 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 7 components and 2.66263 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.639000Jy  sigma=3.455530
! Fit after  self-cal, rms=0.638490Jy  sigma=3.452784
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.323924 Jy
! Total flux subtracted in 50 components = 0.323924 Jy
! Clean residual min=-0.053758 max=0.143652 Jy/beam
! Clean residual mean=0.000253 rms=0.012173 Jy/beam
! Combined flux in latest and established models = 2.98655 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 9 components and 2.98655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.446081Jy  sigma=2.414889
! Fit after  self-cal, rms=0.445478Jy  sigma=2.411618
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.160588 Jy
! Total flux subtracted in 50 components = 0.160588 Jy
! Clean residual min=-0.047152 max=0.076363 Jy/beam
! Clean residual mean=0.000182 rms=0.010490 Jy/beam
! Combined flux in latest and established models = 3.14714 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 16 components and 3.14714 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377689Jy  sigma=2.044869
! Fit after  self-cal, rms=0.377080Jy  sigma=2.041603
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.093105 Jy
! Total flux subtracted in 50 components = 0.093105 Jy
! Clean residual min=-0.042216 max=0.053998 Jy/beam
! Clean residual mean=0.000141 rms=0.009841 Jy/beam
! Combined flux in latest and established models = 3.24024 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 19 components and 3.24024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350876Jy  sigma=1.899428
! Fit after  self-cal, rms=0.350499Jy  sigma=1.897468
! 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.7055 mas, bmaj=1.57 mas, bpa=-2.916 degrees
! Estimated noise=0.896603 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.7, 0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0969779 Jy
! Component: 100  -  total flux cleaned = 0.156228 Jy
! Total flux subtracted in 100 components = 0.156228 Jy
! Clean residual min=-0.034769 max=0.053433 Jy/beam
! Clean residual mean=0.002981 rms=0.011655 Jy/beam
! Combined flux in latest and established models = 3.39647 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 34 components and 3.39647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324962Jy  sigma=1.757613
! Fit after  self-cal, rms=0.323934Jy  sigma=1.752171
! 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        1.00     FD        0.99     GC        0.98     GN        1.04     
!   HN        1.03     KK        1.03     KP        1.01     LA        0.96     
!   NL        1.02     OV        1.00     PT        0.99     SC        1.02     
!   WF        0.96     MK        1.09     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.04     GC        0.78     GN        1.05     
!   HN        0.96     KK        1.05     KP        1.00     LA        0.97     
!   MC        1.00     NL        1.02     ON        0.85     OV        1.01     
!   PT        1.01     SC        1.01     WF        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        0.99     GN        1.03     
!   HN        1.04     KK        1.03     KP        1.01     LA        0.96     
!   NL        1.02     OV        1.00     PT        1.00     SC        1.03     
!   WF        0.96     MK        1.07     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     GC        0.80     GN        1.04     
!   HN        0.96     KK        1.05     KP        1.01     LA        0.97     
!   MC        1.01     NL        1.02     ON        0.85     OV        1.01     
!   PT        1.01     SC        1.01     WF        0.98     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        0.99     GN        1.03     
!   HN        1.04     KK        1.02     KP        1.00     LA        0.96     
!   NL        1.01     OV        1.01     PT        0.99     SC        1.02     
!   WF        0.97     MK        1.07     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     GC        0.86     GN        1.03     
!   HN        0.96     KK        1.05     KP        1.00     LA        0.96     
!   MC        1.02     NL        1.01     ON        0.83     OV        1.01     
!   PT        1.01     SC        1.02     WF        0.98     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.01     GN        1.01     
!   HN        1.06     KK        1.02     KP        1.01     LA        0.95     
!   NL        1.01     OV        1.00     PT        0.98     SC        1.03     
!   WF        0.96     MK        1.06     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     GC        0.86     GN        1.01     
!   HN        0.95     KK        1.05     KP        1.00     LA        0.95     
!   MC        0.99     NL        1.01     ON        0.84     OV        1.01     
!   PT        1.00     SC        1.02     WF        0.98     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Fit before self-cal, rms=0.323934Jy  sigma=1.752171
! Fit after  self-cal, rms=0.226718Jy  sigma=1.351909
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7055 mas, bmaj=1.563 mas, bpa=-3.214 degrees
! Estimated noise=0.888343 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.0394769 Jy
! Component: 100  -  total flux cleaned = 0.046337 Jy
! Total flux subtracted in 100 components = 0.046337 Jy
! Clean residual min=-0.027088 max=0.032146 Jy/beam
! Clean residual mean=0.000318 rms=0.006505 Jy/beam
! Combined flux in latest and established models = 3.44281 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 42 components and 3.44281 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220598Jy  sigma=1.318128
! Fit after  self-cal, rms=0.220038Jy  sigma=1.315390
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
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.00604564 Jy
! Component: 100  -  total flux cleaned = 0.00603539 Jy
! Total flux subtracted in 100 components = 0.00603539 Jy
! Clean residual min=-0.026022 max=0.032126 Jy/beam
! Clean residual mean=0.000233 rms=0.006447 Jy/beam
! Combined flux in latest and established models = 3.44884 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 52 components and 3.44884 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218272Jy  sigma=1.305034
! Fit after  self-cal, rms=0.149661Jy  sigma=0.822321
! Inverting map and beam 
! Estimated beam: bmin=0.7067 mas, bmaj=1.563 mas, bpa=-2.985 degrees
! Estimated noise=0.890538 mJy/beam.
doamp = false
solint = solint / 1.5
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.0230597 Jy
! Component: 100  -  total flux cleaned = 0.0244051 Jy
! Total flux subtracted in 100 components = 0.0244051 Jy
! Clean residual min=-0.007613 max=0.015611 Jy/beam
! Clean residual mean=0.000565 rms=0.001879 Jy/beam
! Combined flux in latest and established models = 3.47325 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 62 components and 3.47325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146267Jy  sigma=0.803157
! Fit after  self-cal, rms=0.145758Jy  sigma=0.800439
! Inverting map 
! Added new window around map position (0.6, 3.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0158855 Jy
! Component: 100  -  total flux cleaned = 0.0177223 Jy
! Total flux subtracted in 100 components = 0.0177223 Jy
! Clean residual min=-0.006744 max=0.011016 Jy/beam
! Clean residual mean=0.000314 rms=0.001645 Jy/beam
! Combined flux in latest and established models = 3.49097 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 74 components and 3.49097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144008Jy  sigma=0.790604
! Fit after  self-cal, rms=0.143891Jy  sigma=0.789980
! Inverting map 
! Added new window around map position (2.2, 3.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00819546 Jy
! Component: 100  -  total flux cleaned = 0.00923629 Jy
! Total flux subtracted in 100 components = 0.00923629 Jy
! Clean residual min=-0.006677 max=0.006457 Jy/beam
! Clean residual mean=0.000181 rms=0.001518 Jy/beam
! Combined flux in latest and established models = 3.50021 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 81 components and 3.50021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142876Jy  sigma=0.784527
! Fit after  self-cal, rms=0.142811Jy  sigma=0.784230
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0528+134_X
! Writing UV FITS file: 0528+134_X.uvf
! Writing 81 model components to file: 0528+134_X.mod
! wwins: Wrote 4 windows to 0528+134_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7067 x 1.563 at -2.985 degrees (North through East)
! Clean map  min=-0.006555  max=2.6935 Jy/beam
! Writing clean map to FITS file: 0528+134_X.fits
! Writing difmap environment to: 0528+134_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0528+134_Xuv.ps/vps,1,2
! Attempting to open device: '0528+134_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0528+134_Xim.ps/vps
! Attempting to open device: '0528+134_Xim.ps/vps'
cmul = 1.0
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 (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.7067 mas, bmaj=1.563 mas, bpa=-2.985 degrees
! Estimated noise=0.890538 mJy/beam.
! The new contour levels are:
!  -0.00456951 0.00456951 0.00913902 0.018278 0.0365561 0.0731121 0.146224 0.292449 0.584897 1.16979 2.33959 4.67918 9.35835 18.7167 37.4334 74.8668 149.734 299.467 598.935 1197.87 2395.74 4791.48 9582.96 19165.9
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7067 x 1.563 at -2.985 degrees (North through East)
! Clean map  min=-0.006555  max=2.6935 Jy/beam
device 0528+134_Xim_un.ps/vps
! Attempting to open device: '0528+134_Xim_un.ps/vps'
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.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.5579 mas, bmaj=1.38 mas, bpa=-6.439 degrees
! Estimated noise=1.43607 mJy/beam.
! The new contour levels are:
!  -0.00591767 0.00591767 0.0118353 0.0236707 0.0473414 0.0946827 0.189365 0.378731 0.757462 1.51492 3.02985 6.05969 12.1194 24.2388 48.4775 96.9551 193.91 387.82 775.641 1551.28 3102.56 6205.13 12410.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5579 x 1.38 at -6.439 degrees (North through East)
! Clean map  min=-0.0082749  max=2.4478 Jy/beam
quit
! Quitting program
! Log file 0528+134_X.log closed on Wed Nov 18 12:33:39 1998