! Started logfile: J1104+3812_S_2003_05_07_pus_uvs.log on Sun Dec 24 10:20:32 2006
obs J1104+3812_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1104+3812_S_2003_05_07_pus_uva.fits
! AN table 1: Unused.
! AN table 2: Unused.
! AN table 3: 17 integrations on 171 of 171 possible baselines.
! AN table 4: Unused.
! AN table 5: 81 integrations on 171 of 171 possible baselines.
! AN table 6: Unused.
! AN table 7: Unused.
! AN table 8: Unused.
! AN table 9: Unused.
! Apparent sampling: 0.127462 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1104+3812
! 
! 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 1676 lines of history.
! 
! Reading 8544 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 323 telescope corrections were flagged in sub-array 1.
!  A total of 955 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 323 telescope corrections were flagged in sub-array 1.
!  A total of 955 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 323 telescope corrections were flagged in sub-array 1.
!  A total of 955 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 323 telescope corrections were flagged in sub-array 1.
!  A total of 955 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.967241Jy  sigma=0.006662
! Fit after  self-cal, rms=0.866606Jy  sigma=0.006002
! 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=2.459 mas, bmaj=3.916 mas, bpa=1.782 degrees
! Estimated noise=1406.67 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.21256 Jy
! Component: 100  -  total flux cleaned = 0.265284 Jy
! Total flux subtracted in 100 components = 0.265284 Jy
! Clean residual min=-0.017926 max=0.026232 Jy/beam
! Clean residual mean=0.000518 rms=0.005683 Jy/beam
! Combined flux in latest and established models = 0.265284 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.265284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.527145Jy  sigma=0.001573
! Fit after  self-cal, rms=0.527130Jy  sigma=0.001573
! 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=3.769 mas, bmaj=4.591 mas, bpa=20.8 degrees
! Estimated noise=961.558 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.0462467 Jy
! Component: 100  -  total flux cleaned = 0.0650557 Jy
! Component: 150  -  total flux cleaned = 0.0736013 Jy
! Component: 200  -  total flux cleaned = 0.0774753 Jy
! Total flux subtracted in 200 components = 0.0774753 Jy
! Clean residual min=-0.012861 max=0.018170 Jy/beam
! Clean residual mean=0.001565 rms=0.005335 Jy/beam
! Combined flux in latest and established models = 0.34276 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 16 components and 0.34276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.523288Jy  sigma=0.001485
! Fit after  self-cal, rms=0.523376Jy  sigma=0.001484
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.94     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.01     LA        0.97     MA        1.00*    
!   MC        0.90     MK        1.00*    NL        1.00     ON        1.00*    
!   OV        1.31     PT        0.97     SC        0.93     TC        1.00*    
!   TS        1.00*    WF        1.18     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        0.98     LA        0.95     MA        1.00*    
!   MC        0.94     MK        1.00*    NL        0.99     ON        1.00*    
!   OV        1.37     PT        0.94     SC        0.94     TC        1.00*    
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.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.95     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        0.98     LA        0.94     MA        1.00*    
!   MC        0.88     MK        1.00*    NL        1.01     ON        1.00*    
!   OV        1.25     PT        0.98     SC        1.05     TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.93     GG        1.00*    HN        1.74     
!   KK        1.00*    KP        0.99     LA        0.94     MA        1.00*    
!   MC        1.05     MK        1.00*    NL        0.99     ON        1.00*    
!   OV        1.26     PT        0.93     SC        1.08     TC        1.00*    
!   TS        1.00*    WF        1.13     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.523376Jy  sigma=0.001484
! Fit after  self-cal, rms=0.751596Jy  sigma=0.001450
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.724 mas, bmaj=4.548 mas, bpa=16.84 degrees
! Estimated noise=968.853 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.00321407 Jy
! Component: 100  -  total flux cleaned = 0.00372625 Jy
! Component: 150  -  total flux cleaned = 0.00400025 Jy
! Component: 200  -  total flux cleaned = 0.00419658 Jy
! Total flux subtracted in 200 components = 0.00419658 Jy
! Clean residual min=-0.011866 max=0.015969 Jy/beam
! Clean residual mean=0.000757 rms=0.004494 Jy/beam
! Combined flux in latest and established models = 0.346956 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 28 components and 0.346956 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.751407Jy  sigma=0.001450
! Fit after  self-cal, rms=0.752504Jy  sigma=0.001449
! 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.752504Jy  sigma=0.001449
! Fit after  self-cal, rms=0.648277Jy  sigma=0.001429
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.73 mas, bmaj=4.541 mas, bpa=15.8 degrees
! Estimated noise=980.363 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161897 Jy
! Component: 100  -  total flux cleaned = 0.00208026 Jy
! Component: 150  -  total flux cleaned = 0.00239957 Jy
! Component: 200  -  total flux cleaned = 0.00262825 Jy
! Total flux subtracted in 200 components = 0.00262825 Jy
! Clean residual min=-0.009854 max=0.014767 Jy/beam
! Clean residual mean=0.000702 rms=0.003841 Jy/beam
! Combined flux in latest and established models = 0.349585 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 35 components and 0.349585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.648126Jy  sigma=0.001429
! Fit after  self-cal, rms=0.647947Jy  sigma=0.001429
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.000106136 Jy
! Component: 100  -  total flux cleaned = 6.97005e-05 Jy
! Component: 150  -  total flux cleaned = 0.000133393 Jy
! Component: 200  -  total flux cleaned = 0.000132731 Jy
! Total flux subtracted in 200 components = 0.000132731 Jy
! Clean residual min=-0.009948 max=0.014897 Jy/beam
! Clean residual mean=0.000700 rms=0.003864 Jy/beam
! Combined flux in latest and established models = 0.349717 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 37 components and 0.349717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.647899Jy  sigma=0.001429
! Fit after  self-cal, rms=0.647897Jy  sigma=0.001429
! 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.647897Jy  sigma=0.001429
! Fit after  self-cal, rms=0.599147Jy  sigma=0.001427
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.744 mas, bmaj=4.551 mas, bpa=15.78 degrees
! Estimated noise=984.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000292032 Jy
! Component: 100  -  total flux cleaned = -0.000123875 Jy
! Component: 150  -  total flux cleaned = -0.000125787 Jy
! Component: 200  -  total flux cleaned = -0.000125518 Jy
! Total flux subtracted in 200 components = -0.000125518 Jy
! Clean residual min=-0.009539 max=0.014587 Jy/beam
! Clean residual mean=0.000748 rms=0.003833 Jy/beam
! Combined flux in latest and established models = 0.349592 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 38 components and 0.349592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599104Jy  sigma=0.001427
! Fit after  self-cal, rms=0.598949Jy  sigma=0.001427
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 = 3.53931e-05 Jy
! Component: 100  -  total flux cleaned = 6.87644e-05 Jy
! Component: 150  -  total flux cleaned = 1.41176e-05 Jy
! Component: 200  -  total flux cleaned = -3.74383e-05 Jy
! Total flux subtracted in 200 components = -3.74383e-05 Jy
! Clean residual min=-0.009618 max=0.014652 Jy/beam
! Clean residual mean=0.000748 rms=0.003851 Jy/beam
! Combined flux in latest and established models = 0.349554 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 41 components and 0.349554 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.598929Jy  sigma=0.001427
! Fit after  self-cal, rms=0.598928Jy  sigma=0.001427
! 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.598928Jy  sigma=0.001427
! Fit after  self-cal, rms=0.599822Jy  sigma=0.001427
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.958 mas, bmaj=11.02 mas, bpa=-89.91 degrees
! Estimated noise=1183.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000313693 Jy
! Component: 100  -  total flux cleaned = 0.000319529 Jy
! Component: 150  -  total flux cleaned = 0.00032192 Jy
! Component: 200  -  total flux cleaned = 0.000271858 Jy
! Total flux subtracted in 200 components = 0.000271858 Jy
! Clean residual min=-0.012525 max=0.019582 Jy/beam
! Clean residual mean=0.001427 rms=0.006567 Jy/beam
! Combined flux in latest and established models = 0.349826 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 43 components and 0.349826 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599796Jy  sigma=0.001427
! Fit after  self-cal, rms=0.599795Jy  sigma=0.001427
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 = -5.29055e-05 Jy
! Component: 100  -  total flux cleaned = -5.03939e-05 Jy
! Component: 150  -  total flux cleaned = -7.47987e-05 Jy
! Component: 200  -  total flux cleaned = -9.76874e-05 Jy
! Total flux subtracted in 200 components = -9.76874e-05 Jy
! Clean residual min=-0.012534 max=0.019579 Jy/beam
! Clean residual mean=0.001429 rms=0.006567 Jy/beam
! Combined flux in latest and established models = 0.349728 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 44 components and 0.349728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599784Jy  sigma=0.001427
! Fit after  self-cal, rms=0.599790Jy  sigma=0.001427
! 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=3.746 mas, bmaj=4.56 mas, bpa=15.43 degrees
! Estimated noise=988.768 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.746 x 4.56 at 15.43 degrees (North through East)
! Clean map  min=-0.0094337  max=0.30366 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
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=2.394 mas, bmaj=3.855 mas, bpa=0.161 degrees
! Estimated noise=1496.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.224844 Jy
! Component: 100  -  total flux cleaned = 0.285506 Jy
! Component: 150  -  total flux cleaned = 0.316031 Jy
! Component: 200  -  total flux cleaned = 0.332609 Jy
! Total flux subtracted in 200 components = 0.332609 Jy
! Clean residual min=-0.011132 max=0.012951 Jy/beam
! Clean residual mean=0.000319 rms=0.003326 Jy/beam
! Combined flux in latest and established models = 0.332609 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 22 model components to the UV plane model.
! The established model now contains 22 components and 0.332609 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.746 mas, bmaj=4.56 mas, bpa=15.43 degrees
! Estimated noise=988.768 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.0115762 Jy
! Component: 100  -  total flux cleaned = 0.016225 Jy
! Component: 150  -  total flux cleaned = 0.016637 Jy
! Component: 200  -  total flux cleaned = 0.0170244 Jy
! Total flux subtracted in 200 components = 0.0170244 Jy
! Clean residual min=-0.009732 max=0.014576 Jy/beam
! Clean residual mean=0.000752 rms=0.003881 Jy/beam
! Combined flux in latest and established models = 0.349633 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 31 components and 0.349633 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=8.958 mas, bmaj=11.02 mas, bpa=-89.91 degrees
! Estimated noise=1183.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000671087 Jy
! Component: 100  -  total flux cleaned = 0.0006184 Jy
! Component: 150  -  total flux cleaned = 0.000496522 Jy
! Component: 200  -  total flux cleaned = 0.000426988 Jy
! Total flux subtracted in 200 components = 0.000426988 Jy
! Clean residual min=-0.012510 max=0.019543 Jy/beam
! Clean residual mean=0.001413 rms=0.006581 Jy/beam
! Combined flux in latest and established models = 0.35006 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 = -8.97301e-05 Jy
! Component: 100  -  total flux cleaned = -0.000163243 Jy
! Component: 150  -  total flux cleaned = -0.000204141 Jy
! Component: 200  -  total flux cleaned = -0.000240806 Jy
! Total flux subtracted in 200 components = -0.000240806 Jy
! Clean residual min=-0.012484 max=0.019522 Jy/beam
! Clean residual mean=0.001424 rms=0.006564 Jy/beam
! Combined flux in latest and established models = 0.349819 Jy
! Adding 8 model components to the UV plane model.
! The established model now contains 34 components and 0.349819 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.746 mas, bmaj=4.56 mas, bpa=15.43 degrees
! Estimated noise=988.768 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000140079 Jy
! Component: 100  -  total flux cleaned = 6.02631e-05 Jy
! Component: 150  -  total flux cleaned = -4.0141e-05 Jy
! Component: 200  -  total flux cleaned = -4.01681e-05 Jy
! Total flux subtracted in 200 components = -4.01681e-05 Jy
! Clean residual min=-0.009687 max=0.014639 Jy/beam
! Clean residual mean=0.000748 rms=0.003862 Jy/beam
! Combined flux in latest and established models = 0.349779 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 39 components and 0.349779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599799Jy  sigma=0.001427
! Fit after  self-cal, rms=0.599805Jy  sigma=0.001427
wmodel J1104+3812_S_2003_05_07_pus_map.mod
! Writing 39 model components to file: J1104+3812_S_2003_05_07_pus_map.mod
wobs J1104+3812_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1104+3812_S_2003_05_07_pus_uvs.fits
wwins J1104+3812_S_2003_05_07_pus_map.win
! wwins: Wrote 1 windows to J1104+3812_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.00621796 Jy
! Component: 100  -  total flux cleaned = 0.0113204 Jy
! Component: 150  -  total flux cleaned = 0.0153209 Jy
! Component: 200  -  total flux cleaned = 0.0182981 Jy
! Component: 250  -  total flux cleaned = 0.0210349 Jy
! Component: 300  -  total flux cleaned = 0.023567 Jy
! Component: 350  -  total flux cleaned = 0.0255246 Jy
! Component: 400  -  total flux cleaned = 0.0273601 Jy
! Component: 450  -  total flux cleaned = 0.0288607 Jy
! Component: 500  -  total flux cleaned = 0.0303953 Jy
! Component: 550  -  total flux cleaned = 0.0320695 Jy
! Component: 600  -  total flux cleaned = 0.0337723 Jy
! Component: 650  -  total flux cleaned = 0.0353114 Jy
! Component: 700  -  total flux cleaned = 0.036979 Jy
! Component: 750  -  total flux cleaned = 0.0383215 Jy
! Component: 800  -  total flux cleaned = 0.0393635 Jy
! Component: 850  -  total flux cleaned = 0.0404567 Jy
! Component: 900  -  total flux cleaned = 0.0412722 Jy
! Component: 950  -  total flux cleaned = 0.0421433 Jy
! Component: 1000  -  total flux cleaned = 0.0429138 Jy
! Component: 1050  -  total flux cleaned = 0.043739 Jy
! Component: 1100  -  total flux cleaned = 0.0440322 Jy
! Component: 1150  -  total flux cleaned = 0.0441769 Jy
! Component: 1200  -  total flux cleaned = 0.0443197 Jy
! Component: 1250  -  total flux cleaned = 0.0446648 Jy
! Component: 1300  -  total flux cleaned = 0.0447332 Jy
! Component: 1350  -  total flux cleaned = 0.044932 Jy
! Component: 1400  -  total flux cleaned = 0.0449323 Jy
! Component: 1450  -  total flux cleaned = 0.0452503 Jy
! Component: 1500  -  total flux cleaned = 0.0454372 Jy
! Component: 1550  -  total flux cleaned = 0.0456827 Jy
! Component: 1600  -  total flux cleaned = 0.0459236 Jy
! Component: 1650  -  total flux cleaned = 0.0459832 Jy
! Component: 1700  -  total flux cleaned = 0.0462187 Jy
! Component: 1750  -  total flux cleaned = 0.0464502 Jy
! Component: 1800  -  total flux cleaned = 0.0467365 Jy
! Component: 1850  -  total flux cleaned = 0.0470758 Jy
! Component: 1900  -  total flux cleaned = 0.0473539 Jy
! Component: 1950  -  total flux cleaned = 0.0475199 Jy
! Component: 2000  -  total flux cleaned = 0.0477935 Jy
! Total flux subtracted in 2048 components = 0.0480633 Jy
! Clean residual min=-0.002878 max=0.002839 Jy/beam
! Clean residual mean=0.000123 rms=0.001170 Jy/beam
! Combined flux in latest and established models = 0.397842 Jy
keep
! Adding 168 model components to the UV plane model.
! The established model now contains 207 components and 0.397842 Jy
wmap "J1104+3812_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.746 x 4.56 at 15.43 degrees (North through East)
! Clean map  min=-0.0052172  max=0.30591 Jy/beam
! Writing clean map to FITS file: J1104+3812_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.305905 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00117317 
device "J1104+3812_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1104+3812_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.15052 1.15052 2.30104 4.60208 9.20417 18.4083 36.8167 73.6333
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0035 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.305 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.746 x 4.56 at 15.43 degrees (North through East)
! Clean map  min=-0.0052172  max=0.30591 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1104+3812_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1104+3812_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1104+3812_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 10:21:26 2006