! Started logfile: 1357+769_X.log on Wed Nov 18 13:58:42 1998
observe 1357+769_X.edt
! Reading UV FITS file: 1357+769_X.edt
! AN table 1: 185 integrations on 103 of 105 possible baselines.
! AN table 2: 40 integrations on 91 of 91 possible baselines.
! AN table 3: 60 integrations on 106 of 120 possible baselines.
! AN table 4: 192 integrations on 113 of 120 possible baselines.
! Apparent sampling: 0.296861 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1357+769
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1270 lines of history.
! 
! Reading 60264 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
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
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
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 = 4.0/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.100x0.100 milli-arcsec cellsize.
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 1785 telescope corrections were flagged in sub-array 1.
!  A total of 227 telescope corrections were flagged in sub-array 2.
!  A total of 565 telescope corrections were flagged in sub-array 3.
!  A total of 1767 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1863 telescope corrections were flagged in sub-array 1.
!  A total of 227 telescope corrections were flagged in sub-array 2.
!  A total of 565 telescope corrections were flagged in sub-array 3.
!  A total of 1767 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1790 telescope corrections were flagged in sub-array 1.
!  A total of 227 telescope corrections were flagged in sub-array 2.
!  A total of 565 telescope corrections were flagged in sub-array 3.
!  A total of 1768 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1789 telescope corrections were flagged in sub-array 1.
!  A total of 227 telescope corrections were flagged in sub-array 2.
!  A total of 565 telescope corrections were flagged in sub-array 3.
!  A total of 1767 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.348670Jy  sigma=1.881133
! Fit after  self-cal, rms=0.346807Jy  sigma=1.871300
! 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=0.5937 mas, bmaj=0.6727 mas, bpa=16.66 degrees
! Estimated noise=1.16042 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.524067 Jy
! Total flux subtracted in 50 components = 0.524067 Jy
! Clean residual min=-0.022605 max=0.146380 Jy/beam
! Clean residual mean=0.000029 rms=0.004074 Jy/beam
! Combined flux in latest and established models = 0.524067 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.524067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222087Jy  sigma=1.196072
! Fit after  self-cal, rms=0.222087Jy  sigma=1.196071
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.114287 Jy
! Total flux subtracted in 50 components = 0.114287 Jy
! Clean residual min=-0.007912 max=0.032048 Jy/beam
! Clean residual mean=0.000023 rms=0.001881 Jy/beam
! Combined flux in latest and established models = 0.638353 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.638353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158215Jy  sigma=0.844627
! Fit after  self-cal, rms=0.158214Jy  sigma=0.844623
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0308128 Jy
! Total flux subtracted in 50 components = 0.0308128 Jy
! Clean residual min=-0.007292 max=0.013129 Jy/beam
! Clean residual mean=0.000021 rms=0.001636 Jy/beam
! Combined flux in latest and established models = 0.669166 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.669166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151344Jy  sigma=0.806318
! Fit after  self-cal, rms=0.151336Jy  sigma=0.806275
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141817 Jy
! Total flux subtracted in 50 components = 0.0141817 Jy
! Clean residual min=-0.007355 max=0.008233 Jy/beam
! Clean residual mean=0.000020 rms=0.001582 Jy/beam
! Combined flux in latest and established models = 0.683348 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 13 components and 0.683348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149664Jy  sigma=0.796898
! Fit after  self-cal, rms=0.149657Jy  sigma=0.796860
! 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=0.8582 mas, bmaj=0.9292 mas, bpa=36.81 degrees
! Estimated noise=0.582453 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.0133878 Jy
! Component: 100  -  total flux cleaned = 0.0192792 Jy
! Total flux subtracted in 100 components = 0.0192792 Jy
! Clean residual min=-0.005006 max=0.007410 Jy/beam
! Clean residual mean=0.000784 rms=0.001291 Jy/beam
! Combined flux in latest and established models = 0.702627 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 0.702627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148670Jy  sigma=0.791264
! Fit after  self-cal, rms=0.148669Jy  sigma=0.791260
! 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 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.04     GC        0.96     GN        1.02     
!   HN        0.96     KK        1.07     KP        1.02     LA        0.99     
!   MC        1.04     NL        1.02     ON        0.91     OV        1.02     
!   PT        1.00     SC        1.09     WF        0.91     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.01     GN        0.99     HN        1.21     
!   KK        1.01     KP        1.01     LA        0.97     MC        1.06     
!   NL        1.01     OV        1.01     PT        1.01     SC        0.99     
!   WF        1.01     MK        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GC        0.97     GN        1.00     
!   HN        0.95     KK        1.02     KP        1.03     LA        1.08     
!   MC        1.03     NL        1.01     ON        0.94     OV        1.00     
!   PT        1.01     SC        1.15     WF        1.00*    MK        1.00     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.03     GC        0.97     GN        1.01     
!   HN        0.95     KK        1.00     KP        1.00     LA        0.97     
!   MC        1.02     NL        1.00     ON        0.91     OV        1.01     
!   PT        0.99     SC        1.00     WF        0.96     MK        0.99     
! 
! 
! Correcting IF 2.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.05     GC        0.98     GN        1.04     
!   HN        0.96     KK        1.06     KP        1.03     LA        0.99     
!   MC        1.00     NL        1.01     ON        0.92     OV        1.04     
!   PT        1.01     SC        1.10     WF        0.90     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00     GN        0.97     HN        1.21     
!   KK        0.99     KP        1.02     LA        0.97     MC        1.07     
!   NL        1.00     OV        1.01     PT        1.00     SC        1.01     
!   WF        1.03     MK        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.02     GC        0.97     GN        0.98     
!   HN        0.96     KK        1.03     KP        1.02     LA        1.10     
!   MC        1.02     NL        1.01     ON        0.96     OV        1.01     
!   PT        1.00     SC        1.15     WF        1.00*    MK        1.01     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.03     GC        0.98     GN        1.01     
!   HN        0.95     KK        0.99     KP        1.00     LA        0.98     
!   MC        1.03     NL        1.01     ON        0.92     OV        1.00     
!   PT        0.99     SC        1.00     WF        0.95     MK        1.00     
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.04     GC        0.96     GN        1.06     
!   HN        0.96     KK        1.10     KP        1.03     LA        0.97     
!   MC        1.02     NL        1.01     ON        0.92     OV        1.02     
!   PT        1.00     SC        1.09     WF        0.90     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GN        0.97     HN        1.25     
!   KK        1.01     KP        1.00     LA        0.96     MC        1.08     
!   NL        1.01     OV        1.00     PT        1.00     SC        0.99     
!   WF        0.99     MK        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.02     GC        0.98     GN        0.99     
!   HN        0.93     KK        1.04     KP        1.02     LA        1.09     
!   MC        1.00     NL        1.01     ON        0.96     OV        1.01     
!   PT        0.98     SC        1.16     WF        1.00*    MK        1.00     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.03     GC        0.98     GN        1.01     
!   HN        0.93     KK        1.00     KP        1.00     LA        0.97     
!   MC        1.01     NL        0.99     ON        0.84     OV        1.01     
!   PT        0.99     SC        0.99     WF        0.94     MK        0.98     
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.04     GC        0.95     GN        1.01     
!   HN        0.96     KK        1.08     KP        1.03     LA        0.98     
!   MC        1.00     NL        1.01     ON        0.89     OV        1.02     
!   PT        1.00     SC        1.10     WF        0.89     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GN        0.95     HN        1.21     
!   KK        0.99     KP        1.01     LA        0.95     MC        1.05     
!   NL        1.00     OV        1.00     PT        1.01     SC        1.00     
!   WF        1.00     MK        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.03     GC        0.96     GN        0.98     
!   HN        0.93     KK        1.04     KP        1.02     LA        1.08     
!   MC        0.96     NL        1.01     ON        0.94     OV        1.00     
!   PT        1.00     SC        1.15     WF        1.00*    MK        0.99     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.04     GC        0.98     GN        0.99     
!   HN        0.91     KK        1.01     KP        1.00     LA        0.96     
!   MC        1.00     NL        0.99     ON        0.93     OV        1.01     
!   PT        0.98     SC        1.01     WF        0.95     MK        0.99     
! 
! 
! Fit before self-cal, rms=0.148669Jy  sigma=0.791260
! Fit after  self-cal, rms=0.139691Jy  sigma=0.753223
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8583 mas, bmaj=0.927 mas, bpa=34.43 degrees
! Estimated noise=0.582938 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 (-1.1, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00535363 Jy
! Component: 100  -  total flux cleaned = 0.00789027 Jy
! Total flux subtracted in 100 components = 0.00789027 Jy
! Clean residual min=-0.002864 max=0.002981 Jy/beam
! Clean residual mean=0.000228 rms=0.000655 Jy/beam
! Combined flux in latest and established models = 0.710517 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 34 components and 0.710517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139511Jy  sigma=0.752223
! Fit after  self-cal, rms=0.139506Jy  sigma=0.752124
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
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.00131945 Jy
! Component: 100  -  total flux cleaned = 0.00164296 Jy
! Total flux subtracted in 100 components = 0.00164296 Jy
! Clean residual min=-0.002813 max=0.002865 Jy/beam
! Clean residual mean=0.000217 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 0.71216 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 36 components and 0.71216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139458Jy  sigma=0.751843
! Fit after  self-cal, rms=0.137128Jy  sigma=0.733500
! Inverting map and beam 
! Estimated beam: bmin=0.8571 mas, bmaj=0.9255 mas, bpa=34.24 degrees
! Estimated noise=0.584177 mJy/beam.
doamp = false
solint = solint / 1.5
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 (-0.5, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00300528 Jy
! Component: 100  -  total flux cleaned = 0.00491388 Jy
! Total flux subtracted in 100 components = 0.00491388 Jy
! Clean residual min=-0.001766 max=0.002192 Jy/beam
! Clean residual mean=0.000083 rms=0.000444 Jy/beam
! Combined flux in latest and established models = 0.717074 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 48 components and 0.717074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137068Jy  sigma=0.733143
! Fit after  self-cal, rms=0.137069Jy  sigma=0.733120
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1357+769_X
! Writing UV FITS file: 1357+769_X.uvf
! Writing 48 model components to file: 1357+769_X.mod
! wwins: Wrote 3 windows to 1357+769_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8571 x 0.9255 at 34.24 degrees (North through East)
! Clean map  min=-0.0016254  max=0.68143 Jy/beam
! Writing clean map to FITS file: 1357+769_X.fits
! Writing difmap environment to: 1357+769_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1357+769_Xuv.ps/vps,1,2
! Attempting to open device: '1357+769_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1357+769_Xim.ps/vps
! Attempting to open device: '1357+769_Xim.ps/vps'
cmul = 1.0
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 (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.8571 mas, bmaj=0.9255 mas, bpa=34.24 degrees
! Estimated noise=0.584177 mJy/beam.
! The new contour levels are:
!  -0.00133073 0.00133073 0.00266146 0.00532292 0.0106458 0.0212917 0.0425834 0.0851667 0.170333 0.340667 0.681334 1.36267 2.72533 5.45067 10.9013 21.8027 43.6054 87.2107 174.421 348.843 697.686 1395.37 2790.74 5581.49 11163
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8571 x 0.9255 at 34.24 degrees (North through East)
! Clean map  min=-0.0016254  max=0.68143 Jy/beam
device 1357+769_Xim_un.ps/vps
! Attempting to open device: '1357+769_Xim_un.ps/vps'
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.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.5928 mas, bmaj=0.6746 mas, bpa=16.13 degrees
! Estimated noise=1.16215 mJy/beam.
! The new contour levels are:
!  -0.00292926 0.00292926 0.00585852 0.011717 0.0234341 0.0468681 0.0937363 0.187473 0.374945 0.74989 1.49978 2.99956 5.99912 11.9982 23.9965 47.993 95.986 191.972 383.944 767.888 1535.78 3071.55 6143.1 12286.2
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5928 x 0.6746 at 16.13 degrees (North through East)
! Clean map  min=-0.003915  max=0.66813 Jy/beam
quit
! Quitting program
! Log file 1357+769_X.log closed on Wed Nov 18 14:03:20 1998