! Started logfile: J0501-0159_S_2003_05_07_pus_uvs.log on Fri Dec 22 23:40:30 2006
obs J0501-0159_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0501-0159_S_2003_05_07_pus_uva.fits
! AN table 1: 19 integrations on 171 of 171 possible baselines.
! AN table 2: 92 integrations on 171 of 171 possible baselines.
! AN table 3: 27 integrations on 171 of 171 possible baselines.
! AN table 4: 32 integrations on 171 of 171 possible baselines.
! AN table 5: 45 integrations on 171 of 171 possible baselines.
! AN table 6: 44 integrations on 171 of 171 possible baselines.
! AN table 7: Unused.
! AN table 8: Unused.
! AN table 9: Unused.
! Apparent sampling: 0.0597214 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0501-0159
! 
! 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 10580 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 289 telescope corrections were flagged in sub-array 1.
!  A total of 1289 telescope corrections were flagged in sub-array 2.
!  A total of 492 telescope corrections were flagged in sub-array 3.
!  A total of 418 telescope corrections were flagged in sub-array 4.
!  A total of 658 telescope corrections were flagged in sub-array 5.
!  A total of 751 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 289 telescope corrections were flagged in sub-array 1.
!  A total of 1353 telescope corrections were flagged in sub-array 2.
!  A total of 492 telescope corrections were flagged in sub-array 3.
!  A total of 418 telescope corrections were flagged in sub-array 4.
!  A total of 659 telescope corrections were flagged in sub-array 5.
!  A total of 785 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 289 telescope corrections were flagged in sub-array 1.
!  A total of 1354 telescope corrections were flagged in sub-array 2.
!  A total of 492 telescope corrections were flagged in sub-array 3.
!  A total of 418 telescope corrections were flagged in sub-array 4.
!  A total of 656 telescope corrections were flagged in sub-array 5.
!  A total of 785 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 289 telescope corrections were flagged in sub-array 1.
!  A total of 1292 telescope corrections were flagged in sub-array 2.
!  A total of 492 telescope corrections were flagged in sub-array 3.
!  A total of 418 telescope corrections were flagged in sub-array 4.
!  A total of 656 telescope corrections were flagged in sub-array 5.
!  A total of 751 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.825861Jy  sigma=0.005744
! Fit after  self-cal, rms=0.643746Jy  sigma=0.004461
! 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.992 mas, bmaj=7.215 mas, bpa=-3.019 degrees
! Estimated noise=1581.86 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.316343 Jy
! Component: 100  -  total flux cleaned = 0.419719 Jy
! Total flux subtracted in 100 components = 0.419719 Jy
! Clean residual min=-0.026120 max=0.086861 Jy/beam
! Clean residual mean=0.001065 rms=0.007953 Jy/beam
! Combined flux in latest and established models = 0.419719 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.419719 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393411Jy  sigma=0.001989
! Fit after  self-cal, rms=0.392966Jy  sigma=0.001986
! Inverting map 
! Added new window around map position (-4, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0796847 Jy
! Component: 100  -  total flux cleaned = 0.122679 Jy
! Total flux subtracted in 100 components = 0.122679 Jy
! Clean residual min=-0.016227 max=0.046869 Jy/beam
! Clean residual mean=0.000717 rms=0.005113 Jy/beam
! Combined flux in latest and established models = 0.542398 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 20 components and 0.542398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364302Jy  sigma=0.001616
! Fit after  self-cal, rms=0.362008Jy  sigma=0.001597
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0363164 Jy
! Component: 100  -  total flux cleaned = 0.056781 Jy
! Total flux subtracted in 100 components = 0.056781 Jy
! Clean residual min=-0.013410 max=0.026226 Jy/beam
! Clean residual mean=0.000561 rms=0.003856 Jy/beam
! Combined flux in latest and established models = 0.599179 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 27 components and 0.599179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354608Jy  sigma=0.001483
! Fit after  self-cal, rms=0.353930Jy  sigma=0.001479
! 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=2.714 mas, bmaj=9.224 mas, bpa=-5.961 degrees
! Estimated noise=992.383 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.0408362 Jy
! Component: 100  -  total flux cleaned = 0.0627805 Jy
! Component: 150  -  total flux cleaned = 0.076432 Jy
! Component: 200  -  total flux cleaned = 0.0851179 Jy
! Total flux subtracted in 200 components = 0.0851179 Jy
! Clean residual min=-0.009536 max=0.017762 Jy/beam
! Clean residual mean=0.001543 rms=0.004063 Jy/beam
! Combined flux in latest and established models = 0.684297 Jy
! Performing phase self-cal
! Adding 71 model components to the UV plane model.
! The established model now contains 89 components and 0.684297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349978Jy  sigma=0.001404
! Fit after  self-cal, rms=0.349405Jy  sigma=0.001401
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.94     
!   MC        0.89     MK        1.00*    NL        1.00*    ON        1.07     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.11     WF        1.00*    WZ        0.98     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.23     GG        1.00*    HN        1.00*    
!   KK        0.98     KP        0.91     LA        1.02     MA        1.11     
!   MC        1.06     MK        0.96     NL        1.00*    ON        1.06     
!   OV        1.11     PT        1.15     SC        1.00*    TC        1.00*    
!   TS        1.01     WF        1.00*    WZ        1.04     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.02     GG        1.00*    HN        0.89     
!   KK        1.00*    KP        1.00     LA        1.03     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.02     ON        1.00*    
!   OV        1.01     PT        0.99     SC        0.97     TC        1.00*    
!   TS        1.00*    WF        0.93     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.98     GG        1.00*    HN        0.93     
!   KK        1.45     KP        0.95     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        0.98     NL        1.00*    ON        1.00*    
!   OV        0.93     PT        0.96     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.18     WZ        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.03     KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        0.98     NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.09     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.01     
!   MC        0.91     MK        1.00*    NL        1.00*    ON        1.08     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.08     WF        1.00*    WZ        1.02     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.08     GG        1.00*    HN        1.00*    
!   KK        0.99     KP        0.91     LA        0.95     MA        1.06     
!   MC        1.03     MK        1.01     NL        1.00*    ON        0.99     
!   OV        1.13     PT        0.94     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.89     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        1.04     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        1.01     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.08     ON        1.00*    
!   OV        0.99     PT        1.02     SC        0.97     TC        1.00*    
!   TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        1.04     GG        1.00*    HN        1.00     
!   KK        0.93     KP        0.96     LA        0.92     MA        1.00*    
!   MC        1.00*    MK        1.07     NL        1.00*    ON        1.00*    
!   OV        0.97     PT        0.95     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.92     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.87     
!   MC        0.87     MK        1.00*    NL        1.00*    ON        1.11     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.26     WF        1.00*    WZ        1.03     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GG        1.00*    HN        1.00*    
!   KK        1.00     KP        0.95     LA        0.91     MA        1.27     
!   MC        0.86     MK        0.95     NL        1.00*    ON        1.29     
!   OV        1.05     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.17     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.01     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        0.97     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.09     ON        1.00*    
!   OV        0.99     PT        1.06     SC        1.13     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.03     GG        1.00*    HN        0.96     
!   KK        1.91     KP        0.97     LA        0.92     MA        1.00*    
!   MC        1.00*    MK        1.05     NL        1.00*    ON        1.00*    
!   OV        0.86     PT        0.96     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.83     
!   MC        1.16     MK        1.00*    NL        1.00*    ON        0.99     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.01     WF        1.00*    WZ        1.15     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GG        1.00*    HN        1.00*    
!   KK        1.08     KP        0.90     LA        0.94     MA        1.14     
!   MC        1.10     MK        1.00     NL        1.00*    ON        0.91     
!   OV        1.11     PT        0.93     SC        1.00*    TC        1.00*    
!   TS        0.99     WF        1.00*    WZ        1.18     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.97     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.05     LA        1.03     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.97     ON        1.00*    
!   OV        1.02     PT        0.93     SC        1.08     TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.00     GG        1.00*    HN        0.89     
!   KK        1.52     KP        0.92     LA        0.93     MA        1.00*    
!   MC        1.00*    MK        1.05     NL        1.00*    ON        1.00*    
!   OV        1.02     PT        0.92     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.11     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        0.97     KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        0.95     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.349405Jy  sigma=0.001401
! Fit after  self-cal, rms=0.467247Jy  sigma=0.001364
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.78 mas, bmaj=9.525 mas, bpa=-6.058 degrees
! Estimated noise=1008.43 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.00549775 Jy
! Component: 100  -  total flux cleaned = 0.00551106 Jy
! Component: 150  -  total flux cleaned = 0.00521291 Jy
! Component: 200  -  total flux cleaned = 0.00509012 Jy
! Total flux subtracted in 200 components = 0.00509012 Jy
! Clean residual min=-0.005775 max=0.011391 Jy/beam
! Clean residual mean=0.001248 rms=0.002470 Jy/beam
! Combined flux in latest and established models = 0.689387 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 106 components and 0.689387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.467130Jy  sigma=0.001361
! Fit after  self-cal, rms=0.467818Jy  sigma=0.001361
! 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.467818Jy  sigma=0.001361
! Fit after  self-cal, rms=0.476286Jy  sigma=0.001359
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.777 mas, bmaj=9.521 mas, bpa=-6.05 degrees
! Estimated noise=1011.38 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00372805 Jy
! Component: 100  -  total flux cleaned = 0.00425101 Jy
! Component: 150  -  total flux cleaned = 0.00425086 Jy
! Component: 200  -  total flux cleaned = 0.00415772 Jy
! Total flux subtracted in 200 components = 0.00415772 Jy
! Clean residual min=-0.005965 max=0.011582 Jy/beam
! Clean residual mean=0.001196 rms=0.002421 Jy/beam
! Combined flux in latest and established models = 0.693545 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 116 components and 0.693545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476202Jy  sigma=0.001358
! Fit after  self-cal, rms=0.476152Jy  sigma=0.001358
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 (-16, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113576 Jy
! Component: 100  -  total flux cleaned = 0.0153006 Jy
! Component: 150  -  total flux cleaned = 0.0170199 Jy
! Component: 200  -  total flux cleaned = 0.0176222 Jy
! Total flux subtracted in 200 components = 0.0176222 Jy
! Clean residual min=-0.005965 max=0.008459 Jy/beam
! Clean residual mean=0.000905 rms=0.002029 Jy/beam
! Combined flux in latest and established models = 0.711167 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 144 components and 0.711167 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.475933Jy  sigma=0.001351
! Fit after  self-cal, rms=0.475609Jy  sigma=0.001350
! 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.475609Jy  sigma=0.001350
! Fit after  self-cal, rms=0.518444Jy  sigma=0.001311
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.765 mas, bmaj=9.518 mas, bpa=-5.965 degrees
! Estimated noise=1012.68 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.007895 Jy
! Component: 100  -  total flux cleaned = 0.0124177 Jy
! Component: 150  -  total flux cleaned = 0.0138939 Jy
! Component: 200  -  total flux cleaned = 0.0142288 Jy
! Total flux subtracted in 200 components = 0.0142288 Jy
! Clean residual min=-0.004833 max=0.006752 Jy/beam
! Clean residual mean=0.000747 rms=0.001608 Jy/beam
! Combined flux in latest and established models = 0.725396 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 168 components and 0.725396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.518287Jy  sigma=0.001307
! Fit after  self-cal, rms=0.519946Jy  sigma=0.001306
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.00198186 Jy
! Component: 100  -  total flux cleaned = 0.00252304 Jy
! Component: 150  -  total flux cleaned = 0.00280428 Jy
! Component: 200  -  total flux cleaned = 0.00313686 Jy
! Total flux subtracted in 200 components = 0.00313686 Jy
! Clean residual min=-0.004591 max=0.006319 Jy/beam
! Clean residual mean=0.000698 rms=0.001578 Jy/beam
! Combined flux in latest and established models = 0.728532 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 180 components and 0.728532 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.519887Jy  sigma=0.001305
! Fit after  self-cal, rms=0.519877Jy  sigma=0.001305
! 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.519877Jy  sigma=0.001305
! Fit after  self-cal, rms=0.616302Jy  sigma=0.001304
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.861 mas, bmaj=13.21 mas, bpa=-6.892 degrees
! Estimated noise=1302.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00769296 Jy
! Component: 100  -  total flux cleaned = 0.0106747 Jy
! Component: 150  -  total flux cleaned = 0.0111893 Jy
! Component: 200  -  total flux cleaned = 0.0112498 Jy
! Total flux subtracted in 200 components = 0.0112498 Jy
! Clean residual min=-0.003175 max=0.007017 Jy/beam
! Clean residual mean=0.001237 rms=0.001753 Jy/beam
! Combined flux in latest and established models = 0.739782 Jy
selfcal
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 210 components and 0.739782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.616292Jy  sigma=0.001304
! Fit after  self-cal, rms=0.616624Jy  sigma=0.001303
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.00119587 Jy
! Component: 100  -  total flux cleaned = 0.00141662 Jy
! Component: 150  -  total flux cleaned = 0.00153978 Jy
! Component: 200  -  total flux cleaned = 0.00159154 Jy
! Total flux subtracted in 200 components = 0.00159154 Jy
! Clean residual min=-0.003026 max=0.006724 Jy/beam
! Clean residual mean=0.001189 rms=0.001749 Jy/beam
! Combined flux in latest and established models = 0.741374 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 220 components and 0.741374 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.616627Jy  sigma=0.001303
! Fit after  self-cal, rms=0.616601Jy  sigma=0.001303
! 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=2.763 mas, bmaj=9.524 mas, bpa=-5.946 degrees
! Estimated noise=1013.67 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.763 x 9.524 at -5.946 degrees (North through East)
! Clean map  min=-0.0056207  max=0.42621 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.026 mas, bmaj=7.322 mas, bpa=-2.958 degrees
! Estimated noise=1664.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.322526 Jy
! Component: 100  -  total flux cleaned = 0.455849 Jy
! Component: 150  -  total flux cleaned = 0.53101 Jy
! Component: 200  -  total flux cleaned = 0.576479 Jy
! Total flux subtracted in 200 components = 0.576479 Jy
! Clean residual min=-0.011537 max=0.024278 Jy/beam
! Clean residual mean=0.000640 rms=0.003734 Jy/beam
! Combined flux in latest and established models = 0.576479 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 26 model components to the UV plane model.
! The established model now contains 26 components and 0.576479 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.763 mas, bmaj=9.524 mas, bpa=-5.946 degrees
! Estimated noise=1013.67 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.0552557 Jy
! Component: 100  -  total flux cleaned = 0.0866997 Jy
! Component: 150  -  total flux cleaned = 0.107234 Jy
! Component: 200  -  total flux cleaned = 0.121589 Jy
! Total flux subtracted in 200 components = 0.121589 Jy
! Clean residual min=-0.005798 max=0.013006 Jy/beam
! Clean residual mean=0.001296 rms=0.002519 Jy/beam
! Combined flux in latest and established models = 0.698069 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 86 components and 0.698069 Jy
! Inverting map 
! Added new window around map position (-9.5, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0125263 Jy
! Component: 100  -  total flux cleaned = 0.0206875 Jy
! Component: 150  -  total flux cleaned = 0.0267444 Jy
! Component: 200  -  total flux cleaned = 0.0312973 Jy
! Total flux subtracted in 200 components = 0.0312973 Jy
! Clean residual min=-0.004057 max=0.006058 Jy/beam
! Clean residual mean=0.000787 rms=0.001462 Jy/beam
! Combined flux in latest and established models = 0.729366 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 120 components and 0.729366 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.861 mas, bmaj=13.21 mas, bpa=-6.892 degrees
! Estimated noise=1302.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00567638 Jy
! Component: 100  -  total flux cleaned = 0.00885539 Jy
! Component: 150  -  total flux cleaned = 0.00981164 Jy
! Component: 200  -  total flux cleaned = 0.0103429 Jy
! Total flux subtracted in 200 components = 0.0103429 Jy
! Clean residual min=-0.002954 max=0.006589 Jy/beam
! Clean residual mean=0.001244 rms=0.001666 Jy/beam
! Combined flux in latest and established models = 0.739709 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.000215544 Jy
! Component: 100  -  total flux cleaned = 0.000313306 Jy
! Component: 150  -  total flux cleaned = 0.000359909 Jy
! Component: 200  -  total flux cleaned = 0.000495682 Jy
! Total flux subtracted in 200 components = 0.000495682 Jy
! Clean residual min=-0.002845 max=0.006417 Jy/beam
! Clean residual mean=0.001228 rms=0.001661 Jy/beam
! Combined flux in latest and established models = 0.740205 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 145 components and 0.740205 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.763 mas, bmaj=9.524 mas, bpa=-5.946 degrees
! Estimated noise=1013.67 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00193613 Jy
! Component: 100  -  total flux cleaned = -0.00210554 Jy
! Component: 150  -  total flux cleaned = -0.00210888 Jy
! Component: 200  -  total flux cleaned = -0.00211135 Jy
! Total flux subtracted in 200 components = -0.00211135 Jy
! Clean residual min=-0.003652 max=0.005815 Jy/beam
! Clean residual mean=0.000647 rms=0.001349 Jy/beam
! Combined flux in latest and established models = 0.738093 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 163 components and 0.738093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.616500Jy  sigma=0.001301
! Fit after  self-cal, rms=0.616198Jy  sigma=0.001300
wmodel J0501-0159_S_2003_05_07_pus_map.mod
! Writing 163 model components to file: J0501-0159_S_2003_05_07_pus_map.mod
wobs J0501-0159_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0501-0159_S_2003_05_07_pus_uvs.fits
wwins J0501-0159_S_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J0501-0159_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.00244118 Jy
! Component: 100  -  total flux cleaned = 0.00468848 Jy
! Component: 150  -  total flux cleaned = 0.00681332 Jy
! Component: 200  -  total flux cleaned = 0.00883589 Jy
! Component: 250  -  total flux cleaned = 0.0107661 Jy
! Component: 300  -  total flux cleaned = 0.0126176 Jy
! Component: 350  -  total flux cleaned = 0.0143969 Jy
! Component: 400  -  total flux cleaned = 0.0159773 Jy
! Component: 450  -  total flux cleaned = 0.0175093 Jy
! Component: 500  -  total flux cleaned = 0.0189407 Jy
! Component: 550  -  total flux cleaned = 0.0202768 Jy
! Component: 600  -  total flux cleaned = 0.0214616 Jy
! Component: 650  -  total flux cleaned = 0.0226843 Jy
! Component: 700  -  total flux cleaned = 0.0238232 Jy
! Component: 750  -  total flux cleaned = 0.0249988 Jy
! Component: 800  -  total flux cleaned = 0.0261538 Jy
! Component: 850  -  total flux cleaned = 0.027232 Jy
! Component: 900  -  total flux cleaned = 0.0282926 Jy
! Component: 950  -  total flux cleaned = 0.0293902 Jy
! Component: 1000  -  total flux cleaned = 0.0304153 Jy
! Component: 1050  -  total flux cleaned = 0.0314237 Jy
! Component: 1100  -  total flux cleaned = 0.0323645 Jy
! Component: 1150  -  total flux cleaned = 0.0332903 Jy
! Component: 1200  -  total flux cleaned = 0.0341017 Jy
! Component: 1250  -  total flux cleaned = 0.0349015 Jy
! Component: 1300  -  total flux cleaned = 0.0355434 Jy
! Component: 1350  -  total flux cleaned = 0.0362748 Jy
! Component: 1400  -  total flux cleaned = 0.0370921 Jy
! Component: 1450  -  total flux cleaned = 0.0376616 Jy
! Component: 1500  -  total flux cleaned = 0.038225 Jy
! Component: 1550  -  total flux cleaned = 0.0388291 Jy
! Component: 1600  -  total flux cleaned = 0.039472 Jy
! Component: 1650  -  total flux cleaned = 0.040062 Jy
! Component: 1700  -  total flux cleaned = 0.0405566 Jy
! Component: 1750  -  total flux cleaned = 0.041135 Jy
! Component: 1800  -  total flux cleaned = 0.0417075 Jy
! Component: 1850  -  total flux cleaned = 0.0421867 Jy
! Component: 1900  -  total flux cleaned = 0.0427478 Jy
! Component: 1950  -  total flux cleaned = 0.0432177 Jy
! Component: 2000  -  total flux cleaned = 0.0437256 Jy
! Total flux subtracted in 2048 components = 0.0441863 Jy
! Clean residual min=-0.002304 max=0.002540 Jy/beam
! Clean residual mean=0.000200 rms=0.000873 Jy/beam
! Combined flux in latest and established models = 0.78228 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 298 components and 0.78228 Jy
wmap "J0501-0159_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.763 x 9.524 at -5.946 degrees (North through East)
! Clean map  min=-0.0032581  max=0.42543 Jy/beam
! Writing clean map to FITS file: J0501-0159_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.425426 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000870045 
device "J0501-0159_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0501-0159_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.613534 0.613534 1.22707 2.45414 4.90828 9.81655 19.6331 39.2662 78.5324
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.425 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.763 x 9.524 at -5.946 degrees (North through East)
! Clean map  min=-0.0032581  max=0.42543 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0501-0159_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0501-0159_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0501-0159_S_2003_05_07_pus_uvs.log closed on Fri Dec 22 23:41:56 2006