! Started logfile: J1013+2449_S_1999_12_20_pus_uvs.log on Wed Dec 19 17:51:57 2007
obs J1013+2449_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1013+2449_S_1999_12_20_pus_uva.fits
! AN table 1: 98 integrations on 190 of 190 possible baselines.
! AN table 2: 98 integrations on 190 of 190 possible baselines.
! AN table 3: 134 integrations on 190 of 190 possible baselines.
! AN table 4: 200 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.195859 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1013+2449
! 
! 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 2283 lines of history.
! 
! Reading 78892 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 J1013+2449_S_1999_12_20_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 1452 telescope corrections were flagged in sub-array 1.
!  A total of 1337 telescope corrections were flagged in sub-array 2.
!  A total of 1651 telescope corrections were flagged in sub-array 3.
!  A total of 2335 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1452 telescope corrections were flagged in sub-array 1.
!  A total of 1337 telescope corrections were flagged in sub-array 2.
!  A total of 1651 telescope corrections were flagged in sub-array 3.
!  A total of 2335 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1508 telescope corrections were flagged in sub-array 1.
!  A total of 1337 telescope corrections were flagged in sub-array 2.
!  A total of 1651 telescope corrections were flagged in sub-array 3.
!  A total of 2335 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1452 telescope corrections were flagged in sub-array 1.
!  A total of 1337 telescope corrections were flagged in sub-array 2.
!  A total of 1651 telescope corrections were flagged in sub-array 3.
!  A total of 2348 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.941429Jy  sigma=0.007216
! Fit after  self-cal, rms=0.715841Jy  sigma=0.005512
! 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.947 mas, bmaj=3.418 mas, bpa=-7.99 degrees
! Estimated noise=586.891 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.256337 Jy
! Component: 100  -  total flux cleaned = 0.32041 Jy
! Total flux subtracted in 100 components = 0.32041 Jy
! Clean residual min=-0.011095 max=0.065052 Jy/beam
! Clean residual mean=0.000018 rms=0.003517 Jy/beam
! Combined flux in latest and established models = 0.32041 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.32041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288255Jy  sigma=0.001808
! Fit after  self-cal, rms=0.288028Jy  sigma=0.001808
! Inverting map 
! Added new window around map position (-5.5, -1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0575285 Jy
! Component: 100  -  total flux cleaned = 0.0893602 Jy
! Total flux subtracted in 100 components = 0.0893602 Jy
! Clean residual min=-0.008237 max=0.017705 Jy/beam
! Clean residual mean=0.000008 rms=0.002333 Jy/beam
! Combined flux in latest and established models = 0.40977 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 15 components and 0.40977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273001Jy  sigma=0.001625
! Fit after  self-cal, rms=0.271636Jy  sigma=0.001616
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0259623 Jy
! Component: 100  -  total flux cleaned = 0.0439172 Jy
! Total flux subtracted in 100 components = 0.0439172 Jy
! Clean residual min=-0.006567 max=0.010333 Jy/beam
! Clean residual mean=0.000007 rms=0.001870 Jy/beam
! Combined flux in latest and established models = 0.453688 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 0.453688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267852Jy  sigma=0.001568
! Fit after  self-cal, rms=0.267590Jy  sigma=0.001567
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0145884 Jy
! Component: 100  -  total flux cleaned = 0.0258185 Jy
! Total flux subtracted in 100 components = 0.0258185 Jy
! Clean residual min=-0.006042 max=0.008613 Jy/beam
! Clean residual mean=0.000006 rms=0.001706 Jy/beam
! Combined flux in latest and established models = 0.479506 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 29 components and 0.479506 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266290Jy  sigma=0.001549
! Fit after  self-cal, rms=0.266203Jy  sigma=0.001549
! 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.325 mas, bmaj=4.097 mas, bpa=-8.828 degrees
! Estimated noise=333.8 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.015552 Jy
! Component: 100  -  total flux cleaned = 0.0256312 Jy
! Component: 150  -  total flux cleaned = 0.032755 Jy
! Component: 200  -  total flux cleaned = 0.0379026 Jy
! Total flux subtracted in 200 components = 0.0379026 Jy
! Clean residual min=-0.004323 max=0.006157 Jy/beam
! Clean residual mean=0.000159 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 0.517409 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 46 components and 0.517409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265193Jy  sigma=0.001537
! Fit after  self-cal, rms=0.265071Jy  sigma=0.001536
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.09     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.93     MK        1.00*    NY        1.02     ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.95     
!   WF        1.00*    WZ        0.97     GN        1.00*    NL        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.96     GC        1.04     HH        1.00*    
!   HN        1.01     KK        1.01     KP        0.82     LA        1.01     
!   MC        1.00*    MK        1.00     NY        1.04     ON        1.00*    
!   OV        0.98     PT        1.01     SC        1.00*    TS        0.98     
!   WF        1.03     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GC        1.01     HH        1.00*    
!   HN        0.96     KK        1.00     KP        0.73     LA        0.96     
!   MC        1.00*    MK        1.02     NY        1.03     ON        1.00*    
!   OV        0.98     PT        0.99     SC        1.04     TS        1.39     
!   WF        0.97     WZ        1.00*    GN        1.02     NL        0.98     
! 
!  A total of 162 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.02     GC        1.03     HH        1.00*    
!   HN        0.96     KK        1.14     KP        1.08     LA        1.01     
!   MC        1.02     MK        1.07     NY        1.04     ON        1.01     
!   OV        1.02     PT        1.04     SC        1.02     TS        1.00*    
!   WF        0.96     WZ        1.04     GN        1.04     NL        1.01     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.01     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.08     MK        1.00*    NY        0.99     ON        0.97     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.95     
!   WF        1.00*    WZ        1.02     GN        1.00*    NL        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.06     KK        0.96     KP        0.91     LA        0.95     
!   MC        1.00*    MK        0.95     NY        0.97     ON        1.00*    
!   OV        0.96     PT        0.99     SC        1.00*    TS        0.98     
!   WF        0.96     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.02     GC        0.98     HH        1.00*    
!   HN        0.98     KK        0.96     KP        0.89     LA        0.96     
!   MC        1.00*    MK        0.99     NY        1.00     ON        1.00*    
!   OV        0.96     PT        0.97     SC        1.03     TS        1.41     
!   WF        0.99     WZ        1.00*    GN        0.99     NL        0.98     
! 
!  A total of 162 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.06     GC        1.00     HH        1.00*    
!   HN        1.01     KK        1.10     KP        1.07     LA        0.99     
!   MC        0.93     MK        1.05     NY        1.04     ON        1.01     
!   OV        0.98     PT        1.03     SC        0.99     TS        1.00*    
!   WF        0.98     WZ        1.09     GN        1.05     NL        1.00     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.27     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NY        1.00     ON        0.93     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.86     
!   WF        1.00*    WZ        0.97     GN        1.00*    NL        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.95     GC        0.99     HH        1.00*    
!   HN        1.01     KK        0.97     KP        0.92     LA        0.98     
!   MC        1.00*    MK        0.96     NY        1.00     ON        1.00*    
!   OV        0.97     PT        0.99     SC        1.00*    TS        0.93     
!   WF        1.01     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.96     GC        0.98     HH        1.00*    
!   HN        0.96     KK        0.98     KP        0.98     LA        0.97     
!   MC        1.00*    MK        0.97     NY        1.00     ON        1.00*    
!   OV        0.96     PT        0.90     SC        1.04     TS        1.25     
!   WF        1.00     WZ        1.00*    GN        0.97     NL        0.91     
! 
!  A total of 162 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.02     GC        1.00     HH        1.00*    
!   HN        0.98     KK        1.08     KP        0.99     LA        1.03     
!   MC        0.81     MK        1.00     NY        1.00     ON        0.88     
!   OV        1.00     PT        1.13     SC        0.97     TS        1.00*    
!   WF        0.94     WZ        1.15     GN        1.06     NL        0.96     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.09     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.67     MK        1.00*    NY        1.27     ON        0.83     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.17     
!   WF        1.00*    WZ        1.22     GN        1.00*    NL        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.94     GC        1.00     HH        1.00*    
!   HN        0.99     KK        0.96     KP        0.92     LA        0.97     
!   MC        1.00*    MK        0.98     NY        0.98     ON        1.00*    
!   OV        0.93     PT        1.18     SC        1.00*    TS        0.92     
!   WF        1.01     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.96     GC        0.99     HH        1.00*    
!   HN        0.94     KK        0.94     KP        0.93     LA        0.97     
!   MC        1.00*    MK        1.01     NY        0.97     ON        1.00*    
!   OV        0.92     PT        0.90     SC        1.02     TS        1.35     
!   WF        0.95     WZ        1.00*    GN        0.97     NL        0.90     
! 
!  A total of 168 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.99     GC        1.01     HH        1.00*    
!   HN        0.95     KK        1.08     KP        1.02     LA        1.00     
!   MC        1.25     MK        1.04     NY        0.99     ON        0.93     
!   OV        0.97     PT        1.27     SC        0.97     TS        1.00*    
!   WF        0.95     WZ        1.13     GN        1.00     NL        0.95     
! 
! 
! Fit before self-cal, rms=0.265071Jy  sigma=0.001536
! Fit after  self-cal, rms=0.254176Jy  sigma=0.001507
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.366 mas, bmaj=4.137 mas, bpa=-8.951 degrees
! Estimated noise=334.452 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 (-17, -5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00247242 Jy
! Component: 100  -  total flux cleaned = 0.00339072 Jy
! Component: 150  -  total flux cleaned = 0.00386619 Jy
! Component: 200  -  total flux cleaned = 0.00426926 Jy
! Total flux subtracted in 200 components = 0.00426926 Jy
! Clean residual min=-0.002391 max=0.002468 Jy/beam
! Clean residual mean=0.000049 rms=0.000658 Jy/beam
! Combined flux in latest and established models = 0.521678 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 64 components and 0.521678 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254086Jy  sigma=0.001506
! Fit after  self-cal, rms=0.254348Jy  sigma=0.001505
! 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.254348Jy  sigma=0.001505
! Fit after  self-cal, rms=0.250654Jy  sigma=0.001501
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.365 mas, bmaj=4.146 mas, bpa=-9.151 degrees
! Estimated noise=333.201 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000274471 Jy
! Component: 100  -  total flux cleaned = 0.000773525 Jy
! Component: 150  -  total flux cleaned = 0.00113636 Jy
! Component: 200  -  total flux cleaned = 0.00140464 Jy
! Total flux subtracted in 200 components = 0.00140464 Jy
! Clean residual min=-0.002111 max=0.002448 Jy/beam
! Clean residual mean=0.000038 rms=0.000585 Jy/beam
! Combined flux in latest and established models = 0.523082 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 75 components and 0.523082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250614Jy  sigma=0.001501
! Fit after  self-cal, rms=0.250737Jy  sigma=0.001501
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 (-8.5, -2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00248947 Jy
! Component: 100  -  total flux cleaned = 0.00249677 Jy
! Component: 150  -  total flux cleaned = 0.00254795 Jy
! Component: 200  -  total flux cleaned = 0.00264211 Jy
! Total flux subtracted in 200 components = 0.00264211 Jy
! Clean residual min=-0.002055 max=0.002449 Jy/beam
! Clean residual mean=0.000026 rms=0.000563 Jy/beam
! Combined flux in latest and established models = 0.525725 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 97 components and 0.525724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250705Jy  sigma=0.001500
! Fit after  self-cal, rms=0.250695Jy  sigma=0.001500
! Inverting map 
! Added new window around map position (-10.5, -44.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128626 Jy
! Component: 100  -  total flux cleaned = 0.00201837 Jy
! Component: 150  -  total flux cleaned = 0.00257837 Jy
! Component: 200  -  total flux cleaned = 0.0028282 Jy
! Total flux subtracted in 200 components = 0.0028282 Jy
! Clean residual min=-0.002076 max=0.001902 Jy/beam
! Clean residual mean=0.000014 rms=0.000552 Jy/beam
! Combined flux in latest and established models = 0.528552 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 110 components and 0.528553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250655Jy  sigma=0.001500
! Fit after  self-cal, rms=0.250655Jy  sigma=0.001500
! 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.250655Jy  sigma=0.001500
! Fit after  self-cal, rms=0.250203Jy  sigma=0.001500
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.366 mas, bmaj=4.148 mas, bpa=-9.256 degrees
! Estimated noise=333.192 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000434893 Jy
! Component: 100  -  total flux cleaned = 0.000585686 Jy
! Component: 150  -  total flux cleaned = 0.000729262 Jy
! Component: 200  -  total flux cleaned = 0.000908636 Jy
! Total flux subtracted in 200 components = 0.000908636 Jy
! Clean residual min=-0.002030 max=0.001912 Jy/beam
! Clean residual mean=0.000008 rms=0.000547 Jy/beam
! Combined flux in latest and established models = 0.529461 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 120 components and 0.529461 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250182Jy  sigma=0.001500
! Fit after  self-cal, rms=0.250232Jy  sigma=0.001500
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.000425139 Jy
! Component: 100  -  total flux cleaned = 0.000592565 Jy
! Component: 150  -  total flux cleaned = 0.000672076 Jy
! Component: 200  -  total flux cleaned = 0.000787657 Jy
! Total flux subtracted in 200 components = 0.000787657 Jy
! Clean residual min=-0.002053 max=0.001897 Jy/beam
! Clean residual mean=0.000005 rms=0.000542 Jy/beam
! Combined flux in latest and established models = 0.530249 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 129 components and 0.530249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250218Jy  sigma=0.001500
! Fit after  self-cal, rms=0.250221Jy  sigma=0.001500
! 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.250221Jy  sigma=0.001500
! Fit after  self-cal, rms=0.249959Jy  sigma=0.001499
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.909 mas, bmaj=8.875 mas, bpa=0.4052 degrees
! Estimated noise=473.717 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0015484 Jy
! Component: 100  -  total flux cleaned = 0.00194254 Jy
! Component: 150  -  total flux cleaned = 0.00203571 Jy
! Component: 200  -  total flux cleaned = 0.00198493 Jy
! Total flux subtracted in 200 components = 0.00198493 Jy
! Clean residual min=-0.002307 max=0.002287 Jy/beam
! Clean residual mean=-0.000016 rms=0.000777 Jy/beam
! Combined flux in latest and established models = 0.532234 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 146 components and 0.532234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249955Jy  sigma=0.001499
! Fit after  self-cal, rms=0.249969Jy  sigma=0.001499
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.00044035 Jy
! Component: 100  -  total flux cleaned = 0.000490641 Jy
! Component: 150  -  total flux cleaned = 0.000490208 Jy
! Component: 200  -  total flux cleaned = 0.000469873 Jy
! Total flux subtracted in 200 components = 0.000469873 Jy
! Clean residual min=-0.002303 max=0.002290 Jy/beam
! Clean residual mean=-0.000023 rms=0.000772 Jy/beam
! Combined flux in latest and established models = 0.532704 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 155 components and 0.532704 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249967Jy  sigma=0.001499
! Fit after  self-cal, rms=0.249967Jy  sigma=0.001499
! 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.367 mas, bmaj=4.15 mas, bpa=-9.308 degrees
! Estimated noise=333.198 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 4.15 at -9.308 degrees (North through East)
! Clean map  min=-0.0018417  max=0.33424 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.974 mas, bmaj=3.455 mas, bpa=-8.767 degrees
! Estimated noise=585.024 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.254136 Jy
! Component: 100  -  total flux cleaned = 0.335034 Jy
! Component: 150  -  total flux cleaned = 0.383075 Jy
! Component: 200  -  total flux cleaned = 0.416146 Jy
! Total flux subtracted in 200 components = 0.416146 Jy
! Clean residual min=-0.005414 max=0.018424 Jy/beam
! Clean residual mean=0.000012 rms=0.001667 Jy/beam
! Combined flux in latest and established models = 0.416146 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.416146 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=4.15 mas, bpa=-9.308 degrees
! Estimated noise=333.198 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.0343056 Jy
! Component: 100  -  total flux cleaned = 0.0557048 Jy
! Component: 150  -  total flux cleaned = 0.0695604 Jy
! Component: 200  -  total flux cleaned = 0.078904 Jy
! Total flux subtracted in 200 components = 0.078904 Jy
! Clean residual min=-0.002366 max=0.006924 Jy/beam
! Clean residual mean=0.000139 rms=0.000901 Jy/beam
! Combined flux in latest and established models = 0.49505 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 34 components and 0.49505 Jy
! Inverting map 
! Added new window around map position (-3, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00731563 Jy
! Component: 100  -  total flux cleaned = 0.0126773 Jy
! Component: 150  -  total flux cleaned = 0.0168522 Jy
! Component: 200  -  total flux cleaned = 0.0202132 Jy
! Total flux subtracted in 200 components = 0.0202132 Jy
! Clean residual min=-0.002094 max=0.002854 Jy/beam
! Clean residual mean=0.000062 rms=0.000618 Jy/beam
! Combined flux in latest and established models = 0.515264 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 65 components and 0.515264 Jy
! Inverting map 
! Added new window around map position (-13, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00300504 Jy
! Component: 100  -  total flux cleaned = 0.0049653 Jy
! Component: 150  -  total flux cleaned = 0.00660144 Jy
! Component: 200  -  total flux cleaned = 0.00799156 Jy
! Total flux subtracted in 200 components = 0.00799156 Jy
! Clean residual min=-0.002034 max=0.001927 Jy/beam
! Clean residual mean=0.000030 rms=0.000561 Jy/beam
! Combined flux in latest and established models = 0.523255 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 86 components and 0.523255 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.909 mas, bmaj=8.875 mas, bpa=0.4052 degrees
! Estimated noise=473.717 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00342199 Jy
! Component: 100  -  total flux cleaned = 0.00536174 Jy
! Component: 150  -  total flux cleaned = 0.00665756 Jy
! Component: 200  -  total flux cleaned = 0.00758547 Jy
! Total flux subtracted in 200 components = 0.00758547 Jy
! Clean residual min=-0.002413 max=0.002412 Jy/beam
! Clean residual mean=0.000003 rms=0.000774 Jy/beam
! Combined flux in latest and established models = 0.530841 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.000490157 Jy
! Component: 100  -  total flux cleaned = 0.000706329 Jy
! Component: 150  -  total flux cleaned = 0.000833752 Jy
! Component: 200  -  total flux cleaned = 0.000891664 Jy
! Total flux subtracted in 200 components = 0.000891664 Jy
! Clean residual min=-0.002398 max=0.002401 Jy/beam
! Clean residual mean=-0.000010 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 0.531732 Jy
! Adding 83 model components to the UV plane model.
! The established model now contains 153 components and 0.531732 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=4.15 mas, bpa=-9.308 degrees
! Estimated noise=333.198 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -4.89177e-05 Jy
! Component: 100  -  total flux cleaned = -8.74388e-05 Jy
! Component: 150  -  total flux cleaned = -0.00021376 Jy
! Component: 200  -  total flux cleaned = -0.000331875 Jy
! Total flux subtracted in 200 components = -0.000331875 Jy
! Clean residual min=-0.002046 max=0.001884 Jy/beam
! Clean residual mean=-0.000002 rms=0.000529 Jy/beam
! Combined flux in latest and established models = 0.531401 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 168 components and 0.5314 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249925Jy  sigma=0.001499
! Fit after  self-cal, rms=0.249955Jy  sigma=0.001499
wmodel J1013+2449_S_1999_12_20_pus_map.mod
! Writing 168 model components to file: J1013+2449_S_1999_12_20_pus_map.mod
wobs J1013+2449_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1013+2449_S_1999_12_20_pus_uvs.fits
wwins J1013+2449_S_1999_12_20_pus_map.win
! wwins: Wrote 7 windows to J1013+2449_S_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000566473 Jy
! Component: 100  -  total flux cleaned = -0.000635541 Jy
! Component: 150  -  total flux cleaned = -0.000736929 Jy
! Component: 200  -  total flux cleaned = -0.000932362 Jy
! Component: 250  -  total flux cleaned = -0.00102737 Jy
! Component: 300  -  total flux cleaned = -0.00105795 Jy
! Component: 350  -  total flux cleaned = -0.00102704 Jy
! Component: 400  -  total flux cleaned = -0.000996491 Jy
! Component: 450  -  total flux cleaned = -0.000876939 Jy
! Component: 500  -  total flux cleaned = -0.000788562 Jy
! Component: 550  -  total flux cleaned = -0.000701321 Jy
! Component: 600  -  total flux cleaned = -0.000643916 Jy
! Component: 650  -  total flux cleaned = -0.000558525 Jy
! Component: 700  -  total flux cleaned = -0.000558761 Jy
! Component: 750  -  total flux cleaned = -0.00050285 Jy
! Component: 800  -  total flux cleaned = -0.000475288 Jy
! Component: 850  -  total flux cleaned = -0.000447781 Jy
! Component: 900  -  total flux cleaned = -0.000474963 Jy
! Component: 950  -  total flux cleaned = -0.000420515 Jy
! Component: 1000  -  total flux cleaned = -0.000393943 Jy
! Component: 1050  -  total flux cleaned = -0.000447326 Jy
! Component: 1100  -  total flux cleaned = -0.000447355 Jy
! Component: 1150  -  total flux cleaned = -0.000421145 Jy
! Component: 1200  -  total flux cleaned = -0.000447582 Jy
! Component: 1250  -  total flux cleaned = -0.00052548 Jy
! Component: 1300  -  total flux cleaned = -0.000499691 Jy
! Component: 1350  -  total flux cleaned = -0.000525137 Jy
! Component: 1400  -  total flux cleaned = -0.000525263 Jy
! Component: 1450  -  total flux cleaned = -0.000525575 Jy
! Component: 1500  -  total flux cleaned = -0.000575983 Jy
! Component: 1550  -  total flux cleaned = -0.000625999 Jy
! Component: 1600  -  total flux cleaned = -0.000750208 Jy
! Component: 1650  -  total flux cleaned = -0.000626417 Jy
! Component: 1700  -  total flux cleaned = -0.000725 Jy
! Component: 1750  -  total flux cleaned = -0.000724961 Jy
! Component: 1800  -  total flux cleaned = -0.000676442 Jy
! Component: 1850  -  total flux cleaned = -0.00074938 Jy
! Component: 1900  -  total flux cleaned = -0.000797527 Jy
! Component: 1950  -  total flux cleaned = -0.000797318 Jy
! Component: 2000  -  total flux cleaned = -0.000820991 Jy
! Total flux subtracted in 2048 components = -0.000773404 Jy
! Clean residual min=-0.001322 max=0.001462 Jy/beam
! Clean residual mean=-0.000000 rms=0.000455 Jy/beam
! Combined flux in latest and established models = 0.530627 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 326 components and 0.530627 Jy
![Exited script file: muppet]
wmap "J1013+2449_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 4.15 at -9.308 degrees (North through East)
! Clean map  min=-0.0019021  max=0.33478 Jy/beam
! Writing clean map to FITS file: J1013+2449_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.334777 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000455535 
device "J1013+2449_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1013+2449_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.408213 0.408213 0.816427 1.63285 3.26571 6.53141 13.0628 26.1256 52.2513
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.334 
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.367 x 4.15 at -9.308 degrees (North through East)
! Clean map  min=-0.0019021  max=0.33478 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1013+2449_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1013+2449_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1013+2449_S_1999_12_20_pus_uvs.log closed on Wed Dec 19 17:52:27 2007