! Started logfile: J1955+5131_S_1999_03_08_pus_uvs.log on Wed Jan  9 14:06:13 2008
obs J1955+5131_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J1955+5131_S_1999_03_08_pus_uva.fits
! AN table 1: 104 integrations on 190 of 190 possible baselines.
! AN table 2: 187 integrations on 190 of 190 possible baselines.
! AN table 3: 146 integrations on 190 of 190 possible baselines.
! AN table 4: 88 integrations on 190 of 190 possible baselines.
! AN table 5: 494 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.166567 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1955+5131
! 
! 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 2332 lines of history.
! 
! Reading 128996 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 J1955+5131_S_1999_03_08_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 1420 telescope corrections were flagged in sub-array 1.
!  A total of 2889 telescope corrections were flagged in sub-array 2.
!  A total of 2152 telescope corrections were flagged in sub-array 3.
!  A total of 1343 telescope corrections were flagged in sub-array 4.
!  A total of 6002 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1421 telescope corrections were flagged in sub-array 1.
!  A total of 2889 telescope corrections were flagged in sub-array 2.
!  A total of 2152 telescope corrections were flagged in sub-array 3.
!  A total of 1343 telescope corrections were flagged in sub-array 4.
!  A total of 6002 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1422 telescope corrections were flagged in sub-array 1.
!  A total of 2889 telescope corrections were flagged in sub-array 2.
!  A total of 2152 telescope corrections were flagged in sub-array 3.
!  A total of 1343 telescope corrections were flagged in sub-array 4.
!  A total of 6002 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1422 telescope corrections were flagged in sub-array 1.
!  A total of 2889 telescope corrections were flagged in sub-array 2.
!  A total of 2152 telescope corrections were flagged in sub-array 3.
!  A total of 1343 telescope corrections were flagged in sub-array 4.
!  A total of 6002 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.781429Jy  sigma=0.004810
! Fit after  self-cal, rms=0.494680Jy  sigma=0.003087
! 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.88 mas, bmaj=2.644 mas, bpa=-5.694 degrees
! Estimated noise=614.301 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.474973 Jy
! Component: 100  -  total flux cleaned = 0.613022 Jy
! Total flux subtracted in 100 components = 0.613022 Jy
! Clean residual min=-0.012476 max=0.064523 Jy/beam
! Clean residual mean=0.000018 rms=0.002913 Jy/beam
! Combined flux in latest and established models = 0.613022 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.613022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359113Jy  sigma=0.001897
! Fit after  self-cal, rms=0.358923Jy  sigma=0.001897
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0715824 Jy
! Component: 100  -  total flux cleaned = 0.109632 Jy
! Total flux subtracted in 100 components = 0.109632 Jy
! Clean residual min=-0.010390 max=0.025024 Jy/beam
! Clean residual mean=0.000010 rms=0.002325 Jy/beam
! Combined flux in latest and established models = 0.722654 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 8 components and 0.722654 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339263Jy  sigma=0.001696
! Fit after  self-cal, rms=0.339126Jy  sigma=0.001696
! Inverting map 
! Added new window around map position (-11.5, 4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0283576 Jy
! Component: 100  -  total flux cleaned = 0.0481515 Jy
! Total flux subtracted in 100 components = 0.0481515 Jy
! Clean residual min=-0.010415 max=0.023698 Jy/beam
! Clean residual mean=0.000006 rms=0.002202 Jy/beam
! Combined flux in latest and established models = 0.770805 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 18 components and 0.770805 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334910Jy  sigma=0.001643
! Fit after  self-cal, rms=0.334645Jy  sigma=0.001642
! Inverting map 
! Added new window around map position (-6, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0226566 Jy
! Component: 100  -  total flux cleaned = 0.0386266 Jy
! Total flux subtracted in 100 components = 0.0386266 Jy
! Clean residual min=-0.009956 max=0.012727 Jy/beam
! Clean residual mean=0.000003 rms=0.002095 Jy/beam
! Combined flux in latest and established models = 0.809432 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 25 components and 0.809432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331685Jy  sigma=0.001602
! Fit after  self-cal, rms=0.331572Jy  sigma=0.001602
! Inverting map 
! Added new window around map position (-14, 4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0148219 Jy
! Component: 100  -  total flux cleaned = 0.0271011 Jy
! Total flux subtracted in 100 components = 0.0271011 Jy
! Clean residual min=-0.009916 max=0.011868 Jy/beam
! Clean residual mean=0.000001 rms=0.002044 Jy/beam
! Combined flux in latest and established models = 0.836533 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 34 components and 0.836533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330085Jy  sigma=0.001582
! Fit after  self-cal, rms=0.330025Jy  sigma=0.001582
! 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.302 mas, bmaj=3.191 mas, bpa=-8.214 degrees
! Estimated noise=287.33 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.0266709 Jy
! Component: 100  -  total flux cleaned = 0.0461396 Jy
! Component: 150  -  total flux cleaned = 0.0615517 Jy
! Component: 200  -  total flux cleaned = 0.07392 Jy
! Total flux subtracted in 200 components = 0.07392 Jy
! Clean residual min=-0.008251 max=0.014002 Jy/beam
! Clean residual mean=0.000371 rms=0.002160 Jy/beam
! Combined flux in latest and established models = 0.910453 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 77 components and 0.910453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.327396Jy  sigma=0.001544
! Fit after  self-cal, rms=0.327173Jy  sigma=0.001543
! Inverting map 
! Added new window around map position (-3, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0142579 Jy
! Component: 100  -  total flux cleaned = 0.0244934 Jy
! Component: 150  -  total flux cleaned = 0.0327305 Jy
! Component: 200  -  total flux cleaned = 0.0394775 Jy
! Total flux subtracted in 200 components = 0.0394775 Jy
! Clean residual min=-0.008046 max=0.008821 Jy/beam
! Clean residual mean=0.000245 rms=0.001960 Jy/beam
! Combined flux in latest and established models = 0.949931 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 107 components and 0.949931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326415Jy  sigma=0.001532
! Fit after  self-cal, rms=0.326329Jy  sigma=0.001531
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        0.99     GG        1.00*    
!   HN        1.02     KP        1.00*    LA        1.00*    NL        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.92     
!   GN        0.97     HH        1.00*    KK        0.96     MC        1.16     
!   MK        0.99     NY        0.96     ON        1.01     WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.00*    GC        0.99     GG        1.00*    
!   HN        1.00     KP        1.00*    LA        1.00*    NL        0.73     
!   OV        1.00*    PT        1.00*    SC        1.03     WF        0.94     
!   GN        0.95     HH        1.00*    KK        1.01     MC        0.99     
!   MK        1.00     NY        0.95     ON        1.07     WZ        1.02     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.99     GC        1.00     GG        1.00*    
!   HN        0.98     KP        1.00*    LA        1.00*    NL        0.57     
!   OV        1.00*    PT        1.00*    SC        1.01     WF        0.91     
!   GN        0.96     HH        1.00*    KK        1.05     MC        0.99     
!   MK        1.05     NY        1.00     ON        1.03     WZ        0.97     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        0.98     GG        1.00*    
!   HN        1.00*    KP        0.99     LA        1.00*    NL        1.00*    
!   OV        0.97     PT        1.03     SC        1.00*    WF        1.03     
!   GN        1.07     HH        1.00*    KK        0.97     MC        1.07     
!   MK        0.98     NY        0.96     ON        1.37     WZ        1.02     
! 
!  A total of 162 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.94     FD        0.98     GC        1.00     GG        1.00*    
!   HN        0.99     KP        0.96     LA        0.98     NL        1.08     
!   OV        0.99     PT        1.02     SC        1.02     WF        0.96     
!   GN        0.97     HH        1.00*    KK        1.07     MC        1.05     
!   MK        0.96     NY        0.99     ON        0.99     WZ        0.93     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.05     GG        1.00*    
!   HN        0.92     KP        1.00*    LA        1.00*    NL        0.92     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.96     
!   GN        0.98     HH        1.00*    KK        1.02     MC        1.61     
!   MK        1.01     NY        0.96     ON        1.02     WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GC        1.04     GG        1.00*    
!   HN        0.93     KP        1.00*    LA        1.00*    NL        0.63     
!   OV        1.00*    PT        1.00*    SC        1.08     WF        0.94     
!   GN        0.95     HH        1.00*    KK        0.98     MC        0.93     
!   MK        1.00     NY        0.98     ON        1.05     WZ        1.01     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.03     GC        1.04     GG        1.00*    
!   HN        0.95     KP        1.00*    LA        1.00*    NL        0.49     
!   OV        1.00*    PT        1.00*    SC        1.07     WF        0.96     
!   GN        0.96     HH        1.00*    KK        1.01     MC        0.86     
!   MK        1.08     NY        1.00     ON        1.01     WZ        0.96     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GC        1.00     GG        1.00*    
!   HN        1.00*    KP        1.01     LA        1.00*    NL        1.00*    
!   OV        0.94     PT        0.99     SC        1.00*    WF        1.07     
!   GN        1.07     HH        1.00*    KK        0.94     MC        1.01     
!   MK        1.01     NY        0.95     ON        1.41     WZ        1.05     
! 
!  A total of 162 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.03     GC        1.04     GG        1.00*    
!   HN        0.96     KP        0.99     LA        0.96     NL        0.98     
!   OV        0.96     PT        0.98     SC        1.05     WF        0.98     
!   GN        0.97     HH        1.00*    KK        1.04     MC        0.98     
!   MK        0.99     NY        1.00     ON        1.01     WZ        0.94     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.04     GG        1.00*    
!   HN        1.20     KP        1.00*    LA        1.00*    NL        0.99     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.99     
!   GN        1.00     HH        1.00*    KK        0.97     MC        1.59     
!   MK        1.01     NY        0.97     ON        1.03     WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GC        1.02     GG        1.00*    
!   HN        1.19     KP        1.00*    LA        1.00*    NL        0.68     
!   OV        1.00*    PT        1.00*    SC        1.06     WF        0.96     
!   GN        0.97     HH        1.00*    KK        1.00     MC        0.83     
!   MK        1.01     NY        1.02     ON        1.07     WZ        1.08     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.02     GC        1.03     GG        1.00*    
!   HN        1.23     KP        1.00*    LA        1.00*    NL        0.54     
!   OV        1.00*    PT        1.00*    SC        1.04     WF        0.95     
!   GN        0.97     HH        1.00*    KK        1.05     MC        1.72     
!   MK        1.08     NY        1.02     ON        0.98     WZ        1.05     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.00*    GC        0.97     GG        1.00*    
!   HN        1.00*    KP        1.01     LA        1.00*    NL        1.00*    
!   OV        0.98     PT        0.96     SC        1.00*    WF        1.04     
!   GN        1.07     HH        1.00*    KK        0.97     MC        0.77     
!   MK        0.99     NY        1.04     ON        1.27     WZ        1.14     
! 
!  A total of 162 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.01     GC        1.04     GG        1.00*    
!   HN        1.24     KP        1.01     LA        1.00     NL        1.05     
!   OV        0.99     PT        0.97     SC        1.04     WF        1.00     
!   GN        0.98     HH        1.00*    KK        1.06     MC        1.08     
!   MK        0.98     NY        1.01     ON        0.99     WZ        0.94     
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.07     GG        1.00*    
!   HN        1.13     KP        1.00*    LA        1.00*    NL        0.95     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.97     
!   GN        1.00     HH        1.00*    KK        0.97     MC        0.93     
!   MK        1.03     NY        0.97     ON        1.00     WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GC        1.04     GG        1.00*    
!   HN        1.17     KP        1.00*    LA        1.00*    NL        0.63     
!   OV        1.00*    PT        1.00*    SC        1.04     WF        1.01     
!   GN        0.94     HH        1.00*    KK        1.07     MC        0.73     
!   MK        1.05     NY        1.02     ON        1.11     WZ        1.09     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.01     GC        1.03     GG        1.00*    
!   HN        1.16     KP        1.00*    LA        1.00*    NL        0.50     
!   OV        1.00*    PT        1.00*    SC        1.04     WF        0.99     
!   GN        0.97     HH        1.00*    KK        1.07     MC        1.67     
!   MK        1.12     NY        1.03     ON        1.03     WZ        0.99     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        1.05     GG        1.00*    
!   HN        1.00*    KP        1.06     LA        1.00*    NL        1.00*    
!   OV        0.98     PT        0.96     SC        1.00*    WF        1.03     
!   GN        1.07     HH        1.00*    KK        1.01     MC        0.79     
!   MK        1.05     NY        1.01     ON        1.44     WZ        1.09     
! 
!  A total of 162 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        1.01     GC        1.05     GG        1.00*    
!   HN        1.18     KP        1.02     LA        1.00     NL        1.00     
!   OV        1.00     PT        0.95     SC        1.04     WF        0.97     
!   GN        0.98     HH        1.00*    KK        1.11     MC        1.05     
!   MK        1.02     NY        1.03     ON        0.99     WZ        0.94     
! 
! 
! Fit before self-cal, rms=0.326329Jy  sigma=0.001531
! Fit after  self-cal, rms=0.319946Jy  sigma=0.001405
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.304 mas, bmaj=3.211 mas, bpa=-8.665 degrees
! Estimated noise=287.53 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.00848487 Jy
! Component: 100  -  total flux cleaned = 0.0122268 Jy
! Component: 150  -  total flux cleaned = 0.0137972 Jy
! Component: 200  -  total flux cleaned = 0.0149595 Jy
! Total flux subtracted in 200 components = 0.0149595 Jy
! Clean residual min=-0.003409 max=0.005459 Jy/beam
! Clean residual mean=0.000360 rms=0.000936 Jy/beam
! Combined flux in latest and established models = 0.96489 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 120 components and 0.96489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319680Jy  sigma=0.001402
! Fit after  self-cal, rms=0.319960Jy  sigma=0.001401
! Inverting map 
! Added new window around map position (-14.5, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00612678 Jy
! Component: 100  -  total flux cleaned = 0.00989287 Jy
! Component: 150  -  total flux cleaned = 0.011146 Jy
! Component: 200  -  total flux cleaned = 0.0120997 Jy
! Total flux subtracted in 200 components = 0.0120997 Jy
! Clean residual min=-0.003489 max=0.004865 Jy/beam
! Clean residual mean=0.000324 rms=0.000868 Jy/beam
! Combined flux in latest and established models = 0.97699 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 139 components and 0.97699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319811Jy  sigma=0.001399
! Fit after  self-cal, rms=0.319797Jy  sigma=0.001399
! Inverting map 
! Added new window around map position (-42.5, 19).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00485724 Jy
! Component: 100  -  total flux cleaned = 0.00821072 Jy
! Component: 150  -  total flux cleaned = 0.0103184 Jy
! Component: 200  -  total flux cleaned = 0.0115928 Jy
! Total flux subtracted in 200 components = 0.0115928 Jy
! Clean residual min=-0.003370 max=0.004343 Jy/beam
! Clean residual mean=0.000284 rms=0.000816 Jy/beam
! Combined flux in latest and established models = 0.988583 Jy
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 166 components and 0.988583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319699Jy  sigma=0.001397
! Fit after  self-cal, rms=0.319692Jy  sigma=0.001397
! Inverting map 
! Added new window around map position (-29, 18.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00482598 Jy
! Component: 100  -  total flux cleaned = 0.00798703 Jy
! Component: 150  -  total flux cleaned = 0.0100683 Jy
! Component: 200  -  total flux cleaned = 0.011209 Jy
! Total flux subtracted in 200 components = 0.011209 Jy
! Clean residual min=-0.003301 max=0.003707 Jy/beam
! Clean residual mean=0.000247 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 0.999792 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 199 components and 0.999792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319599Jy  sigma=0.001396
! Fit after  self-cal, rms=0.319593Jy  sigma=0.001396
! 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.319593Jy  sigma=0.001396
! Fit after  self-cal, rms=0.322104Jy  sigma=0.001387
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.304 mas, bmaj=3.213 mas, bpa=-8.749 degrees
! Estimated noise=287.671 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00246279 Jy
! Component: 100  -  total flux cleaned = 0.00418528 Jy
! Component: 150  -  total flux cleaned = 0.00546426 Jy
! Component: 200  -  total flux cleaned = 0.0065591 Jy
! Total flux subtracted in 200 components = 0.0065591 Jy
! Clean residual min=-0.002903 max=0.003353 Jy/beam
! Clean residual mean=0.000255 rms=0.000697 Jy/beam
! Combined flux in latest and established models = 1.00635 Jy
selfcal
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 214 components and 1.00635 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322045Jy  sigma=0.001387
! Fit after  self-cal, rms=0.322154Jy  sigma=0.001387
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 (-9, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00271833 Jy
! Component: 100  -  total flux cleaned = 0.00307924 Jy
! Component: 150  -  total flux cleaned = 0.0038421 Jy
! Component: 200  -  total flux cleaned = 0.00447954 Jy
! Total flux subtracted in 200 components = 0.00447954 Jy
! Clean residual min=-0.002853 max=0.003265 Jy/beam
! Clean residual mean=0.000240 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 1.01083 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 229 components and 1.01083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322093Jy  sigma=0.001386
! Fit after  self-cal, rms=0.322087Jy  sigma=0.001386
! Inverting map 
! Added new window around map position (-35.5, 19).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00309803 Jy
! Component: 100  -  total flux cleaned = 0.00480782 Jy
! Component: 150  -  total flux cleaned = 0.00541537 Jy
! Component: 200  -  total flux cleaned = 0.00584239 Jy
! Total flux subtracted in 200 components = 0.00584239 Jy
! Clean residual min=-0.002841 max=0.003038 Jy/beam
! Clean residual mean=0.000221 rms=0.000665 Jy/beam
! Combined flux in latest and established models = 1.01667 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 249 components and 1.01667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322036Jy  sigma=0.001385
! Fit after  self-cal, rms=0.322037Jy  sigma=0.001385
! Inverting map 
! Added new window around map position (-87.5, 30).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00287675 Jy
! Component: 100  -  total flux cleaned = 0.00431855 Jy
! Component: 150  -  total flux cleaned = 0.00513256 Jy
! Component: 200  -  total flux cleaned = 0.00577696 Jy
! Total flux subtracted in 200 components = 0.00577696 Jy
! Clean residual min=-0.002709 max=0.003100 Jy/beam
! Clean residual mean=0.000201 rms=0.000651 Jy/beam
! Combined flux in latest and established models = 1.02245 Jy
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 265 components and 1.02245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321992Jy  sigma=0.001385
! Fit after  self-cal, rms=0.321993Jy  sigma=0.001385
! Inverting map 
! Added new window around map position (-57.5, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0028131 Jy
! Component: 100  -  total flux cleaned = 0.00461259 Jy
! Component: 150  -  total flux cleaned = 0.00581412 Jy
! Component: 200  -  total flux cleaned = 0.00647221 Jy
! Total flux subtracted in 200 components = 0.00647221 Jy
! Clean residual min=-0.002639 max=0.002853 Jy/beam
! Clean residual mean=0.000176 rms=0.000636 Jy/beam
! Combined flux in latest and established models = 1.02892 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 281 components and 1.02892 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321952Jy  sigma=0.001385
! Fit after  self-cal, rms=0.321950Jy  sigma=0.001385
! Inverting map 
! Added new window around map position (-24, 11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00310225 Jy
! Component: 100  -  total flux cleaned = 0.00507844 Jy
! Component: 150  -  total flux cleaned = 0.00614618 Jy
! Component: 200  -  total flux cleaned = 0.00698283 Jy
! Total flux subtracted in 200 components = 0.00698283 Jy
! Clean residual min=-0.002587 max=0.002728 Jy/beam
! Clean residual mean=0.000153 rms=0.000611 Jy/beam
! Combined flux in latest and established models = 1.0359 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 301 components and 1.0359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321912Jy  sigma=0.001384
! Fit after  self-cal, rms=0.321908Jy  sigma=0.001384
! Inverting map 
! Added new window around map position (-76.5, 87.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0027847 Jy
! Component: 100  -  total flux cleaned = 0.00448765 Jy
! Component: 150  -  total flux cleaned = 0.00522261 Jy
! Component: 200  -  total flux cleaned = 0.0060214 Jy
! Total flux subtracted in 200 components = 0.0060214 Jy
! Clean residual min=-0.002557 max=0.002635 Jy/beam
! Clean residual mean=0.000137 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 1.04193 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 314 components and 1.04193 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321868Jy  sigma=0.001384
! Fit after  self-cal, rms=0.321862Jy  sigma=0.001384
! Inverting map 
! Added new window around map position (-78, 19.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00291074 Jy
! Component: 100  -  total flux cleaned = 0.00494814 Jy
! Component: 150  -  total flux cleaned = 0.00647892 Jy
! Component: 200  -  total flux cleaned = 0.00739711 Jy
! Total flux subtracted in 200 components = 0.00739711 Jy
! Clean residual min=-0.002428 max=0.002437 Jy/beam
! Clean residual mean=0.000109 rms=0.000581 Jy/beam
! Combined flux in latest and established models = 1.04932 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 333 components and 1.04932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321825Jy  sigma=0.001383
! Fit after  self-cal, rms=0.321824Jy  sigma=0.001383
! 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.321824Jy  sigma=0.001383
! Fit after  self-cal, rms=0.323113Jy  sigma=0.001382
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.302 mas, bmaj=3.216 mas, bpa=-8.833 degrees
! Estimated noise=287.718 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00116984 Jy
! Component: 100  -  total flux cleaned = 0.00187867 Jy
! Component: 150  -  total flux cleaned = 0.00267213 Jy
! Component: 200  -  total flux cleaned = 0.00348182 Jy
! Total flux subtracted in 200 components = 0.00348182 Jy
! Clean residual min=-0.002336 max=0.002448 Jy/beam
! Clean residual mean=0.000132 rms=0.000564 Jy/beam
! Combined flux in latest and established models = 1.0528 Jy
selfcal
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 349 components and 1.0528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323088Jy  sigma=0.001382
! Fit after  self-cal, rms=0.323105Jy  sigma=0.001382
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 (61, 34.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00193797 Jy
! Component: 100  -  total flux cleaned = 0.00274651 Jy
! Component: 150  -  total flux cleaned = 0.0034088 Jy
! Component: 200  -  total flux cleaned = 0.00410077 Jy
! Total flux subtracted in 200 components = 0.00410077 Jy
! Clean residual min=-0.002332 max=0.002274 Jy/beam
! Clean residual mean=0.000117 rms=0.000555 Jy/beam
! Combined flux in latest and established models = 1.05691 Jy
! Performing phase self-cal
! Adding 64 model components to the UV plane model.
! The established model now contains 365 components and 1.05691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323082Jy  sigma=0.001382
! Fit after  self-cal, rms=0.323081Jy  sigma=0.001382
! 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.323081Jy  sigma=0.001382
! Fit after  self-cal, rms=0.323031Jy  sigma=0.001382
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.737 mas, bmaj=8.578 mas, bpa=32.77 degrees
! Estimated noise=455.623 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00426272 Jy
! Component: 100  -  total flux cleaned = 0.00757581 Jy
! Component: 150  -  total flux cleaned = 0.0103642 Jy
! Component: 200  -  total flux cleaned = 0.0127888 Jy
! Total flux subtracted in 200 components = 0.0127888 Jy
! Clean residual min=-0.003603 max=0.004223 Jy/beam
! Clean residual mean=0.000335 rms=0.001170 Jy/beam
! Combined flux in latest and established models = 1.06969 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 393 components and 1.06969 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323015Jy  sigma=0.001382
! Fit after  self-cal, rms=0.323014Jy  sigma=0.001382
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.00234023 Jy
! Component: 100  -  total flux cleaned = 0.00400013 Jy
! Component: 150  -  total flux cleaned = 0.00548991 Jy
! Component: 200  -  total flux cleaned = 0.00677444 Jy
! Total flux subtracted in 200 components = 0.00677444 Jy
! Clean residual min=-0.003568 max=0.004340 Jy/beam
! Clean residual mean=0.000232 rms=0.001155 Jy/beam
! Combined flux in latest and established models = 1.07647 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 405 components and 1.07647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323013Jy  sigma=0.001382
! Fit after  self-cal, rms=0.323011Jy  sigma=0.001382
! 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.302 mas, bmaj=3.216 mas, bpa=-8.869 degrees
! Estimated noise=287.775 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.302 x 3.216 at -8.869 degrees (North through East)
! Clean map  min=-0.0020472  max=0.64448 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.323011Jy  sigma=0.001382
! Fit after  self-cal, rms=0.484159Jy  sigma=0.001282
! Inverting map and beam 
! Estimated beam: bmin=2.3 mas, bmaj=3.214 mas, bpa=-8.786 degrees
! Estimated noise=287.567 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000305396 Jy
! Component: 100  -  total flux cleaned = 0.000422986 Jy
! Component: 150  -  total flux cleaned = 0.000584205 Jy
! Component: 200  -  total flux cleaned = 0.000733848 Jy
! Total flux subtracted in 200 components = 0.000733848 Jy
! Clean residual min=-0.001973 max=0.002232 Jy/beam
! Clean residual mean=0.000080 rms=0.000449 Jy/beam
! Combined flux in latest and established models = 1.0772 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 422 components and 1.0772 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484147Jy  sigma=0.001282
! Fit after  self-cal, rms=0.484147Jy  sigma=0.001282
! Inverting map 
! Added new window around map position (-110, 45.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00217099 Jy
! Component: 100  -  total flux cleaned = 0.00357943 Jy
! Component: 150  -  total flux cleaned = 0.00416543 Jy
! Component: 200  -  total flux cleaned = 0.00448457 Jy
! Total flux subtracted in 200 components = 0.00448457 Jy
! Clean residual min=-0.001917 max=0.001973 Jy/beam
! Clean residual mean=0.000069 rms=0.000433 Jy/beam
! Combined flux in latest and established models = 1.08169 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 438 components and 1.08169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484129Jy  sigma=0.001282
! Fit after  self-cal, rms=0.484155Jy  sigma=0.001282
! Inverting map 
! Added new window around map position (-128, -68.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00201832 Jy
! Component: 100  -  total flux cleaned = 0.00304698 Jy
! Component: 150  -  total flux cleaned = 0.00353564 Jy
! Component: 200  -  total flux cleaned = 0.00387219 Jy
! Total flux subtracted in 200 components = 0.00387219 Jy
! Clean residual min=-0.001960 max=0.001931 Jy/beam
! Clean residual mean=0.000060 rms=0.000426 Jy/beam
! Combined flux in latest and established models = 1.08556 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 452 components and 1.08556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484143Jy  sigma=0.001282
! Fit after  self-cal, rms=0.484161Jy  sigma=0.001282
! Inverting map 
! Added new window around map position (-97, 100.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00172415 Jy
! Component: 100  -  total flux cleaned = 0.00241881 Jy
! Component: 150  -  total flux cleaned = 0.00270207 Jy
! Component: 200  -  total flux cleaned = 0.00301095 Jy
! Total flux subtracted in 200 components = 0.00301095 Jy
! Clean residual min=-0.001908 max=0.001751 Jy/beam
! Clean residual mean=0.000054 rms=0.000419 Jy/beam
! Combined flux in latest and established models = 1.08857 Jy
! Performing phase self-cal
! Adding 56 model components to the UV plane model.
! The established model now contains 470 components and 1.08857 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484144Jy  sigma=0.001282
! Fit after  self-cal, rms=0.484157Jy  sigma=0.001282
! 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.484157Jy  sigma=0.001282
! Fit after  self-cal, rms=0.491372Jy  sigma=0.001281
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.889 mas, bmaj=2.656 mas, bpa=-6.374 degrees
! Estimated noise=613.285 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.474376 Jy
! Component: 100  -  total flux cleaned = 0.609452 Jy
! Component: 150  -  total flux cleaned = 0.677149 Jy
! Component: 200  -  total flux cleaned = 0.717439 Jy
! Total flux subtracted in 200 components = 0.717439 Jy
! Clean residual min=-0.006027 max=0.022914 Jy/beam
! Clean residual mean=0.000034 rms=0.001515 Jy/beam
! Combined flux in latest and established models = 0.717439 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 15 model components to the UV plane model.
! The established model now contains 15 components and 0.717439 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.299 mas, bmaj=3.214 mas, bpa=-8.801 degrees
! Estimated noise=287.603 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.057293 Jy
! Component: 100  -  total flux cleaned = 0.098339 Jy
! Component: 150  -  total flux cleaned = 0.129328 Jy
! Component: 200  -  total flux cleaned = 0.153727 Jy
! Total flux subtracted in 200 components = 0.153727 Jy
! Clean residual min=-0.004730 max=0.014524 Jy/beam
! Clean residual mean=0.000740 rms=0.001838 Jy/beam
! Combined flux in latest and established models = 0.871166 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 73 components and 0.871166 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0196343 Jy
! Component: 100  -  total flux cleaned = 0.035553 Jy
! Component: 150  -  total flux cleaned = 0.0485379 Jy
! Component: 200  -  total flux cleaned = 0.0592307 Jy
! Total flux subtracted in 200 components = 0.0592307 Jy
! Clean residual min=-0.003293 max=0.006521 Jy/beam
! Clean residual mean=0.000564 rms=0.001127 Jy/beam
! Combined flux in latest and established models = 0.930397 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 115 components and 0.930397 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00898836 Jy
! Component: 100  -  total flux cleaned = 0.0168304 Jy
! Component: 150  -  total flux cleaned = 0.0238482 Jy
! Component: 200  -  total flux cleaned = 0.0302052 Jy
! Total flux subtracted in 200 components = 0.0302052 Jy
! Clean residual min=-0.002757 max=0.004430 Jy/beam
! Clean residual mean=0.000473 rms=0.000872 Jy/beam
! Combined flux in latest and established models = 0.960602 Jy
! Adding 91 model components to the UV plane model.
! The established model now contains 181 components and 0.960602 Jy
! Inverting map 
! Added new window around map position (-28, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00584871 Jy
! Component: 100  -  total flux cleaned = 0.0111656 Jy
! Component: 150  -  total flux cleaned = 0.0160442 Jy
! Component: 200  -  total flux cleaned = 0.0205594 Jy
! Total flux subtracted in 200 components = 0.0205594 Jy
! Clean residual min=-0.002475 max=0.003384 Jy/beam
! Clean residual mean=0.000408 rms=0.000734 Jy/beam
! Combined flux in latest and established models = 0.981161 Jy
! Adding 82 model components to the UV plane model.
! The established model now contains 222 components and 0.981161 Jy
! Inverting map 
! Added new window around map position (-17.5, 17).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00430556 Jy
! Component: 100  -  total flux cleaned = 0.00829363 Jy
! Component: 150  -  total flux cleaned = 0.0120532 Jy
! Component: 200  -  total flux cleaned = 0.0156114 Jy
! Total flux subtracted in 200 components = 0.0156114 Jy
! Clean residual min=-0.002294 max=0.002815 Jy/beam
! Clean residual mean=0.000358 rms=0.000653 Jy/beam
! Combined flux in latest and established models = 0.996772 Jy
! Adding 93 model components to the UV plane model.
! The established model now contains 267 components and 0.996773 Jy
! Inverting map 
! Added new window around map position (-80, 13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00344907 Jy
! Component: 100  -  total flux cleaned = 0.0066746 Jy
! Component: 150  -  total flux cleaned = 0.00975136 Jy
! Component: 200  -  total flux cleaned = 0.0126959 Jy
! Total flux subtracted in 200 components = 0.0126959 Jy
! Clean residual min=-0.002126 max=0.002527 Jy/beam
! Clean residual mean=0.000317 rms=0.000597 Jy/beam
! Combined flux in latest and established models = 1.00947 Jy
! Adding 99 model components to the UV plane model.
! The established model now contains 303 components and 1.00947 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=6.736 mas, bmaj=8.578 mas, bpa=32.68 degrees
! Estimated noise=456.265 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.009568 Jy
! Component: 100  -  total flux cleaned = 0.0172652 Jy
! Component: 150  -  total flux cleaned = 0.0238646 Jy
! Component: 200  -  total flux cleaned = 0.029737 Jy
! Total flux subtracted in 200 components = 0.029737 Jy
! Clean residual min=-0.002962 max=0.004935 Jy/beam
! Clean residual mean=0.000918 rms=0.001378 Jy/beam
! Combined flux in latest and established models = 1.03921 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.00530545 Jy
! Component: 100  -  total flux cleaned = 0.0101287 Jy
! Component: 150  -  total flux cleaned = 0.014537 Jy
! Component: 200  -  total flux cleaned = 0.0185746 Jy
! Total flux subtracted in 200 components = 0.0185746 Jy
! Clean residual min=-0.002474 max=0.004195 Jy/beam
! Clean residual mean=0.000673 rms=0.001128 Jy/beam
! Combined flux in latest and established models = 1.05778 Jy
! Adding 231 model components to the UV plane model.
! The established model now contains 497 components and 1.05778 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.299 mas, bmaj=3.214 mas, bpa=-8.801 degrees
! Estimated noise=287.603 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00221209 Jy
! Component: 100  -  total flux cleaned = 0.00408879 Jy
! Component: 150  -  total flux cleaned = 0.00581015 Jy
! Component: 200  -  total flux cleaned = 0.00742027 Jy
! Total flux subtracted in 200 components = 0.00742027 Jy
! Clean residual min=-0.001837 max=0.001868 Jy/beam
! Clean residual mean=0.000137 rms=0.000436 Jy/beam
! Combined flux in latest and established models = 1.0652 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 524 components and 1.0652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.491390Jy  sigma=0.001282
! Fit after  self-cal, rms=0.491283Jy  sigma=0.001282
wmodel J1955+5131_S_1999_03_08_pus_map.mod
! Writing 524 model components to file: J1955+5131_S_1999_03_08_pus_map.mod
wobs J1955+5131_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J1955+5131_S_1999_03_08_pus_uvs.fits
wwins J1955+5131_S_1999_03_08_pus_map.win
! wwins: Wrote 22 windows to J1955+5131_S_1999_03_08_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.000649128 Jy
! Component: 100  -  total flux cleaned = 0.00132098 Jy
! Component: 150  -  total flux cleaned = 0.00193711 Jy
! Component: 200  -  total flux cleaned = 0.00250713 Jy
! Component: 250  -  total flux cleaned = 0.00306498 Jy
! Component: 300  -  total flux cleaned = 0.00358442 Jy
! Component: 350  -  total flux cleaned = 0.00415305 Jy
! Component: 400  -  total flux cleaned = 0.00462988 Jy
! Component: 450  -  total flux cleaned = 0.00499024 Jy
! Component: 500  -  total flux cleaned = 0.00542919 Jy
! Component: 550  -  total flux cleaned = 0.00583614 Jy
! Component: 600  -  total flux cleaned = 0.0062392 Jy
! Component: 650  -  total flux cleaned = 0.00666482 Jy
! Component: 700  -  total flux cleaned = 0.00695491 Jy
! Component: 750  -  total flux cleaned = 0.00739962 Jy
! Component: 800  -  total flux cleaned = 0.00773674 Jy
! Component: 850  -  total flux cleaned = 0.00804561 Jy
! Component: 900  -  total flux cleaned = 0.00837819 Jy
! Component: 950  -  total flux cleaned = 0.0087081 Jy
! Component: 1000  -  total flux cleaned = 0.00901056 Jy
! Component: 1050  -  total flux cleaned = 0.00933624 Jy
! Component: 1100  -  total flux cleaned = 0.00956028 Jy
! Component: 1150  -  total flux cleaned = 0.00993159 Jy
! Component: 1200  -  total flux cleaned = 0.010153 Jy
! Component: 1250  -  total flux cleaned = 0.0104709 Jy
! Component: 1300  -  total flux cleaned = 0.0107629 Jy
! Component: 1350  -  total flux cleaned = 0.0110769 Jy
! Component: 1400  -  total flux cleaned = 0.0112931 Jy
! Component: 1450  -  total flux cleaned = 0.0116041 Jy
! Component: 1500  -  total flux cleaned = 0.0118183 Jy
! Component: 1550  -  total flux cleaned = 0.0120785 Jy
! Component: 1600  -  total flux cleaned = 0.0124081 Jy
! Component: 1650  -  total flux cleaned = 0.0127126 Jy
! Component: 1700  -  total flux cleaned = 0.0128991 Jy
! Component: 1750  -  total flux cleaned = 0.0131312 Jy
! Component: 1800  -  total flux cleaned = 0.0133852 Jy
! Component: 1850  -  total flux cleaned = 0.0136382 Jy
! Component: 1900  -  total flux cleaned = 0.0138442 Jy
! Component: 1950  -  total flux cleaned = 0.0140949 Jy
! Component: 2000  -  total flux cleaned = 0.0143219 Jy
! Component: 2050  -  total flux cleaned = 0.0145479 Jy
! Component: 2100  -  total flux cleaned = 0.0146829 Jy
! Component: 2150  -  total flux cleaned = 0.014952 Jy
! Component: 2200  -  total flux cleaned = 0.0152201 Jy
! Component: 2250  -  total flux cleaned = 0.0154202 Jy
! Component: 2300  -  total flux cleaned = 0.015509 Jy
! Component: 2350  -  total flux cleaned = 0.0157522 Jy
! Component: 2400  -  total flux cleaned = 0.0158624 Jy
! Component: 2450  -  total flux cleaned = 0.0160819 Jy
! Component: 2500  -  total flux cleaned = 0.0162787 Jy
! Component: 2550  -  total flux cleaned = 0.0164531 Jy
! Component: 2600  -  total flux cleaned = 0.0166486 Jy
! Component: 2650  -  total flux cleaned = 0.0168001 Jy
! Component: 2700  -  total flux cleaned = 0.0169511 Jy
! Component: 2750  -  total flux cleaned = 0.0171017 Jy
! Component: 2800  -  total flux cleaned = 0.0172517 Jy
! Component: 2850  -  total flux cleaned = 0.0174653 Jy
! Component: 2900  -  total flux cleaned = 0.0176571 Jy
! Component: 2950  -  total flux cleaned = 0.0177634 Jy
! Component: 3000  -  total flux cleaned = 0.0179539 Jy
! Component: 3050  -  total flux cleaned = 0.0181017 Jy
! Component: 3100  -  total flux cleaned = 0.0182701 Jy
! Component: 3150  -  total flux cleaned = 0.0184171 Jy
! Component: 3200  -  total flux cleaned = 0.0185635 Jy
! Component: 3250  -  total flux cleaned = 0.0187513 Jy
! Component: 3300  -  total flux cleaned = 0.0188761 Jy
! Component: 3350  -  total flux cleaned = 0.019125 Jy
! Component: 3400  -  total flux cleaned = 0.0192285 Jy
! Component: 3450  -  total flux cleaned = 0.0193729 Jy
! Component: 3500  -  total flux cleaned = 0.0195786 Jy
! Component: 3550  -  total flux cleaned = 0.0196812 Jy
! Component: 3600  -  total flux cleaned = 0.019845 Jy
! Component: 3650  -  total flux cleaned = 0.0200288 Jy
! Component: 3700  -  total flux cleaned = 0.0201713 Jy
! Component: 3750  -  total flux cleaned = 0.0202729 Jy
! Component: 3800  -  total flux cleaned = 0.020516 Jy
! Component: 3850  -  total flux cleaned = 0.0207181 Jy
! Component: 3900  -  total flux cleaned = 0.0207785 Jy
! Component: 3950  -  total flux cleaned = 0.020859 Jy
! Component: 4000  -  total flux cleaned = 0.0210596 Jy
! Component: 4050  -  total flux cleaned = 0.0211797 Jy
! Total flux subtracted in 4096 components = 0.0213194 Jy
! Clean residual min=-0.001074 max=0.001531 Jy/beam
! Clean residual mean=0.000076 rms=0.000353 Jy/beam
! Combined flux in latest and established models = 1.08652 Jy
keep
! Adding 411 model components to the UV plane model.
! The established model now contains 935 components and 1.08652 Jy
![Exited script file: muppet]
wmap "J1955+5131_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.299 x 3.214 at -8.801 degrees (North through East)
! Clean map  min=-0.0014095  max=0.64487 Jy/beam
! Writing clean map to FITS file: J1955+5131_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.644867 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000354153 
device "J1955+5131_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J1955+5131_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.164756 0.164756 0.329513 0.659026 1.31805 2.6361 5.27221 10.5444 21.0888 42.1776 84.3553
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.644 
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.299 x 3.214 at -8.801 degrees (North through East)
! Clean map  min=-0.0014095  max=0.64487 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1955+5131_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J1955+5131_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1955+5131_S_1999_03_08_pus_uvs.log closed on Wed Jan  9 14:10:10 2008