! Started logfile: 0234+285_X.log on Fri Apr 19 00:22:46 2002
observe 0234+285_X.edt
! Reading UV FITS file: 0234+285_X.edt
! AN table 1: 30 integrations on 171 of 171 possible baselines.
! AN table 2: 43 integrations on 171 of 171 possible baselines.
! AN table 3: 19 integrations on 171 of 171 possible baselines.
! AN table 4: 41 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.142945 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0234+285
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 1614 lines of history.
! 
! Reading 13004 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 516 telescope corrections were flagged in sub-array 1.
!  A total of 438 telescope corrections were flagged in sub-array 2.
!  A total of 298 telescope corrections were flagged in sub-array 3.
!  A total of 701 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 516 telescope corrections were flagged in sub-array 1.
!  A total of 438 telescope corrections were flagged in sub-array 2.
!  A total of 298 telescope corrections were flagged in sub-array 3.
!  A total of 701 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 516 telescope corrections were flagged in sub-array 1.
!  A total of 462 telescope corrections were flagged in sub-array 2.
!  A total of 298 telescope corrections were flagged in sub-array 3.
!  A total of 701 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 516 telescope corrections were flagged in sub-array 1.
!  A total of 462 telescope corrections were flagged in sub-array 2.
!  A total of 298 telescope corrections were flagged in sub-array 3.
!  A total of 701 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.769864Jy  sigma=12.440027
! Fit after  self-cal, rms=1.769951Jy  sigma=12.441573
! 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.5252 mas, bmaj=1.034 mas, bpa=-0.223 degrees
! Estimated noise=2.0533 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.02409 Jy
! Total flux subtracted in 50 components = 2.02409 Jy
! Clean residual min=-0.097093 max=0.564598 Jy/beam
! Clean residual mean=-0.000914 rms=0.031552 Jy/beam
! Combined flux in latest and established models = 2.02409 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 2.02409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.777923Jy  sigma=5.479329
! Fit after  self-cal, rms=0.777922Jy  sigma=5.479329
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.454978 Jy
! Total flux subtracted in 50 components = 0.454978 Jy
! Clean residual min=-0.064118 max=0.162671 Jy/beam
! Clean residual mean=-0.000430 rms=0.016058 Jy/beam
! Combined flux in latest and established models = 2.47907 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 2.47907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.399214Jy  sigma=2.787198
! Fit after  self-cal, rms=0.399199Jy  sigma=2.787151
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.171049 Jy
! Total flux subtracted in 50 components = 0.171049 Jy
! Clean residual min=-0.052270 max=0.076913 Jy/beam
! Clean residual mean=-0.000249 rms=0.012896 Jy/beam
! Combined flux in latest and established models = 2.65012 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 2.65012 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300526Jy  sigma=2.073953
! Fit after  self-cal, rms=0.300383Jy  sigma=2.073021
! 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.6326 mas, bmaj=1.289 mas, bpa=-2.478 degrees
! Estimated noise=1.09156 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.152429 Jy
! Component: 100  -  total flux cleaned = 0.207802 Jy
! Total flux subtracted in 100 components = 0.207802 Jy
! Clean residual min=-0.036585 max=0.060801 Jy/beam
! Clean residual mean=-0.000072 rms=0.009391 Jy/beam
! Combined flux in latest and established models = 2.85792 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 27 components and 2.85792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227515Jy  sigma=1.542814
! Fit after  self-cal, rms=0.227273Jy  sigma=1.541261
! 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        0.99     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.96     LA        1.00*    MC        1.00*    
!   MK        1.00     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.98     SC        1.00*    TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        0.93     GG        1.00*    
!   HN        0.99     KP        0.98     LA        1.02     MC        1.00*    
!   MK        0.99     NL        0.99     NY        1.01     ON        1.00*    
!   OV        0.98     PT        1.01     SC        1.00*    TS        0.98     
!   WF        1.03     KK        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.05     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        1.00*    LA        1.03     MC        1.04     
!   MK        1.00*    NL        0.98     NY        1.01     ON        1.05     
!   OV        1.00*    PT        1.04     SC        1.10     TS        1.00*    
!   WF        1.12     KK        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        0.99     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.15     
!   MK        1.00*    NL        1.00*    NY        0.92     ON        1.21     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.13     
!   WF        1.00*    KK        1.08     WZ        0.96     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.97     LA        1.00*    MC        1.00*    
!   MK        1.01     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.98     SC        1.00*    TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        0.92     GG        1.00*    
!   HN        1.00     KP        0.98     LA        1.00     MC        1.00*    
!   MK        0.98     NL        1.00     NY        1.02     ON        1.00*    
!   OV        0.97     PT        1.01     SC        1.00*    TS        0.97     
!   WF        1.05     KK        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.04     GC        1.00*    GG        1.00*    
!   HN        1.02     KP        1.00*    LA        1.04     MC        1.04     
!   MK        1.00*    NL        0.97     NY        1.03     ON        1.05     
!   OV        1.00*    PT        1.04     SC        1.11     TS        1.00*    
!   WF        1.13     KK        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.14     
!   MK        1.00*    NL        1.00*    NY        0.91     ON        1.13     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.10     
!   WF        1.00*    KK        1.12     WZ        0.97     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.96     LA        1.00*    MC        1.00*    
!   MK        1.01     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.95     PT        0.98     SC        1.00*    TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.94     GG        1.00*    
!   HN        1.01     KP        0.97     LA        1.01     MC        1.00*    
!   MK        1.00     NL        1.02     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        1.01     SC        1.00*    TS        0.96     
!   WF        1.04     KK        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.04     GC        1.00*    GG        1.00*    
!   HN        1.02     KP        1.00*    LA        1.04     MC        1.03     
!   MK        1.00*    NL        0.98     NY        1.03     ON        1.09     
!   OV        1.00*    PT        1.03     SC        1.10     TS        1.00*    
!   WF        1.14     KK        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        0.99     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.17     
!   MK        1.00*    NL        1.00*    NY        0.95     ON        1.25     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.11     
!   WF        1.00*    KK        1.10     WZ        0.97     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.96     LA        1.00*    MC        1.00*    
!   MK        1.05     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.99     SC        1.00*    TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.93     GG        1.00*    
!   HN        1.00     KP        0.98     LA        1.01     MC        1.00*    
!   MK        1.03     NL        1.01     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        1.02     SC        1.00*    TS        0.97     
!   WF        1.04     KK        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.07     GC        1.00*    GG        1.00*    
!   HN        1.02     KP        1.00*    LA        1.03     MC        1.06     
!   MK        1.00*    NL        0.98     NY        1.01     ON        1.08     
!   OV        1.00*    PT        1.03     SC        1.12     TS        1.00*    
!   WF        1.14     KK        1.00*    WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        0.99     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.15     
!   MK        1.00*    NL        1.00*    NY        0.94     ON        1.22     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.14     
!   WF        1.00*    KK        1.09     WZ        0.96     
! 
! 
! Fit before self-cal, rms=0.227273Jy  sigma=1.541261
! Fit after  self-cal, rms=0.160229Jy  sigma=0.997228
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6333 mas, bmaj=1.323 mas, bpa=-3.271 degrees
! Estimated noise=1.09026 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.4, 4.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0474014 Jy
! Component: 100  -  total flux cleaned = 0.0723203 Jy
! Total flux subtracted in 100 components = 0.0723203 Jy
! Clean residual min=-0.013660 max=0.029392 Jy/beam
! Clean residual mean=-0.000155 rms=0.004331 Jy/beam
! Combined flux in latest and established models = 2.93024 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 47 components and 2.93024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148045Jy  sigma=0.887990
! Fit after  self-cal, rms=0.147776Jy  sigma=0.885897
! 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)
! Added new window around map position (-1.6, 7.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0287514 Jy
! Component: 100  -  total flux cleaned = 0.0473827 Jy
! Total flux subtracted in 100 components = 0.0473827 Jy
! Clean residual min=-0.012184 max=0.015371 Jy/beam
! Clean residual mean=-0.000109 rms=0.003232 Jy/beam
! Combined flux in latest and established models = 2.97762 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 57 components and 2.97762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142344Jy  sigma=0.839308
! Fit after  self-cal, rms=0.135076Jy  sigma=0.789833
! Inverting map and beam 
! Estimated beam: bmin=0.6317 mas, bmaj=1.323 mas, bpa=-3.238 degrees
! Estimated noise=1.08859 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.0177379 Jy
! Component: 100  -  total flux cleaned = 0.0314283 Jy
! Total flux subtracted in 100 components = 0.0314283 Jy
! Clean residual min=-0.010190 max=0.013031 Jy/beam
! Clean residual mean=-0.000061 rms=0.002593 Jy/beam
! Combined flux in latest and established models = 3.00905 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 67 components and 3.00905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132622Jy  sigma=0.768486
! Fit after  self-cal, rms=0.132550Jy  sigma=0.768007
! 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 67 model components to file: 0234+285_X.mod
! wwins: Wrote 3 windows to 0234+285_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6317 x 1.323 at -3.238 degrees (North through East)
! Clean map  min=-0.0095443  max=2.725 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.6317 mas, bmaj=1.323 mas, bpa=-3.238 degrees
! Estimated noise=1.08859 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6317 x 1.323 at -3.238 degrees (North through East)
! Clean map  min=-0.0095443  max=2.725 Jy/beam
quit
! Quitting program
! Log file 0234+285_X.log closed on Fri Apr 19 00:23:16 2002