! Started logfile: 1745+624_S.log on Fri Nov  6 15:21:19 1998
observe 1745+624_S.edt
! Reading UV FITS file: 1745+624_S.edt
! AN table 1: 96 integrations on 105 of 105 possible baselines.
! AN table 2: 157 integrations on 135 of 136 possible baselines.
! AN table 3: 151 integrations on 86 of 91 possible baselines.
! Apparent sampling: 0.321412 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 756 lines of history.
! 
! Reading 56904 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 1029 telescope corrections were flagged in sub-array 1.
!  A total of 1746 telescope corrections were flagged in sub-array 2.
!  A total of 1665 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1029 telescope corrections were flagged in sub-array 1.
!  A total of 1732 telescope corrections were flagged in sub-array 2.
!  A total of 1665 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1029 telescope corrections were flagged in sub-array 1.
!  A total of 1722 telescope corrections were flagged in sub-array 2.
!  A total of 1665 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1029 telescope corrections were flagged in sub-array 1.
!  A total of 1722 telescope corrections were flagged in sub-array 2.
!  A total of 1665 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.767402Jy  sigma=3.772020
! Fit after  self-cal, rms=0.765579Jy  sigma=3.763051
! 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.416 mas, bmaj=3.027 mas, bpa=36.6 degrees
! Estimated noise=1.37201 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.179446 Jy
! Total flux subtracted in 50 components = 0.179446 Jy
! Clean residual min=-0.007982 max=0.050482 Jy/beam
! Clean residual mean=0.000039 rms=0.002129 Jy/beam
! Combined flux in latest and established models = 0.179446 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.179446 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155349Jy  sigma=0.760578
! Fit after  self-cal, rms=0.155339Jy  sigma=0.760534
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0487397 Jy
! Total flux subtracted in 50 components = 0.0487397 Jy
! Clean residual min=-0.005462 max=0.020392 Jy/beam
! Clean residual mean=0.000031 rms=0.001526 Jy/beam
! Combined flux in latest and established models = 0.228185 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.228185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139739Jy  sigma=0.683568
! Fit after  self-cal, rms=0.139713Jy  sigma=0.683438
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.021616 Jy
! Total flux subtracted in 50 components = 0.021616 Jy
! Clean residual min=-0.005184 max=0.016721 Jy/beam
! Clean residual mean=0.000027 rms=0.001395 Jy/beam
! Combined flux in latest and established models = 0.249801 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 10 components and 0.249801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136091Jy  sigma=0.665533
! Fit after  self-cal, rms=0.136075Jy  sigma=0.665458
! Inverting map 
! Added new window around map position (-7.2, -11.6).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0151829 Jy
! Total flux subtracted in 50 components = 0.0151829 Jy
! Clean residual min=-0.005175 max=0.009275 Jy/beam
! Clean residual mean=0.000022 rms=0.001327 Jy/beam
! Combined flux in latest and established models = 0.264984 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 17 components and 0.264984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133912Jy  sigma=0.654787
! Fit after  self-cal, rms=0.133872Jy  sigma=0.654588
! 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=3.156 mas, bmaj=3.842 mas, bpa=39.13 degrees
! Estimated noise=0.747137 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.0190071 Jy
! Component: 100  -  total flux cleaned = 0.0309476 Jy
! Total flux subtracted in 100 components = 0.0309476 Jy
! Clean residual min=-0.004153 max=0.014673 Jy/beam
! Clean residual mean=0.000402 rms=0.001303 Jy/beam
! Combined flux in latest and established models = 0.295932 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 42 components and 0.295932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131311Jy  sigma=0.641940
! Fit after  self-cal, rms=0.131217Jy  sigma=0.641482
! Inverting map 
! Added new window around map position (-11.6, -19.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0143141 Jy
! Component: 100  -  total flux cleaned = 0.0232461 Jy
! Total flux subtracted in 100 components = 0.0232461 Jy
! Clean residual min=-0.004019 max=0.007165 Jy/beam
! Clean residual mean=0.000241 rms=0.001051 Jy/beam
! Combined flux in latest and established models = 0.319178 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 39 model components to the UV plane model.
! The established model now contains 81 components and 0.319178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129734Jy  sigma=0.634187
! Fit after  self-cal, rms=0.129673Jy  sigma=0.633892
! Inverting map 
! Added new window around map position (-2.4, -4.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00789082 Jy
! Component: 100  -  total flux cleaned = 0.0136985 Jy
! Total flux subtracted in 100 components = 0.0136985 Jy
! Clean residual min=-0.004574 max=0.004503 Jy/beam
! Clean residual mean=0.000148 rms=0.000967 Jy/beam
! Combined flux in latest and established models = 0.332876 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 104 components and 0.332876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129179Jy  sigma=0.631456
! Fit after  self-cal, rms=0.129159Jy  sigma=0.631353
! 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        0.99     FD        1.01     GC        0.98     GN        0.96     
!   HN        0.97     KK        0.96     KP        0.99     LA        0.96     
!   MK        1.06     NL        0.93     ON        1.00*    OV        1.01     
!   PT        0.99     SC        0.96     WF        0.87     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.00     GN        1.07     
!   HN        1.03     KK        0.98     KP        1.07     LA        0.90     
!   MC        1.12     MK        1.00     NL        1.01     NY        1.09     
!   ON        1.00*    OV        1.04     PT        1.03     SC        0.97     
!   WF        0.99     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.00*    HN        0.98     
!   KK        0.96     KP        1.03     LA        0.99     MK        0.99     
!   NL        0.86     ON        1.00*    OV        0.98     PT        0.98     
!   SC        0.96     WF        1.13     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        1.05     GC        1.00     GN        0.98     
!   HN        1.00     KK        0.98     KP        0.96     LA        1.01     
!   MK        1.11     NL        1.00     ON        1.00*    OV        0.94     
!   PT        1.00     SC        0.97     WF        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.04     GC        1.02     GN        1.06     
!   HN        0.98     KK        0.98     KP        1.03     LA        0.99     
!   MC        1.05     MK        1.00     NL        0.90     NY        1.07     
!   ON        1.00*    OV        1.02     PT        1.01     SC        1.01     
!   WF        0.92     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.00*    HN        0.98     
!   KK        0.94     KP        1.00     LA        1.01     MK        0.98     
!   NL        0.98     ON        1.00*    OV        1.00     PT        0.96     
!   SC        0.99     WF        1.16     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     GC        0.94     GN        0.99     
!   HN        0.97     KK        1.00     KP        0.96     LA        0.93     
!   MK        1.00     NL        1.00     ON        1.00*    OV        0.98     
!   PT        0.99     SC        0.94     WF        0.98     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.02     GC        0.99     GN        1.04     
!   HN        1.00     KK        0.97     KP        0.98     LA        0.86     
!   MC        0.91     MK        1.00     NL        0.86     NY        1.01     
!   ON        1.00*    OV        1.02     PT        1.01     SC        0.93     
!   WF        1.06     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.96     GC        1.00*    HN        0.97     
!   KK        0.92     KP        0.97     LA        0.94     MK        0.95     
!   NL        0.96     ON        1.00*    OV        0.97     PT        0.97     
!   SC        0.99     WF        1.38     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.12     GN        0.97     
!   HN        1.02     KK        0.91     KP        0.98     LA        0.96     
!   MK        0.99     NL        0.98     ON        1.00*    OV        1.01     
!   PT        0.99     SC        0.89     WF        1.32     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.03     GC        1.01     GN        1.04     
!   HN        0.97     KK        0.99     KP        1.02     LA        0.89     
!   MC        1.38     MK        1.00     NL        0.86     NY        1.01     
!   ON        1.00*    OV        1.03     PT        1.01     SC        0.99     
!   WF        1.23     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.96     GC        1.00*    HN        0.97     
!   KK        0.94     KP        0.98     LA        0.97     MK        0.95     
!   NL        0.99     ON        1.00*    OV        1.00     PT        0.98     
!   SC        0.90     WF        1.57     
! 
! 
! Fit before self-cal, rms=0.129159Jy  sigma=0.631353
! Fit after  self-cal, rms=0.129368Jy  sigma=0.622073
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.187 mas, bmaj=3.859 mas, bpa=40.24 degrees
! Estimated noise=0.737646 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 (-14.4, -27.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00503493 Jy
! Component: 100  -  total flux cleaned = 0.00843669 Jy
! Total flux subtracted in 100 components = 0.00843669 Jy
! Clean residual min=-0.003406 max=0.003563 Jy/beam
! Clean residual mean=0.000272 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 0.341313 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 129 components and 0.341313 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129170Jy  sigma=0.621097
! Fit after  self-cal, rms=0.129190Jy  sigma=0.621027
! 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.00285104 Jy
! Component: 100  -  total flux cleaned = 0.00500654 Jy
! Total flux subtracted in 100 components = 0.00500654 Jy
! Clean residual min=-0.003503 max=0.003560 Jy/beam
! Clean residual mean=0.000240 rms=0.000786 Jy/beam
! Combined flux in latest and established models = 0.34632 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 151 components and 0.34632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129119Jy  sigma=0.620679
! Fit after  self-cal, rms=0.128002Jy  sigma=0.600446
! Inverting map and beam 
! Estimated beam: bmin=3.191 mas, bmaj=3.87 mas, bpa=39.89 degrees
! Estimated noise=0.741432 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.00302049 Jy
! Component: 100  -  total flux cleaned = 0.00498091 Jy
! Total flux subtracted in 100 components = 0.00498091 Jy
! Clean residual min=-0.001718 max=0.002844 Jy/beam
! Clean residual mean=0.000174 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 0.351301 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 163 components and 0.351301 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127938Jy  sigma=0.600060
! Fit after  self-cal, rms=0.127955Jy  sigma=0.600002
! Inverting map 
! Added new window around map position (-58.8, -84).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00284136 Jy
! Component: 100  -  total flux cleaned = 0.00466766 Jy
! Total flux subtracted in 100 components = 0.00466766 Jy
! Clean residual min=-0.001798 max=0.002499 Jy/beam
! Clean residual mean=0.000147 rms=0.000516 Jy/beam
! Combined flux in latest and established models = 0.355968 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 177 components and 0.355968 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127893Jy  sigma=0.599684
! Fit after  self-cal, rms=0.127902Jy  sigma=0.599673
! 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 177 model components to file: 1745+624_S.mod
! wwins: Wrote 6 windows to 1745+624_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.191 x 3.87 at 39.89 degrees (North through East)
! Clean map  min=-0.0017169  max=0.23641 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=3.191 mas, bmaj=3.87 mas, bpa=39.89 degrees
! Estimated noise=0.741432 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.191 x 3.87 at 39.89 degrees (North through East)
! Clean map  min=-0.0017169  max=0.23641 Jy/beam
quit
! Quitting program
! Log file 1745+624_S.log closed on Fri Nov  6 15:30:26 1998