! Started logfile: 1745+624_S.log on Thu Jan 11 13:48:36 2001
observe 1745+624_S.edt
! Reading UV FITS file: 1745+624_S.edt
! AN table 1: 352 integrations on 120 of 120 possible baselines.
! AN table 2: 90 integrations on 65 of 66 possible baselines.
! AN table 3: 152 integrations on 117 of 120 possible baselines.
! Apparent sampling: 0.421122 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1745+624
! 
! 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 110964 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 2803 telescope corrections were flagged in sub-array 1.
!  A total of 557 telescope corrections were flagged in sub-array 2.
!  A total of 1106 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2803 telescope corrections were flagged in sub-array 1.
!  A total of 617 telescope corrections were flagged in sub-array 2.
!  A total of 1051 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2866 telescope corrections were flagged in sub-array 1.
!  A total of 520 telescope corrections were flagged in sub-array 2.
!  A total of 1236 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2803 telescope corrections were flagged in sub-array 1.
!  A total of 520 telescope corrections were flagged in sub-array 2.
!  A total of 1246 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.800643Jy  sigma=4.699863
! Fit after  self-cal, rms=0.800140Jy  sigma=4.697014
! 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.22 mas, bmaj=2.554 mas, bpa=-53.65 degrees
! Estimated noise=0.871641 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.150105 Jy
! Total flux subtracted in 50 components = 0.150105 Jy
! Clean residual min=-0.007031 max=0.042712 Jy/beam
! Clean residual mean=-0.000025 rms=0.001604 Jy/beam
! Combined flux in latest and established models = 0.150105 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.150105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136695Jy  sigma=0.798230
! Fit after  self-cal, rms=0.136674Jy  sigma=0.798111
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0436768 Jy
! Total flux subtracted in 50 components = 0.0436768 Jy
! Clean residual min=-0.004655 max=0.019687 Jy/beam
! Clean residual mean=-0.000015 rms=0.001116 Jy/beam
! Combined flux in latest and established models = 0.193782 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 5 components and 0.193782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.122302Jy  sigma=0.713297
! Fit after  self-cal, rms=0.122271Jy  sigma=0.713117
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0216862 Jy
! Total flux subtracted in 50 components = 0.0216862 Jy
! Clean residual min=-0.004088 max=0.011101 Jy/beam
! Clean residual mean=-0.000010 rms=0.000961 Jy/beam
! Combined flux in latest and established models = 0.215468 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 7 components and 0.215468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118312Jy  sigma=0.689725
! Fit after  self-cal, rms=0.118285Jy  sigma=0.689564
! Inverting map 
! Added new window around map position (-7.2, -12).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0129025 Jy
! Total flux subtracted in 50 components = 0.0129025 Jy
! Clean residual min=-0.003703 max=0.006780 Jy/beam
! Clean residual mean=-0.000008 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 0.22837 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 10 components and 0.22837 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116701Jy  sigma=0.680175
! Fit after  self-cal, rms=0.116690Jy  sigma=0.680118
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00876411 Jy
! Total flux subtracted in 50 components = 0.00876411 Jy
! Clean residual min=-0.003547 max=0.005918 Jy/beam
! Clean residual mean=-0.000006 rms=0.000871 Jy/beam
! Combined flux in latest and established models = 0.237135 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 14 components and 0.237135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115876Jy  sigma=0.675292
! Fit after  self-cal, rms=0.115871Jy  sigma=0.675254
! Inverting map 
! Added new window around map position (-1.6, -3.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00686258 Jy
! Total flux subtracted in 50 components = 0.00686258 Jy
! Clean residual min=-0.003544 max=0.004946 Jy/beam
! Clean residual mean=-0.000005 rms=0.000853 Jy/beam
! Combined flux in latest and established models = 0.243997 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 21 components and 0.243997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115345Jy  sigma=0.672140
! Fit after  self-cal, rms=0.115339Jy  sigma=0.672103
! 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.925 mas, bmaj=3.476 mas, bpa=-46.25 degrees
! Estimated noise=0.394524 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 (-12, -19.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0119538 Jy
! Component: 100  -  total flux cleaned = 0.0206738 Jy
! Total flux subtracted in 100 components = 0.0206738 Jy
! Clean residual min=-0.002624 max=0.005633 Jy/beam
! Clean residual mean=-0.000021 rms=0.000837 Jy/beam
! Combined flux in latest and established models = 0.264671 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 59 components and 0.264671 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114071Jy  sigma=0.664564
! Fit after  self-cal, rms=0.114041Jy  sigma=0.664387
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00736954 Jy
! Component: 100  -  total flux cleaned = 0.0133105 Jy
! Total flux subtracted in 100 components = 0.0133105 Jy
! Clean residual min=-0.002270 max=0.004755 Jy/beam
! Clean residual mean=-0.000014 rms=0.000687 Jy/beam
! Combined flux in latest and established models = 0.277982 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 84 components and 0.277981 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113522Jy  sigma=0.661308
! Fit after  self-cal, rms=0.113512Jy  sigma=0.661246
! Inverting map 
! Added new window around map position (-13.2, -26).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00545733 Jy
! Component: 100  -  total flux cleaned = 0.00986258 Jy
! Total flux subtracted in 100 components = 0.00986258 Jy
! Clean residual min=-0.002037 max=0.003090 Jy/beam
! Clean residual mean=-0.000010 rms=0.000590 Jy/beam
! Combined flux in latest and established models = 0.287844 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 41 model components to the UV plane model.
! The established model now contains 111 components and 0.287844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113226Jy  sigma=0.659546
! Fit after  self-cal, rms=0.113219Jy  sigma=0.659504
! 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 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.98     HN        0.99     
!   KP        0.99     LA        1.00     NL        0.91     OV        1.01     
!   PT        0.99     SC        0.95     KK        0.96     MC        1.14     
!   MK        1.01     NY        1.04     ON        1.00*    GN        0.87     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        0.94     HN        0.97     
!   KP        0.91     LA        0.98     NL        0.94     OV        1.01     
!   PT        1.00     MC        1.20     NY        1.00*    GN        0.88     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GC        1.02     HN        0.95     
!   KP        0.99     LA        1.02     NL        0.90     OV        1.01     
!   PT        0.97     SC        0.93     KK        1.17     MC        1.15     
!   MK        1.01     NY        0.99     ON        0.82     GN        0.84     
! 
! 
! Correcting IF 2.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.00     HN        1.03     
!   KP        1.01     LA        0.99     NL        1.03     OV        0.99     
!   PT        0.99     SC        1.05     KK        0.96     MC        1.18     
!   MK        1.01     NY        1.07     ON        1.00*    GN        0.96     
! 
!  A total of 93 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        0.97     HN        1.05     
!   KP        0.99     LA        1.02     NL        1.01     OV        0.99     
!   PT        1.01     MC        1.25     NY        1.00*    GN        1.01     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.00     HN        1.01     
!   KP        1.01     LA        1.00     NL        1.03     OV        1.04     
!   PT        1.00     SC        1.03     KK        0.77     MC        1.08     
!   MK        1.02     NY        1.01     ON        0.85     GN        0.99     
! 
! 
! Correcting IF 3.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     GC        1.00     HN        1.00     
!   KP        1.03     LA        1.01     NL        0.93     OV        1.03     
!   PT        1.00     SC        0.96     KK        0.97     MC        0.93     
!   MK        1.01     NY        1.07     ON        1.00*    GN        0.93     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        0.99     HN        0.96     
!   KP        0.98     LA        1.07     NL        0.98     OV        1.04     
!   PT        1.03     MC        1.00*    NY        0.99     GN        0.95     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GC        1.03     HN        1.00     
!   KP        0.99     LA        0.99     NL        0.93     OV        1.06     
!   PT        0.99     SC        0.96     KK        1.07     MC        1.00*    
!   MK        1.03     NY        1.02     ON        0.68     GN        0.92     
! 
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        1.01     HN        1.03     
!   KP        1.03     LA        1.02     NL        0.96     OV        1.04     
!   PT        0.99     SC        0.99     KK        0.98     MC        0.82     
!   MK        1.04     NY        1.02     ON        1.00*    GN        0.97     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.06     GC        0.92     HN        1.00     
!   KP        0.96     LA        1.09     NL        0.98     OV        1.06     
!   PT        1.04     MC        1.00*    NY        0.96     GN        0.93     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GC        0.98     HN        1.01     
!   KP        1.01     LA        1.03     NL        0.93     OV        1.07     
!   PT        0.99     SC        0.99     KK        0.79     MC        1.00*    
!   MK        1.07     NY        1.01     ON        0.63     GN        0.93     
! 
! 
! Fit before self-cal, rms=0.113219Jy  sigma=0.659504
! Fit after  self-cal, rms=0.110258Jy  sigma=0.653741
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.928 mas, bmaj=3.502 mas, bpa=-45 degrees
! Estimated noise=0.389371 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 (-6.8, -9.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00403683 Jy
! Component: 100  -  total flux cleaned = 0.00714633 Jy
! Total flux subtracted in 100 components = 0.00714633 Jy
! Clean residual min=-0.001652 max=0.002456 Jy/beam
! Clean residual mean=-0.000002 rms=0.000428 Jy/beam
! Combined flux in latest and established models = 0.29499 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 143 components and 0.29499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110101Jy  sigma=0.652802
! Fit after  self-cal, rms=0.110103Jy  sigma=0.652762
! 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 (-20, -30).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00289945 Jy
! Component: 100  -  total flux cleaned = 0.00529664 Jy
! Total flux subtracted in 100 components = 0.00529664 Jy
! Clean residual min=-0.001555 max=0.001841 Jy/beam
! Clean residual mean=0.000000 rms=0.000388 Jy/beam
! Combined flux in latest and established models = 0.300287 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 165 components and 0.300287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110019Jy  sigma=0.652253
! Fit after  self-cal, rms=0.110278Jy  sigma=0.648015
! Inverting map and beam 
! Estimated beam: bmin=2.933 mas, bmaj=3.498 mas, bpa=-45.79 degrees
! Estimated noise=0.390762 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.00232952 Jy
! Component: 100  -  total flux cleaned = 0.00425697 Jy
! Total flux subtracted in 100 components = 0.00425697 Jy
! Clean residual min=-0.001363 max=0.001653 Jy/beam
! Clean residual mean=-0.000001 rms=0.000350 Jy/beam
! Combined flux in latest and established models = 0.304544 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 49 model components to the UV plane model.
! The established model now contains 204 components and 0.304544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110222Jy  sigma=0.647693
! Fit after  self-cal, rms=0.110224Jy  sigma=0.647673
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1745+624_S
! Writing UV FITS file: 1745+624_S.uvf
! Writing 204 model components to file: 1745+624_S.mod
! wwins: Wrote 7 windows to 1745+624_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.933 x 3.498 at -45.79 degrees (North through East)
! Clean map  min=-0.0013255  max=0.20255 Jy/beam
! Writing clean map to FITS file: 1745+624_S.fits
! Writing difmap environment to: 1745+624_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1745+624_Suv.ps/vps,1,2
! Attempting to open device: '1745+624_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1745+624_Sim.ps/vps
! Attempting to open device: '1745+624_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.933 mas, bmaj=3.498 mas, bpa=-45.79 degrees
! Estimated noise=0.390762 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.933 x 3.498 at -45.79 degrees (North through East)
! Clean map  min=-0.0013255  max=0.20255 Jy/beam
quit
! Quitting program
! Log file 1745+624_S.log closed on Thu Jan 11 13:50:53 2001