! Started logfile: 1745+624_S.log on Fri Apr 14 18:37:08 2000
observe 1745+624_S.edt
! Reading UV FITS file: 1745+624_S.edt
! AN table 1: 357 integrations on 136 of 136 possible baselines.
! AN table 2: 92 integrations on 91 of 91 possible baselines.
! AN table 3: 74 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.388769 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 1239 lines of history.
! 
! Reading 100604 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 3197 telescope corrections were flagged in sub-array 1.
!  A total of 649 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3216 telescope corrections were flagged in sub-array 1.
!  A total of 560 telescope corrections were flagged in sub-array 2.
!  A total of 441 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3274 telescope corrections were flagged in sub-array 1.
!  A total of 642 telescope corrections were flagged in sub-array 2.
!  A total of 413 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3652 telescope corrections were flagged in sub-array 1.
!  A total of 643 telescope corrections were flagged in sub-array 2.
!  A total of 385 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.779998Jy  sigma=4.557679
! Fit after  self-cal, rms=0.778985Jy  sigma=4.552287
! 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.256 mas, bmaj=2.877 mas, bpa=63.06 degrees
! Estimated noise=0.943701 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.167522 Jy
! Total flux subtracted in 50 components = 0.167522 Jy
! Clean residual min=-0.005997 max=0.046978 Jy/beam
! Clean residual mean=0.000013 rms=0.001815 Jy/beam
! Combined flux in latest and established models = 0.167522 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.167522 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158117Jy  sigma=0.914749
! Fit after  self-cal, rms=0.158116Jy  sigma=0.914744
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0438022 Jy
! Total flux subtracted in 50 components = 0.0438022 Jy
! Clean residual min=-0.005067 max=0.018541 Jy/beam
! Clean residual mean=0.000006 rms=0.001314 Jy/beam
! Combined flux in latest and established models = 0.211324 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 7 components and 0.211324 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144446Jy  sigma=0.834373
! Fit after  self-cal, rms=0.144429Jy  sigma=0.834281
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0198877 Jy
! Total flux subtracted in 50 components = 0.0198877 Jy
! Clean residual min=-0.005057 max=0.012523 Jy/beam
! Clean residual mean=0.000003 rms=0.001190 Jy/beam
! Combined flux in latest and established models = 0.231212 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.231212 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140945Jy  sigma=0.813789
! Fit after  self-cal, rms=0.140926Jy  sigma=0.813689
! Inverting map 
! Added new window around map position (-7.6, -12.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0127647 Jy
! Total flux subtracted in 50 components = 0.0127647 Jy
! Clean residual min=-0.004919 max=0.008280 Jy/beam
! Clean residual mean=0.000002 rms=0.001138 Jy/beam
! Combined flux in latest and established models = 0.243977 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 14 components and 0.243977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139262Jy  sigma=0.803796
! Fit after  self-cal, rms=0.139230Jy  sigma=0.803632
! Inverting map 
! Added new window around map position (-2, -4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00922502 Jy
! Total flux subtracted in 50 components = 0.00922502 Jy
! Clean residual min=-0.004791 max=0.006422 Jy/beam
! Clean residual mean=0.000001 rms=0.001109 Jy/beam
! Combined flux in latest and established models = 0.253202 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 21 components and 0.253202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138268Jy  sigma=0.797916
! Fit after  self-cal, rms=0.138252Jy  sigma=0.797824
! 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.016 mas, bmaj=3.847 mas, bpa=62.21 degrees
! Estimated noise=0.426951 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.0166865 Jy
! Component: 100  -  total flux cleaned = 0.0277486 Jy
! Total flux subtracted in 100 components = 0.0277486 Jy
! Clean residual min=-0.003225 max=0.011468 Jy/beam
! Clean residual mean=0.000228 rms=0.001223 Jy/beam
! Combined flux in latest and established models = 0.28095 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 58 components and 0.28095 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136312Jy  sigma=0.786201
! Fit after  self-cal, rms=0.136200Jy  sigma=0.785556
! Inverting map 
! Added new window around map position (-11.6, -19.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0118542 Jy
! Component: 100  -  total flux cleaned = 0.0199015 Jy
! Total flux subtracted in 100 components = 0.0199015 Jy
! Clean residual min=-0.003168 max=0.006432 Jy/beam
! Clean residual mean=0.000122 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 0.300852 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 46 model components to the UV plane model.
! The established model now contains 97 components and 0.300852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135189Jy  sigma=0.779465
! Fit after  self-cal, rms=0.135147Jy  sigma=0.779210
! Inverting map 
! Added new window around map position (-16, -26).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00742752 Jy
! Component: 100  -  total flux cleaned = 0.013271 Jy
! Total flux subtracted in 100 components = 0.013271 Jy
! Clean residual min=-0.002981 max=0.004645 Jy/beam
! Clean residual mean=0.000051 rms=0.000876 Jy/beam
! Combined flux in latest and established models = 0.314123 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 122 components and 0.314123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134712Jy  sigma=0.776587
! Fit after  self-cal, rms=0.134700Jy  sigma=0.776510
! 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 93 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.09     GC        0.99     GN        1.06     
!   HN        0.96     KK        0.95     KP        0.85     LA        0.98     
!   MC        1.22     MK        1.00     NL        0.92     NY        0.98     
!   ON        1.00*    OV        1.08     PT        0.97     SC        0.93     
!   WF        0.97     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.07     GC        0.99     GN        1.01     
!   HN        0.96     KK        0.86     KP        0.89     LA        1.01     
!   NL        0.94     ON        1.00*    OV        1.06     PT        1.00     
!   SC        0.90     WF        0.76     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.09     GC        1.01     GN        0.97     
!   HN        0.94     KK        0.88     KP        0.88     LA        0.95     
!   MC        1.18     NL        0.91     NY        1.00*    OV        1.08     
!   PT        0.95     SC        0.91     WF        0.99     
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.07     GC        1.07     GN        1.00     
!   HN        0.97     KK        0.99     KP        0.88     LA        1.01     
!   MC        0.77     MK        1.07     NL        1.04     NY        1.00     
!   ON        1.00*    OV        0.99     PT        0.89     SC        1.04     
!   WF        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.03     GC        1.07     GN        0.95     
!   HN        0.98     KK        0.92     KP        0.95     LA        1.06     
!   NL        1.03     ON        0.73     OV        0.95     PT        0.89     
!   SC        1.00     WF        1.03     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.05     GC        1.06     GN        0.96     
!   HN        0.97     KK        0.98     KP        0.92     LA        0.98     
!   MC        1.00*    NL        1.02     NY        1.00*    OV        0.98     
!   PT        0.86     SC        1.04     WF        1.10     
! 
! 
! Correcting IF 3.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.01     GC        1.07     GN        0.86     
!   HN        1.19     KK        1.15     KP        1.04     LA        0.92     
!   MC        0.78     MK        1.02     NL        1.02     NY        0.87     
!   ON        1.00*    OV        1.08     PT        0.97     SC        1.17     
!   WF        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.03     GC        1.05     GN        0.82     
!   HN        1.21     KK        0.97     KP        1.08     LA        0.93     
!   NL        0.98     ON        1.00*    OV        1.05     PT        0.99     
!   SC        1.20     WF        1.03     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.07     FD        0.99     GC        1.04     GN        0.78     
!   HN        1.22     KK        1.13     KP        1.06     LA        0.92     
!   MC        1.00*    NL        1.01     NY        0.82     OV        1.09     
!   PT        0.96     SC        1.13     WF        0.97     
! 
! 
! Correcting IF 4.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.91     GC        0.98     GN        1.11     
!   HN        1.17     KK        0.97     KP        1.00     LA        0.84     
!   MC        0.99     MK        1.01     NL        1.04     NY        1.00     
!   ON        1.00*    OV        1.00     PT        1.00     SC        1.22     
!   WF        1.05     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.89     GC        0.99     GN        1.06     
!   HN        1.18     KK        0.87     KP        1.06     LA        0.85     
!   NL        1.02     ON        1.00*    OV        0.96     PT        1.00     
!   SC        1.22     WF        1.10     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.90     GC        0.99     GN        1.06     
!   HN        1.18     KK        0.92     KP        1.02     LA        0.84     
!   MC        1.78     NL        1.02     NY        0.90     OV        0.99     
!   PT        0.97     SC        1.22     WF        1.10     
! 
! 
! Fit before self-cal, rms=0.134700Jy  sigma=0.776510
! Fit after  self-cal, rms=0.128478Jy  sigma=0.757495
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.026 mas, bmaj=3.869 mas, bpa=60.95 degrees
! Estimated noise=0.421861 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.00401524 Jy
! Component: 100  -  total flux cleaned = 0.00704618 Jy
! Total flux subtracted in 100 components = 0.00704618 Jy
! Clean residual min=-0.001930 max=0.002586 Jy/beam
! Clean residual mean=0.000149 rms=0.000513 Jy/beam
! Combined flux in latest and established models = 0.321169 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 156 components and 0.321169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128353Jy  sigma=0.756670
! Fit after  self-cal, rms=0.128374Jy  sigma=0.756599
! 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 (-27.2, -41.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0029028 Jy
! Component: 100  -  total flux cleaned = 0.00522111 Jy
! Total flux subtracted in 100 components = 0.00522111 Jy
! Clean residual min=-0.001817 max=0.002519 Jy/beam
! Clean residual mean=0.000122 rms=0.000486 Jy/beam
! Combined flux in latest and established models = 0.32639 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 41 model components to the UV plane model.
! The established model now contains 185 components and 0.32639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128304Jy  sigma=0.756150
! Fit after  self-cal, rms=0.128256Jy  sigma=0.749315
! Inverting map and beam 
! Estimated beam: bmin=3.026 mas, bmaj=3.868 mas, bpa=60.91 degrees
! Estimated noise=0.424056 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.00216625 Jy
! Component: 100  -  total flux cleaned = 0.00388625 Jy
! Total flux subtracted in 100 components = 0.00388625 Jy
! Clean residual min=-0.001327 max=0.001938 Jy/beam
! Clean residual mean=0.000136 rms=0.000401 Jy/beam
! Combined flux in latest and established models = 0.330276 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 202 components and 0.330276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128217Jy  sigma=0.749074
! Fit after  self-cal, rms=0.128224Jy  sigma=0.749056
! 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 202 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.026 x 3.868 at 60.91 degrees (North through East)
! Clean map  min=-0.0012984  max=0.22157 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.026 mas, bmaj=3.868 mas, bpa=60.91 degrees
! Estimated noise=0.424056 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.026 x 3.868 at 60.91 degrees (North through East)
! Clean map  min=-0.0012984  max=0.22157 Jy/beam
quit
! Quitting program
! Log file 1745+624_S.log closed on Fri Apr 14 18:41:19 2000