! Started logfile: J2225-0457_S_1999_12_20_pus_uvs.log on Thu Dec 20 16:46:31 2007
obs J2225-0457_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J2225-0457_S_1999_12_20_pus_uva.fits
! AN table 1: 82 integrations on 190 of 190 possible baselines.
! AN table 2: 202 integrations on 190 of 190 possible baselines.
! AN table 3: 55 integrations on 190 of 190 possible baselines.
! AN table 4: 52 integrations on 190 of 190 possible baselines.
! AN table 5: 23 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.111874 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2225-0457
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2298 lines of history.
! 
! Reading 35200 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
print "field_size =",field_size
! field_size = 1024 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J2225-0457_S_1999_12_20_pus]
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 = 1024x1024 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 1567 telescope corrections were flagged in sub-array 1.
!  A total of 3030 telescope corrections were flagged in sub-array 2.
!  A total of 706 telescope corrections were flagged in sub-array 3.
!  A total of 516 telescope corrections were flagged in sub-array 4.
!  A total of 291 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1567 telescope corrections were flagged in sub-array 1.
!  A total of 3030 telescope corrections were flagged in sub-array 2.
!  A total of 706 telescope corrections were flagged in sub-array 3.
!  A total of 516 telescope corrections were flagged in sub-array 4.
!  A total of 291 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1610 telescope corrections were flagged in sub-array 1.
!  A total of 3272 telescope corrections were flagged in sub-array 2.
!  A total of 706 telescope corrections were flagged in sub-array 3.
!  A total of 516 telescope corrections were flagged in sub-array 4.
!  A total of 291 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1567 telescope corrections were flagged in sub-array 1.
!  A total of 3030 telescope corrections were flagged in sub-array 2.
!  A total of 706 telescope corrections were flagged in sub-array 3.
!  A total of 516 telescope corrections were flagged in sub-array 4.
!  A total of 291 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.346528Jy  sigma=0.009471
! Fit after  self-cal, rms=0.599273Jy  sigma=0.004219
! 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.85 mas, bmaj=4.389 mas, bpa=3.188 degrees
! Estimated noise=903.865 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.835957 Jy
! Component: 100  -  total flux cleaned = 1.0787 Jy
! Total flux subtracted in 100 components = 1.0787 Jy
! Clean residual min=-0.042911 max=0.173542 Jy/beam
! Clean residual mean=0.000563 rms=0.011756 Jy/beam
! Combined flux in latest and established models = 1.0787 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.0787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.560190Jy  sigma=0.003882
! Fit after  self-cal, rms=0.557902Jy  sigma=0.003875
! Inverting map 
! Added new window around map position (3, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.169085 Jy
! Component: 100  -  total flux cleaned = 0.274498 Jy
! Total flux subtracted in 100 components = 0.274498 Jy
! Clean residual min=-0.033323 max=0.075715 Jy/beam
! Clean residual mean=0.000612 rms=0.008456 Jy/beam
! Combined flux in latest and established models = 1.3532 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 17 components and 1.3532 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.465963Jy  sigma=0.003013
! Fit after  self-cal, rms=0.457958Jy  sigma=0.002978
! Inverting map 
! Added new window around map position (5.5, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0942543 Jy
! Component: 100  -  total flux cleaned = 0.1562 Jy
! Total flux subtracted in 100 components = 0.1562 Jy
! Clean residual min=-0.025930 max=0.046420 Jy/beam
! Clean residual mean=0.000643 rms=0.006664 Jy/beam
! Combined flux in latest and established models = 1.5094 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 26 components and 1.5094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.420346Jy  sigma=0.002605
! Fit after  self-cal, rms=0.416956Jy  sigma=0.002589
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0535708 Jy
! Component: 100  -  total flux cleaned = 0.0910864 Jy
! Total flux subtracted in 100 components = 0.0910864 Jy
! Clean residual min=-0.022943 max=0.043539 Jy/beam
! Clean residual mean=0.000660 rms=0.005895 Jy/beam
! Combined flux in latest and established models = 1.60049 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 34 components and 1.60049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401737Jy  sigma=0.002429
! Fit after  self-cal, rms=0.400531Jy  sigma=0.002424
! Inverting map 
! Added new window around map position (52, -15).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0425908 Jy
! Component: 100  -  total flux cleaned = 0.0734269 Jy
! Total flux subtracted in 100 components = 0.0734269 Jy
! Clean residual min=-0.021624 max=0.028369 Jy/beam
! Clean residual mean=0.000650 rms=0.005414 Jy/beam
! Combined flux in latest and established models = 1.67392 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 50 components and 1.67392 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.388274Jy  sigma=0.002299
! Fit after  self-cal, rms=0.387589Jy  sigma=0.002296
! 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.18 mas, bmaj=5.214 mas, bpa=0.3188 degrees
! Estimated noise=558.269 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 (49.5, -18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0861694 Jy
! Component: 100  -  total flux cleaned = 0.147739 Jy
! Component: 150  -  total flux cleaned = 0.196597 Jy
! Component: 200  -  total flux cleaned = 0.236243 Jy
! Total flux subtracted in 200 components = 0.236243 Jy
! Clean residual min=-0.017237 max=0.053574 Jy/beam
! Clean residual mean=0.008527 rms=0.009077 Jy/beam
! Combined flux in latest and established models = 1.91016 Jy
! Performing phase self-cal
! Adding 84 model components to the UV plane model.
! The established model now contains 126 components and 1.91016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.361455Jy  sigma=0.002023
! Fit after  self-cal, rms=0.359295Jy  sigma=0.002006
! Inverting map 
! Added new window around map position (58.5, -19).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0599321 Jy
! Component: 100  -  total flux cleaned = 0.0995006 Jy
! Component: 150  -  total flux cleaned = 0.131744 Jy
! Component: 200  -  total flux cleaned = 0.158994 Jy
! Total flux subtracted in 200 components = 0.158994 Jy
! Clean residual min=-0.014400 max=0.044487 Jy/beam
! Clean residual mean=0.007560 rms=0.007492 Jy/beam
! Combined flux in latest and established models = 2.06915 Jy
! Performing phase self-cal
! Adding 78 model components to the UV plane model.
! The established model now contains 188 components and 2.06915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345562Jy  sigma=0.001876
! Fit after  self-cal, rms=0.344023Jy  sigma=0.001864
! Inverting map 
! Added new window around map position (127.5, -36.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0471992 Jy
! Component: 100  -  total flux cleaned = 0.0795879 Jy
! Component: 150  -  total flux cleaned = 0.106426 Jy
! Component: 200  -  total flux cleaned = 0.12997 Jy
! Total flux subtracted in 200 components = 0.12997 Jy
! Clean residual min=-0.012667 max=0.031673 Jy/beam
! Clean residual mean=0.007091 rms=0.006432 Jy/beam
! Combined flux in latest and established models = 2.19912 Jy
! Performing phase self-cal
! Adding 78 model components to the UV plane model.
! The established model now contains 244 components and 2.19912 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334015Jy  sigma=0.001779
! Fit after  self-cal, rms=0.332939Jy  sigma=0.001772
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.84     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.51     MK        1.00*    NY        1.00*    ON        0.87     
!   OV        1.00*    PT        1.00*    SC        1.19     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        1.00     
!   HN        0.90     KK        1.00*    KP        1.07     LA        1.04     
!   MC        0.99     MK        1.00*    NY        1.00*    ON        1.04     
!   OV        1.00*    PT        1.00     SC        1.05     TS        1.05     
!   WF        0.78     WZ        0.98     GN        1.00*    NL        1.10     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.94     GC        1.11     HH        1.00*    
!   HN        1.00     KK        1.08     KP        0.92     LA        1.01     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        0.99     SC        0.98     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.00*    NL        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.08     KK        1.01     KP        0.98     LA        0.96     
!   MC        1.00*    MK        1.02     NY        1.00*    ON        1.00*    
!   OV        1.04     PT        0.99     SC        1.12     TS        1.09     
!   WF        1.08     WZ        1.00*    GN        1.00*    NL        1.04     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        1.07     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        1.00     KP        1.04     LA        1.09     
!   MC        1.00*    MK        0.97     NY        1.00*    ON        1.00*    
!   OV        1.03     PT        1.15     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.90     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.85     MK        1.00*    NY        1.00*    ON        1.09     
!   OV        1.00*    PT        1.00*    SC        1.06     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.01     GC        1.00*    HH        0.99     
!   HN        0.95     KK        1.00*    KP        1.09     LA        1.00     
!   MC        1.01     MK        1.00*    NY        1.00*    ON        1.01     
!   OV        1.00*    PT        0.98     SC        1.04     TS        1.01     
!   WF        0.80     WZ        1.00     GN        1.00*    NL        1.09     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.11     HH        1.00*    
!   HN        1.09     KK        1.05     KP        0.96     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.98     PT        0.97     SC        0.96     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.00*    NL        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.04     GC        0.99     HH        1.00*    
!   HN        1.16     KK        0.92     KP        1.00     LA        0.92     
!   MC        1.00*    MK        0.99     NY        1.00*    ON        1.00*    
!   OV        1.02     PT        0.97     SC        1.12     TS        1.10     
!   WF        1.08     WZ        1.00*    GN        1.00*    NL        1.03     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        1.12     GC        0.95     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        1.06     LA        1.06     
!   MC        1.00*    MK        0.94     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.13     SC        1.00*    TS        0.98     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 165 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        0.97     
!   HN        0.91     KK        1.00*    KP        1.09     LA        1.02     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        0.97     
!   OV        1.00*    PT        0.95     SC        1.06     TS        1.01     
!   WF        0.79     WZ        0.96     GN        1.00*    NL        1.05     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.94     GC        1.07     HH        1.00*    
!   HN        0.97     KK        1.03     KP        0.95     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.96     SC        0.95     TS        1.00*    
!   WF        0.97     WZ        1.00*    GN        1.00*    NL        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        0.97     HH        1.00*    
!   HN        1.05     KK        0.96     KP        1.01     LA        0.95     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        1.04     PT        0.94     SC        1.13     TS        1.03     
!   WF        1.06     WZ        1.00*    GN        1.00*    NL        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.05     GC        0.96     HH        1.00*    
!   HN        1.00*    KK        1.00     KP        0.98     LA        1.10     
!   MC        1.00*    MK        0.93     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.09     SC        1.00*    TS        0.87     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.94     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.20     MK        1.00*    NY        1.00*    ON        0.95     
!   OV        1.00*    PT        1.00*    SC        1.04     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.95     GC        1.00*    HH        0.96     
!   HN        0.90     KK        1.00*    KP        1.08     LA        1.02     
!   MC        1.23     MK        1.00*    NY        1.00*    ON        0.99     
!   OV        1.00*    PT        0.95     SC        1.05     TS        1.00     
!   WF        0.80     WZ        0.97     GN        1.00*    NL        1.04     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.93     GC        1.04     HH        1.00*    
!   HN        1.04     KK        1.02     KP        0.95     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.94     PT        1.02     SC        0.97     TS        1.00*    
!   WF        0.96     WZ        1.00*    GN        1.00*    NL        0.91     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.99     GC        0.97     HH        1.00*    
!   HN        1.08     KK        0.95     KP        0.99     LA        0.94     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        1.01     PT        0.93     SC        1.12     TS        1.03     
!   WF        1.06     WZ        1.00*    GN        1.00*    NL        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        1.03     GC        0.94     HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.08     LA        1.08     
!   MC        1.00*    MK        0.96     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        1.10     SC        1.00*    TS        0.92     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Fit before self-cal, rms=0.332939Jy  sigma=0.001772
! Fit after  self-cal, rms=0.295510Jy  sigma=0.001566
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.204 mas, bmaj=5.281 mas, bpa=0.3989 degrees
! Estimated noise=556.007 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 (39.5, -20.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0341954 Jy
! Component: 100  -  total flux cleaned = 0.0569862 Jy
! Component: 150  -  total flux cleaned = 0.0753087 Jy
! Component: 200  -  total flux cleaned = 0.0908746 Jy
! Total flux subtracted in 200 components = 0.0908746 Jy
! Clean residual min=-0.015596 max=0.023818 Jy/beam
! Clean residual mean=0.003932 rms=0.004901 Jy/beam
! Combined flux in latest and established models = 2.29 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 281 components and 2.29 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289286Jy  sigma=0.001518
! Fit after  self-cal, rms=0.288976Jy  sigma=0.001514
! Inverting map 
! Added new window around map position (15.5, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0235964 Jy
! Component: 100  -  total flux cleaned = 0.0385403 Jy
! Component: 150  -  total flux cleaned = 0.0487125 Jy
! Component: 200  -  total flux cleaned = 0.0572806 Jy
! Total flux subtracted in 200 components = 0.0572806 Jy
! Clean residual min=-0.014855 max=0.020422 Jy/beam
! Clean residual mean=0.003566 rms=0.004522 Jy/beam
! Combined flux in latest and established models = 2.34728 Jy
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 311 components and 2.34728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286114Jy  sigma=0.001488
! Fit after  self-cal, rms=0.285906Jy  sigma=0.001486
! 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.285906Jy  sigma=0.001486
! Fit after  self-cal, rms=0.280555Jy  sigma=0.001472
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.212 mas, bmaj=5.287 mas, bpa=0.4573 degrees
! Estimated noise=557.515 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0147839 Jy
! Component: 100  -  total flux cleaned = 0.0213459 Jy
! Component: 150  -  total flux cleaned = 0.0283328 Jy
! Component: 200  -  total flux cleaned = 0.0349576 Jy
! Total flux subtracted in 200 components = 0.0349576 Jy
! Clean residual min=-0.013357 max=0.019336 Jy/beam
! Clean residual mean=0.002833 rms=0.004321 Jy/beam
! Combined flux in latest and established models = 2.38224 Jy
selfcal
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 331 components and 2.38224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278881Jy  sigma=0.001460
! Fit after  self-cal, rms=0.278942Jy  sigma=0.001459
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 (108, -34.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0206122 Jy
! Component: 100  -  total flux cleaned = 0.0326309 Jy
! Component: 150  -  total flux cleaned = 0.0403043 Jy
! Component: 200  -  total flux cleaned = 0.0456714 Jy
! Total flux subtracted in 200 components = 0.0456714 Jy
! Clean residual min=-0.012335 max=0.018131 Jy/beam
! Clean residual mean=0.002593 rms=0.003981 Jy/beam
! Combined flux in latest and established models = 2.42791 Jy
! Performing phase self-cal
! Adding 51 model components to the UV plane model.
! The established model now contains 368 components and 2.42791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276438Jy  sigma=0.001444
! Fit after  self-cal, rms=0.276407Jy  sigma=0.001442
! Inverting map 
! Added new window around map position (67, -47.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0180658 Jy
! Component: 100  -  total flux cleaned = 0.0295951 Jy
! Component: 150  -  total flux cleaned = 0.0391791 Jy
! Component: 200  -  total flux cleaned = 0.0466738 Jy
! Total flux subtracted in 200 components = 0.0466738 Jy
! Clean residual min=-0.011382 max=0.017251 Jy/beam
! Clean residual mean=0.002266 rms=0.003812 Jy/beam
! Combined flux in latest and established models = 2.47458 Jy
! Performing phase self-cal
! Adding 63 model components to the UV plane model.
! The established model now contains 409 components and 2.47458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274266Jy  sigma=0.001430
! Fit after  self-cal, rms=0.274185Jy  sigma=0.001429
! Inverting map 
! Added new window around map position (125.5, -51.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0167482 Jy
! Component: 100  -  total flux cleaned = 0.0266267 Jy
! Component: 150  -  total flux cleaned = 0.0343311 Jy
! Component: 200  -  total flux cleaned = 0.0395343 Jy
! Total flux subtracted in 200 components = 0.0395343 Jy
! Clean residual min=-0.012163 max=0.016413 Jy/beam
! Clean residual mean=0.002088 rms=0.003651 Jy/beam
! Combined flux in latest and established models = 2.51412 Jy
! Performing phase self-cal
! Adding 61 model components to the UV plane model.
! The established model now contains 448 components and 2.51412 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272547Jy  sigma=0.001419
! Fit after  self-cal, rms=0.272549Jy  sigma=0.001418
! Inverting map 
! Added new window around map position (126.5, -21).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0162459 Jy
! Component: 100  -  total flux cleaned = 0.0258591 Jy
! Component: 150  -  total flux cleaned = 0.0336455 Jy
! Component: 200  -  total flux cleaned = 0.0394737 Jy
! Total flux subtracted in 200 components = 0.0394737 Jy
! Clean residual min=-0.012072 max=0.014827 Jy/beam
! Clean residual mean=0.001876 rms=0.003506 Jy/beam
! Combined flux in latest and established models = 2.55359 Jy
! Performing phase self-cal
! Adding 59 model components to the UV plane model.
! The established model now contains 486 components and 2.55359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270994Jy  sigma=0.001408
! Fit after  self-cal, rms=0.270973Jy  sigma=0.001407
! 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.270973Jy  sigma=0.001407
! Fit after  self-cal, rms=0.267657Jy  sigma=0.001400
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.215 mas, bmaj=5.28 mas, bpa=0.4815 degrees
! Estimated noise=557.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00883619 Jy
! Component: 100  -  total flux cleaned = 0.0155109 Jy
! Component: 150  -  total flux cleaned = 0.0213381 Jy
! Component: 200  -  total flux cleaned = 0.0267418 Jy
! Total flux subtracted in 200 components = 0.0267418 Jy
! Clean residual min=-0.010853 max=0.014814 Jy/beam
! Clean residual mean=0.001648 rms=0.003310 Jy/beam
! Combined flux in latest and established models = 2.58033 Jy
selfcal
! Performing phase self-cal
! Adding 56 model components to the UV plane model.
! The established model now contains 507 components and 2.58033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266699Jy  sigma=0.001394
! Fit after  self-cal, rms=0.266627Jy  sigma=0.001394
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 (100, -49.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0148961 Jy
! Component: 100  -  total flux cleaned = 0.0240325 Jy
! Component: 150  -  total flux cleaned = 0.0301504 Jy
! Component: 200  -  total flux cleaned = 0.0354274 Jy
! Total flux subtracted in 200 components = 0.0354274 Jy
! Clean residual min=-0.010517 max=0.014844 Jy/beam
! Clean residual mean=0.001447 rms=0.003170 Jy/beam
! Combined flux in latest and established models = 2.61576 Jy
! Performing phase self-cal
! Adding 55 model components to the UV plane model.
! The established model now contains 543 components and 2.61576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265214Jy  sigma=0.001386
! Fit after  self-cal, rms=0.265206Jy  sigma=0.001386
! Inverting map 
! Added new window around map position (49, -76).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.014128 Jy
! Component: 100  -  total flux cleaned = 0.0214342 Jy
! Component: 150  -  total flux cleaned = 0.0263168 Jy
! Component: 200  -  total flux cleaned = 0.0311217 Jy
! Total flux subtracted in 200 components = 0.0311217 Jy
! Clean residual min=-0.011496 max=0.013863 Jy/beam
! Clean residual mean=0.001228 rms=0.003098 Jy/beam
! Combined flux in latest and established models = 2.64688 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 568 components and 2.64688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263916Jy  sigma=0.001380
! Fit after  self-cal, rms=0.263959Jy  sigma=0.001379
! Inverting map 
! Added new window around map position (47.5, 74).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0118189 Jy
! Component: 100  -  total flux cleaned = 0.0175221 Jy
! Component: 150  -  total flux cleaned = 0.0219189 Jy
! Component: 200  -  total flux cleaned = 0.0262705 Jy
! Total flux subtracted in 200 components = 0.0262705 Jy
! Clean residual min=-0.011496 max=0.011605 Jy/beam
! Clean residual mean=0.001037 rms=0.002981 Jy/beam
! Combined flux in latest and established models = 2.67315 Jy
! Performing phase self-cal
! Adding 56 model components to the UV plane model.
! The established model now contains 595 components and 2.67315 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263043Jy  sigma=0.001374
! Fit after  self-cal, rms=0.263044Jy  sigma=0.001373
! 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.263044Jy  sigma=0.001373
! Fit after  self-cal, rms=0.262926Jy  sigma=0.001371
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.593 mas, bmaj=11.65 mas, bpa=0.01101 degrees
! Estimated noise=748.257 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0171113 Jy
! Component: 100  -  total flux cleaned = 0.0314139 Jy
! Component: 150  -  total flux cleaned = 0.0440008 Jy
! Component: 200  -  total flux cleaned = 0.0552472 Jy
! Total flux subtracted in 200 components = 0.0552472 Jy
! Clean residual min=-0.017321 max=0.023849 Jy/beam
! Clean residual mean=0.002326 rms=0.005884 Jy/beam
! Combined flux in latest and established models = 2.7284 Jy
selfcal
! Performing phase self-cal
! Adding 53 model components to the UV plane model.
! The established model now contains 621 components and 2.7284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261996Jy  sigma=0.001368
! Fit after  self-cal, rms=0.262099Jy  sigma=0.001367
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.0108409 Jy
! Component: 100  -  total flux cleaned = 0.0204501 Jy
! Component: 150  -  total flux cleaned = 0.0291293 Jy
! Component: 200  -  total flux cleaned = 0.035461 Jy
! Total flux subtracted in 200 components = 0.035461 Jy
! Clean residual min=-0.018789 max=0.023224 Jy/beam
! Clean residual mean=0.001687 rms=0.005798 Jy/beam
! Combined flux in latest and established models = 2.76386 Jy
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 638 components and 2.76386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261743Jy  sigma=0.001367
! Fit after  self-cal, rms=0.261801Jy  sigma=0.001367
! 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.218 mas, bmaj=5.277 mas, bpa=0.4958 degrees
! Estimated noise=557.448 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.218 x 5.277 at 0.4958 degrees (North through East)
! Clean map  min=-0.011291  max=1.0945 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261801Jy  sigma=0.001367
! Fit after  self-cal, rms=0.424590Jy  sigma=0.001275
! Inverting map and beam 
! Estimated beam: bmin=2.217 mas, bmaj=5.273 mas, bpa=0.5246 degrees
! Estimated noise=558.366 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00238502 Jy
! Component: 100  -  total flux cleaned = 0.00508455 Jy
! Component: 150  -  total flux cleaned = 0.00759657 Jy
! Component: 200  -  total flux cleaned = 0.00942494 Jy
! Total flux subtracted in 200 components = 0.00942494 Jy
! Clean residual min=-0.010409 max=0.011254 Jy/beam
! Clean residual mean=0.000778 rms=0.002715 Jy/beam
! Combined flux in latest and established models = 2.77329 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 665 components and 2.77329 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424352Jy  sigma=0.001273
! Fit after  self-cal, rms=0.424387Jy  sigma=0.001273
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179513 Jy
! Component: 100  -  total flux cleaned = 0.00401575 Jy
! Component: 150  -  total flux cleaned = 0.00532544 Jy
! Component: 200  -  total flux cleaned = 0.0070584 Jy
! Total flux subtracted in 200 components = 0.0070584 Jy
! Clean residual min=-0.010341 max=0.011261 Jy/beam
! Clean residual mean=0.000733 rms=0.002693 Jy/beam
! Combined flux in latest and established models = 2.78034 Jy
! Performing phase self-cal
! Adding 60 model components to the UV plane model.
! The established model now contains 686 components and 2.78034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424225Jy  sigma=0.001272
! Fit after  self-cal, rms=0.424236Jy  sigma=0.001272
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424236Jy  sigma=0.001272
! Fit after  self-cal, rms=0.650695Jy  sigma=0.001272
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.88 mas, bmaj=4.388 mas, bpa=3.377 degrees
! Estimated noise=915.796 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.838184 Jy
! Component: 100  -  total flux cleaned = 1.12006 Jy
! Component: 150  -  total flux cleaned = 1.28947 Jy
! Component: 200  -  total flux cleaned = 1.4054 Jy
! Total flux subtracted in 200 components = 1.4054 Jy
! Clean residual min=-0.019850 max=0.063262 Jy/beam
! Clean residual mean=0.000482 rms=0.006624 Jy/beam
! Combined flux in latest and established models = 1.4054 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 17 model components to the UV plane model.
! The established model now contains 17 components and 1.4054 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.219 mas, bmaj=5.273 mas, bpa=0.5252 degrees
! Estimated noise=558.299 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.148496 Jy
! Component: 100  -  total flux cleaned = 0.254734 Jy
! Component: 150  -  total flux cleaned = 0.338368 Jy
! Component: 200  -  total flux cleaned = 0.408621 Jy
! Total flux subtracted in 200 components = 0.408621 Jy
! Clean residual min=-0.025883 max=0.044618 Jy/beam
! Clean residual mean=0.006734 rms=0.009922 Jy/beam
! Combined flux in latest and established models = 1.81402 Jy
! Adding 114 model components to the UV plane model.
! The established model now contains 123 components and 1.81402 Jy
! Inverting map 
! Added new window around map position (8.5, -7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0615243 Jy
! Component: 100  -  total flux cleaned = 0.116072 Jy
! Component: 150  -  total flux cleaned = 0.165097 Jy
! Component: 200  -  total flux cleaned = 0.209557 Jy
! Total flux subtracted in 200 components = 0.209557 Jy
! Clean residual min=-0.019363 max=0.032774 Jy/beam
! Clean residual mean=0.005386 rms=0.007374 Jy/beam
! Combined flux in latest and established models = 2.02358 Jy
! Adding 133 model components to the UV plane model.
! The established model now contains 231 components and 2.02358 Jy
! Inverting map 
! Added new window around map position (44.5, -22).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0411412 Jy
! Component: 100  -  total flux cleaned = 0.0782644 Jy
! Component: 150  -  total flux cleaned = 0.112338 Jy
! Component: 200  -  total flux cleaned = 0.143939 Jy
! Total flux subtracted in 200 components = 0.143939 Jy
! Clean residual min=-0.014926 max=0.024996 Jy/beam
! Clean residual mean=0.004483 rms=0.005876 Jy/beam
! Combined flux in latest and established models = 2.16752 Jy
! Adding 117 model components to the UV plane model.
! The established model now contains 312 components and 2.16752 Jy
! Inverting map 
! Added new window around map position (119, -41).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0309149 Jy
! Component: 100  -  total flux cleaned = 0.0587658 Jy
! Component: 150  -  total flux cleaned = 0.084905 Jy
! Component: 200  -  total flux cleaned = 0.109545 Jy
! Total flux subtracted in 200 components = 0.109545 Jy
! Clean residual min=-0.011895 max=0.020547 Jy/beam
! Clean residual mean=0.003813 rms=0.004905 Jy/beam
! Combined flux in latest and established models = 2.27706 Jy
! Adding 125 model components to the UV plane model.
! The established model now contains 401 components and 2.27706 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.598 mas, bmaj=11.66 mas, bpa=0.05554 degrees
! Estimated noise=748.587 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0583005 Jy
! Component: 100  -  total flux cleaned = 0.107774 Jy
! Component: 150  -  total flux cleaned = 0.151296 Jy
! Component: 200  -  total flux cleaned = 0.189931 Jy
! Total flux subtracted in 200 components = 0.189931 Jy
! Clean residual min=-0.016502 max=0.034647 Jy/beam
! Clean residual mean=0.007130 rms=0.008459 Jy/beam
! Combined flux in latest and established models = 2.46699 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.0344615 Jy
! Component: 100  -  total flux cleaned = 0.0653131 Jy
! Component: 150  -  total flux cleaned = 0.0930538 Jy
! Component: 200  -  total flux cleaned = 0.118217 Jy
! Total flux subtracted in 200 components = 0.118217 Jy
! Clean residual min=-0.014743 max=0.027399 Jy/beam
! Clean residual mean=0.005272 rms=0.006885 Jy/beam
! Combined flux in latest and established models = 2.58521 Jy
! Adding 242 model components to the UV plane model.
! The established model now contains 608 components and 2.58521 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.219 mas, bmaj=5.273 mas, bpa=0.5252 degrees
! Estimated noise=558.299 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141732 Jy
! Component: 100  -  total flux cleaned = 0.0262763 Jy
! Component: 150  -  total flux cleaned = 0.0374202 Jy
! Component: 200  -  total flux cleaned = 0.0477785 Jy
! Total flux subtracted in 200 components = 0.0477785 Jy
! Clean residual min=-0.009352 max=0.012719 Jy/beam
! Clean residual mean=0.001655 rms=0.002910 Jy/beam
! Combined flux in latest and established models = 2.63299 Jy
selfcal
! Performing phase self-cal
! Adding 57 model components to the UV plane model.
! The established model now contains 662 components and 2.63299 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.651397Jy  sigma=0.001285
! Fit after  self-cal, rms=0.651817Jy  sigma=0.001282
wmodel J2225-0457_S_1999_12_20_pus_map.mod
! Writing 662 model components to file: J2225-0457_S_1999_12_20_pus_map.mod
wobs J2225-0457_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J2225-0457_S_1999_12_20_pus_uvs.fits
wwins J2225-0457_S_1999_12_20_pus_map.win
! wwins: Wrote 19 windows to J2225-0457_S_1999_12_20_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00583828 Jy
! Component: 100  -  total flux cleaned = 0.0110555 Jy
! Component: 150  -  total flux cleaned = 0.0159829 Jy
! Component: 200  -  total flux cleaned = 0.0207246 Jy
! Component: 250  -  total flux cleaned = 0.0253192 Jy
! Component: 300  -  total flux cleaned = 0.0296099 Jy
! Component: 350  -  total flux cleaned = 0.0336192 Jy
! Component: 400  -  total flux cleaned = 0.0371974 Jy
! Component: 450  -  total flux cleaned = 0.0408647 Jy
! Component: 500  -  total flux cleaned = 0.0442952 Jy
! Component: 550  -  total flux cleaned = 0.0476609 Jy
! Component: 600  -  total flux cleaned = 0.0512801 Jy
! Component: 650  -  total flux cleaned = 0.0543735 Jy
! Component: 700  -  total flux cleaned = 0.057719 Jy
! Component: 750  -  total flux cleaned = 0.0611569 Jy
! Component: 800  -  total flux cleaned = 0.0643918 Jy
! Component: 850  -  total flux cleaned = 0.067576 Jy
! Component: 900  -  total flux cleaned = 0.0705711 Jy
! Component: 950  -  total flux cleaned = 0.0733826 Jy
! Component: 1000  -  total flux cleaned = 0.0762936 Jy
! Component: 1050  -  total flux cleaned = 0.0790285 Jy
! Component: 1100  -  total flux cleaned = 0.0818625 Jy
! Component: 1150  -  total flux cleaned = 0.0847921 Jy
! Component: 1200  -  total flux cleaned = 0.0875519 Jy
! Component: 1250  -  total flux cleaned = 0.0901482 Jy
! Component: 1300  -  total flux cleaned = 0.0927139 Jy
! Component: 1350  -  total flux cleaned = 0.0953765 Jy
! Component: 1400  -  total flux cleaned = 0.0978827 Jy
! Component: 1450  -  total flux cleaned = 0.100238 Jy
! Component: 1500  -  total flux cleaned = 0.102445 Jy
! Component: 1550  -  total flux cleaned = 0.104508 Jy
! Component: 1600  -  total flux cleaned = 0.10667 Jy
! Component: 1650  -  total flux cleaned = 0.108692 Jy
! Component: 1700  -  total flux cleaned = 0.110694 Jy
! Component: 1750  -  total flux cleaned = 0.112793 Jy
! Component: 1800  -  total flux cleaned = 0.114756 Jy
! Component: 1850  -  total flux cleaned = 0.116813 Jy
! Component: 1900  -  total flux cleaned = 0.118512 Jy
! Component: 1950  -  total flux cleaned = 0.120196 Jy
! Component: 2000  -  total flux cleaned = 0.121977 Jy
! Component: 2050  -  total flux cleaned = 0.123522 Jy
! Component: 2100  -  total flux cleaned = 0.125272 Jy
! Component: 2150  -  total flux cleaned = 0.126791 Jy
! Component: 2200  -  total flux cleaned = 0.128619 Jy
! Component: 2250  -  total flux cleaned = 0.130324 Jy
! Component: 2300  -  total flux cleaned = 0.131911 Jy
! Component: 2350  -  total flux cleaned = 0.13338 Jy
! Component: 2400  -  total flux cleaned = 0.134943 Jy
! Component: 2450  -  total flux cleaned = 0.136595 Jy
! Component: 2500  -  total flux cleaned = 0.137826 Jy
! Component: 2550  -  total flux cleaned = 0.139353 Jy
! Component: 2600  -  total flux cleaned = 0.140968 Jy
! Component: 2650  -  total flux cleaned = 0.142272 Jy
! Component: 2700  -  total flux cleaned = 0.143766 Jy
! Component: 2750  -  total flux cleaned = 0.14505 Jy
! Component: 2800  -  total flux cleaned = 0.14613 Jy
! Component: 2850  -  total flux cleaned = 0.147787 Jy
! Component: 2900  -  total flux cleaned = 0.148947 Jy
! Component: 2950  -  total flux cleaned = 0.150005 Jy
! Component: 3000  -  total flux cleaned = 0.151438 Jy
! Component: 3050  -  total flux cleaned = 0.152765 Jy
! Component: 3100  -  total flux cleaned = 0.153989 Jy
! Component: 3150  -  total flux cleaned = 0.155299 Jy
! Component: 3200  -  total flux cleaned = 0.156229 Jy
! Component: 3250  -  total flux cleaned = 0.157522 Jy
! Component: 3300  -  total flux cleaned = 0.158532 Jy
! Component: 3350  -  total flux cleaned = 0.159717 Jy
! Component: 3400  -  total flux cleaned = 0.160714 Jy
! Component: 3450  -  total flux cleaned = 0.161975 Jy
! Component: 3500  -  total flux cleaned = 0.162959 Jy
! Component: 3550  -  total flux cleaned = 0.163849 Jy
! Component: 3600  -  total flux cleaned = 0.165088 Jy
! Component: 3650  -  total flux cleaned = 0.166055 Jy
! Component: 3700  -  total flux cleaned = 0.167104 Jy
! Component: 3750  -  total flux cleaned = 0.168147 Jy
! Component: 3800  -  total flux cleaned = 0.169098 Jy
! Component: 3850  -  total flux cleaned = 0.170129 Jy
! Component: 3900  -  total flux cleaned = 0.171239 Jy
! Component: 3950  -  total flux cleaned = 0.171919 Jy
! Component: 4000  -  total flux cleaned = 0.173101 Jy
! Component: 4050  -  total flux cleaned = 0.173941 Jy
! Total flux subtracted in 4096 components = 0.17486 Jy
! Clean residual min=-0.004642 max=0.004979 Jy/beam
! Clean residual mean=0.000615 rms=0.001688 Jy/beam
! Combined flux in latest and established models = 2.80785 Jy
keep
! Adding 488 model components to the UV plane model.
! The established model now contains 1145 components and 2.80785 Jy
![Exited script file: muppet]
wmap "J2225-0457_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.219 x 5.273 at 0.5252 degrees (North through East)
! Clean map  min=-0.0077487  max=1.1069 Jy/beam
! Writing clean map to FITS file: J2225-0457_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.10693 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00168764 
device "J2225-0457_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J2225-0457_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.457386 0.457386 0.914771 1.82954 3.65908 7.31817 14.6363 29.2727 58.5453
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.005 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.106 
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.219 x 5.273 at 0.5252 degrees (North through East)
! Clean map  min=-0.0077487  max=1.1069 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2225-0457_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J2225-0457_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2225-0457_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 16:47:41 2007