! Started logfile: 0234+285_X.log on Tue Jul  3 12:07:27 2001
observe 0234+285_X.edt
! Reading UV FITS file: 0234+285_X.edt
! AN table 1: 59 integrations on 120 of 120 possible baselines.
! AN table 2: 112 integrations on 120 of 120 possible baselines.
! AN table 3: 99 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.143426 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0234+285
! 
! 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 8441 lines of history.
! 
! Reading 18588 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
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 = 8.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.100x0.100 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 845 telescope corrections were flagged in sub-array 1.
!  A total of 1339 telescope corrections were flagged in sub-array 2.
!  A total of 1082 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 845 telescope corrections were flagged in sub-array 1.
!  A total of 1339 telescope corrections were flagged in sub-array 2.
!  A total of 1082 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 845 telescope corrections were flagged in sub-array 1.
!  A total of 1339 telescope corrections were flagged in sub-array 2.
!  A total of 1082 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 845 telescope corrections were flagged in sub-array 1.
!  A total of 1339 telescope corrections were flagged in sub-array 2.
!  A total of 1082 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.309931Jy  sigma=2.200728
! Fit after  self-cal, rms=0.309878Jy  sigma=2.200215
! 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.6531 mas, bmaj=0.868 mas, bpa=-7.056 degrees
! Estimated noise=1.40588 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.851622 Jy
! Total flux subtracted in 50 components = 0.851622 Jy
! Clean residual min=-0.034289 max=0.237609 Jy/beam
! Clean residual mean=0.000066 rms=0.009587 Jy/beam
! Combined flux in latest and established models = 0.851622 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.851622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.405938Jy  sigma=2.881204
! Fit after  self-cal, rms=0.405939Jy  sigma=2.881206
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.20597 Jy
! Total flux subtracted in 50 components = 0.20597 Jy
! Clean residual min=-0.021221 max=0.083086 Jy/beam
! Clean residual mean=0.000083 rms=0.006019 Jy/beam
! Combined flux in latest and established models = 1.05759 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 8 components and 1.05759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282823Jy  sigma=2.008595
! Fit after  self-cal, rms=0.282776Jy  sigma=2.008271
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0879211 Jy
! Total flux subtracted in 50 components = 0.0879211 Jy
! Clean residual min=-0.018545 max=0.041126 Jy/beam
! Clean residual mean=0.000091 rms=0.005171 Jy/beam
! Combined flux in latest and established models = 1.14551 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 10 components and 1.14551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251464Jy  sigma=1.785834
! Fit after  self-cal, rms=0.251386Jy  sigma=1.785284
! 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.857 mas, bmaj=1.09 mas, bpa=1.798 degrees
! Estimated noise=0.818878 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.0746227 Jy
! Component: 100  -  total flux cleaned = 0.113364 Jy
! Total flux subtracted in 100 components = 0.113364 Jy
! Clean residual min=-0.034562 max=0.077219 Jy/beam
! Clean residual mean=0.000782 rms=0.009171 Jy/beam
! Combined flux in latest and established models = 1.25888 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 43 components and 1.25888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231426Jy  sigma=1.641365
! Fit after  self-cal, rms=0.231318Jy  sigma=1.640592
! Inverting map 
! Added new window around map position (-0.9, 3.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.074751 Jy
! Component: 100  -  total flux cleaned = 0.121436 Jy
! Total flux subtracted in 100 components = 0.121436 Jy
! Clean residual min=-0.032848 max=0.034927 Jy/beam
! Clean residual mean=0.000608 rms=0.007430 Jy/beam
! Combined flux in latest and established models = 1.38031 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 81 components and 1.38031 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207215Jy  sigma=1.469954
! Fit after  self-cal, rms=0.205992Jy  sigma=1.461278
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.01     GC        1.04     HN        1.00*    
!   KK        0.94     KP        1.03     LA        1.05     MC        0.89     
!   MK        1.01     NL        1.12     NY        1.11     OV        1.00     
!   PT        0.99     SC        1.00*    WF        0.87     GN        0.96     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.02     GC        1.19     HN        1.04     
!   KK        0.99     KP        1.00     LA        0.98     MC        0.91     
!   MK        1.01     NL        1.03     NY        1.06     OV        1.03     
!   PT        0.99     SC        1.01     WF        0.96     GN        0.94     
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GC        1.03     HN        1.07     
!   KK        1.12     KP        1.00*    LA        0.96     MC        1.31     
!   MK        1.02     NL        1.01     NY        1.00     OV        1.03     
!   PT        1.01     SC        1.01     WF        0.91     GN        0.89     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.01     GC        1.05     HN        1.00*    
!   KK        0.94     KP        1.03     LA        1.04     MC        0.94     
!   MK        0.98     NL        1.12     NY        1.06     OV        1.00     
!   PT        0.99     SC        1.00*    WF        0.87     GN        0.95     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.01     GC        1.18     HN        1.03     
!   KK        0.99     KP        1.00     LA        0.98     MC        0.90     
!   MK        1.01     NL        1.03     NY        1.05     OV        1.02     
!   PT        0.98     SC        0.99     WF        0.97     GN        0.97     
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GC        1.03     HN        1.09     
!   KK        1.12     KP        1.00*    LA        0.97     MC        1.35     
!   MK        1.03     NL        1.01     NY        0.95     OV        1.02     
!   PT        1.01     SC        0.98     WF        0.91     GN        0.92     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.99     GC        1.01     HN        1.00*    
!   KK        0.91     KP        1.01     LA        1.05     MC        0.88     
!   MK        0.98     NL        1.06     NY        1.05     OV        0.99     
!   PT        0.98     SC        1.00*    WF        0.86     GN        0.79     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.17     HN        1.06     
!   KK        0.96     KP        0.99     LA        0.97     MC        0.89     
!   MK        0.99     NL        1.00     NY        1.04     OV        1.02     
!   PT        0.97     SC        0.98     WF        0.95     GN        0.81     
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GC        1.02     HN        1.07     
!   KK        1.11     KP        1.00*    LA        0.95     MC        1.29     
!   MK        1.03     NL        0.99     NY        0.98     OV        1.01     
!   PT        1.00     SC        0.97     WF        0.91     GN        0.76     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     GC        1.02     HN        1.00*    
!   KK        0.91     KP        1.02     LA        1.02     MC        0.86     
!   MK        0.97     NL        1.09     NY        1.08     OV        0.97     
!   PT        0.97     SC        1.00*    WF        0.83     GN        0.72     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.15     HN        1.00     
!   KK        0.96     KP        0.99     LA        0.96     MC        0.87     
!   MK        0.98     NL        1.01     NY        1.03     OV        1.00     
!   PT        0.96     SC        0.99     WF        0.94     GN        0.75     
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GC        1.02     HN        1.09     
!   KK        1.10     KP        1.00*    LA        0.94     MC        1.30     
!   MK        1.01     NL        0.99     NY        0.96     OV        1.00     
!   PT        1.00     SC        0.97     WF        0.92     GN        0.70     
! 
! 
! Fit before self-cal, rms=0.205992Jy  sigma=1.461278
! Fit after  self-cal, rms=0.145507Jy  sigma=1.052064
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8736 mas, bmaj=1.102 mas, bpa=5.525 degrees
! Estimated noise=0.821588 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.0361971 Jy
! Component: 100  -  total flux cleaned = 0.0594831 Jy
! Total flux subtracted in 100 components = 0.0594831 Jy
! Clean residual min=-0.011064 max=0.025172 Jy/beam
! Clean residual mean=0.000226 rms=0.003520 Jy/beam
! Combined flux in latest and established models = 1.4398 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 119 components and 1.4398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136974Jy  sigma=0.985795
! Fit after  self-cal, rms=0.136663Jy  sigma=0.982421
! Inverting map 
! Added new window around map position (-0.6, 5.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0263077 Jy
! Component: 100  -  total flux cleaned = 0.0434174 Jy
! Total flux subtracted in 100 components = 0.0434174 Jy
! Clean residual min=-0.010338 max=0.014994 Jy/beam
! Clean residual mean=0.000151 rms=0.003011 Jy/beam
! Combined flux in latest and established models = 1.48321 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 152 components and 1.48321 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131880Jy  sigma=0.944936
! Fit after  self-cal, rms=0.131629Jy  sigma=0.943183
! 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.0148039 Jy
! Component: 100  -  total flux cleaned = 0.0266258 Jy
! Total flux subtracted in 100 components = 0.0266258 Jy
! Clean residual min=-0.010308 max=0.014120 Jy/beam
! Clean residual mean=0.000105 rms=0.002817 Jy/beam
! Combined flux in latest and established models = 1.50984 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 170 components and 1.50984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129897Jy  sigma=0.929344
! Fit after  self-cal, rms=0.112686Jy  sigma=0.792779
! Inverting map and beam 
! Estimated beam: bmin=0.8769 mas, bmaj=1.103 mas, bpa=5.507 degrees
! Estimated noise=0.822775 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.0130102 Jy
! Component: 100  -  total flux cleaned = 0.0222685 Jy
! Total flux subtracted in 100 components = 0.0222685 Jy
! Clean residual min=-0.004899 max=0.011261 Jy/beam
! Clean residual mean=0.000080 rms=0.001445 Jy/beam
! Combined flux in latest and established models = 1.53211 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 190 components and 1.53211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111207Jy  sigma=0.781049
! Fit after  self-cal, rms=0.111146Jy  sigma=0.780426
! Inverting map 
! Added new window around map position (-2.4, 6.9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0112224 Jy
! Component: 100  -  total flux cleaned = 0.0188963 Jy
! Total flux subtracted in 100 components = 0.0188963 Jy
! Clean residual min=-0.004661 max=0.005900 Jy/beam
! Clean residual mean=0.000044 rms=0.001231 Jy/beam
! Combined flux in latest and established models = 1.551 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 207 components and 1.551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110016Jy  sigma=0.771892
! Fit after  self-cal, rms=0.109971Jy  sigma=0.771472
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0234+285_X
! Writing UV FITS file: 0234+285_X.uvf
! Writing 207 model components to file: 0234+285_X.mod
! wwins: Wrote 4 windows to 0234+285_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8769 x 1.103 at 5.507 degrees (North through East)
! Clean map  min=-0.0044301  max=1.1305 Jy/beam
! Writing clean map to FITS file: 0234+285_X.fits
! Writing difmap environment to: 0234+285_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0234+285_Xuv.ps/vps,1,2
! Attempting to open device: '0234+285_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0234+285_Xim.ps/vps
! Attempting to open device: '0234+285_Xim.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=0.8769 mas, bmaj=1.103 mas, bpa=5.507 degrees
! Estimated noise=0.822775 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8769 x 1.103 at 5.507 degrees (North through East)
! Clean map  min=-0.0044301  max=1.1305 Jy/beam
quit
! Quitting program
! Log file 0234+285_X.log closed on Tue Jul  3 12:08:34 2001