! Started logfile: 1557+032_S.log on Thu Jan 11 13:41:33 2001
observe 1557+032_S.edt
! Reading UV FITS file: 1557+032_S.edt
! AN table 1: 57 integrations on 78 of 78 possible baselines.
! AN table 2: 62 integrations on 10 of 10 possible baselines.
! Apparent sampling: 0.758981 visibilities/baseline/integration-bin.
! Found source: 1557+032
! 
! 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 1558 lines of history.
! 
! Reading 15380 visibilities.
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 151 telescope corrections were flagged in sub-array 1.
!  A total of 46 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 151 telescope corrections were flagged in sub-array 1.
!  A total of 46 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 151 telescope corrections were flagged in sub-array 1.
!  A total of 46 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 154 telescope corrections were flagged in sub-array 1.
!  A total of 50 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.725314Jy  sigma=4.264795
! Fit after  self-cal, rms=0.725013Jy  sigma=4.263478
! 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=2.608 mas, bmaj=5.423 mas, bpa=2.958 degrees
! Estimated noise=1.77786 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.216432 Jy
! Total flux subtracted in 50 components = 0.216432 Jy
! Clean residual min=-0.012946 max=0.060383 Jy/beam
! Clean residual mean=-0.000022 rms=0.004024 Jy/beam
! Combined flux in latest and established models = 0.216432 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.216432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124226Jy  sigma=0.728902
! Fit after  self-cal, rms=0.124226Jy  sigma=0.728902
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0486121 Jy
! Total flux subtracted in 50 components = 0.0486121 Jy
! Clean residual min=-0.007568 max=0.017359 Jy/beam
! Clean residual mean=-0.000012 rms=0.002180 Jy/beam
! Combined flux in latest and established models = 0.265044 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 4 components and 0.265044 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106369Jy  sigma=0.623761
! Fit after  self-cal, rms=0.106349Jy  sigma=0.623642
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0187995 Jy
! Total flux subtracted in 50 components = 0.0187995 Jy
! Clean residual min=-0.006698 max=0.008443 Jy/beam
! Clean residual mean=-0.000008 rms=0.001764 Jy/beam
! Combined flux in latest and established models = 0.283844 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 8 components and 0.283844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103431Jy  sigma=0.606438
! Fit after  self-cal, rms=0.103376Jy  sigma=0.606110
! 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.99 mas, bmaj=5.772 mas, bpa=1.836 degrees
! Estimated noise=1.0074 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 (2.4, -1.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0124161 Jy
! Component: 100  -  total flux cleaned = 0.019981 Jy
! Total flux subtracted in 100 components = 0.019981 Jy
! Clean residual min=-0.004380 max=0.004862 Jy/beam
! Clean residual mean=-0.000017 rms=0.001204 Jy/beam
! Combined flux in latest and established models = 0.303825 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 40 components and 0.303825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.101976Jy  sigma=0.597872
! Fit after  self-cal, rms=0.101948Jy  sigma=0.597705
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.99     GC        1.03     HN        0.93     
!   KP        0.97     LA        0.96     NL        0.90     OV        0.98     
!   PT        0.97     SC        0.98     KK        0.96     MK        0.98     
!   GN        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     GC        0.91     HN        0.92     NL        0.90     
!   SC        0.96     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     GC        1.03     HN        1.00     
!   KP        0.94     LA        0.98     NL        0.98     OV        0.99     
!   PT        0.96     SC        1.06     KK        0.99     MK        0.99     
!   GN        1.14     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     GC        0.95     HN        0.97     NL        0.94     
!   SC        1.07     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.03     HN        0.97     
!   KP        1.00     LA        1.00     NL        0.92     OV        1.05     
!   PT        0.97     SC        1.04     KK        1.04     MK        1.00     
!   GN        1.15     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     GC        1.00     HN        0.98     NL        0.90     
!   SC        1.04     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.03     GC        1.02     HN        1.00     
!   KP        1.02     LA        1.00     NL        0.95     OV        1.03     
!   PT        0.99     SC        1.05     KK        1.02     MK        1.01     
!   GN        1.08     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     GC        0.95     HN        0.95     NL        0.99     
!   SC        1.04     
! 
! 
! Fit before self-cal, rms=0.101948Jy  sigma=0.597705
! Fit after  self-cal, rms=0.099346Jy  sigma=0.585983
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.014 mas, bmaj=5.828 mas, bpa=1.526 degrees
! Estimated noise=0.996639 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 (7.2, -6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00485129 Jy
! Component: 100  -  total flux cleaned = 0.00736397 Jy
! Total flux subtracted in 100 components = 0.00736397 Jy
! Clean residual min=-0.002497 max=0.002457 Jy/beam
! Clean residual mean=-0.000002 rms=0.000595 Jy/beam
! Combined flux in latest and established models = 0.311189 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 55 components and 0.311189 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099139Jy  sigma=0.584722
! Fit after  self-cal, rms=0.099136Jy  sigma=0.584679
! 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.0017824 Jy
! Component: 100  -  total flux cleaned = 0.00270653 Jy
! Total flux subtracted in 100 components = 0.00270653 Jy
! Clean residual min=-0.002442 max=0.002157 Jy/beam
! Clean residual mean=-0.000000 rms=0.000574 Jy/beam
! Combined flux in latest and established models = 0.313895 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 70 components and 0.313895 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099105Jy  sigma=0.584495
! Fit after  self-cal, rms=0.098601Jy  sigma=0.580232
! Inverting map and beam 
! Estimated beam: bmin=3.012 mas, bmaj=5.827 mas, bpa=1.53 degrees
! Estimated noise=0.997736 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.00119626 Jy
! Component: 100  -  total flux cleaned = 0.00177184 Jy
! Total flux subtracted in 100 components = 0.00177184 Jy
! Clean residual min=-0.002503 max=0.002134 Jy/beam
! Clean residual mean=-0.000000 rms=0.000554 Jy/beam
! Combined flux in latest and established models = 0.315667 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 83 components and 0.315667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098584Jy  sigma=0.580133
! Fit after  self-cal, rms=0.098584Jy  sigma=0.580121
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1557+032_S
! Writing UV FITS file: 1557+032_S.uvf
! Writing 83 model components to file: 1557+032_S.mod
! wwins: Wrote 3 windows to 1557+032_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.012 x 5.827 at 1.53 degrees (North through East)
! Clean map  min=-0.0024723  max=0.27758 Jy/beam
! Writing clean map to FITS file: 1557+032_S.fits
! Writing difmap environment to: 1557+032_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1557+032_Suv.ps/vps,1,2
! Attempting to open device: '1557+032_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1557+032_Sim.ps/vps
! Attempting to open device: '1557+032_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=3.012 mas, bmaj=5.827 mas, bpa=1.53 degrees
! Estimated noise=0.997736 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.012 x 5.827 at 1.53 degrees (North through East)
! Clean map  min=-0.0024723  max=0.27758 Jy/beam
quit
! Quitting program
! Log file 1557+032_S.log closed on Thu Jan 11 13:42:15 2001