! Started logfile: J0854+2006_S_2003_05_07_pus_uvs.log on Sun Dec 24 10:00:22 2006
obs J0854+2006_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0854+2006_S_2003_05_07_pus_uva.fits
! AN table 1: 71 integrations on 171 of 171 possible baselines.
! AN table 2: 50 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.211445 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0854+2006
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1680 lines of history.
! 
! Reading 17500 visibilities.
select I
! Polarization I is unavailable.
! 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 = 512
float field_cell
field_cell = 0.5
float taper_size
taper_size = 20.
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 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 826 telescope corrections were flagged in sub-array 1.
!  A total of 658 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 826 telescope corrections were flagged in sub-array 1.
!  A total of 658 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 826 telescope corrections were flagged in sub-array 1.
!  A total of 658 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 826 telescope corrections were flagged in sub-array 1.
!  A total of 658 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.337237Jy  sigma=0.007662
! Fit after  self-cal, rms=0.654382Jy  sigma=0.002576
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 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.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.688 mas, bmaj=3.742 mas, bpa=-8.854 degrees
! Estimated noise=1616.01 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.70244 Jy
! Component: 100  -  total flux cleaned = 0.972083 Jy
! Total flux subtracted in 100 components = 0.972083 Jy
! Clean residual min=-0.032741 max=0.125444 Jy/beam
! Clean residual mean=0.000601 rms=0.011782 Jy/beam
! Combined flux in latest and established models = 0.972083 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.972083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.597989Jy  sigma=0.002206
! Fit after  self-cal, rms=0.597541Jy  sigma=0.002203
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.138683 Jy
! Component: 100  -  total flux cleaned = 0.210231 Jy
! Total flux subtracted in 100 components = 0.210231 Jy
! Clean residual min=-0.025153 max=0.033550 Jy/beam
! Clean residual mean=0.000197 rms=0.006943 Jy/beam
! Combined flux in latest and established models = 1.18231 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 10 components and 1.18231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.567374Jy  sigma=0.001658
! Fit after  self-cal, rms=0.567260Jy  sigma=0.001657
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 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
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.952 mas, bmaj=4.606 mas, bpa=-10 degrees
! Estimated noise=988.417 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0521617 Jy
! Component: 100  -  total flux cleaned = 0.0765691 Jy
! Component: 150  -  total flux cleaned = 0.0895592 Jy
! Component: 200  -  total flux cleaned = 0.0970777 Jy
! Total flux subtracted in 200 components = 0.0970777 Jy
! Clean residual min=-0.023740 max=0.036924 Jy/beam
! Clean residual mean=0.000786 rms=0.006946 Jy/beam
! Combined flux in latest and established models = 1.27939 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 27 components and 1.27939 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.565231Jy  sigma=0.001569
! Fit after  self-cal, rms=0.565062Jy  sigma=0.001569
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
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        0.98     FD        0.94     GG        1.00*    HN        0.84     
!   KK        1.22     KP        1.00*    LA        0.98     MA        1.10     
!   MC        1.04     MK        1.12     NL        0.86     ON        1.08     
!   OV        0.92     PT        0.95     SC        0.87     TC        1.04     
!   TS        1.00*    WF        1.06     WZ        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        1.03     GG        1.00*    HN        0.90     
!   KK        1.00*    KP        1.08     LA        1.09     MA        0.87     
!   MC        0.93     MK        1.00*    NL        1.00     ON        1.10     
!   OV        1.00*    PT        1.09     SC        0.92     TC        1.05     
!   TS        1.00*    WF        1.14     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     GG        1.00*    HN        0.96     
!   KK        1.26     KP        1.00*    LA        0.94     MA        1.05     
!   MC        1.02     MK        1.14     NL        0.88     ON        1.12     
!   OV        0.95     PT        0.94     SC        0.90     TC        1.05     
!   TS        1.00*    WF        1.02     WZ        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.17     FD        1.10     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.08     LA        1.05     MA        0.99     
!   MC        0.98     MK        1.00*    NL        1.05     ON        1.08     
!   OV        1.00*    PT        1.09     SC        0.92     TC        1.09     
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.93     GG        1.00*    HN        0.98     
!   KK        1.21     KP        1.00*    LA        0.94     MA        1.00     
!   MC        0.94     MK        1.09     NL        0.91     ON        1.10     
!   OV        0.94     PT        0.95     SC        1.00     TC        0.95     
!   TS        1.00*    WF        1.06     WZ        1.06     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        1.02     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.10     LA        1.03     MA        0.89     
!   MC        1.22     MK        1.00*    NL        1.06     ON        1.00     
!   OV        1.00*    PT        1.09     SC        1.07     TC        0.96     
!   TS        1.00*    WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.93     GG        1.00*    HN        0.83     
!   KK        1.20     KP        1.00*    LA        0.94     MA        1.06     
!   MC        1.02     MK        1.13     NL        0.85     ON        1.06     
!   OV        0.90     PT        0.91     SC        1.01     TC        0.94     
!   TS        1.00*    WF        1.10     WZ        1.02     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        1.04     GG        1.00*    HN        0.91     
!   KK        1.00*    KP        1.04     LA        1.07     MA        0.90     
!   MC        1.64     MK        1.00*    NL        0.99     ON        0.90     
!   OV        1.00*    PT        1.05     SC        1.07     TC        1.02     
!   TS        1.00*    WF        1.09     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.565062Jy  sigma=0.001569
! Fit after  self-cal, rms=0.580343Jy  sigma=0.001312
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.987 mas, bmaj=4.622 mas, bpa=-10.17 degrees
! Estimated noise=996.826 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-3.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.016849 Jy
! Component: 100  -  total flux cleaned = 0.0173684 Jy
! Component: 150  -  total flux cleaned = 0.0176707 Jy
! Component: 200  -  total flux cleaned = 0.0181058 Jy
! Total flux subtracted in 200 components = 0.0181058 Jy
! Clean residual min=-0.007126 max=0.009043 Jy/beam
! Clean residual mean=0.000665 rms=0.001855 Jy/beam
! Combined flux in latest and established models = 1.2975 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 42 components and 1.2975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.579652Jy  sigma=0.001304
! Fit after  self-cal, rms=0.579807Jy  sigma=0.001302
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.579807Jy  sigma=0.001302
! Fit after  self-cal, rms=0.576759Jy  sigma=0.001300
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.992 mas, bmaj=4.608 mas, bpa=-10.15 degrees
! Estimated noise=997.797 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00743762 Jy
! Component: 100  -  total flux cleaned = 0.00766469 Jy
! Component: 150  -  total flux cleaned = 0.00782405 Jy
! Component: 200  -  total flux cleaned = 0.00810011 Jy
! Total flux subtracted in 200 components = 0.00810011 Jy
! Clean residual min=-0.006256 max=0.007257 Jy/beam
! Clean residual mean=0.000483 rms=0.001561 Jy/beam
! Combined flux in latest and established models = 1.3056 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 52 components and 1.3056 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.576492Jy  sigma=0.001298
! Fit after  self-cal, rms=0.576428Jy  sigma=0.001297
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-12.5, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00645803 Jy
! Component: 100  -  total flux cleaned = 0.00860395 Jy
! Component: 150  -  total flux cleaned = 0.00906622 Jy
! Component: 200  -  total flux cleaned = 0.00960262 Jy
! Total flux subtracted in 200 components = 0.00960262 Jy
! Clean residual min=-0.005306 max=0.006476 Jy/beam
! Clean residual mean=0.000374 rms=0.001442 Jy/beam
! Combined flux in latest and established models = 1.3152 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 68 components and 1.3152 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.576262Jy  sigma=0.001295
! Fit after  self-cal, rms=0.576222Jy  sigma=0.001295
! Inverting map 
! Added new window around map position (-32.5, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00436161 Jy
! Component: 100  -  total flux cleaned = 0.00523592 Jy
! Component: 150  -  total flux cleaned = 0.00560413 Jy
! Component: 200  -  total flux cleaned = 0.00583226 Jy
! Total flux subtracted in 200 components = 0.00583226 Jy
! Clean residual min=-0.005003 max=0.006616 Jy/beam
! Clean residual mean=0.000313 rms=0.001387 Jy/beam
! Combined flux in latest and established models = 1.32103 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 74 components and 1.32103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.576053Jy  sigma=0.001294
! Fit after  self-cal, rms=0.576032Jy  sigma=0.001294
! Inverting map 
! Added new window around map position (28.5, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0050365 Jy
! Component: 100  -  total flux cleaned = 0.00595627 Jy
! Component: 150  -  total flux cleaned = 0.00654382 Jy
! Component: 200  -  total flux cleaned = 0.0069763 Jy
! Total flux subtracted in 200 components = 0.0069763 Jy
! Clean residual min=-0.005102 max=0.005240 Jy/beam
! Clean residual mean=0.000248 rms=0.001351 Jy/beam
! Combined flux in latest and established models = 1.32801 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 87 components and 1.32801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.575851Jy  sigma=0.001294
! Fit after  self-cal, rms=0.575849Jy  sigma=0.001294
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.575849Jy  sigma=0.001294
! Fit after  self-cal, rms=0.573043Jy  sigma=0.001292
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.996 mas, bmaj=4.593 mas, bpa=-10.16 degrees
! Estimated noise=998.792 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0037784 Jy
! Component: 100  -  total flux cleaned = 0.00438904 Jy
! Component: 150  -  total flux cleaned = 0.0043877 Jy
! Component: 200  -  total flux cleaned = 0.0042881 Jy
! Total flux subtracted in 200 components = 0.0042881 Jy
! Clean residual min=-0.005107 max=0.004391 Jy/beam
! Clean residual mean=0.000145 rms=0.001215 Jy/beam
! Combined flux in latest and established models = 1.3323 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 101 components and 1.3323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.572955Jy  sigma=0.001292
! Fit after  self-cal, rms=0.572944Jy  sigma=0.001292
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00087375 Jy
! Component: 100  -  total flux cleaned = 0.000967074 Jy
! Component: 150  -  total flux cleaned = 0.000965388 Jy
! Component: 200  -  total flux cleaned = 0.000964272 Jy
! Total flux subtracted in 200 components = 0.000964272 Jy
! Clean residual min=-0.005132 max=0.004316 Jy/beam
! Clean residual mean=0.000133 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 1.33326 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 107 components and 1.33326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.572871Jy  sigma=0.001291
! Fit after  self-cal, rms=0.572866Jy  sigma=0.001291
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.572866Jy  sigma=0.001291
! Fit after  self-cal, rms=0.571774Jy  sigma=0.001291
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.417 mas, bmaj=9.981 mas, bpa=-0.2574 degrees
! Estimated noise=1285.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00325745 Jy
! Component: 100  -  total flux cleaned = 0.00365449 Jy
! Component: 150  -  total flux cleaned = 0.00372652 Jy
! Component: 200  -  total flux cleaned = 0.00373081 Jy
! Total flux subtracted in 200 components = 0.00373081 Jy
! Clean residual min=-0.004361 max=0.005384 Jy/beam
! Clean residual mean=0.000183 rms=0.001476 Jy/beam
! Combined flux in latest and established models = 1.33699 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 122 components and 1.33699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.571750Jy  sigma=0.001291
! Fit after  self-cal, rms=0.571749Jy  sigma=0.001291
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000192282 Jy
! Component: 100  -  total flux cleaned = 0.000188231 Jy
! Component: 150  -  total flux cleaned = 0.000144045 Jy
! Component: 200  -  total flux cleaned = 6.67255e-05 Jy
! Total flux subtracted in 200 components = 6.67255e-05 Jy
! Clean residual min=-0.004333 max=0.005312 Jy/beam
! Clean residual mean=0.000181 rms=0.001464 Jy/beam
! Combined flux in latest and established models = 1.33706 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 130 components and 1.33706 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.571745Jy  sigma=0.001291
! Fit after  self-cal, rms=0.571742Jy  sigma=0.001291
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=1.998 mas, bmaj=4.587 mas, bpa=-10.16 degrees
! Estimated noise=999.674 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.998 x 4.587 at -10.16 degrees (North through East)
! Clean map  min=-0.0044727  max=0.95663 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  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
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.571742Jy  sigma=0.001291
! Fit after  self-cal, rms=1.255117Jy  sigma=0.001210
! Inverting map and beam 
! Estimated beam: bmin=1.995 mas, bmaj=4.563 mas, bpa=-10.3 degrees
! Estimated noise=998.312 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00182305 Jy
! Component: 100  -  total flux cleaned = 0.00151464 Jy
! Component: 150  -  total flux cleaned = 0.00133471 Jy
! Component: 200  -  total flux cleaned = 0.00124955 Jy
! Total flux subtracted in 200 components = 0.00124955 Jy
! Clean residual min=-0.004581 max=0.004180 Jy/beam
! Clean residual mean=0.000025 rms=0.001114 Jy/beam
! Combined flux in latest and established models = 1.33831 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 146 components and 1.33831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.255065Jy  sigma=0.001210
! Fit after  self-cal, rms=1.255231Jy  sigma=0.001210
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.29196e-05 Jy
! Component: 100  -  total flux cleaned = -0.000211084 Jy
! Component: 150  -  total flux cleaned = -0.000433668 Jy
! Component: 200  -  total flux cleaned = -0.00064454 Jy
! Total flux subtracted in 200 components = -0.00064454 Jy
! Clean residual min=-0.004615 max=0.004198 Jy/beam
! Clean residual mean=0.000031 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 1.33766 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 154 components and 1.33766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.255194Jy  sigma=0.001209
! Fit after  self-cal, rms=1.255244Jy  sigma=0.001209
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.255244Jy  sigma=0.001209
! Fit after  self-cal, rms=1.306478Jy  sigma=0.001209
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 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.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.723 mas, bmaj=3.704 mas, bpa=-9.206 degrees
! Estimated noise=1646.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.710762 Jy
! Component: 100  -  total flux cleaned = 0.973806 Jy
! Component: 150  -  total flux cleaned = 1.10617 Jy
! Component: 200  -  total flux cleaned = 1.17475 Jy
! Total flux subtracted in 200 components = 1.17475 Jy
! Clean residual min=-0.012529 max=0.033115 Jy/beam
! Clean residual mean=0.000328 rms=0.003847 Jy/beam
! Combined flux in latest and established models = 1.17475 Jy
uvw 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.
flux_cutoff = imstat(rms) * dynam
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.17475 Jy
! Inverting map and beam 
! Estimated beam: bmin=1.995 mas, bmaj=4.559 mas, bpa=-10.3 degrees
! Estimated noise=999.08 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0577281 Jy
! Component: 100  -  total flux cleaned = 0.0892836 Jy
! Component: 150  -  total flux cleaned = 0.108743 Jy
! Component: 200  -  total flux cleaned = 0.121291 Jy
! Total flux subtracted in 200 components = 0.121291 Jy
! Clean residual min=-0.005229 max=0.008373 Jy/beam
! Clean residual mean=0.000481 rms=0.001609 Jy/beam
! Combined flux in latest and established models = 1.29604 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 36 components and 1.29604 Jy
! Inverting map 
! Added new window around map position (-8.5, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00931045 Jy
! Component: 100  -  total flux cleaned = 0.0163361 Jy
! Component: 150  -  total flux cleaned = 0.0220572 Jy
! Component: 200  -  total flux cleaned = 0.0268195 Jy
! Total flux subtracted in 200 components = 0.0268195 Jy
! Clean residual min=-0.004806 max=0.004579 Jy/beam
! Clean residual mean=0.000191 rms=0.001229 Jy/beam
! Combined flux in latest and established models = 1.32286 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 55 components and 1.32286 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.412 mas, bmaj=9.98 mas, bpa=-0.2479 degrees
! Estimated noise=1288.01 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00644222 Jy
! Component: 100  -  total flux cleaned = 0.00990384 Jy
! Component: 150  -  total flux cleaned = 0.0116756 Jy
! Component: 200  -  total flux cleaned = 0.0127191 Jy
! Total flux subtracted in 200 components = 0.0127191 Jy
! Clean residual min=-0.004046 max=0.004065 Jy/beam
! Clean residual mean=0.000159 rms=0.001327 Jy/beam
! Combined flux in latest and established models = 1.33558 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000501941 Jy
! Component: 100  -  total flux cleaned = 0.000835412 Jy
! Component: 150  -  total flux cleaned = 0.00116433 Jy
! Component: 200  -  total flux cleaned = 0.00137824 Jy
! Total flux subtracted in 200 components = 0.00137824 Jy
! Clean residual min=-0.003957 max=0.004178 Jy/beam
! Clean residual mean=0.000114 rms=0.001313 Jy/beam
! Combined flux in latest and established models = 1.33696 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 113 components and 1.33696 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=1.995 mas, bmaj=4.559 mas, bpa=-10.3 degrees
! Estimated noise=999.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000869228 Jy
! Component: 100  -  total flux cleaned = -0.000993301 Jy
! Component: 150  -  total flux cleaned = -0.000872119 Jy
! Component: 200  -  total flux cleaned = -0.000761162 Jy
! Total flux subtracted in 200 components = -0.000761162 Jy
! Clean residual min=-0.004702 max=0.004638 Jy/beam
! Clean residual mean=0.000044 rms=0.001128 Jy/beam
! Combined flux in latest and established models = 1.3362 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 128 components and 1.3362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.306640Jy  sigma=0.001210
! Fit after  self-cal, rms=1.307177Jy  sigma=0.001210
wmodel J0854+2006_S_2003_05_07_pus_map.mod
! Writing 128 model components to file: J0854+2006_S_2003_05_07_pus_map.mod
wobs J0854+2006_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0854+2006_S_2003_05_07_pus_uvs.fits
wwins J0854+2006_S_2003_05_07_pus_map.win
! wwins: Wrote 6 windows to J0854+2006_S_2003_05_07_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00069107 Jy
! Component: 100  -  total flux cleaned = -0.00129827 Jy
! Component: 150  -  total flux cleaned = -0.00187962 Jy
! Component: 200  -  total flux cleaned = -0.00216214 Jy
! Component: 250  -  total flux cleaned = -0.002301 Jy
! Component: 300  -  total flux cleaned = -0.00243607 Jy
! Component: 350  -  total flux cleaned = -0.0025679 Jy
! Component: 400  -  total flux cleaned = -0.00269731 Jy
! Component: 450  -  total flux cleaned = -0.0028246 Jy
! Component: 500  -  total flux cleaned = -0.00294998 Jy
! Component: 550  -  total flux cleaned = -0.00276374 Jy
! Component: 600  -  total flux cleaned = -0.00258088 Jy
! Component: 650  -  total flux cleaned = -0.00246059 Jy
! Component: 700  -  total flux cleaned = -0.00251933 Jy
! Component: 750  -  total flux cleaned = -0.00234214 Jy
! Component: 800  -  total flux cleaned = -0.00228431 Jy
! Component: 850  -  total flux cleaned = -0.00216923 Jy
! Component: 900  -  total flux cleaned = -0.00222712 Jy
! Component: 950  -  total flux cleaned = -0.00211335 Jy
! Component: 1000  -  total flux cleaned = -0.00194551 Jy
! Component: 1050  -  total flux cleaned = -0.00205673 Jy
! Component: 1100  -  total flux cleaned = -0.00183662 Jy
! Component: 1150  -  total flux cleaned = -0.0019458 Jy
! Component: 1200  -  total flux cleaned = -0.00183663 Jy
! Component: 1250  -  total flux cleaned = -0.00172943 Jy
! Component: 1300  -  total flux cleaned = -0.00167599 Jy
! Component: 1350  -  total flux cleaned = -0.00162283 Jy
! Component: 1400  -  total flux cleaned = -0.0015175 Jy
! Component: 1450  -  total flux cleaned = -0.00130887 Jy
! Component: 1500  -  total flux cleaned = -0.0012058 Jy
! Component: 1550  -  total flux cleaned = -0.00105196 Jy
! Component: 1600  -  total flux cleaned = -0.00110345 Jy
! Component: 1650  -  total flux cleaned = -0.00105285 Jy
! Component: 1700  -  total flux cleaned = -0.000901677 Jy
! Component: 1750  -  total flux cleaned = -0.000901758 Jy
! Component: 1800  -  total flux cleaned = -0.000801818 Jy
! Component: 1850  -  total flux cleaned = -0.000752131 Jy
! Component: 1900  -  total flux cleaned = -0.000604626 Jy
! Component: 1950  -  total flux cleaned = -0.000604653 Jy
! Component: 2000  -  total flux cleaned = -0.000410176 Jy
! Total flux subtracted in 2048 components = -0.00036247 Jy
! Clean residual min=-0.002691 max=0.003279 Jy/beam
! Clean residual mean=0.000058 rms=0.000870 Jy/beam
! Combined flux in latest and established models = 1.33583 Jy
keep
! Adding 142 model components to the UV plane model.
! The established model now contains 270 components and 1.33583 Jy
wmap "J0854+2006_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.995 x 4.559 at -10.3 degrees (North through East)
! Clean map  min=-0.0035262  max=0.95539 Jy/beam
! Writing clean map to FITS file: J0854+2006_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.955385 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000866663 
device "J0854+2006_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0854+2006_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.27214 0.27214 0.544281 1.08856 2.17712 4.35425 8.7085 17.417 34.834 69.668
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.955 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.995 x 4.559 at -10.3 degrees (North through East)
! Clean map  min=-0.0035262  max=0.95539 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0854+2006_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0854+2006_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0854+2006_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 10:01:38 2006