! Started logfile: 0642+449_S.log on Thu Oct 22 18:35:36 1998
observe 0642+449_S.edt
! Reading UV FITS file: 0642+449_S.edt
! AN table 1: 54 integrations on 65 of 66 possible baselines.
! AN table 2: 140 integrations on 119 of 120 possible baselines.
! AN table 3: 27 integrations on 91 of 91 possible baselines.
! AN table 4: 51 integrations on 104 of 105 possible baselines.
! Apparent sampling: 0.289463 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0642+449
! 
! 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 1602 lines of history.
! 
! Reading 32340 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 536 telescope corrections were flagged in sub-array 1.
!  A total of 1412 telescope corrections were flagged in sub-array 2.
!  A total of 199 telescope corrections were flagged in sub-array 3.
!  A total of 424 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 536 telescope corrections were flagged in sub-array 1.
!  A total of 1412 telescope corrections were flagged in sub-array 2.
!  A total of 199 telescope corrections were flagged in sub-array 3.
!  A total of 424 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 536 telescope corrections were flagged in sub-array 1.
!  A total of 1412 telescope corrections were flagged in sub-array 2.
!  A total of 199 telescope corrections were flagged in sub-array 3.
!  A total of 426 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 542 telescope corrections were flagged in sub-array 1.
!  A total of 1412 telescope corrections were flagged in sub-array 2.
!  A total of 199 telescope corrections were flagged in sub-array 3.
!  A total of 425 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.356781Jy  sigma=1.882599
! Fit after  self-cal, rms=0.354199Jy  sigma=1.871119
! 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.101 mas, bmaj=3.283 mas, bpa=-17.94 degrees
! Estimated noise=1.39541 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.590649 Jy
! Total flux subtracted in 50 components = 0.590649 Jy
! Clean residual min=-0.026644 max=0.164849 Jy/beam
! Clean residual mean=0.000089 rms=0.006543 Jy/beam
! Combined flux in latest and established models = 0.590649 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.590649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309807Jy  sigma=1.626698
! Fit after  self-cal, rms=0.309806Jy  sigma=1.626697
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.1288 Jy
! Total flux subtracted in 50 components = 0.1288 Jy
! Clean residual min=-0.025769 max=0.056326 Jy/beam
! Clean residual mean=0.000038 rms=0.004838 Jy/beam
! Combined flux in latest and established models = 0.719449 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.719449 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262907Jy  sigma=1.371238
! Fit after  self-cal, rms=0.262907Jy  sigma=1.371237
! Inverting map 
! Added new window around map position (3.2, -0.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0471361 Jy
! Total flux subtracted in 50 components = 0.0471361 Jy
! Clean residual min=-0.023622 max=0.023752 Jy/beam
! Clean residual mean=0.000018 rms=0.004565 Jy/beam
! Combined flux in latest and established models = 0.766585 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.766585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254731Jy  sigma=1.326975
! Fit after  self-cal, rms=0.254185Jy  sigma=1.324086
! 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.705 mas, bmaj=3.833 mas, bpa=-21.65 degrees
! Estimated noise=0.815168 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.0337497 Jy
! Component: 100  -  total flux cleaned = 0.0387253 Jy
! Total flux subtracted in 100 components = 0.0387253 Jy
! Clean residual min=-0.013684 max=0.015869 Jy/beam
! Clean residual mean=0.000219 rms=0.003177 Jy/beam
! Combined flux in latest and established models = 0.80531 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 13 components and 0.80531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249921Jy  sigma=1.300809
! Fit after  self-cal, rms=0.249670Jy  sigma=1.299457
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        1.15     GN        1.03     HN        0.72     
!   KP        0.95     LA        1.37     MC        1.01     NL        0.99     
!   ON        1.02     PT        0.99     SC        1.00*    WF        0.99     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.02     GN        1.02     
!   HN        1.00     KK        1.05     KP        1.02     LA        1.00     
!   MC        1.10     NL        1.02     ON        1.05     OV        1.03     
!   PT        0.97     SC        1.06     WF        0.94     MK        1.07     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GC        1.00     GN        1.01     
!   HN        0.98     KK        0.97     KP        1.04     LA        0.92     
!   MC        0.68     NL        0.95     ON        1.01     OV        1.03     
!   SC        1.02     WF        1.05     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        1.00     GN        1.03     
!   HN        0.99     KK        1.05     KP        1.01     LA        1.02     
!   MC        1.05     NL        1.12     ON        0.89     OV        1.05     
!   PT        1.01     SC        1.00     WF        0.83     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.97     GC        1.13     GN        1.01     HN        0.75     
!   KP        1.50     LA        1.23     MC        1.31     NL        1.07     
!   ON        0.85     PT        1.01     SC        1.00*    WF        0.98     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        1.03     GN        1.02     
!   HN        1.00     KK        1.06     KP        1.00     LA        0.99     
!   MC        1.00     NL        1.03     ON        0.98     OV        1.01     
!   PT        0.94     SC        1.07     WF        1.00     MK        1.03     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.01     GC        0.99     GN        0.99     
!   HN        0.99     KK        1.03     KP        0.99     LA        1.01     
!   MC        0.79     NL        1.05     ON        0.94     OV        1.03     
!   SC        1.03     WF        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    GC        1.02     GN        0.99     
!   HN        0.97     KK        1.08     KP        1.01     LA        1.01     
!   MC        0.63     NL        1.04     ON        0.94     OV        1.02     
!   PT        0.98     SC        1.00     WF        0.96     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.97     GC        1.10     GN        1.04     HN        0.70     
!   KP        1.39     LA        1.54     MC        1.06     NL        1.06     
!   ON        0.87     PT        1.04     SC        1.00*    WF        0.94     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.03     GN        1.02     
!   HN        0.99     KK        1.05     KP        0.99     LA        1.04     
!   MC        0.79     NL        1.02     ON        1.00     OV        1.00     
!   PT        0.94     SC        1.07     WF        1.00     MK        1.01     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        1.01     GN        1.00     
!   HN        0.98     KK        0.99     KP        1.01     LA        1.03     
!   MC        0.99     NL        1.04     ON        0.96     OV        1.02     
!   SC        1.04     WF        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GC        0.98     GN        0.98     
!   HN        0.99     KK        0.99     KP        1.00     LA        0.97     
!   MC        0.59     NL        1.02     ON        1.02     OV        1.00     
!   PT        0.93     SC        1.03     WF        1.05     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.02     GC        1.06     GN        0.96     HN        0.76     
!   KP        1.09     LA        1.37     MC        1.00*    NL        1.06     
!   ON        0.92     PT        1.02     SC        1.06     WF        1.00     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.98     GC        1.02     GN        1.01     
!   HN        0.99     KK        1.03     KP        0.99     LA        1.02     
!   MC        0.95     NL        1.04     ON        0.95     OV        1.00     
!   PT        0.95     SC        1.09     WF        0.96     MK        1.00     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GC        1.00     GN        1.01     
!   HN        0.99     KK        0.98     KP        1.06     LA        0.98     
!   MC        0.65     NL        1.03     ON        0.99     OV        1.02     
!   SC        1.02     WF        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        1.02     GN        0.98     
!   HN        0.97     KK        1.02     KP        1.02     LA        0.96     
!   MC        0.53     NL        1.06     ON        0.99     OV        1.00     
!   PT        0.98     SC        1.03     WF        0.94     
! 
! 
! Fit before self-cal, rms=0.249670Jy  sigma=1.299457
! Fit after  self-cal, rms=0.206493Jy  sigma=1.106470
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.665 mas, bmaj=3.8 mas, bpa=-24.81 degrees
! Estimated noise=0.812158 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.013144 Jy
! Component: 100  -  total flux cleaned = 0.0177671 Jy
! Total flux subtracted in 100 components = 0.0177671 Jy
! Clean residual min=-0.004827 max=0.005786 Jy/beam
! Clean residual mean=-0.000069 rms=0.001272 Jy/beam
! Combined flux in latest and established models = 0.823077 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 24 components and 0.823077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205743Jy  sigma=1.102595
! Fit after  self-cal, rms=0.205760Jy  sigma=1.101812
! 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.00258017 Jy
! Component: 100  -  total flux cleaned = 0.00256954 Jy
! Total flux subtracted in 100 components = 0.00256954 Jy
! Clean residual min=-0.004749 max=0.005289 Jy/beam
! Clean residual mean=-0.000090 rms=0.001242 Jy/beam
! Combined flux in latest and established models = 0.825646 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 30 components and 0.825647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205592Jy  sigma=1.100936
! Fit after  self-cal, rms=0.200113Jy  sigma=1.050556
! Inverting map and beam 
! Estimated beam: bmin=2.66 mas, bmaj=3.783 mas, bpa=-24.42 degrees
! Estimated noise=0.816041 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00616135 Jy
! Component: 100  -  total flux cleaned = 0.00911024 Jy
! Total flux subtracted in 100 components = 0.00911024 Jy
! Clean residual min=-0.004183 max=0.003543 Jy/beam
! Clean residual mean=-0.000212 rms=0.000949 Jy/beam
! Combined flux in latest and established models = 0.834757 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 35 components and 0.834757 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199941Jy  sigma=1.049666
! Fit after  self-cal, rms=0.199816Jy  sigma=1.046585
! Inverting map and beam 
! Estimated beam: bmin=2.652 mas, bmaj=3.781 mas, bpa=-24.46 degrees
! Estimated noise=0.817799 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00434124 Jy
! Component: 100  -  total flux cleaned = 0.00581084 Jy
! Total flux subtracted in 100 components = 0.00581084 Jy
! Clean residual min=-0.004062 max=0.003358 Jy/beam
! Clean residual mean=-0.000214 rms=0.000913 Jy/beam
! Combined flux in latest and established models = 0.840568 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 38 components and 0.840568 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199727Jy  sigma=1.046157
! Fit after  self-cal, rms=0.199949Jy  sigma=1.045309
! Inverting map and beam 
! Estimated beam: bmin=2.647 mas, bmaj=3.779 mas, bpa=-24.48 degrees
! Estimated noise=0.819489 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.00347385 Jy
! Component: 100  -  total flux cleaned = 0.00462968 Jy
! Total flux subtracted in 100 components = 0.00462968 Jy
! Clean residual min=-0.004072 max=0.003315 Jy/beam
! Clean residual mean=-0.000212 rms=0.000897 Jy/beam
! Combined flux in latest and established models = 0.845197 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 40 components and 0.845197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199890Jy  sigma=1.045043
! Fit after  self-cal, rms=0.199911Jy  sigma=1.044964
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0642+449_S
! Writing UV FITS file: 0642+449_S.uvf
! Writing 40 model components to file: 0642+449_S.mod
! wwins: Wrote 2 windows to 0642+449_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.647 x 3.779 at -24.48 degrees (North through East)
! Clean map  min=-0.003873  max=0.74064 Jy/beam
! Writing clean map to FITS file: 0642+449_S.fits
! Writing difmap environment to: 0642+449_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0642+449_Suv.ps/vps,1,2
! Attempting to open device: '0642+449_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0642+449_Sim.ps/vps
! Attempting to open device: '0642+449_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.647 mas, bmaj=3.779 mas, bpa=-24.48 degrees
! Estimated noise=0.819489 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.647 x 3.779 at -24.48 degrees (North through East)
! Clean map  min=-0.003873  max=0.74064 Jy/beam
quit
! Quitting program
! Log file 0642+449_S.log closed on Thu Oct 22 18:41:45 1998