! Started logfile: 0342+147_S.log on Thu May 30 09:44:06 2002
observe 0342+147_S.edt
! Reading UV FITS file: 0342+147_S.edt
! AN table 1: 31 integrations on 171 of 171 possible baselines.
! AN table 2: 120 integrations on 171 of 171 possible baselines.
! AN table 3: 74 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.151527 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0342+147
! 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  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1199 lines of history.
! 
! Reading 23320 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 589 telescope corrections were flagged in sub-array 1.
!  A total of 1704 telescope corrections were flagged in sub-array 2.
!  A total of 1029 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 514 telescope corrections were flagged in sub-array 1.
!  A total of 1704 telescope corrections were flagged in sub-array 2.
!  A total of 942 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 480 telescope corrections were flagged in sub-array 1.
!  A total of 1814 telescope corrections were flagged in sub-array 2.
!  A total of 1089 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 514 telescope corrections were flagged in sub-array 1.
!  A total of 1570 telescope corrections were flagged in sub-array 2.
!  A total of 1089 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.779924Jy  sigma=5.612768
! Fit after  self-cal, rms=0.779807Jy  sigma=5.612055
! 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.166 mas, bmaj=4.846 mas, bpa=-0.2288 degrees
! Estimated noise=1.41116 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.165261 Jy
! Total flux subtracted in 50 components = 0.165261 Jy
! Clean residual min=-0.010364 max=0.046108 Jy/beam
! Clean residual mean=-0.000038 rms=0.003051 Jy/beam
! Combined flux in latest and established models = 0.165261 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.165261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124246Jy  sigma=0.892361
! Fit after  self-cal, rms=0.124246Jy  sigma=0.892361
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0374372 Jy
! Total flux subtracted in 50 components = 0.0374372 Jy
! Clean residual min=-0.009447 max=0.033432 Jy/beam
! Clean residual mean=-0.000036 rms=0.002384 Jy/beam
! Combined flux in latest and established models = 0.202698 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.202698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110137Jy  sigma=0.790869
! Fit after  self-cal, rms=0.110132Jy  sigma=0.790833
! Inverting map 
! Added new window around map position (-6, -0.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0276593 Jy
! Total flux subtracted in 50 components = 0.0276593 Jy
! Clean residual min=-0.008693 max=0.013647 Jy/beam
! Clean residual mean=-0.000038 rms=0.001926 Jy/beam
! Combined flux in latest and established models = 0.230358 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 12 components and 0.230358 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.102231Jy  sigma=0.733807
! Fit after  self-cal, rms=0.101486Jy  sigma=0.728427
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0166625 Jy
! Total flux subtracted in 50 components = 0.0166625 Jy
! Clean residual min=-0.007149 max=0.010865 Jy/beam
! Clean residual mean=-0.000038 rms=0.001695 Jy/beam
! Combined flux in latest and established models = 0.24702 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 21 components and 0.24702 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098066Jy  sigma=0.703773
! Fit after  self-cal, rms=0.097894Jy  sigma=0.702528
! 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.737 mas, bmaj=5.751 mas, bpa=-1.578 degrees
! Estimated noise=0.787354 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.4, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0212472 Jy
! Component: 100  -  total flux cleaned = 0.0330908 Jy
! Total flux subtracted in 100 components = 0.0330908 Jy
! Clean residual min=-0.004745 max=0.008968 Jy/beam
! Clean residual mean=-0.000128 rms=0.001373 Jy/beam
! Combined flux in latest and established models = 0.280111 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 44 components and 0.280111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.093700Jy  sigma=0.672337
! Fit after  self-cal, rms=0.093460Jy  sigma=0.670591
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00898819 Jy
! Component: 100  -  total flux cleaned = 0.0141808 Jy
! Total flux subtracted in 100 components = 0.0141808 Jy
! Clean residual min=-0.004641 max=0.005220 Jy/beam
! Clean residual mean=-0.000152 rms=0.001142 Jy/beam
! Combined flux in latest and established models = 0.294292 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 72 components and 0.294292 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092669Jy  sigma=0.664895
! Fit after  self-cal, rms=0.092588Jy  sigma=0.664300
! 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.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.88     FD        1.15     GC        0.94     GG        1.00*    
!   HN        1.00     KP        0.95     LA        0.97     MC        1.00*    
!   MK        0.91     NL        0.92     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        1.00     SC        1.05     TS        1.00*    
!   WF        0.97     KK        1.11     WZ        0.83     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.15     GC        0.94     GG        1.00*    
!   HN        0.99     KP        0.94     LA        0.97     MC        1.00*    
!   MK        0.90     NL        0.92     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.00     SC        1.00*    TS        1.24     
!   WF        0.97     KK        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 75 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.02     GC        0.92     GG        1.00*    
!   HN        1.21     KP        0.94     LA        0.95     MC        1.00*    
!   MK        1.03     NL        1.00     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        0.98     SC        1.01     TS        1.00*    
!   WF        0.95     KK        1.09     WZ        0.77     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.01     GC        0.95     GG        1.00*    
!   HN        1.24     KP        0.96     LA        0.96     MC        1.00*    
!   MK        1.00     NL        0.99     NY        1.00*    ON        1.00*    
!   OV        1.04     PT        1.01     SC        1.00*    TS        1.25     
!   WF        1.02     KK        1.10     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.95     GG        1.00*    
!   HN        1.00*    KP        1.11     LA        1.00*    MC        1.00*    
!   MK        1.16     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.07     PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    KK        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        0.97     GC        1.00     GG        1.00*    
!   HN        1.21     KP        1.04     LA        0.99     MC        1.00*    
!   MK        1.03     NL        1.07     NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.06     SC        1.09     TS        1.00*    
!   WF        1.00*    KK        0.98     WZ        0.81     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.98     GC        0.98     GG        1.00*    
!   HN        1.00*    KP        1.06     LA        0.92     MC        1.00*    
!   MK        1.00     NL        1.06     NY        1.00*    ON        1.00*    
!   OV        1.02     PT        1.07     SC        1.00*    TS        1.30     
!   WF        1.00*    KK        1.01     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 75 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    MC        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    KK        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.86     GC        1.05     GG        1.00*    
!   HN        1.24     KP        1.07     LA        0.81     MC        1.00*    
!   MK        0.97     NL        1.05     NY        1.00*    ON        1.00*    
!   OV        0.93     PT        1.04     SC        0.92     TS        1.00*    
!   WF        1.10     KK        1.04     WZ        0.81     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.88     GC        1.05     GG        1.00*    
!   HN        1.00*    KP        1.09     LA        0.80     MC        1.00*    
!   MK        0.99     NL        1.02     NY        1.00*    ON        1.00*    
!   OV        0.92     PT        1.09     SC        1.00*    TS        1.23     
!   WF        1.00*    KK        1.01     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.092588Jy  sigma=0.664300
! Fit after  self-cal, rms=0.087708Jy  sigma=0.630997
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.761 mas, bmaj=5.77 mas, bpa=-2.246 degrees
! Estimated noise=0.791549 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.00127925 Jy
! Component: 100  -  total flux cleaned = 0.000781295 Jy
! Total flux subtracted in 100 components = 0.000781295 Jy
! Clean residual min=-0.002402 max=0.002441 Jy/beam
! Clean residual mean=-0.000002 rms=0.000565 Jy/beam
! Combined flux in latest and established models = 0.295073 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 81 components and 0.295073 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087624Jy  sigma=0.630396
! Fit after  self-cal, rms=0.087637Jy  sigma=0.630270
! 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.000159364 Jy
! Component: 100  -  total flux cleaned = -6.39381e-05 Jy
! Total flux subtracted in 100 components = -6.39381e-05 Jy
! Clean residual min=-0.002345 max=0.002402 Jy/beam
! Clean residual mean=-0.000001 rms=0.000554 Jy/beam
! Combined flux in latest and established models = 0.295009 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 89 components and 0.295009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087600Jy  sigma=0.630005
! Fit after  self-cal, rms=0.087439Jy  sigma=0.617329
! Inverting map and beam 
! Estimated beam: bmin=2.758 mas, bmaj=5.776 mas, bpa=-2.285 degrees
! Estimated noise=0.795763 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.0009421 Jy
! Component: 100  -  total flux cleaned = 0.000987454 Jy
! Total flux subtracted in 100 components = 0.000987454 Jy
! Clean residual min=-0.002080 max=0.002156 Jy/beam
! Clean residual mean=0.000034 rms=0.000515 Jy/beam
! Combined flux in latest and established models = 0.295997 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 98 components and 0.295996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.087407Jy  sigma=0.617081
! Fit after  self-cal, rms=0.087411Jy  sigma=0.617027
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0342+147_S
! Writing UV FITS file: 0342+147_S.uvf
! Writing 98 model components to file: 0342+147_S.mod
! wwins: Wrote 3 windows to 0342+147_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.758 x 5.776 at -2.285 degrees (North through East)
! Clean map  min=-0.0020449  max=0.20885 Jy/beam
! Writing clean map to FITS file: 0342+147_S.fits
! Writing difmap environment to: 0342+147_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0342+147_Suv.ps/vps,1,2
! Attempting to open device: '0342+147_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0342+147_Sim.ps/vps
! Attempting to open device: '0342+147_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.758 mas, bmaj=5.776 mas, bpa=-2.285 degrees
! Estimated noise=0.795763 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.758 x 5.776 at -2.285 degrees (North through East)
! Clean map  min=-0.0020449  max=0.20885 Jy/beam
quit
! Quitting program
! Log file 0342+147_S.log closed on Thu May 30 09:44:48 2002