! Started logfile: J0409-1238_S_2003_05_07_pus_uvs.log on Sun Dec 24 09:22:25 2006
obs J0409-1238_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0409-1238_S_2003_05_07_pus_uva.fits
! AN table 1: 214 integrations on 171 of 171 possible baselines.
! AN table 2: 606 integrations on 171 of 171 possible baselines.
! AN table 3: 47 integrations on 171 of 171 possible baselines.
! AN table 4: 138 integrations on 171 of 171 possible baselines.
! AN table 5: 410 integrations on 171 of 171 possible baselines.
! AN table 6: 27 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0877274 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0409-1238
! 
! 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 86528 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 3739 telescope corrections were flagged in sub-array 1.
!  A total of 8931 telescope corrections were flagged in sub-array 2.
!  A total of 845 telescope corrections were flagged in sub-array 3.
!  A total of 1589 telescope corrections were flagged in sub-array 4.
!  A total of 5601 telescope corrections were flagged in sub-array 5.
!  A total of 513 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 4066 telescope corrections were flagged in sub-array 1.
!  A total of 9141 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
!  A total of 1589 telescope corrections were flagged in sub-array 4.
!  A total of 5558 telescope corrections were flagged in sub-array 5.
!  A total of 513 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 4066 telescope corrections were flagged in sub-array 1.
!  A total of 9140 telescope corrections were flagged in sub-array 2.
!  A total of 845 telescope corrections were flagged in sub-array 3.
!  A total of 1589 telescope corrections were flagged in sub-array 4.
!  A total of 5378 telescope corrections were flagged in sub-array 5.
!  A total of 513 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 3742 telescope corrections were flagged in sub-array 1.
!  A total of 8930 telescope corrections were flagged in sub-array 2.
!  A total of 893 telescope corrections were flagged in sub-array 3.
!  A total of 1589 telescope corrections were flagged in sub-array 4.
!  A total of 5798 telescope corrections were flagged in sub-array 5.
!  A total of 513 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.851162Jy  sigma=0.005743
! Fit after  self-cal, rms=0.769525Jy  sigma=0.005305
! 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.99 mas, bmaj=7.112 mas, bpa=-3.093 degrees
! Estimated noise=837.66 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.190863 Jy
! Component: 100  -  total flux cleaned = 0.237901 Jy
! Total flux subtracted in 100 components = 0.237901 Jy
! Clean residual min=-0.007053 max=0.020035 Jy/beam
! Clean residual mean=0.000010 rms=0.002207 Jy/beam
! Combined flux in latest and established models = 0.237901 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.237901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244030Jy  sigma=0.001285
! Fit after  self-cal, rms=0.243966Jy  sigma=0.001285
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0224865 Jy
! Component: 100  -  total flux cleaned = 0.0361458 Jy
! Total flux subtracted in 100 components = 0.0361458 Jy
! Clean residual min=-0.005909 max=0.010257 Jy/beam
! Clean residual mean=0.000026 rms=0.001597 Jy/beam
! Combined flux in latest and established models = 0.274047 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 19 components and 0.274047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240085Jy  sigma=0.001250
! Fit after  self-cal, rms=0.240009Jy  sigma=0.001250
! Inverting map 
! Added new window around map position (-5.5, 6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108709 Jy
! Component: 100  -  total flux cleaned = 0.0185295 Jy
! Total flux subtracted in 100 components = 0.0185295 Jy
! Clean residual min=-0.005393 max=0.005587 Jy/beam
! Clean residual mean=0.000031 rms=0.001402 Jy/beam
! Combined flux in latest and established models = 0.292576 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 30 components and 0.292576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239012Jy  sigma=0.001242
! Fit after  self-cal, rms=0.238987Jy  sigma=0.001241
! 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.7 mas, bmaj=9.37 mas, bpa=-5.83 degrees
! Estimated noise=374.19 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.00956745 Jy
! Component: 100  -  total flux cleaned = 0.0148802 Jy
! Component: 150  -  total flux cleaned = 0.0180463 Jy
! Component: 200  -  total flux cleaned = 0.0199602 Jy
! Total flux subtracted in 200 components = 0.0199602 Jy
! Clean residual min=-0.003763 max=0.003928 Jy/beam
! Clean residual mean=0.000343 rms=0.000925 Jy/beam
! Combined flux in latest and established models = 0.312536 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 58 components and 0.312536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238435Jy  sigma=0.001238
! Fit after  self-cal, rms=0.238443Jy  sigma=0.001238
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 327 telescope corrections were flagged in sub-array 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 486 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GG        1.00*    HN        0.92     
!   KK        0.97     KP        1.01     LA        1.03     MA        0.74     
!   MC        0.92     MK        0.95     NL        0.93     ON        1.08     
!   OV        0.95     PT        1.02     SC        0.91     TC        1.00*    
!   TS        0.98     WF        0.98     WZ        1.04     
! 
!  A total of 48 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 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.01     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.02     LA        1.06     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.98     ON        1.00*    
!   OV        0.96     PT        1.07     SC        0.94     TC        1.00*    
!   TS        1.00*    WF        0.75     WZ        1.00*    
! 
!  A total of 414 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        1.02     LA        1.04     MA        0.77     
!   MC        1.00     MK        1.00*    NL        0.99     ON        0.80     
!   OV        0.93     PT        1.06     SC        0.94     TC        1.00*    
!   TS        1.00*    WF        0.83     WZ        0.99     
! 
!  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 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 408 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.02     GG        1.00*    HN        0.95     
!   KK        1.00     KP        1.00     LA        0.98     MA        0.87     
!   MC        0.97     MK        1.00     NL        0.99     ON        0.97     
!   OV        1.00     PT        1.01     SC        0.92     TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        0.93     
! 
!  A total of 45 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 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.10     FD        1.07     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.00     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00     ON        1.00*    
!   OV        1.02     PT        1.02     SC        0.91     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 183 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.06     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        1.00     LA        0.99     MA        1.01     
!   MC        1.04     MK        1.00*    NL        1.02     ON        0.95     
!   OV        1.02     PT        1.03     SC        0.96     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.00     
! 
!  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.
!  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 408 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.97     GG        1.00*    HN        1.01     
!   KK        0.96     KP        1.00     LA        0.99     MA        0.91     
!   MC        0.94     MK        1.01     NL        0.97     ON        0.91     
!   OV        1.00     PT        1.01     SC        1.07     TC        1.00*    
!   TS        1.00*    WF        0.99     WZ        1.03     
! 
!  A total of 48 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 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.01     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.02     LA        1.02     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.02     ON        1.00*    
!   OV        0.98     PT        1.05     SC        1.10     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 315 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.01     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.03     LA        1.02     MA        0.90     
!   MC        1.12     MK        1.00*    NL        1.06     ON        0.98     
!   OV        1.04     PT        1.05     SC        1.13     TC        1.00*    
!   TS        1.00*    WF        1.00     WZ        1.01     
! 
!  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 324 telescope corrections were flagged in sub-array 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 486 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.98     GG        1.00*    HN        0.90     
!   KK        0.96     KP        0.95     LA        1.00     MA        0.71     
!   MC        0.90     MK        1.06     NL        0.93     ON        0.87     
!   OV        0.96     PT        0.97     SC        1.07     TC        1.00*    
!   TS        1.01     WF        0.98     WZ        1.20     
! 
!  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 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.03     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.01     LA        1.03     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.96     ON        1.00*    
!   OV        0.91     PT        1.00     SC        1.09     TC        1.00*    
!   TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 273 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.01     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.00     LA        1.02     MA        0.83     
!   MC        1.32     MK        1.00*    NL        0.96     ON        0.77     
!   OV        1.04     PT        1.00     SC        1.11     TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.04     
! 
!  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*    
! 
! 
! Fit before self-cal, rms=0.238443Jy  sigma=0.001238
! Fit after  self-cal, rms=0.224070Jy  sigma=0.001237
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=9.633 mas, bpa=-6.122 degrees
! Estimated noise=380.918 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.00312494 Jy
! Component: 100  -  total flux cleaned = 0.00312761 Jy
! Component: 150  -  total flux cleaned = 0.00297025 Jy
! Component: 200  -  total flux cleaned = 0.0029316 Jy
! Total flux subtracted in 200 components = 0.0029316 Jy
! Clean residual min=-0.001796 max=0.001983 Jy/beam
! Clean residual mean=0.000186 rms=0.000539 Jy/beam
! Combined flux in latest and established models = 0.315468 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 75 components and 0.315468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224017Jy  sigma=0.001237
! Fit after  self-cal, rms=0.223830Jy  sigma=0.001236
! 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.223830Jy  sigma=0.001236
! Fit after  self-cal, rms=0.223751Jy  sigma=0.001236
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.768 mas, bmaj=9.617 mas, bpa=-6.146 degrees
! Estimated noise=381.155 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0013488 Jy
! Component: 100  -  total flux cleaned = 0.00140814 Jy
! Component: 150  -  total flux cleaned = 0.00145261 Jy
! Component: 200  -  total flux cleaned = 0.00145244 Jy
! Total flux subtracted in 200 components = 0.00145244 Jy
! Clean residual min=-0.001649 max=0.001844 Jy/beam
! Clean residual mean=0.000184 rms=0.000492 Jy/beam
! Combined flux in latest and established models = 0.31692 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 92 components and 0.31692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223723Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223718Jy  sigma=0.001235
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.000415347 Jy
! Component: 100  -  total flux cleaned = 0.000412721 Jy
! Component: 150  -  total flux cleaned = 0.000412216 Jy
! Component: 200  -  total flux cleaned = 0.00041171 Jy
! Total flux subtracted in 200 components = 0.00041171 Jy
! Clean residual min=-0.001594 max=0.001826 Jy/beam
! Clean residual mean=0.000187 rms=0.000484 Jy/beam
! Combined flux in latest and established models = 0.317332 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 98 components and 0.317332 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223707Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223710Jy  sigma=0.001235
! 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.223710Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223578Jy  sigma=0.001235
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.777 mas, bmaj=9.601 mas, bpa=-6.164 degrees
! Estimated noise=381.112 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000545765 Jy
! Component: 100  -  total flux cleaned = 0.000667322 Jy
! Component: 150  -  total flux cleaned = 0.000700589 Jy
! Component: 200  -  total flux cleaned = 0.000731921 Jy
! Total flux subtracted in 200 components = 0.000731921 Jy
! Clean residual min=-0.001694 max=0.001667 Jy/beam
! Clean residual mean=0.000128 rms=0.000462 Jy/beam
! Combined flux in latest and established models = 0.318064 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 99 components and 0.318064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223565Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223564Jy  sigma=0.001235
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.000173047 Jy
! Component: 100  -  total flux cleaned = 0.00020231 Jy
! Component: 150  -  total flux cleaned = 0.000227528 Jy
! Component: 200  -  total flux cleaned = 0.000250682 Jy
! Total flux subtracted in 200 components = 0.000250682 Jy
! Clean residual min=-0.001652 max=0.001668 Jy/beam
! Clean residual mean=0.000129 rms=0.000457 Jy/beam
! Combined flux in latest and established models = 0.318315 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 102 components and 0.318315 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223558Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223565Jy  sigma=0.001235
! 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.223565Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223721Jy  sigma=0.001235
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.647 mas, bmaj=14.15 mas, bpa=-11.52 degrees
! Estimated noise=469.654 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000203252 Jy
! Component: 100  -  total flux cleaned = 0.000201183 Jy
! Component: 150  -  total flux cleaned = 0.000225664 Jy
! Component: 200  -  total flux cleaned = 0.000206725 Jy
! Total flux subtracted in 200 components = 0.000206725 Jy
! Clean residual min=-0.001103 max=0.001844 Jy/beam
! Clean residual mean=0.000221 rms=0.000483 Jy/beam
! Combined flux in latest and established models = 0.318521 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 107 components and 0.318521 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223719Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223722Jy  sigma=0.001235
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 = 1.87688e-05 Jy
! Component: 100  -  total flux cleaned = 1.98975e-05 Jy
! Component: 150  -  total flux cleaned = 2.15126e-05 Jy
! Component: 200  -  total flux cleaned = 4.29738e-06 Jy
! Total flux subtracted in 200 components = 4.29738e-06 Jy
! Clean residual min=-0.001099 max=0.001835 Jy/beam
! Clean residual mean=0.000225 rms=0.000483 Jy/beam
! Combined flux in latest and established models = 0.318526 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 112 components and 0.318526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223722Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223721Jy  sigma=0.001235
! 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.784 mas, bmaj=9.591 mas, bpa=-6.193 degrees
! Estimated noise=381.181 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.784 x 9.591 at -6.193 degrees (North through East)
! Clean map  min=-0.0015788  max=0.25768 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.043 mas, bmaj=7.509 mas, bpa=-5.16 degrees
! Estimated noise=755.803 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.192529 Jy
! Component: 100  -  total flux cleaned = 0.238448 Jy
! Component: 150  -  total flux cleaned = 0.260606 Jy
! Component: 200  -  total flux cleaned = 0.275884 Jy
! Total flux subtracted in 200 components = 0.275884 Jy
! Clean residual min=-0.004610 max=0.009680 Jy/beam
! Clean residual mean=-0.000014 rms=0.001342 Jy/beam
! Combined flux in latest and established models = 0.275884 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 28 model components to the UV plane model.
! The established model now contains 28 components and 0.275884 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.784 mas, bmaj=9.591 mas, bpa=-6.193 degrees
! Estimated noise=381.181 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)
! Added new window around map position (-3, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0183841 Jy
! Component: 100  -  total flux cleaned = 0.0284128 Jy
! Component: 150  -  total flux cleaned = 0.0341971 Jy
! Component: 200  -  total flux cleaned = 0.0376245 Jy
! Total flux subtracted in 200 components = 0.0376245 Jy
! Clean residual min=-0.001836 max=0.001804 Jy/beam
! Clean residual mean=0.000144 rms=0.000485 Jy/beam
! Combined flux in latest and established models = 0.313508 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 76 components and 0.313508 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.647 mas, bmaj=14.15 mas, bpa=-11.52 degrees
! Estimated noise=469.654 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00268289 Jy
! Component: 100  -  total flux cleaned = 0.0038585 Jy
! Component: 150  -  total flux cleaned = 0.00445855 Jy
! Component: 200  -  total flux cleaned = 0.00462155 Jy
! Total flux subtracted in 200 components = 0.00462155 Jy
! Clean residual min=-0.001086 max=0.001853 Jy/beam
! Clean residual mean=0.000232 rms=0.000477 Jy/beam
! Combined flux in latest and established models = 0.31813 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 = 7.74105e-05 Jy
! Component: 100  -  total flux cleaned = 0.000114131 Jy
! Component: 150  -  total flux cleaned = 0.000129976 Jy
! Component: 200  -  total flux cleaned = 0.000137231 Jy
! Total flux subtracted in 200 components = 0.000137231 Jy
! Clean residual min=-0.001096 max=0.001857 Jy/beam
! Clean residual mean=0.000229 rms=0.000476 Jy/beam
! Combined flux in latest and established models = 0.318267 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 118 components and 0.318267 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.784 mas, bmaj=9.591 mas, bpa=-6.193 degrees
! Estimated noise=381.181 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000324046 Jy
! Component: 100  -  total flux cleaned = 0.00035769 Jy
! Component: 150  -  total flux cleaned = 0.000330277 Jy
! Component: 200  -  total flux cleaned = 0.000279633 Jy
! Total flux subtracted in 200 components = 0.000279633 Jy
! Clean residual min=-0.001756 max=0.001645 Jy/beam
! Clean residual mean=0.000107 rms=0.000433 Jy/beam
! Combined flux in latest and established models = 0.318546 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 128 components and 0.318546 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223707Jy  sigma=0.001235
! Fit after  self-cal, rms=0.223712Jy  sigma=0.001235
wmodel J0409-1238_S_2003_05_07_pus_map.mod
! Writing 128 model components to file: J0409-1238_S_2003_05_07_pus_map.mod
wobs J0409-1238_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0409-1238_S_2003_05_07_pus_uvs.fits
wwins J0409-1238_S_2003_05_07_pus_map.win
! wwins: Wrote 3 windows to J0409-1238_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 = -1.38695e-05 Jy
! Component: 100  -  total flux cleaned = 0.000209144 Jy
! Component: 150  -  total flux cleaned = 0.000287485 Jy
! Component: 200  -  total flux cleaned = 0.000462938 Jy
! Component: 250  -  total flux cleaned = 0.00060747 Jy
! Component: 300  -  total flux cleaned = 0.000816641 Jy
! Component: 350  -  total flux cleaned = 0.00097487 Jy
! Component: 400  -  total flux cleaned = 0.00121787 Jy
! Component: 450  -  total flux cleaned = 0.00141228 Jy
! Component: 500  -  total flux cleaned = 0.00164531 Jy
! Component: 550  -  total flux cleaned = 0.00185321 Jy
! Component: 600  -  total flux cleaned = 0.00205733 Jy
! Component: 650  -  total flux cleaned = 0.0022584 Jy
! Component: 700  -  total flux cleaned = 0.00245625 Jy
! Component: 750  -  total flux cleaned = 0.0026125 Jy
! Component: 800  -  total flux cleaned = 0.00284352 Jy
! Component: 850  -  total flux cleaned = 0.00295747 Jy
! Component: 900  -  total flux cleaned = 0.00307031 Jy
! Component: 950  -  total flux cleaned = 0.00320039 Jy
! Component: 1000  -  total flux cleaned = 0.00336521 Jy
! Component: 1050  -  total flux cleaned = 0.00347371 Jy
! Component: 1100  -  total flux cleaned = 0.00358093 Jy
! Component: 1150  -  total flux cleaned = 0.00370459 Jy
! Component: 1200  -  total flux cleaned = 0.0038094 Jy
! Component: 1250  -  total flux cleaned = 0.00389582 Jy
! Component: 1300  -  total flux cleaned = 0.0039986 Jy
! Component: 1350  -  total flux cleaned = 0.00411719 Jy
! Component: 1400  -  total flux cleaned = 0.00421758 Jy
! Component: 1450  -  total flux cleaned = 0.00428386 Jy
! Component: 1500  -  total flux cleaned = 0.00438236 Jy
! Component: 1550  -  total flux cleaned = 0.00444743 Jy
! Component: 1600  -  total flux cleaned = 0.00452813 Jy
! Component: 1650  -  total flux cleaned = 0.00462401 Jy
! Component: 1700  -  total flux cleaned = 0.00473458 Jy
! Component: 1750  -  total flux cleaned = 0.00478147 Jy
! Component: 1800  -  total flux cleaned = 0.00485898 Jy
! Component: 1850  -  total flux cleaned = 0.00493583 Jy
! Component: 1900  -  total flux cleaned = 0.00498152 Jy
! Component: 1950  -  total flux cleaned = 0.00505712 Jy
! Component: 2000  -  total flux cleaned = 0.00513209 Jy
! Total flux subtracted in 2048 components = 0.00519156 Jy
! Clean residual min=-0.000891 max=0.001008 Jy/beam
! Clean residual mean=0.000049 rms=0.000308 Jy/beam
! Combined flux in latest and established models = 0.323738 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 266 components and 0.323738 Jy
wmap "J0409-1238_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.784 x 9.591 at -6.193 degrees (North through East)
! Clean map  min=-0.0014347  max=0.25778 Jy/beam
! Writing clean map to FITS file: J0409-1238_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.257784 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000308343 
device "J0409-1238_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0409-1238_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.35884 0.35884 0.71768 1.43536 2.87072 5.74144 11.4829 22.9657 45.9315 91.863
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.257 
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.784 x 9.591 at -6.193 degrees (North through East)
! Clean map  min=-0.0014347  max=0.25778 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0409-1238_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0409-1238_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0409-1238_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 09:27:32 2006