! Started logfile: 4C39.25_S.log on Fri Apr 14 19:02:43 2000
observe 4C39.25_S.edt
! Reading UV FITS file: 4C39.25_S.edt
! AN table 1: 101 integrations on 44 of 55 possible baselines.
! AN table 2: 113 integrations on 55 of 55 possible baselines.
! AN table 3: 55 integrations on 136 of 136 possible baselines.
! AN table 4: 24 integrations on 55 of 55 possible baselines.
! Apparent sampling: 0.321651 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 4C39.25
! 
! 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 1240 lines of history.
! 
! Reading 25036 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 568 telescope corrections were flagged in sub-array 1.
!  A total of 674 telescope corrections were flagged in sub-array 2.
!  A total of 611 telescope corrections were flagged in sub-array 3.
!  A total of 29 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 568 telescope corrections were flagged in sub-array 1.
!  A total of 674 telescope corrections were flagged in sub-array 2.
!  A total of 611 telescope corrections were flagged in sub-array 3.
!  A total of 29 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 568 telescope corrections were flagged in sub-array 1.
!  A total of 677 telescope corrections were flagged in sub-array 2.
!  A total of 659 telescope corrections were flagged in sub-array 3.
!  A total of 29 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 568 telescope corrections were flagged in sub-array 1.
!  A total of 674 telescope corrections were flagged in sub-array 2.
!  A total of 662 telescope corrections were flagged in sub-array 3.
!  A total of 29 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.761796Jy  sigma=16.043675
! Fit after  self-cal, rms=2.762527Jy  sigma=16.050131
! 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.207 mas, bmaj=3.017 mas, bpa=-5.497 degrees
! Estimated noise=1.57005 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 = 2.62344 Jy
! Total flux subtracted in 50 components = 2.62344 Jy
! Clean residual min=-0.121576 max=0.758493 Jy/beam
! Clean residual mean=-0.001733 rms=0.034602 Jy/beam
! Combined flux in latest and established models = 2.62344 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 2.62344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.338031Jy  sigma=7.779415
! Fit after  self-cal, rms=1.338026Jy  sigma=7.779407
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.784819 Jy
! Total flux subtracted in 50 components = 0.784819 Jy
! Clean residual min=-0.070704 max=0.346278 Jy/beam
! Clean residual mean=-0.001136 rms=0.020583 Jy/beam
! Combined flux in latest and established models = 3.40826 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 6 components and 3.40826 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.817295Jy  sigma=4.749887
! Fit after  self-cal, rms=0.816990Jy  sigma=4.748113
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.369233 Jy
! Total flux subtracted in 50 components = 0.369233 Jy
! Clean residual min=-0.061408 max=0.165986 Jy/beam
! Clean residual mean=-0.000855 rms=0.015954 Jy/beam
! Combined flux in latest and established models = 3.77749 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 8 components and 3.77749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.643256Jy  sigma=3.737240
! Fit after  self-cal, rms=0.642815Jy  sigma=3.734646
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.183874 Jy
! Total flux subtracted in 50 components = 0.183874 Jy
! Clean residual min=-0.062077 max=0.091486 Jy/beam
! Clean residual mean=-0.000715 rms=0.014663 Jy/beam
! Combined flux in latest and established models = 3.96136 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 19 components and 3.96136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.590034Jy  sigma=3.428453
! Fit after  self-cal, rms=0.589786Jy  sigma=3.426981
! 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.731 mas, bmaj=3.527 mas, bpa=8.182 degrees
! Estimated noise=0.799776 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, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.157294 Jy
! Component: 100  -  total flux cleaned = 0.252924 Jy
! Total flux subtracted in 100 components = 0.252924 Jy
! Clean residual min=-0.078548 max=0.082752 Jy/beam
! Clean residual mean=-0.001535 rms=0.018323 Jy/beam
! Combined flux in latest and established models = 4.21429 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 36 components and 4.21429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.549945Jy  sigma=3.195009
! Fit after  self-cal, rms=0.549813Jy  sigma=3.194238
! 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 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.04     GC        0.99     GN        0.98     
!   HN        0.94     MC        1.11     NL        0.90     NY        1.00     
!   ON        1.09     SC        0.88     WF        1.11     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     GC        1.00     GN        1.05     HN        0.95     
!   KP        0.88     MC        1.25     ON        1.04     OV        1.02     
!   PT        0.97     SC        0.88     WF        1.10     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.04     GC        0.99     GN        1.05     
!   HN        1.00     KK        0.91     KP        0.87     LA        1.05     
!   MC        1.18     MK        0.92     NL        0.90     NY        1.00     
!   ON        1.11     OV        1.01     PT        0.95     SC        0.88     
!   WF        1.10     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        1.05     GC        1.07     GN        1.08     
!   KP        0.87     LA        0.97     NL        0.90     ON        1.08     
!   OV        1.01     PT        0.96     WF        1.16     
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.99     GC        1.03     GN        0.94     
!   HN        0.96     MC        1.12     NL        0.99     NY        0.99     
!   ON        1.11     SC        0.99     WF        1.15     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     GC        1.05     GN        1.00     HN        0.96     
!   KP        0.90     MC        0.72     ON        1.09     OV        0.94     
!   PT        0.86     SC        0.99     WF        1.13     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.89     FD        1.00     GC        1.02     GN        1.00     
!   HN        1.02     KK        0.95     KP        0.90     LA        1.09     
!   MC        1.02     MK        0.98     NL        0.99     NY        1.01     
!   ON        1.12     OV        0.92     PT        0.88     SC        0.99     
!   WF        1.11     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.91     FD        1.01     GC        1.10     GN        1.03     
!   KP        0.91     LA        1.00     NL        0.99     ON        1.09     
!   OV        0.93     PT        0.86     WF        1.17     
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.94     GC        1.02     GN        0.78     
!   HN        1.13     MC        0.79     NL        0.97     NY        0.86     
!   ON        0.84     SC        1.10     WF        1.11     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     GC        1.03     GN        0.86     HN        1.15     
!   KP        1.03     MC        1.63     ON        0.77     OV        1.01     
!   PT        0.93     SC        1.09     WF        1.10     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.95     GC        1.01     GN        0.87     
!   HN        1.22     KK        1.04     KP        1.02     LA        0.92     
!   MC        1.00*    MK        0.90     NL        0.97     NY        0.88     
!   ON        0.84     OV        1.00     PT        0.94     SC        1.09     
!   WF        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.95     GC        1.08     GN        0.88     
!   KP        1.03     LA        0.90     NL        0.98     ON        0.82     
!   OV        1.00     PT        0.92     WF        1.15     
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.82     GC        0.97     GN        1.00     
!   HN        1.10     MC        1.11     NL        0.97     NY        0.99     
!   ON        1.02     SC        1.14     WF        1.21     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     GC        0.99     GN        1.08     HN        1.11     
!   KP        0.99     MC        1.63     ON        0.96     OV        0.91     
!   PT        0.96     SC        1.14     WF        1.20     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.83     GC        0.97     GN        1.08     
!   HN        1.17     KK        0.89     KP        0.99     LA        0.82     
!   MC        1.00*    MK        0.87     NL        0.97     NY        1.01     
!   ON        1.04     OV        0.90     PT        1.00     SC        1.14     
!   WF        1.17     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.84     GC        1.03     GN        1.11     
!   KP        0.99     LA        0.81     NL        0.98     ON        1.01     
!   OV        0.90     PT        0.96     WF        1.25     
! 
! 
! Fit before self-cal, rms=0.549813Jy  sigma=3.194238
! Fit after  self-cal, rms=0.197324Jy  sigma=1.110469
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.771 mas, bmaj=3.539 mas, bpa=8.657 degrees
! Estimated noise=0.798451 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 (4, -0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0079177 Jy
! Component: 100  -  total flux cleaned = 0.00624027 Jy
! Total flux subtracted in 100 components = 0.00624027 Jy
! Clean residual min=-0.012023 max=0.011901 Jy/beam
! Clean residual mean=-0.000036 rms=0.002176 Jy/beam
! Combined flux in latest and established models = 4.22053 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 48 components and 4.22053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192303Jy  sigma=1.078931
! Fit after  self-cal, rms=0.192141Jy  sigma=1.077615
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00195133 Jy
! Component: 100  -  total flux cleaned = 0.00195865 Jy
! Total flux subtracted in 100 components = 0.00195865 Jy
! Clean residual min=-0.009934 max=0.009121 Jy/beam
! Clean residual mean=-0.000030 rms=0.001955 Jy/beam
! Combined flux in latest and established models = 4.22249 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 59 components and 4.22249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190374Jy  sigma=1.066126
! Fit after  self-cal, rms=0.190337Jy  sigma=1.065895
! 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 = 4.62613e-05 Jy
! Component: 100  -  total flux cleaned = -0.000867923 Jy
! Total flux subtracted in 100 components = -0.000867923 Jy
! Clean residual min=-0.008899 max=0.007506 Jy/beam
! Clean residual mean=-0.000034 rms=0.001839 Jy/beam
! Combined flux in latest and established models = 4.22162 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 63 components and 4.22162 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189285Jy  sigma=1.058927
! Fit after  self-cal, rms=0.169020Jy  sigma=0.936134
! Inverting map and beam 
! Estimated beam: bmin=2.774 mas, bmaj=3.541 mas, bpa=8.707 degrees
! Estimated noise=0.798908 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.00410433 Jy
! Component: 100  -  total flux cleaned = -0.00453409 Jy
! Total flux subtracted in 100 components = -0.00453409 Jy
! Clean residual min=-0.007485 max=0.006327 Jy/beam
! Clean residual mean=-0.000009 rms=0.001365 Jy/beam
! Combined flux in latest and established models = 4.21708 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 68 components and 4.21708 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167851Jy  sigma=0.929230
! Fit after  self-cal, rms=0.167837Jy  sigma=0.929116
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 4C39.25_S
! Writing UV FITS file: 4C39.25_S.uvf
! Writing 68 model components to file: 4C39.25_S.mod
! wwins: Wrote 3 windows to 4C39.25_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.774 x 3.541 at 8.707 degrees (North through East)
! Clean map  min=-0.0077107  max=3.5184 Jy/beam
! Writing clean map to FITS file: 4C39.25_S.fits
! Writing difmap environment to: 4C39.25_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 4C39.25_Suv.ps/vps,1,2
! Attempting to open device: '4C39.25_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 4C39.25_Sim.ps/vps
! Attempting to open device: '4C39.25_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.774 mas, bmaj=3.541 mas, bpa=8.707 degrees
! Estimated noise=0.798908 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.774 x 3.541 at 8.707 degrees (North through East)
! Clean map  min=-0.0077107  max=3.5184 Jy/beam
quit
! Quitting program
! Log file 4C39.25_S.log closed on Fri Apr 14 19:04:32 2000