! Started logfile: 1746+470_S.log on Thu Jan 11 13:50:53 2001
observe 1746+470_S.edt
! Reading UV FITS file: 1746+470_S.edt
! AN table 1: 76 integrations on 66 of 66 possible baselines.
! AN table 2: 40 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.804431 visibilities/baseline/integration-bin.
! Found source: 1746+470
! 
! 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 21932 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 210 telescope corrections were flagged in sub-array 1.
!  A total of 13 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 209 telescope corrections were flagged in sub-array 1.
!  A total of 13 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 209 telescope corrections were flagged in sub-array 1.
!  A total of 13 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 209 telescope corrections were flagged in sub-array 1.
!  A total of 12 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.653749Jy  sigma=3.847210
! Fit after  self-cal, rms=0.652632Jy  sigma=3.840956
! 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.665 mas, bmaj=3.611 mas, bpa=8.168 degrees
! Estimated noise=1.75985 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.278804 Jy
! Total flux subtracted in 50 components = 0.278804 Jy
! Clean residual min=-0.016127 max=0.077797 Jy/beam
! Clean residual mean=0.000064 rms=0.004671 Jy/beam
! Combined flux in latest and established models = 0.278804 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.278804 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175738Jy  sigma=1.029458
! Fit after  self-cal, rms=0.175739Jy  sigma=1.029459
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.060797 Jy
! Total flux subtracted in 50 components = 0.060797 Jy
! Clean residual min=-0.012818 max=0.017003 Jy/beam
! Clean residual mean=0.000011 rms=0.002771 Jy/beam
! Combined flux in latest and established models = 0.339601 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.339601 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155038Jy  sigma=0.907021
! Fit after  self-cal, rms=0.155038Jy  sigma=0.907019
! 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.306 mas, bmaj=4.192 mas, bpa=3.015 degrees
! Estimated noise=0.879209 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.0230659 Jy
! Component: 100  -  total flux cleaned = 0.0335024 Jy
! Total flux subtracted in 100 components = 0.0335024 Jy
! Clean residual min=-0.012719 max=0.009043 Jy/beam
! Clean residual mean=-0.000201 rms=0.003105 Jy/beam
! Combined flux in latest and established models = 0.373103 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 19 components and 0.373103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152089Jy  sigma=0.889586
! Fit after  self-cal, rms=0.152081Jy  sigma=0.889535
! 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        1.00     FD        1.05     GC        1.05     HN        0.99     
!   LA        1.01     NL        0.93     PT        1.03     SC        0.96     
!   MC        1.00*    NY        1.03     ON        0.95     GN        0.74     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.02     HN        0.96     
!   KP        1.01     LA        1.01     NL        0.92     OV        1.02     
!   PT        1.00     SC        0.94     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.07     GC        1.04     HN        1.05     
!   LA        1.02     NL        1.07     PT        1.03     SC        1.07     
!   MC        1.00*    NY        1.04     ON        0.96     GN        0.79     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.02     GC        1.03     HN        1.03     
!   KP        1.04     LA        1.02     NL        1.03     OV        1.05     
!   PT        1.00     SC        1.02     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.05     GC        1.06     HN        1.00     
!   LA        1.07     NL        0.96     PT        1.07     SC        0.99     
!   MC        1.00*    NY        1.07     ON        0.92     GN        0.67     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     GC        1.03     HN        1.00     
!   KP        1.01     LA        1.03     NL        0.95     OV        1.07     
!   PT        1.02     SC        0.98     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.08     GC        1.07     HN        1.02     
!   LA        1.06     NL        0.99     PT        1.03     SC        1.02     
!   MC        1.00*    NY        1.07     ON        0.89     GN        0.81     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.05     GC        1.03     HN        1.01     
!   KP        1.04     LA        1.02     NL        0.97     OV        1.06     
!   PT        0.99     SC        1.03     
! 
! 
! Fit before self-cal, rms=0.152081Jy  sigma=0.889535
! Fit after  self-cal, rms=0.140070Jy  sigma=0.843079
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.292 mas, bmaj=4.219 mas, bpa=3.63 degrees
! Estimated noise=0.867362 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.00413919 Jy
! Component: 100  -  total flux cleaned = 0.004326 Jy
! Total flux subtracted in 100 components = 0.004326 Jy
! Clean residual min=-0.003811 max=0.004108 Jy/beam
! Clean residual mean=-0.000005 rms=0.000905 Jy/beam
! Combined flux in latest and established models = 0.377429 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 26 components and 0.377429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139968Jy  sigma=0.842306
! Fit after  self-cal, rms=0.140006Jy  sigma=0.842149
! 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.000177359 Jy
! Component: 100  -  total flux cleaned = 0.000128215 Jy
! Total flux subtracted in 100 components = 0.000128215 Jy
! Clean residual min=-0.003873 max=0.004085 Jy/beam
! Clean residual mean=-0.000007 rms=0.000892 Jy/beam
! Combined flux in latest and established models = 0.377557 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 30 components and 0.377557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139985Jy  sigma=0.841988
! Fit after  self-cal, rms=0.139199Jy  sigma=0.832082
! Inverting map and beam 
! Estimated beam: bmin=3.284 mas, bmaj=4.216 mas, bpa=3.648 degrees
! Estimated noise=0.869746 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.00209408 Jy
! Component: 100  -  total flux cleaned = 0.00293863 Jy
! Total flux subtracted in 100 components = 0.00293863 Jy
! Clean residual min=-0.003391 max=0.003193 Jy/beam
! Clean residual mean=0.000006 rms=0.000778 Jy/beam
! Combined flux in latest and established models = 0.380496 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 36 components and 0.380496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139175Jy  sigma=0.831890
! Fit after  self-cal, rms=0.139186Jy  sigma=0.831868
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1746+470_S
! Writing UV FITS file: 1746+470_S.uvf
! Writing 36 model components to file: 1746+470_S.mod
! wwins: Wrote 1 windows to 1746+470_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.284 x 4.216 at 3.648 degrees (North through East)
! Clean map  min=-0.0032545  max=0.36053 Jy/beam
! Writing clean map to FITS file: 1746+470_S.fits
! Writing difmap environment to: 1746+470_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1746+470_Suv.ps/vps,1,2
! Attempting to open device: '1746+470_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1746+470_Sim.ps/vps
! Attempting to open device: '1746+470_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.284 mas, bmaj=4.216 mas, bpa=3.648 degrees
! Estimated noise=0.869746 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.284 x 4.216 at 3.648 degrees (North through East)
! Clean map  min=-0.0032545  max=0.36053 Jy/beam
quit
! Quitting program
! Log file 1746+470_S.log closed on Thu Jan 11 13:51:34 2001