! Started logfile: J2115+2933_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:36:53 2008
obs J2115+2933_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J2115+2933_S_1999_03_08_pus_uva.fits
! AN table 1: 155 integrations on 190 of 190 possible baselines.
! AN table 2: 25 integrations on 190 of 190 possible baselines.
! AN table 3: 67 integrations on 190 of 190 possible baselines.
! AN table 4: 251 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.159279 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2115+2933
! 
! 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 60284 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 J2115+2933_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 2479 telescope corrections were flagged in sub-array 1.
!  A total of 330 telescope corrections were flagged in sub-array 2.
!  A total of 830 telescope corrections were flagged in sub-array 3.
!  A total of 3088 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2479 telescope corrections were flagged in sub-array 1.
!  A total of 330 telescope corrections were flagged in sub-array 2.
!  A total of 830 telescope corrections were flagged in sub-array 3.
!  A total of 3088 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2479 telescope corrections were flagged in sub-array 1.
!  A total of 330 telescope corrections were flagged in sub-array 2.
!  A total of 830 telescope corrections were flagged in sub-array 3.
!  A total of 2993 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2479 telescope corrections were flagged in sub-array 1.
!  A total of 330 telescope corrections were flagged in sub-array 2.
!  A total of 830 telescope corrections were flagged in sub-array 3.
!  A total of 2994 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.921819Jy  sigma=0.005520
! Fit after  self-cal, rms=0.484974Jy  sigma=0.002898
! 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.974 mas, bmaj=3.178 mas, bpa=-6.525 degrees
! Estimated noise=948.449 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.492892 Jy
! Component: 100  -  total flux cleaned = 0.602742 Jy
! Total flux subtracted in 100 components = 0.602742 Jy
! Clean residual min=-0.011916 max=0.037632 Jy/beam
! Clean residual mean=0.000121 rms=0.003733 Jy/beam
! Combined flux in latest and established models = 0.602742 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.602742 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357875Jy  sigma=0.001731
! Fit after  self-cal, rms=0.357866Jy  sigma=0.001731
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0451365 Jy
! Component: 100  -  total flux cleaned = 0.0751728 Jy
! Total flux subtracted in 100 components = 0.0751728 Jy
! Clean residual min=-0.010151 max=0.019220 Jy/beam
! Clean residual mean=0.000083 rms=0.002922 Jy/beam
! Combined flux in latest and established models = 0.677915 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 19 components and 0.677915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347441Jy  sigma=0.001609
! Fit after  self-cal, rms=0.347364Jy  sigma=0.001608
! Inverting map 
! Added new window around map position (0.5, -4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0230315 Jy
! Component: 100  -  total flux cleaned = 0.0401671 Jy
! Total flux subtracted in 100 components = 0.0401671 Jy
! Clean residual min=-0.009928 max=0.016307 Jy/beam
! Clean residual mean=0.000062 rms=0.002660 Jy/beam
! Combined flux in latest and established models = 0.718082 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 36 components and 0.718082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344004Jy  sigma=0.001568
! Fit after  self-cal, rms=0.343952Jy  sigma=0.001568
! 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.329 mas, bmaj=4.003 mas, bpa=-11.39 degrees
! Estimated noise=430.321 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.0309622 Jy
! Component: 100  -  total flux cleaned = 0.0496823 Jy
! Component: 150  -  total flux cleaned = 0.0618918 Jy
! Component: 200  -  total flux cleaned = 0.0700946 Jy
! Total flux subtracted in 200 components = 0.0700946 Jy
! Clean residual min=-0.008371 max=0.013380 Jy/beam
! Clean residual mean=0.000120 rms=0.002809 Jy/beam
! Combined flux in latest and established models = 0.788177 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 61 components and 0.788177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340819Jy  sigma=0.001536
! Fit after  self-cal, rms=0.340743Jy  sigma=0.001535
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GC        1.46     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        0.93     PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        0.99     MC        1.00*    
!   MK        0.94     NY        0.96     ON        1.00*    WZ        0.98     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.98     GC        1.01     GG        1.00*    
!   HN        1.06     KP        1.00     LA        1.00*    NL        0.98     
!   OV        1.00*    PT        1.01     SC        1.00*    WF        1.01     
!   GN        1.06     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        0.97     NY        0.98     ON        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GC        0.96     GG        1.00*    
!   HN        1.06     KP        1.00*    LA        1.00*    NL        1.02     
!   OV        1.00*    PT        1.00*    SC        1.07     WF        0.96     
!   GN        0.95     HH        1.00*    KK        0.97     MC        1.00*    
!   MK        0.97     NY        0.99     ON        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.98     GC        0.99     GG        1.00*    
!   HN        0.99     KP        0.97     LA        0.98     NL        1.04     
!   OV        0.99     PT        1.03     SC        1.00     WF        0.95     
!   GN        0.96     HH        1.00*    KK        1.00*    MC        1.02     
!   MK        1.00*    NY        0.99     ON        0.98     WZ        0.95     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00*    GC        1.46     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.12     PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        0.98     MC        1.00*    
!   MK        0.96     NY        0.94     ON        1.00*    WZ        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.02     GC        1.04     GG        1.00*    
!   HN        0.97     KP        0.97     LA        1.00*    NL        0.92     
!   OV        1.00*    PT        0.97     SC        1.00*    WF        1.01     
!   GN        1.05     HH        1.00*    KK        0.89     MC        1.00*    
!   MK        0.98     NY        0.96     ON        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.02     GC        1.01     GG        1.00*    
!   HN        0.96     KP        1.00*    LA        1.00*    NL        0.95     
!   OV        1.00*    PT        1.00*    SC        1.10     WF        1.01     
!   GN        0.97     HH        1.00*    KK        0.92     MC        1.00*    
!   MK        1.00     NY        0.96     ON        1.00*    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        1.03     GC        1.02     GG        1.00*    
!   HN        0.98     KP        0.95     LA        0.95     NL        0.92     
!   OV        0.95     PT        0.99     SC        1.05     WF        0.98     
!   GN        0.96     HH        1.00*    KK        1.00*    MC        0.97     
!   MK        1.00*    NY        0.97     ON        1.00     WZ        0.96     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00*    GC        1.46     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.13     PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        0.99     MC        1.00*    
!   MK        0.96     NY        0.97     ON        1.00*    WZ        1.06     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00     GC        1.01     GG        1.00*    
!   HN        1.29     KP        0.98     LA        1.00*    NL        0.98     
!   OV        1.00*    PT        0.95     SC        1.00*    WF        1.01     
!   GN        1.03     HH        1.00*    KK        0.94     MC        1.00*    
!   MK        0.95     NY        1.02     ON        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.01     GG        1.00*    
!   HN        1.24     KP        1.00*    LA        1.00*    NL        1.00     
!   OV        1.00*    PT        1.00*    SC        1.09     WF        1.00     
!   GN        0.96     HH        1.00*    KK        0.96     MC        1.00*    
!   MK        0.98     NY        0.98     ON        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        1.02     GG        1.00*    
!   HN        1.26     KP        0.96     LA        0.99     NL        0.99     
!   OV        0.98     PT        0.97     SC        1.01     WF        0.98     
!   GN        0.97     HH        0.95     KK        1.00*    MC        0.97     
!   MK        1.00*    NY        0.97     ON        0.99     WZ        0.96     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GC        1.48     GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.28     PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.02     MC        1.00*    
!   MK        0.99     NY        0.97     ON        1.00*    WZ        1.10     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.07     GG        1.00*    
!   HN        1.16     KP        0.99     LA        1.00*    NL        0.93     
!   OV        1.00*    PT        0.94     SC        1.00*    WF        1.05     
!   GN        1.04     HH        1.00*    KK        1.01     MC        1.00*    
!   MK        0.99     NY        1.00     ON        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        0.99     GG        1.00*    
!   HN        1.17     KP        1.00*    LA        1.00*    NL        0.95     
!   OV        1.00*    PT        1.00*    SC        1.07     WF        1.00     
!   GN        0.96     HH        1.00*    KK        0.97     MC        1.00*    
!   MK        1.00     NY        0.97     ON        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00     GC        1.02     GG        1.00*    
!   HN        1.20     KP        0.95     LA        0.98     NL        0.94     
!   OV        0.99     PT        0.96     SC        1.02     WF        0.99     
!   GN        0.98     HH        1.02     KK        1.00*    MC        1.03     
!   MK        1.00*    NY        0.94     ON        1.00     WZ        0.96     
! 
! 
! Fit before self-cal, rms=0.340743Jy  sigma=0.001535
! Fit after  self-cal, rms=0.333692Jy  sigma=0.001472
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.317 mas, bmaj=4.034 mas, bpa=-11.37 degrees
! Estimated noise=428.661 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 (4, -7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00668912 Jy
! Component: 100  -  total flux cleaned = 0.00850932 Jy
! Component: 150  -  total flux cleaned = 0.00948424 Jy
! Component: 200  -  total flux cleaned = 0.0101676 Jy
! Total flux subtracted in 200 components = 0.0101676 Jy
! Clean residual min=-0.003687 max=0.005109 Jy/beam
! Clean residual mean=0.000259 rms=0.001192 Jy/beam
! Combined flux in latest and established models = 0.798344 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 73 components and 0.798344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333545Jy  sigma=0.001470
! Fit after  self-cal, rms=0.333501Jy  sigma=0.001470
! 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.333501Jy  sigma=0.001470
! Fit after  self-cal, rms=0.337430Jy  sigma=0.001457
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.316 mas, bmaj=4.036 mas, bpa=-11.27 degrees
! Estimated noise=429.715 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00129295 Jy
! Component: 100  -  total flux cleaned = 0.00187629 Jy
! Component: 150  -  total flux cleaned = 0.00245443 Jy
! Component: 200  -  total flux cleaned = 0.00286791 Jy
! Total flux subtracted in 200 components = 0.00286791 Jy
! Clean residual min=-0.002966 max=0.004145 Jy/beam
! Clean residual mean=0.000233 rms=0.000954 Jy/beam
! Combined flux in latest and established models = 0.801212 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 84 components and 0.801212 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.337356Jy  sigma=0.001456
! Fit after  self-cal, rms=0.337408Jy  sigma=0.001456
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 (-4, -4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00471772 Jy
! Component: 100  -  total flux cleaned = 0.00627125 Jy
! Component: 150  -  total flux cleaned = 0.00653903 Jy
! Component: 200  -  total flux cleaned = 0.00653713 Jy
! Total flux subtracted in 200 components = 0.00653713 Jy
! Clean residual min=-0.003087 max=0.003452 Jy/beam
! Clean residual mean=0.000184 rms=0.000887 Jy/beam
! Combined flux in latest and established models = 0.807749 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 105 components and 0.807749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.337319Jy  sigma=0.001455
! Fit after  self-cal, rms=0.337306Jy  sigma=0.001455
! 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.337306Jy  sigma=0.001455
! Fit after  self-cal, rms=0.339380Jy  sigma=0.001446
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.313 mas, bmaj=4.041 mas, bpa=-11.26 degrees
! Estimated noise=429.445 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00053418 Jy
! Component: 100  -  total flux cleaned = 0.00102876 Jy
! Component: 150  -  total flux cleaned = 0.00153594 Jy
! Component: 200  -  total flux cleaned = 0.00197669 Jy
! Total flux subtracted in 200 components = 0.00197669 Jy
! Clean residual min=-0.002457 max=0.002985 Jy/beam
! Clean residual mean=0.000164 rms=0.000680 Jy/beam
! Combined flux in latest and established models = 0.809726 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 119 components and 0.809726 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339327Jy  sigma=0.001446
! Fit after  self-cal, rms=0.339350Jy  sigma=0.001446
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 (46.5, 41).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00240457 Jy
! Component: 100  -  total flux cleaned = 0.00303231 Jy
! Component: 150  -  total flux cleaned = 0.0032902 Jy
! Component: 200  -  total flux cleaned = 0.00346395 Jy
! Total flux subtracted in 200 components = 0.00346395 Jy
! Clean residual min=-0.002372 max=0.002816 Jy/beam
! Clean residual mean=0.000145 rms=0.000661 Jy/beam
! Combined flux in latest and established models = 0.81319 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 133 components and 0.81319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339320Jy  sigma=0.001445
! Fit after  self-cal, rms=0.339323Jy  sigma=0.001445
! Inverting map 
! Added new window around map position (18.5, -13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00193204 Jy
! Component: 100  -  total flux cleaned = 0.00231596 Jy
! Component: 150  -  total flux cleaned = 0.00243098 Jy
! Component: 200  -  total flux cleaned = 0.00248425 Jy
! Total flux subtracted in 200 components = 0.00248425 Jy
! Clean residual min=-0.002255 max=0.002763 Jy/beam
! Clean residual mean=0.000128 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 0.815674 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 145 components and 0.815674 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339285Jy  sigma=0.001445
! Fit after  self-cal, rms=0.339285Jy  sigma=0.001445
! 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.339285Jy  sigma=0.001445
! Fit after  self-cal, rms=0.339368Jy  sigma=0.001445
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.247 mas, bmaj=8.559 mas, bpa=20.93 degrees
! Estimated noise=636.068 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00107627 Jy
! Component: 100  -  total flux cleaned = 0.00112205 Jy
! Component: 150  -  total flux cleaned = 0.00125401 Jy
! Component: 200  -  total flux cleaned = 0.00133219 Jy
! Total flux subtracted in 200 components = 0.00133219 Jy
! Clean residual min=-0.002593 max=0.003219 Jy/beam
! Clean residual mean=0.000340 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 0.817006 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 163 components and 0.817006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339366Jy  sigma=0.001445
! Fit after  self-cal, rms=0.339370Jy  sigma=0.001445
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.00010074 Jy
! Component: 100  -  total flux cleaned = 0.000136106 Jy
! Component: 150  -  total flux cleaned = 0.000170657 Jy
! Component: 200  -  total flux cleaned = 0.000234817 Jy
! Total flux subtracted in 200 components = 0.000234817 Jy
! Clean residual min=-0.002654 max=0.003147 Jy/beam
! Clean residual mean=0.000334 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 0.817241 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 171 components and 0.817241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339364Jy  sigma=0.001445
! Fit after  self-cal, rms=0.339365Jy  sigma=0.001445
! 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.312 mas, bmaj=4.044 mas, bpa=-11.23 degrees
! Estimated noise=429.39 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.312 x 4.044 at -11.23 degrees (North through East)
! Clean map  min=-0.0019622  max=0.65139 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.339365Jy  sigma=0.001445
! Fit after  self-cal, rms=0.507944Jy  sigma=0.001317
! Inverting map and beam 
! Estimated beam: bmin=2.308 mas, bmaj=4.046 mas, bpa=-11.25 degrees
! Estimated noise=429.124 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000125158 Jy
! Component: 100  -  total flux cleaned = 0.000321114 Jy
! Component: 150  -  total flux cleaned = 0.000320638 Jy
! Component: 200  -  total flux cleaned = 0.000370435 Jy
! Total flux subtracted in 200 components = 0.000370435 Jy
! Clean residual min=-0.001937 max=0.002199 Jy/beam
! Clean residual mean=0.000092 rms=0.000553 Jy/beam
! Combined flux in latest and established models = 0.817611 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 183 components and 0.817611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.507930Jy  sigma=0.001316
! Fit after  self-cal, rms=0.507941Jy  sigma=0.001316
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000232881 Jy
! Component: 100  -  total flux cleaned = 0.000185516 Jy
! Component: 150  -  total flux cleaned = 0.000141321 Jy
! Component: 200  -  total flux cleaned = 9.9718e-05 Jy
! Total flux subtracted in 200 components = 9.9718e-05 Jy
! Clean residual min=-0.001846 max=0.002183 Jy/beam
! Clean residual mean=0.000091 rms=0.000546 Jy/beam
! Combined flux in latest and established models = 0.817711 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 193 components and 0.817711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.507931Jy  sigma=0.001316
! Fit after  self-cal, rms=0.507931Jy  sigma=0.001316
! 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.507931Jy  sigma=0.001316
! Fit after  self-cal, rms=0.763007Jy  sigma=0.001316
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.968 mas, bmaj=3.188 mas, bpa=-7.085 degrees
! Estimated noise=969.791 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.493147 Jy
! Component: 100  -  total flux cleaned = 0.604093 Jy
! Component: 150  -  total flux cleaned = 0.650717 Jy
! Component: 200  -  total flux cleaned = 0.680678 Jy
! Total flux subtracted in 200 components = 0.680678 Jy
! Clean residual min=-0.006005 max=0.016231 Jy/beam
! Clean residual mean=0.000078 rms=0.002007 Jy/beam
! Combined flux in latest and established models = 0.680678 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.680678 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.306 mas, bmaj=4.048 mas, bpa=-11.23 degrees
! Estimated noise=429.159 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.0392064 Jy
! Component: 100  -  total flux cleaned = 0.0638917 Jy
! Component: 150  -  total flux cleaned = 0.0807121 Jy
! Component: 200  -  total flux cleaned = 0.0926713 Jy
! Total flux subtracted in 200 components = 0.0926713 Jy
! Clean residual min=-0.002735 max=0.007022 Jy/beam
! Clean residual mean=0.000411 rms=0.001135 Jy/beam
! Combined flux in latest and established models = 0.773349 Jy
! Adding 72 model components to the UV plane model.
! The established model now contains 83 components and 0.773349 Jy
! Inverting map 
! Added new window around map position (2.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00883212 Jy
! Component: 100  -  total flux cleaned = 0.0154645 Jy
! Component: 150  -  total flux cleaned = 0.0205632 Jy
! Component: 200  -  total flux cleaned = 0.0246044 Jy
! Total flux subtracted in 200 components = 0.0246044 Jy
! Clean residual min=-0.001954 max=0.002858 Jy/beam
! Clean residual mean=0.000227 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.797953 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 123 components and 0.797953 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.238 mas, bmaj=8.555 mas, bpa=20.69 degrees
! Estimated noise=637.335 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00775687 Jy
! Component: 100  -  total flux cleaned = 0.0119278 Jy
! Component: 150  -  total flux cleaned = 0.0147734 Jy
! Component: 200  -  total flux cleaned = 0.0168699 Jy
! Total flux subtracted in 200 components = 0.0168699 Jy
! Clean residual min=-0.001986 max=0.002519 Jy/beam
! Clean residual mean=0.000372 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 0.814823 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.00151349 Jy
! Component: 100  -  total flux cleaned = 0.0022217 Jy
! Component: 150  -  total flux cleaned = 0.0028313 Jy
! Component: 200  -  total flux cleaned = 0.00335769 Jy
! Total flux subtracted in 200 components = 0.00335769 Jy
! Clean residual min=-0.001985 max=0.002449 Jy/beam
! Clean residual mean=0.000293 rms=0.000601 Jy/beam
! Combined flux in latest and established models = 0.818181 Jy
! Adding 106 model components to the UV plane model.
! The established model now contains 209 components and 0.818181 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.306 mas, bmaj=4.048 mas, bpa=-11.23 degrees
! Estimated noise=429.159 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00106927 Jy
! Component: 100  -  total flux cleaned = 0.000936941 Jy
! Component: 150  -  total flux cleaned = 0.000877957 Jy
! Component: 200  -  total flux cleaned = 0.000825575 Jy
! Total flux subtracted in 200 components = 0.000825575 Jy
! Clean residual min=-0.001889 max=0.002226 Jy/beam
! Clean residual mean=0.000077 rms=0.000542 Jy/beam
! Combined flux in latest and established models = 0.819007 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 228 components and 0.819007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.762994Jy  sigma=0.001316
! Fit after  self-cal, rms=0.762988Jy  sigma=0.001316
wmodel J2115+2933_S_1999_03_08_pus_map.mod
! Writing 228 model components to file: J2115+2933_S_1999_03_08_pus_map.mod
wobs J2115+2933_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J2115+2933_S_1999_03_08_pus_uvs.fits
wwins J2115+2933_S_1999_03_08_pus_map.win
! wwins: Wrote 7 windows to J2115+2933_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.000873822 Jy
! Component: 100  -  total flux cleaned = 0.00149455 Jy
! Component: 150  -  total flux cleaned = 0.00205471 Jy
! Component: 200  -  total flux cleaned = 0.00266625 Jy
! Component: 250  -  total flux cleaned = 0.00319623 Jy
! Component: 300  -  total flux cleaned = 0.0037142 Jy
! Component: 350  -  total flux cleaned = 0.00428416 Jy
! Component: 400  -  total flux cleaned = 0.00484274 Jy
! Component: 450  -  total flux cleaned = 0.00530031 Jy
! Component: 500  -  total flux cleaned = 0.00563076 Jy
! Component: 550  -  total flux cleaned = 0.00589761 Jy
! Component: 600  -  total flux cleaned = 0.0061617 Jy
! Component: 650  -  total flux cleaned = 0.00645154 Jy
! Component: 700  -  total flux cleaned = 0.00659485 Jy
! Component: 750  -  total flux cleaned = 0.00679353 Jy
! Component: 800  -  total flux cleaned = 0.00698999 Jy
! Component: 850  -  total flux cleaned = 0.00715705 Jy
! Component: 900  -  total flux cleaned = 0.00729495 Jy
! Component: 950  -  total flux cleaned = 0.00743183 Jy
! Component: 1000  -  total flux cleaned = 0.00759452 Jy
! Component: 1050  -  total flux cleaned = 0.00762134 Jy
! Component: 1100  -  total flux cleaned = 0.00767497 Jy
! Component: 1150  -  total flux cleaned = 0.00775479 Jy
! Component: 1200  -  total flux cleaned = 0.00783384 Jy
! Component: 1250  -  total flux cleaned = 0.00791202 Jy
! Component: 1300  -  total flux cleaned = 0.00796374 Jy
! Component: 1350  -  total flux cleaned = 0.00796372 Jy
! Component: 1400  -  total flux cleaned = 0.00801517 Jy
! Component: 1450  -  total flux cleaned = 0.00809139 Jy
! Component: 1500  -  total flux cleaned = 0.00804107 Jy
! Component: 1550  -  total flux cleaned = 0.00816644 Jy
! Component: 1600  -  total flux cleaned = 0.00824101 Jy
! Component: 1650  -  total flux cleaned = 0.00824083 Jy
! Component: 1700  -  total flux cleaned = 0.0082654 Jy
! Component: 1750  -  total flux cleaned = 0.00831437 Jy
! Component: 1800  -  total flux cleaned = 0.00831438 Jy
! Component: 1850  -  total flux cleaned = 0.00838704 Jy
! Component: 1900  -  total flux cleaned = 0.00836315 Jy
! Component: 1950  -  total flux cleaned = 0.00845881 Jy
! Component: 2000  -  total flux cleaned = 0.00843508 Jy
! Total flux subtracted in 2048 components = 0.00850618 Jy
! Clean residual min=-0.001549 max=0.001542 Jy/beam
! Clean residual mean=0.000019 rms=0.000450 Jy/beam
! Combined flux in latest and established models = 0.827513 Jy
keep
! Adding 161 model components to the UV plane model.
! The established model now contains 389 components and 0.827513 Jy
![Exited script file: muppet]
wmap "J2115+2933_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.306 x 4.048 at -11.23 degrees (North through East)
! Clean map  min=-0.0018923  max=0.65007 Jy/beam
! Writing clean map to FITS file: J2115+2933_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.650069 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000450141 
device "J2115+2933_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J2115+2933_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.207735 0.207735 0.41547 0.830941 1.66188 3.32376 6.64753 13.2951 26.5901 53.1802
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.65 
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.306 x 4.048 at -11.23 degrees (North through East)
! Clean map  min=-0.0018923  max=0.65007 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2115+2933_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J2115+2933_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2115+2933_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:37:27 2008