! Started logfile: J2355+4950_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:40:11 2008
obs J2355+4950_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J2355+4950_S_1999_03_08_pus_uva.fits
! AN table 1: 152 integrations on 190 of 190 possible baselines.
! AN table 2: 190 integrations on 190 of 190 possible baselines.
! AN table 3: 93 integrations on 190 of 190 possible baselines.
! AN table 4: 170 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.161696 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2355+4950
! 
! 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 74348 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J2355+4950_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 = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1980 telescope corrections were flagged in sub-array 1.
!  A total of 2527 telescope corrections were flagged in sub-array 2.
!  A total of 1304 telescope corrections were flagged in sub-array 3.
!  A total of 2670 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1980 telescope corrections were flagged in sub-array 1.
!  A total of 2527 telescope corrections were flagged in sub-array 2.
!  A total of 1304 telescope corrections were flagged in sub-array 3.
!  A total of 2670 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1980 telescope corrections were flagged in sub-array 1.
!  A total of 2527 telescope corrections were flagged in sub-array 2.
!  A total of 1304 telescope corrections were flagged in sub-array 3.
!  A total of 2670 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1980 telescope corrections were flagged in sub-array 1.
!  A total of 2527 telescope corrections were flagged in sub-array 2.
!  A total of 1304 telescope corrections were flagged in sub-array 3.
!  A total of 2670 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.790796Jy  sigma=0.004747
! Fit after  self-cal, rms=0.661334Jy  sigma=0.004010
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.102 mas, bmaj=2.486 mas, bpa=-22.07 degrees
! Estimated noise=746.261 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.420863 Jy
! Component: 100  -  total flux cleaned = 0.612561 Jy
! Total flux subtracted in 100 components = 0.612561 Jy
! Clean residual min=-0.026884 max=0.091711 Jy/beam
! Clean residual mean=0.000198 rms=0.008392 Jy/beam
! Combined flux in latest and established models = 0.612561 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.612561 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.427925Jy  sigma=0.002705
! Fit after  self-cal, rms=0.417462Jy  sigma=0.002670
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.12428 Jy
! Component: 100  -  total flux cleaned = 0.202251 Jy
! Total flux subtracted in 100 components = 0.202251 Jy
! Clean residual min=-0.018047 max=0.101620 Jy/beam
! Clean residual mean=0.000160 rms=0.006357 Jy/beam
! Combined flux in latest and established models = 0.814811 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 21 components and 0.814811 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366135Jy  sigma=0.002226
! Fit after  self-cal, rms=0.364942Jy  sigma=0.002222
! Inverting map 
! Added new window around map position (-6, 16.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.088896 Jy
! Component: 100  -  total flux cleaned = 0.141408 Jy
! Total flux subtracted in 100 components = 0.141408 Jy
! Clean residual min=-0.015005 max=0.074183 Jy/beam
! Clean residual mean=0.000134 rms=0.005072 Jy/beam
! Combined flux in latest and established models = 0.95622 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 28 components and 0.95622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.337724Jy  sigma=0.001995
! Fit after  self-cal, rms=0.336433Jy  sigma=0.001987
! Inverting map 
! Added new window around map position (8.5, -30.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0649134 Jy
! Component: 100  -  total flux cleaned = 0.105172 Jy
! Total flux subtracted in 100 components = 0.105172 Jy
! Clean residual min=-0.013510 max=0.033276 Jy/beam
! Clean residual mean=0.000117 rms=0.004147 Jy/beam
! Combined flux in latest and established models = 1.06139 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 38 components and 1.06139 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318271Jy  sigma=0.001831
! Fit after  self-cal, rms=0.317685Jy  sigma=0.001827
! Inverting map 
! Added new window around map position (5.5, -23).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0374907 Jy
! Component: 100  -  total flux cleaned = 0.0687169 Jy
! Total flux subtracted in 100 components = 0.0687169 Jy
! Clean residual min=-0.012801 max=0.030996 Jy/beam
! Clean residual mean=0.000106 rms=0.003727 Jy/beam
! Combined flux in latest and established models = 1.13011 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 44 components and 1.13011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309516Jy  sigma=0.001754
! Fit after  self-cal, rms=0.309384Jy  sigma=0.001753
! Inverting map 
! Added new window around map position (16.5, -27.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0319744 Jy
! Component: 100  -  total flux cleaned = 0.0581942 Jy
! Total flux subtracted in 100 components = 0.0581942 Jy
! Clean residual min=-0.012044 max=0.023107 Jy/beam
! Clean residual mean=0.000096 rms=0.003396 Jy/beam
! Combined flux in latest and established models = 1.1883 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 58 components and 1.1883 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303033Jy  sigma=0.001695
! Fit after  self-cal, rms=0.302919Jy  sigma=0.001695
! Inverting map 
! Added new window around map position (-1, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0255533 Jy
! Component: 100  -  total flux cleaned = 0.0480033 Jy
! Total flux subtracted in 100 components = 0.0480033 Jy
! Clean residual min=-0.011051 max=0.017171 Jy/beam
! Clean residual mean=0.000089 rms=0.003157 Jy/beam
! Combined flux in latest and established models = 1.23631 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 66 components and 1.23631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298665Jy  sigma=0.001655
! Fit after  self-cal, rms=0.298609Jy  sigma=0.001655
! 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.525 mas, bmaj=2.913 mas, bpa=-10.64 degrees
! Estimated noise=408.516 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 (10.5, -29).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0447735 Jy
! Component: 100  -  total flux cleaned = 0.0809398 Jy
! Component: 150  -  total flux cleaned = 0.111849 Jy
! Component: 200  -  total flux cleaned = 0.138728 Jy
! Total flux subtracted in 200 components = 0.138728 Jy
! Clean residual min=-0.008345 max=0.032460 Jy/beam
! Clean residual mean=0.003426 rms=0.004609 Jy/beam
! Combined flux in latest and established models = 1.37503 Jy
! Performing phase self-cal
! Adding 65 model components to the UV plane model.
! The established model now contains 111 components and 1.37503 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287899Jy  sigma=0.001555
! Fit after  self-cal, rms=0.287437Jy  sigma=0.001551
! Inverting map 
! Added new window around map position (-13, 20.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0340833 Jy
! Component: 100  -  total flux cleaned = 0.0601318 Jy
! Component: 150  -  total flux cleaned = 0.0831515 Jy
! Component: 200  -  total flux cleaned = 0.104046 Jy
! Total flux subtracted in 200 components = 0.104046 Jy
! Clean residual min=-0.007205 max=0.019198 Jy/beam
! Clean residual mean=0.002516 rms=0.003561 Jy/beam
! Combined flux in latest and established models = 1.47908 Jy
! Performing phase self-cal
! Adding 82 model components to the UV plane model.
! The established model now contains 170 components and 1.47908 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281297Jy  sigma=0.001490
! Fit after  self-cal, rms=0.281059Jy  sigma=0.001489
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.90     GC        0.96     GG        1.00*    
!   HN        0.97     KP        1.00*    LA        1.00*    NL        1.05     
!   OV        1.00*    PT        1.00*    SC        1.01     WF        0.85     
!   GN        0.86     HH        1.00*    KK        1.09     MC        1.04     
!   MK        0.96     NY        0.96     ON        1.02     WZ        1.01     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.96     GC        0.99     GG        1.00*    
!   HN        1.00     KP        0.88     LA        0.91     NL        0.99     
!   OV        1.00*    PT        0.99     SC        1.02     WF        0.90     
!   GN        0.99     HH        1.00*    KK        0.98     MC        1.10     
!   MK        0.99     NY        0.96     ON        0.94     WZ        0.99     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.97     GC        0.98     GG        1.00*    
!   HN        1.01     KP        1.00*    LA        1.00*    NL        1.01     
!   OV        1.00*    PT        1.00*    SC        1.02     WF        0.89     
!   GN        0.96     HH        1.00*    KK        0.99     MC        1.15     
!   MK        0.99     NY        0.93     ON        0.98     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.92     FD        0.91     GC        0.98     GG        1.00*    
!   HN        0.96     KP        0.99     LA        0.98     NL        0.94     
!   OV        0.91     PT        0.93     SC        1.00*    WF        0.93     
!   GN        1.02     HH        1.00*    KK        0.97     MC        1.00*    
!   MK        0.97     NY        0.99     ON        0.97     WZ        1.09     
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.91     GC        0.99     GG        1.00*    
!   HN        0.88     KP        1.00*    LA        1.00*    NL        0.91     
!   OV        1.00*    PT        1.00*    SC        1.08     WF        0.87     
!   GN        0.87     HH        1.00*    KK        1.05     MC        2.48     
!   MK        0.99     NY        0.94     ON        1.02     WZ        0.99     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.01     GC        1.02     GG        1.00*    
!   HN        0.95     KP        0.89     LA        0.90     NL        0.91     
!   OV        1.00*    PT        0.95     SC        1.06     WF        0.93     
!   GN        0.99     HH        1.00*    KK        0.96     MC        1.16     
!   MK        1.01     NY        0.97     ON        0.97     WZ        1.07     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00     GC        0.98     GG        1.00*    
!   HN        0.91     KP        1.00*    LA        1.00*    NL        0.97     
!   OV        1.00*    PT        1.00*    SC        1.06     WF        0.86     
!   GN        0.99     HH        1.00*    KK        0.96     MC        1.43     
!   MK        1.01     NY        0.95     ON        1.01     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.97     GC        1.02     GG        1.00*    
!   HN        0.94     KP        1.02     LA        0.97     NL        1.12     
!   OV        0.90     PT        0.90     SC        1.00*    WF        0.97     
!   GN        1.02     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        0.99     NY        0.98     ON        1.00     WZ        1.11     
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.94     GC        0.99     GG        1.00*    
!   HN        1.12     KP        1.00*    LA        1.00*    NL        1.02     
!   OV        1.00*    PT        1.00*    SC        1.08     WF        0.92     
!   GN        0.88     HH        1.00*    KK        1.06     MC        1.22     
!   MK        0.99     NY        0.98     ON        1.02     WZ        1.10     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        1.02     GG        1.00*    
!   HN        1.23     KP        0.92     LA        0.95     NL        0.99     
!   OV        1.00*    PT        0.93     SC        1.05     WF        0.97     
!   GN        0.99     HH        1.00*    KK        0.97     MC        0.73     
!   MK        1.01     NY        0.99     ON        0.99     WZ        1.05     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GC        0.98     GG        1.00*    
!   HN        1.18     KP        1.00*    LA        1.00*    NL        1.00     
!   OV        1.00*    PT        1.00*    SC        1.01     WF        0.90     
!   GN        0.99     HH        1.00*    KK        0.98     MC        2.40     
!   MK        1.00     NY        0.97     ON        1.03     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.96     GC        1.00     GG        1.00*    
!   HN        1.19     KP        1.04     LA        0.98     NL        1.01     
!   OV        0.94     PT        0.88     SC        1.00*    WF        0.94     
!   GN        1.01     HH        1.00*    KK        0.97     MC        1.00*    
!   MK        1.02     NY        1.02     ON        1.00     WZ        1.11     
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.91     GC        1.02     GG        1.00*    
!   HN        1.12     KP        1.00*    LA        1.00*    NL        0.96     
!   OV        1.00*    PT        1.00*    SC        1.09     WF        0.91     
!   GN        0.88     HH        1.00*    KK        1.12     MC        1.02     
!   MK        1.03     NY        0.98     ON        1.01     WZ        1.08     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.01     GC        1.06     GG        1.00*    
!   HN        1.16     KP        0.94     LA        0.94     NL        0.93     
!   OV        1.00*    PT        0.97     SC        1.06     WF        0.96     
!   GN        0.98     HH        1.00*    KK        1.02     MC        0.73     
!   MK        1.03     NY        1.02     ON        0.97     WZ        1.03     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.99     GC        1.01     GG        1.00*    
!   HN        1.12     KP        1.00*    LA        1.00*    NL        0.99     
!   OV        1.00*    PT        1.00*    SC        1.02     WF        0.94     
!   GN        0.96     HH        1.00*    KK        1.03     MC        1.38     
!   MK        1.04     NY        0.99     ON        1.01     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.97     GC        1.03     GG        1.00*    
!   HN        1.14     KP        1.04     LA        0.99     NL        1.12     
!   OV        0.95     PT        0.88     SC        1.00*    WF        0.93     
!   GN        1.04     HH        1.00*    KK        1.00     MC        1.00*    
!   MK        1.03     NY        1.03     ON        1.00     WZ        1.08     
! 
! 
! Fit before self-cal, rms=0.281059Jy  sigma=0.001489
! Fit after  self-cal, rms=0.269036Jy  sigma=0.001368
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.59 mas, bmaj=2.922 mas, bpa=-10.58 degrees
! Estimated noise=402.576 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 (2.5, -21).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0162374 Jy
! Component: 100  -  total flux cleaned = 0.0282217 Jy
! Component: 150  -  total flux cleaned = 0.0378021 Jy
! Component: 200  -  total flux cleaned = 0.0463531 Jy
! Total flux subtracted in 200 components = 0.0463531 Jy
! Clean residual min=-0.006339 max=0.011220 Jy/beam
! Clean residual mean=0.001388 rms=0.001973 Jy/beam
! Combined flux in latest and established models = 1.52543 Jy
! Performing phase self-cal
! Adding 56 model components to the UV plane model.
! The established model now contains 213 components and 1.52543 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267484Jy  sigma=0.001352
! Fit after  self-cal, rms=0.267730Jy  sigma=0.001351
! Inverting map 
! Added new window around map position (-15.5, 27.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0112389 Jy
! Component: 100  -  total flux cleaned = 0.0189557 Jy
! Component: 150  -  total flux cleaned = 0.0256166 Jy
! Component: 200  -  total flux cleaned = 0.0314156 Jy
! Total flux subtracted in 200 components = 0.0314156 Jy
! Clean residual min=-0.005012 max=0.008267 Jy/beam
! Clean residual mean=0.001104 rms=0.001705 Jy/beam
! Combined flux in latest and established models = 1.55685 Jy
! Performing phase self-cal
! Adding 65 model components to the UV plane model.
! The established model now contains 246 components and 1.55685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266905Jy  sigma=0.001342
! Fit after  self-cal, rms=0.266890Jy  sigma=0.001342
! 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.266890Jy  sigma=0.001342
! Fit after  self-cal, rms=0.267851Jy  sigma=0.001333
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.583 mas, bmaj=2.922 mas, bpa=-10.86 degrees
! Estimated noise=402.254 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00886407 Jy
! Component: 100  -  total flux cleaned = 0.016611 Jy
! Component: 150  -  total flux cleaned = 0.0227884 Jy
! Component: 200  -  total flux cleaned = 0.0284576 Jy
! Total flux subtracted in 200 components = 0.0284576 Jy
! Clean residual min=-0.004129 max=0.007542 Jy/beam
! Clean residual mean=0.001018 rms=0.001358 Jy/beam
! Combined flux in latest and established models = 1.58531 Jy
selfcal
! Performing phase self-cal
! Adding 65 model components to the UV plane model.
! The established model now contains 271 components and 1.58531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267298Jy  sigma=0.001327
! Fit after  self-cal, rms=0.267282Jy  sigma=0.001327
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 (-18.5, 20.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00703679 Jy
! Component: 100  -  total flux cleaned = 0.0122232 Jy
! Component: 150  -  total flux cleaned = 0.0169741 Jy
! Component: 200  -  total flux cleaned = 0.0213758 Jy
! Total flux subtracted in 200 components = 0.0213758 Jy
! Clean residual min=-0.003563 max=0.007577 Jy/beam
! Clean residual mean=0.000825 rms=0.001215 Jy/beam
! Combined flux in latest and established models = 1.60668 Jy
! Performing phase self-cal
! Adding 65 model components to the UV plane model.
! The established model now contains 295 components and 1.60668 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266923Jy  sigma=0.001323
! Fit after  self-cal, rms=0.266913Jy  sigma=0.001323
! Inverting map 
! Added new window around map position (0.5, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0055439 Jy
! Component: 100  -  total flux cleaned = 0.00904978 Jy
! Component: 150  -  total flux cleaned = 0.0126745 Jy
! Component: 200  -  total flux cleaned = 0.0158917 Jy
! Total flux subtracted in 200 components = 0.0158917 Jy
! Clean residual min=-0.003601 max=0.005725 Jy/beam
! Clean residual mean=0.000681 rms=0.001146 Jy/beam
! Combined flux in latest and established models = 1.62257 Jy
! Performing phase self-cal
! Adding 64 model components to the UV plane model.
! The established model now contains 321 components and 1.62258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266640Jy  sigma=0.001321
! Fit after  self-cal, rms=0.266625Jy  sigma=0.001321
! Inverting map 
! Added new window around map position (12.5, -23).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00560641 Jy
! Component: 100  -  total flux cleaned = 0.00789616 Jy
! Component: 150  -  total flux cleaned = 0.0103277 Jy
! Component: 200  -  total flux cleaned = 0.0124669 Jy
! Total flux subtracted in 200 components = 0.0124669 Jy
! Clean residual min=-0.003358 max=0.004943 Jy/beam
! Clean residual mean=0.000568 rms=0.001071 Jy/beam
! Combined flux in latest and established models = 1.63504 Jy
! Performing phase self-cal
! Adding 58 model components to the UV plane model.
! The established model now contains 344 components and 1.63504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266431Jy  sigma=0.001319
! Fit after  self-cal, rms=0.266421Jy  sigma=0.001319
! Inverting map 
! Added new window around map position (-4, -21.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00346052 Jy
! Component: 100  -  total flux cleaned = 0.00548781 Jy
! Component: 150  -  total flux cleaned = 0.00738721 Jy
! Component: 200  -  total flux cleaned = 0.00882991 Jy
! Total flux subtracted in 200 components = 0.00882991 Jy
! Clean residual min=-0.003198 max=0.004485 Jy/beam
! Clean residual mean=0.000489 rms=0.001022 Jy/beam
! Combined flux in latest and established models = 1.64387 Jy
! Performing phase self-cal
! Adding 67 model components to the UV plane model.
! The established model now contains 364 components and 1.64387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266292Jy  sigma=0.001318
! Fit after  self-cal, rms=0.266284Jy  sigma=0.001318
! Inverting map 
! Added new window around map position (-7, 22.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00380203 Jy
! Component: 100  -  total flux cleaned = 0.00533405 Jy
! Component: 150  -  total flux cleaned = 0.00644541 Jy
! Component: 200  -  total flux cleaned = 0.00761628 Jy
! Total flux subtracted in 200 components = 0.00761628 Jy
! Clean residual min=-0.003146 max=0.003726 Jy/beam
! Clean residual mean=0.000421 rms=0.000972 Jy/beam
! Combined flux in latest and established models = 1.65149 Jy
! Performing phase self-cal
! Adding 62 model components to the UV plane model.
! The established model now contains 385 components and 1.65149 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266187Jy  sigma=0.001317
! Fit after  self-cal, rms=0.266181Jy  sigma=0.001316
! 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.266181Jy  sigma=0.001316
! Fit after  self-cal, rms=0.265727Jy  sigma=0.001314
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.579 mas, bmaj=2.922 mas, bpa=-10.77 degrees
! Estimated noise=401.137 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00455097 Jy
! Component: 100  -  total flux cleaned = 0.00822691 Jy
! Component: 150  -  total flux cleaned = 0.0112973 Jy
! Component: 200  -  total flux cleaned = 0.0142775 Jy
! Total flux subtracted in 200 components = 0.0142775 Jy
! Clean residual min=-0.002417 max=0.003987 Jy/beam
! Clean residual mean=0.000588 rms=0.000873 Jy/beam
! Combined flux in latest and established models = 1.66577 Jy
selfcal
! Performing phase self-cal
! Adding 59 model components to the UV plane model.
! The established model now contains 406 components and 1.66577 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265573Jy  sigma=0.001313
! Fit after  self-cal, rms=0.265575Jy  sigma=0.001313
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 (-5, 12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00442267 Jy
! Component: 100  -  total flux cleaned = 0.00708031 Jy
! Component: 150  -  total flux cleaned = 0.00975207 Jy
! Component: 200  -  total flux cleaned = 0.012266 Jy
! Total flux subtracted in 200 components = 0.012266 Jy
! Clean residual min=-0.002543 max=0.003604 Jy/beam
! Clean residual mean=0.000477 rms=0.000820 Jy/beam
! Combined flux in latest and established models = 1.67803 Jy
! Performing phase self-cal
! Adding 60 model components to the UV plane model.
! The established model now contains 426 components and 1.67803 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265453Jy  sigma=0.001312
! Fit after  self-cal, rms=0.265447Jy  sigma=0.001312
! Inverting map 
! Added new window around map position (-0.5, -10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00303042 Jy
! Component: 100  -  total flux cleaned = 0.00481893 Jy
! Component: 150  -  total flux cleaned = 0.00680525 Jy
! Component: 200  -  total flux cleaned = 0.00848798 Jy
! Total flux subtracted in 200 components = 0.00848798 Jy
! Clean residual min=-0.002623 max=0.003274 Jy/beam
! Clean residual mean=0.000400 rms=0.000795 Jy/beam
! Combined flux in latest and established models = 1.68652 Jy
! Performing phase self-cal
! Adding 59 model components to the UV plane model.
! The established model now contains 441 components and 1.68652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265353Jy  sigma=0.001311
! Fit after  self-cal, rms=0.265350Jy  sigma=0.001311
! 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.265350Jy  sigma=0.001311
! Fit after  self-cal, rms=0.265199Jy  sigma=0.001310
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.298 mas, bmaj=7.705 mas, bpa=-86.44 degrees
! Estimated noise=647.102 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0106261 Jy
! Component: 100  -  total flux cleaned = 0.0181173 Jy
! Component: 150  -  total flux cleaned = 0.0240652 Jy
! Component: 200  -  total flux cleaned = 0.0290222 Jy
! Total flux subtracted in 200 components = 0.0290222 Jy
! Clean residual min=-0.003291 max=0.004922 Jy/beam
! Clean residual mean=0.001234 rms=0.001447 Jy/beam
! Combined flux in latest and established models = 1.71554 Jy
selfcal
! Performing phase self-cal
! Adding 77 model components to the UV plane model.
! The established model now contains 502 components and 1.71554 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265132Jy  sigma=0.001310
! Fit after  self-cal, rms=0.265119Jy  sigma=0.001309
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.00489223 Jy
! Component: 100  -  total flux cleaned = 0.00871085 Jy
! Component: 150  -  total flux cleaned = 0.0115755 Jy
! Component: 200  -  total flux cleaned = 0.0136124 Jy
! Total flux subtracted in 200 components = 0.0136124 Jy
! Clean residual min=-0.003502 max=0.004463 Jy/beam
! Clean residual mean=0.000727 rms=0.001316 Jy/beam
! Combined flux in latest and established models = 1.72915 Jy
! Performing phase self-cal
! Adding 67 model components to the UV plane model.
! The established model now contains 534 components and 1.72915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265118Jy  sigma=0.001309
! Fit after  self-cal, rms=0.265117Jy  sigma=0.001309
! 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.576 mas, bmaj=2.922 mas, bpa=-10.68 degrees
! Estimated noise=400.822 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.576 x 2.922 at -10.68 degrees (North through East)
! Clean map  min=-0.0024057  max=0.54313 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.265117Jy  sigma=0.001309
! Fit after  self-cal, rms=0.276370Jy  sigma=0.001225
! Inverting map and beam 
! Estimated beam: bmin=2.573 mas, bmaj=2.922 mas, bpa=-10.61 degrees
! Estimated noise=401.088 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00280175 Jy
! Component: 100  -  total flux cleaned = 0.00460171 Jy
! Component: 150  -  total flux cleaned = 0.00595802 Jy
! Component: 200  -  total flux cleaned = 0.00722574 Jy
! Total flux subtracted in 200 components = 0.00722574 Jy
! Clean residual min=-0.002262 max=0.002993 Jy/beam
! Clean residual mean=0.000260 rms=0.000641 Jy/beam
! Combined flux in latest and established models = 1.73638 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 552 components and 1.73638 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276291Jy  sigma=0.001224
! Fit after  self-cal, rms=0.276288Jy  sigma=0.001224
! Inverting map 
! Added new window around map position (5, -29).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00240362 Jy
! Component: 100  -  total flux cleaned = 0.0034051 Jy
! Component: 150  -  total flux cleaned = 0.00449805 Jy
! Component: 200  -  total flux cleaned = 0.00544668 Jy
! Total flux subtracted in 200 components = 0.00544668 Jy
! Clean residual min=-0.002214 max=0.002599 Jy/beam
! Clean residual mean=0.000215 rms=0.000621 Jy/beam
! Combined flux in latest and established models = 1.74183 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 571 components and 1.74183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276231Jy  sigma=0.001224
! Fit after  self-cal, rms=0.276233Jy  sigma=0.001224
! 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.276233Jy  sigma=0.001224
! Fit after  self-cal, rms=0.276598Jy  sigma=0.001223
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.148 mas, bmaj=2.49 mas, bpa=-23.41 degrees
! Estimated noise=736.365 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.420935 Jy
! Component: 100  -  total flux cleaned = 0.619484 Jy
! Component: 150  -  total flux cleaned = 0.7404 Jy
! Component: 200  -  total flux cleaned = 0.830094 Jy
! Total flux subtracted in 200 components = 0.830094 Jy
! Clean residual min=-0.016769 max=0.051737 Jy/beam
! Clean residual mean=0.000171 rms=0.005339 Jy/beam
! Combined flux in latest and established models = 0.830094 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 19 model components to the UV plane model.
! The established model now contains 19 components and 0.830094 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.572 mas, bmaj=2.921 mas, bpa=-10.52 degrees
! Estimated noise=400.901 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.102759 Jy
! Component: 100  -  total flux cleaned = 0.180349 Jy
! Component: 150  -  total flux cleaned = 0.244117 Jy
! Component: 200  -  total flux cleaned = 0.298556 Jy
! Total flux subtracted in 200 components = 0.298556 Jy
! Clean residual min=-0.008427 max=0.033891 Jy/beam
! Clean residual mean=0.005557 rms=0.005552 Jy/beam
! Combined flux in latest and established models = 1.12865 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 61 components and 1.12865 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0475598 Jy
! Component: 100  -  total flux cleaned = 0.08965 Jy
! Component: 150  -  total flux cleaned = 0.127419 Jy
! Component: 200  -  total flux cleaned = 0.161661 Jy
! Total flux subtracted in 200 components = 0.161661 Jy
! Clean residual min=-0.005871 max=0.021722 Jy/beam
! Clean residual mean=0.004169 rms=0.003971 Jy/beam
! Combined flux in latest and established models = 1.29031 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 121 components and 1.29031 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0311335 Jy
! Component: 100  -  total flux cleaned = 0.0595516 Jy
! Component: 150  -  total flux cleaned = 0.0856036 Jy
! Component: 200  -  total flux cleaned = 0.109545 Jy
! Total flux subtracted in 200 components = 0.109545 Jy
! Clean residual min=-0.004386 max=0.015329 Jy/beam
! Clean residual mean=0.003225 rms=0.002949 Jy/beam
! Combined flux in latest and established models = 1.39986 Jy
! Adding 102 model components to the UV plane model.
! The established model now contains 192 components and 1.39986 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.022034 Jy
! Component: 100  -  total flux cleaned = 0.042393 Jy
! Component: 150  -  total flux cleaned = 0.061228 Jy
! Component: 200  -  total flux cleaned = 0.0786871 Jy
! Total flux subtracted in 200 components = 0.0786871 Jy
! Clean residual min=-0.003284 max=0.011226 Jy/beam
! Clean residual mean=0.002548 rms=0.002253 Jy/beam
! Combined flux in latest and established models = 1.47855 Jy
! Adding 104 model components to the UV plane model.
! The established model now contains 251 components and 1.47854 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.016189 Jy
! Component: 100  -  total flux cleaned = 0.0312388 Jy
! Component: 150  -  total flux cleaned = 0.0452575 Jy
! Component: 200  -  total flux cleaned = 0.058335 Jy
! Total flux subtracted in 200 components = 0.058335 Jy
! Clean residual min=-0.002589 max=0.008781 Jy/beam
! Clean residual mean=0.002045 rms=0.001783 Jy/beam
! Combined flux in latest and established models = 1.53688 Jy
! Adding 109 model components to the UV plane model.
! The established model now contains 313 components and 1.53688 Jy
! Inverting map 
! Added new window around map position (19, -28.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0122437 Jy
! Component: 100  -  total flux cleaned = 0.0237038 Jy
! Component: 150  -  total flux cleaned = 0.0344559 Jy
! Component: 200  -  total flux cleaned = 0.0445524 Jy
! Total flux subtracted in 200 components = 0.0445524 Jy
! Clean residual min=-0.002367 max=0.007220 Jy/beam
! Clean residual mean=0.001661 rms=0.001458 Jy/beam
! Combined flux in latest and established models = 1.58143 Jy
! Adding 113 model components to the UV plane model.
! The established model now contains 369 components and 1.58143 Jy
! Inverting map 
! Added new window around map position (-14.5, 15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00959241 Jy
! Component: 100  -  total flux cleaned = 0.0185648 Jy
! Component: 150  -  total flux cleaned = 0.0270334 Jy
! Component: 200  -  total flux cleaned = 0.0350414 Jy
! Total flux subtracted in 200 components = 0.0350414 Jy
! Clean residual min=-0.002153 max=0.006057 Jy/beam
! Clean residual mean=0.001357 rms=0.001220 Jy/beam
! Combined flux in latest and established models = 1.61647 Jy
! Adding 114 model components to the UV plane model.
! The established model now contains 421 components and 1.61647 Jy
! Inverting map 
! Added new window around map position (-3, 17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00769272 Jy
! Component: 100  -  total flux cleaned = 0.0148992 Jy
! Component: 150  -  total flux cleaned = 0.0217328 Jy
! Component: 200  -  total flux cleaned = 0.0282061 Jy
! Total flux subtracted in 200 components = 0.0282061 Jy
! Clean residual min=-0.002043 max=0.004858 Jy/beam
! Clean residual mean=0.001114 rms=0.001050 Jy/beam
! Combined flux in latest and established models = 1.64468 Jy
! Adding 112 model components to the UV plane model.
! The established model now contains 461 components and 1.64468 Jy
! Inverting map 
! Added new window around map position (-10, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00622233 Jy
! Component: 100  -  total flux cleaned = 0.0120696 Jy
! Component: 150  -  total flux cleaned = 0.0176228 Jy
! Component: 200  -  total flux cleaned = 0.0229021 Jy
! Total flux subtracted in 200 components = 0.0229021 Jy
! Clean residual min=-0.001947 max=0.004099 Jy/beam
! Clean residual mean=0.000915 rms=0.000922 Jy/beam
! Combined flux in latest and established models = 1.66758 Jy
! Adding 111 model components to the UV plane model.
! The established model now contains 492 components and 1.66758 Jy
! Inverting map 
! Added new window around map position (-55, -26.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00510863 Jy
! Component: 100  -  total flux cleaned = 0.00990324 Jy
! Component: 150  -  total flux cleaned = 0.0144699 Jy
! Component: 200  -  total flux cleaned = 0.0188206 Jy
! Total flux subtracted in 200 components = 0.0188206 Jy
! Clean residual min=-0.001912 max=0.003645 Jy/beam
! Clean residual mean=0.000752 rms=0.000827 Jy/beam
! Combined flux in latest and established models = 1.6864 Jy
! Adding 113 model components to the UV plane model.
! The established model now contains 522 components and 1.6864 Jy
! Inverting map 
! Added new window around map position (-12.5, -61).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00431131 Jy
! Component: 100  -  total flux cleaned = 0.00828369 Jy
! Component: 150  -  total flux cleaned = 0.012078 Jy
! Component: 200  -  total flux cleaned = 0.0157001 Jy
! Total flux subtracted in 200 components = 0.0157001 Jy
! Clean residual min=-0.001879 max=0.003284 Jy/beam
! Clean residual mean=0.000617 rms=0.000753 Jy/beam
! Combined flux in latest and established models = 1.7021 Jy
! Adding 111 model components to the UV plane model.
! The established model now contains 551 components and 1.7021 Jy
! Inverting map 
! Added new window around map position (3.5, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00368281 Jy
! Component: 100  -  total flux cleaned = 0.00702805 Jy
! Component: 150  -  total flux cleaned = 0.0102216 Jy
! Component: 200  -  total flux cleaned = 0.0132703 Jy
! Total flux subtracted in 200 components = 0.0132703 Jy
! Clean residual min=-0.001973 max=0.002785 Jy/beam
! Clean residual mean=0.000502 rms=0.000703 Jy/beam
! Combined flux in latest and established models = 1.71537 Jy
! Adding 109 model components to the UV plane model.
! The established model now contains 580 components and 1.71537 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.293 mas, bmaj=7.7 mas, bpa=-86.42 degrees
! Estimated noise=648.639 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00973126 Jy
! Component: 100  -  total flux cleaned = 0.0170411 Jy
! Component: 150  -  total flux cleaned = 0.0228469 Jy
! Component: 200  -  total flux cleaned = 0.0276513 Jy
! Total flux subtracted in 200 components = 0.0276513 Jy
! Clean residual min=-0.002239 max=0.003935 Jy/beam
! Clean residual mean=0.001122 rms=0.001089 Jy/beam
! Combined flux in latest and established models = 1.74302 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.00407566 Jy
! Component: 100  -  total flux cleaned = 0.00758471 Jy
! Component: 150  -  total flux cleaned = 0.0106203 Jy
! Component: 200  -  total flux cleaned = 0.0132558 Jy
! Total flux subtracted in 200 components = 0.0132558 Jy
! Clean residual min=-0.002294 max=0.003252 Jy/beam
! Clean residual mean=0.000631 rms=0.000931 Jy/beam
! Combined flux in latest and established models = 1.75628 Jy
! Adding 211 model components to the UV plane model.
! The established model now contains 748 components and 1.75628 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.572 mas, bmaj=2.921 mas, bpa=-10.52 degrees
! Estimated noise=400.901 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.87908e-05 Jy
! Component: 100  -  total flux cleaned = 0.000169982 Jy
! Component: 150  -  total flux cleaned = 0.000524579 Jy
! Component: 200  -  total flux cleaned = 0.000934258 Jy
! Total flux subtracted in 200 components = 0.000934258 Jy
! Clean residual min=-0.002242 max=0.002351 Jy/beam
! Clean residual mean=0.000141 rms=0.000571 Jy/beam
! Combined flux in latest and established models = 1.75722 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 756 components and 1.75722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276476Jy  sigma=0.001222
! Fit after  self-cal, rms=0.276452Jy  sigma=0.001222
wmodel J2355+4950_S_1999_03_08_pus_map.mod
! Writing 756 model components to file: J2355+4950_S_1999_03_08_pus_map.mod
wobs J2355+4950_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J2355+4950_S_1999_03_08_pus_uvs.fits
wwins J2355+4950_S_1999_03_08_pus_map.win
! wwins: Wrote 25 windows to J2355+4950_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=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000464095 Jy
! Component: 100  -  total flux cleaned = 0.00102527 Jy
! Component: 150  -  total flux cleaned = 0.00152386 Jy
! Component: 200  -  total flux cleaned = 0.00204314 Jy
! Component: 250  -  total flux cleaned = 0.00247668 Jy
! Component: 300  -  total flux cleaned = 0.00293727 Jy
! Component: 350  -  total flux cleaned = 0.00335387 Jy
! Component: 400  -  total flux cleaned = 0.00379681 Jy
! Component: 450  -  total flux cleaned = 0.0041656 Jy
! Component: 500  -  total flux cleaned = 0.00459466 Jy
! Component: 550  -  total flux cleaned = 0.00495234 Jy
! Component: 600  -  total flux cleaned = 0.00527361 Jy
! Component: 650  -  total flux cleaned = 0.00562269 Jy
! Component: 700  -  total flux cleaned = 0.00596739 Jy
! Component: 750  -  total flux cleaned = 0.0062464 Jy
! Component: 800  -  total flux cleaned = 0.00649179 Jy
! Component: 850  -  total flux cleaned = 0.0067655 Jy
! Component: 900  -  total flux cleaned = 0.00700652 Jy
! Component: 950  -  total flux cleaned = 0.00718594 Jy
! Component: 1000  -  total flux cleaned = 0.00748225 Jy
! Component: 1050  -  total flux cleaned = 0.00762901 Jy
! Component: 1100  -  total flux cleaned = 0.00786236 Jy
! Component: 1150  -  total flux cleaned = 0.0079781 Jy
! Component: 1200  -  total flux cleaned = 0.00817962 Jy
! Component: 1250  -  total flux cleaned = 0.00835076 Jy
! Component: 1300  -  total flux cleaned = 0.00846438 Jy
! Component: 1350  -  total flux cleaned = 0.00863379 Jy
! Component: 1400  -  total flux cleaned = 0.00880204 Jy
! Component: 1450  -  total flux cleaned = 0.00896926 Jy
! Component: 1500  -  total flux cleaned = 0.00907993 Jy
! Component: 1550  -  total flux cleaned = 0.00921771 Jy
! Component: 1600  -  total flux cleaned = 0.00932727 Jy
! Component: 1650  -  total flux cleaned = 0.00943635 Jy
! Component: 1700  -  total flux cleaned = 0.00949068 Jy
! Component: 1750  -  total flux cleaned = 0.00970644 Jy
! Component: 1800  -  total flux cleaned = 0.00976006 Jy
! Component: 1850  -  total flux cleaned = 0.00989355 Jy
! Component: 1900  -  total flux cleaned = 0.00997323 Jy
! Component: 1950  -  total flux cleaned = 0.0101053 Jy
! Component: 2000  -  total flux cleaned = 0.010158 Jy
! Total flux subtracted in 2048 components = 0.0102365 Jy
! Clean residual min=-0.001896 max=0.001440 Jy/beam
! Clean residual mean=0.000049 rms=0.000499 Jy/beam
! Combined flux in latest and established models = 1.76745 Jy
keep
! Adding 173 model components to the UV plane model.
! The established model now contains 929 components and 1.76745 Jy
![Exited script file: muppet]
wmap "J2355+4950_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.572 x 2.921 at -10.52 degrees (North through East)
! Clean map  min=-0.0019488  max=0.54158 Jy/beam
! Writing clean map to FITS file: J2355+4950_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.54158 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000498742 
device "J2355+4950_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J2355+4950_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.27627 0.27627 0.552541 1.10508 2.21016 4.42033 8.84065 17.6813 35.3626 70.7252
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.541 
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.572 x 2.921 at -10.52 degrees (North through East)
! Clean map  min=-0.0019488  max=0.54158 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2355+4950_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J2355+4950_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2355+4950_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:41:34 2008