! Started logfile: J1058+0133_S_1998_10_01_pus_uvs.log on Thu Feb  7 17:12:18 2008
obs J1058+0133_S_1998_10_01_pus_uva.fits
! Reading UV FITS file: J1058+0133_S_1998_10_01_pus_uva.fits
! AN table 1: 18 integrations on 136 of 136 possible baselines.
! AN table 2: 113 integrations on 136 of 136 possible baselines.
! AN table 3: 229 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.193587 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1058+0133
! 
! 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.22298e+09        4e+06          1        4e+06
!  02        2  2.24298e+09        4e+06          1        4e+06
!  03        3  2.33298e+09        4e+06          1        4e+06
!  04        4  2.36298e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 1537 lines of history.
! 
! Reading 37912 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 J1058+0133_S_1998_10_01_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 306 telescope corrections were flagged in sub-array 1.
!  A total of 1128 telescope corrections were flagged in sub-array 2.
!  A total of 2534 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 306 telescope corrections were flagged in sub-array 1.
!  A total of 1128 telescope corrections were flagged in sub-array 2.
!  A total of 2534 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 306 telescope corrections were flagged in sub-array 1.
!  A total of 1128 telescope corrections were flagged in sub-array 2.
!  A total of 2534 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 306 telescope corrections were flagged in sub-array 1.
!  A total of 1136 telescope corrections were flagged in sub-array 2.
!  A total of 2534 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.078185Jy  sigma=0.008100
! Fit after  self-cal, rms=0.899660Jy  sigma=0.006837
! 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.276 mas, bmaj=5.439 mas, bpa=-7.443 degrees
! Estimated noise=820.976 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.873572 Jy
! Component: 100  -  total flux cleaned = 1.20088 Jy
! Total flux subtracted in 100 components = 1.20088 Jy
! Clean residual min=-0.076394 max=0.331602 Jy/beam
! Clean residual mean=0.000976 rms=0.021765 Jy/beam
! Combined flux in latest and established models = 1.20088 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.20088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.798622Jy  sigma=0.005972
! Fit after  self-cal, rms=0.796678Jy  sigma=0.005964
! Inverting map 
! Added new window around map position (-4, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.293753 Jy
! Component: 100  -  total flux cleaned = 0.465544 Jy
! Total flux subtracted in 100 components = 0.465544 Jy
! Clean residual min=-0.048795 max=0.130595 Jy/beam
! Clean residual mean=0.000726 rms=0.013406 Jy/beam
! Combined flux in latest and established models = 1.66643 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 20 components and 1.66643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.605642Jy  sigma=0.004229
! Fit after  self-cal, rms=0.593405Jy  sigma=0.004154
! Inverting map 
! Added new window around map position (-7, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.154182 Jy
! Component: 100  -  total flux cleaned = 0.258839 Jy
! Total flux subtracted in 100 components = 0.258839 Jy
! Clean residual min=-0.030036 max=0.059404 Jy/beam
! Clean residual mean=0.000570 rms=0.008918 Jy/beam
! Combined flux in latest and established models = 1.92527 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 36 components and 1.92527 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.515145Jy  sigma=0.003385
! Fit after  self-cal, rms=0.511581Jy  sigma=0.003362
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0871728 Jy
! Component: 100  -  total flux cleaned = 0.1532 Jy
! Total flux subtracted in 100 components = 0.1532 Jy
! Clean residual min=-0.023013 max=0.040805 Jy/beam
! Clean residual mean=0.000482 rms=0.006834 Jy/beam
! Combined flux in latest and established models = 2.07847 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 55 components and 2.07847 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.478481Jy  sigma=0.003009
! Fit after  self-cal, rms=0.477509Jy  sigma=0.003003
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0575934 Jy
! Component: 100  -  total flux cleaned = 0.102827 Jy
! Total flux subtracted in 100 components = 0.102827 Jy
! Clean residual min=-0.021047 max=0.029190 Jy/beam
! Clean residual mean=0.000424 rms=0.005735 Jy/beam
! Combined flux in latest and established models = 2.18129 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 72 components and 2.18129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461560Jy  sigma=0.002824
! Fit after  self-cal, rms=0.461127Jy  sigma=0.002821
! 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.894 mas, bmaj=7.132 mas, bpa=-8.462 degrees
! Estimated noise=507.919 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.0856986 Jy
! Component: 100  -  total flux cleaned = 0.140454 Jy
! Component: 150  -  total flux cleaned = 0.177601 Jy
! Component: 200  -  total flux cleaned = 0.203628 Jy
! Total flux subtracted in 200 components = 0.203628 Jy
! Clean residual min=-0.015035 max=0.028268 Jy/beam
! Clean residual mean=0.002424 rms=0.006368 Jy/beam
! Combined flux in latest and established models = 2.38492 Jy
! Performing phase self-cal
! Adding 81 model components to the UV plane model.
! The established model now contains 136 components and 2.38492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445455Jy  sigma=0.002630
! Fit after  self-cal, rms=0.444676Jy  sigma=0.002624
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        0.98     GC        1.10     HN        0.99     
!   KK        0.97     KP        1.10     LA        0.91     MK        0.94     
!   NL        0.97     NY        1.00*    ON        1.17     OV        0.99     
!   PT        0.97     SC        1.00     WF        0.96     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.04     HN        0.99     
!   KK        0.93     KP        1.00     LA        0.99     MK        0.97     
!   NL        1.00     NY        0.99     ON        1.01     OV        1.03     
!   PT        1.00     SC        1.05     WF        0.96     MC        0.94     
!   GN        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.98     GC        1.07     HN        1.03     
!   KK        0.99     KP        0.96     LA        0.96     MK        1.01     
!   NL        0.96     NY        1.00*    ON        1.13     OV        0.98     
!   PT        0.95     SC        1.03     WF        0.98     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GC        1.00     HN        1.04     
!   KK        0.94     KP        0.96     LA        1.07     MK        1.01     
!   NL        1.00     NY        1.03     ON        1.10     OV        1.04     
!   PT        0.97     SC        1.08     WF        0.96     MC        0.85     
!   GN        1.01     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.03     GC        1.11     HN        0.99     
!   KK        1.00     KP        0.98     LA        0.95     MK        0.94     
!   NL        0.98     NY        1.00*    ON        1.08     OV        0.99     
!   PT        0.95     SC        1.01     WF        0.96     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.04     GC        1.05     HN        1.00     
!   KK        0.92     KP        1.00     LA        1.04     MK        0.97     
!   NL        1.01     NY        1.07     ON        1.02     OV        1.05     
!   PT        0.98     SC        1.05     WF        0.97     MC        1.53     
!   GN        1.04     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.13     HN        1.00     
!   KK        0.97     KP        0.99     LA        0.95     MK        0.94     
!   NL        0.98     NY        1.00*    ON        1.17     OV        1.01     
!   PT        0.94     SC        1.01     WF        0.95     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 129 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.01     GC        1.03     HN        1.03     
!   KK        0.97     KP        1.01     LA        1.04     MK        0.97     
!   NL        1.03     NY        1.05     ON        1.04     OV        1.06     
!   PT        0.99     SC        1.05     WF        0.95     MC        1.07     
!   GN        1.02     
! 
! 
! Fit before self-cal, rms=0.444676Jy  sigma=0.002624
! Fit after  self-cal, rms=0.443385Jy  sigma=0.002516
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.916 mas, bmaj=7.252 mas, bpa=-8.359 degrees
! Estimated noise=506.085 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 (-16, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0260923 Jy
! Component: 100  -  total flux cleaned = 0.0333432 Jy
! Component: 150  -  total flux cleaned = 0.0395235 Jy
! Component: 200  -  total flux cleaned = 0.0446895 Jy
! Total flux subtracted in 200 components = 0.0446895 Jy
! Clean residual min=-0.008461 max=0.014963 Jy/beam
! Clean residual mean=0.001570 rms=0.003291 Jy/beam
! Combined flux in latest and established models = 2.42961 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 174 components and 2.42961 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441643Jy  sigma=0.002498
! Fit after  self-cal, rms=0.441496Jy  sigma=0.002495
! 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.441496Jy  sigma=0.002495
! Fit after  self-cal, rms=0.439013Jy  sigma=0.002444
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.923 mas, bmaj=7.254 mas, bpa=-8.356 degrees
! Estimated noise=505.373 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0161864 Jy
! Component: 100  -  total flux cleaned = 0.0237981 Jy
! Component: 150  -  total flux cleaned = 0.0296568 Jy
! Component: 200  -  total flux cleaned = 0.0345892 Jy
! Total flux subtracted in 200 components = 0.0345892 Jy
! Clean residual min=-0.006723 max=0.010021 Jy/beam
! Clean residual mean=0.001085 rms=0.002267 Jy/beam
! Combined flux in latest and established models = 2.4642 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 204 components and 2.4642 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.438149Jy  sigma=0.002435
! Fit after  self-cal, rms=0.438037Jy  sigma=0.002434
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.0056912 Jy
! Component: 100  -  total flux cleaned = 0.00968477 Jy
! Component: 150  -  total flux cleaned = 0.0120783 Jy
! Component: 200  -  total flux cleaned = 0.0146541 Jy
! Total flux subtracted in 200 components = 0.0146541 Jy
! Clean residual min=-0.005953 max=0.009576 Jy/beam
! Clean residual mean=0.000998 rms=0.002071 Jy/beam
! Combined flux in latest and established models = 2.47886 Jy
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 225 components and 2.47886 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437685Jy  sigma=0.002430
! Fit after  self-cal, rms=0.437632Jy  sigma=0.002430
! Inverting map 
! Added new window around map position (-26.5, 18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00917381 Jy
! Component: 100  -  total flux cleaned = 0.0123428 Jy
! Component: 150  -  total flux cleaned = 0.0153389 Jy
! Component: 200  -  total flux cleaned = 0.0177889 Jy
! Total flux subtracted in 200 components = 0.0177889 Jy
! Clean residual min=-0.006683 max=0.007641 Jy/beam
! Clean residual mean=0.000882 rms=0.001871 Jy/beam
! Combined flux in latest and established models = 2.49665 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 244 components and 2.49665 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437288Jy  sigma=0.002427
! Fit after  self-cal, rms=0.437250Jy  sigma=0.002427
! Inverting map 
! Added new window around map position (13.5, -44).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00807032 Jy
! Component: 100  -  total flux cleaned = 0.0110593 Jy
! Component: 150  -  total flux cleaned = 0.01372 Jy
! Component: 200  -  total flux cleaned = 0.0157751 Jy
! Total flux subtracted in 200 components = 0.0157751 Jy
! Clean residual min=-0.006596 max=0.006920 Jy/beam
! Clean residual mean=0.000754 rms=0.001719 Jy/beam
! Combined flux in latest and established models = 2.51242 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 262 components and 2.51242 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437042Jy  sigma=0.002425
! Fit after  self-cal, rms=0.437006Jy  sigma=0.002425
! 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.437006Jy  sigma=0.002425
! Fit after  self-cal, rms=0.435604Jy  sigma=0.002420
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.924 mas, bmaj=7.252 mas, bpa=-8.401 degrees
! Estimated noise=504.192 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00805434 Jy
! Component: 100  -  total flux cleaned = 0.0116707 Jy
! Component: 150  -  total flux cleaned = 0.0145562 Jy
! Component: 200  -  total flux cleaned = 0.0168956 Jy
! Total flux subtracted in 200 components = 0.0168956 Jy
! Clean residual min=-0.004910 max=0.006047 Jy/beam
! Clean residual mean=0.000487 rms=0.001490 Jy/beam
! Combined flux in latest and established models = 2.52932 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 281 components and 2.52932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435365Jy  sigma=0.002418
! Fit after  self-cal, rms=0.435342Jy  sigma=0.002418
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.00247305 Jy
! Component: 100  -  total flux cleaned = 0.00419937 Jy
! Component: 150  -  total flux cleaned = 0.00619886 Jy
! Component: 200  -  total flux cleaned = 0.00799087 Jy
! Total flux subtracted in 200 components = 0.00799087 Jy
! Clean residual min=-0.004709 max=0.005798 Jy/beam
! Clean residual mean=0.000437 rms=0.001413 Jy/beam
! Combined flux in latest and established models = 2.53731 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 293 components and 2.53731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435222Jy  sigma=0.002417
! Fit after  self-cal, rms=0.435208Jy  sigma=0.002417
! 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.435208Jy  sigma=0.002417
! Fit after  self-cal, rms=0.435317Jy  sigma=0.002416
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.605 mas, bmaj=11.34 mas, bpa=-2.857 degrees
! Estimated noise=629.712 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00892129 Jy
! Component: 100  -  total flux cleaned = 0.0143272 Jy
! Component: 150  -  total flux cleaned = 0.0178237 Jy
! Component: 200  -  total flux cleaned = 0.0196744 Jy
! Total flux subtracted in 200 components = 0.0196744 Jy
! Clean residual min=-0.003738 max=0.006750 Jy/beam
! Clean residual mean=0.000728 rms=0.001681 Jy/beam
! Combined flux in latest and established models = 2.55698 Jy
selfcal
! Performing phase self-cal
! Adding 72 model components to the UV plane model.
! The established model now contains 341 components and 2.55698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435236Jy  sigma=0.002415
! Fit after  self-cal, rms=0.435222Jy  sigma=0.002415
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.00214172 Jy
! Component: 100  -  total flux cleaned = 0.00364755 Jy
! Component: 150  -  total flux cleaned = 0.00488803 Jy
! Component: 200  -  total flux cleaned = 0.0059233 Jy
! Total flux subtracted in 200 components = 0.0059233 Jy
! Clean residual min=-0.003533 max=0.006355 Jy/beam
! Clean residual mean=0.000645 rms=0.001628 Jy/beam
! Combined flux in latest and established models = 2.5629 Jy
! Performing phase self-cal
! Adding 55 model components to the UV plane model.
! The established model now contains 365 components and 2.5629 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435189Jy  sigma=0.002415
! Fit after  self-cal, rms=0.435178Jy  sigma=0.002415
! 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.925 mas, bmaj=7.251 mas, bpa=-8.422 degrees
! Estimated noise=503.937 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.925 x 7.251 at -8.422 degrees (North through East)
! Clean map  min=-0.0049188  max=1.2271 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.435178Jy  sigma=0.002415
! Fit after  self-cal, rms=0.458436Jy  sigma=0.002247
! Inverting map and beam 
! Estimated beam: bmin=2.923 mas, bmaj=7.249 mas, bpa=-8.407 degrees
! Estimated noise=503.614 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00214582 Jy
! Component: 100  -  total flux cleaned = 0.00363123 Jy
! Component: 150  -  total flux cleaned = 0.00444797 Jy
! Component: 200  -  total flux cleaned = 0.00496699 Jy
! Total flux subtracted in 200 components = 0.00496699 Jy
! Clean residual min=-0.004076 max=0.005093 Jy/beam
! Clean residual mean=0.000292 rms=0.001251 Jy/beam
! Combined flux in latest and established models = 2.56787 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 374 components and 2.56787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.458366Jy  sigma=0.002247
! Fit after  self-cal, rms=0.458357Jy  sigma=0.002247
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000194173 Jy
! Component: 100  -  total flux cleaned = 0.00113805 Jy
! Component: 150  -  total flux cleaned = 0.00170752 Jy
! Component: 200  -  total flux cleaned = 0.00214496 Jy
! Total flux subtracted in 200 components = 0.00214496 Jy
! Clean residual min=-0.004013 max=0.004963 Jy/beam
! Clean residual mean=0.000280 rms=0.001226 Jy/beam
! Combined flux in latest and established models = 2.57002 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 376 components and 2.57002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.458315Jy  sigma=0.002246
! Fit after  self-cal, rms=0.458305Jy  sigma=0.002246
! 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.458305Jy  sigma=0.002246
! Fit after  self-cal, rms=0.472241Jy  sigma=0.002246
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.308 mas, bmaj=5.499 mas, bpa=-7.583 degrees
! Estimated noise=826.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.886051 Jy
! Component: 100  -  total flux cleaned = 1.27143 Jy
! Component: 150  -  total flux cleaned = 1.53232 Jy
! Component: 200  -  total flux cleaned = 1.71949 Jy
! Total flux subtracted in 200 components = 1.71949 Jy
! Clean residual min=-0.040010 max=0.104782 Jy/beam
! Clean residual mean=0.000577 rms=0.010880 Jy/beam
! Combined flux in latest and established models = 1.71949 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 1.71949 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.923 mas, bmaj=7.252 mas, bpa=-8.438 degrees
! Estimated noise=503.639 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.25946 Jy
! Component: 100  -  total flux cleaned = 0.413087 Jy
! Component: 150  -  total flux cleaned = 0.511498 Jy
! Component: 200  -  total flux cleaned = 0.578556 Jy
! Total flux subtracted in 200 components = 0.578556 Jy
! Clean residual min=-0.015244 max=0.040507 Jy/beam
! Clean residual mean=0.001992 rms=0.007965 Jy/beam
! Combined flux in latest and established models = 2.29805 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 86 components and 2.29805 Jy
! Inverting map 
! Added new window around map position (-10.5, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0493497 Jy
! Component: 100  -  total flux cleaned = 0.0865857 Jy
! Component: 150  -  total flux cleaned = 0.115605 Jy
! Component: 200  -  total flux cleaned = 0.138872 Jy
! Total flux subtracted in 200 components = 0.138872 Jy
! Clean residual min=-0.008352 max=0.014929 Jy/beam
! Clean residual mean=0.001127 rms=0.003804 Jy/beam
! Combined flux in latest and established models = 2.43692 Jy
! Adding 81 model components to the UV plane model.
! The established model now contains 159 components and 2.43692 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.598 mas, bmaj=11.34 mas, bpa=-2.854 degrees
! Estimated noise=629.985 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0363184 Jy
! Component: 100  -  total flux cleaned = 0.0614732 Jy
! Component: 150  -  total flux cleaned = 0.079854 Jy
! Component: 200  -  total flux cleaned = 0.0936744 Jy
! Total flux subtracted in 200 components = 0.0936744 Jy
! Clean residual min=-0.004933 max=0.009188 Jy/beam
! Clean residual mean=0.001249 rms=0.002884 Jy/beam
! Combined flux in latest and established models = 2.53059 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.0105655 Jy
! Component: 100  -  total flux cleaned = 0.0187526 Jy
! Component: 150  -  total flux cleaned = 0.0251648 Jy
! Component: 200  -  total flux cleaned = 0.0302102 Jy
! Total flux subtracted in 200 components = 0.0302102 Jy
! Clean residual min=-0.004056 max=0.005496 Jy/beam
! Clean residual mean=0.000795 rms=0.001674 Jy/beam
! Combined flux in latest and established models = 2.5608 Jy
! Adding 192 model components to the UV plane model.
! The established model now contains 344 components and 2.5608 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.923 mas, bmaj=7.252 mas, bpa=-8.438 degrees
! Estimated noise=503.639 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00136276 Jy
! Component: 100  -  total flux cleaned = 0.00361081 Jy
! Component: 150  -  total flux cleaned = 0.00515163 Jy
! Component: 200  -  total flux cleaned = 0.00617477 Jy
! Total flux subtracted in 200 components = 0.00617477 Jy
! Clean residual min=-0.004218 max=0.005548 Jy/beam
! Clean residual mean=0.000304 rms=0.001268 Jy/beam
! Combined flux in latest and established models = 2.56698 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 365 components and 2.56698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.472432Jy  sigma=0.002248
! Fit after  self-cal, rms=0.472388Jy  sigma=0.002247
wmodel J1058+0133_S_1998_10_01_pus_map.mod
! Writing 365 model components to file: J1058+0133_S_1998_10_01_pus_map.mod
wobs J1058+0133_S_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J1058+0133_S_1998_10_01_pus_uvs.fits
wwins J1058+0133_S_1998_10_01_pus_map.win
! wwins: Wrote 7 windows to J1058+0133_S_1998_10_01_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.00225405 Jy
! Component: 100  -  total flux cleaned = 0.0042607 Jy
! Component: 150  -  total flux cleaned = 0.00569298 Jy
! Component: 200  -  total flux cleaned = 0.00692247 Jy
! Component: 250  -  total flux cleaned = 0.00825581 Jy
! Component: 300  -  total flux cleaned = 0.00941687 Jy
! Component: 350  -  total flux cleaned = 0.010551 Jy
! Component: 400  -  total flux cleaned = 0.0116647 Jy
! Component: 450  -  total flux cleaned = 0.0124387 Jy
! Component: 500  -  total flux cleaned = 0.013267 Jy
! Component: 550  -  total flux cleaned = 0.013896 Jy
! Component: 600  -  total flux cleaned = 0.0146413 Jy
! Component: 650  -  total flux cleaned = 0.0152547 Jy
! Component: 700  -  total flux cleaned = 0.0157402 Jy
! Component: 750  -  total flux cleaned = 0.0162214 Jy
! Component: 800  -  total flux cleaned = 0.0168164 Jy
! Component: 850  -  total flux cleaned = 0.0172877 Jy
! Component: 900  -  total flux cleaned = 0.0178131 Jy
! Component: 950  -  total flux cleaned = 0.0183343 Jy
! Component: 1000  -  total flux cleaned = 0.0189074 Jy
! Component: 1050  -  total flux cleaned = 0.0192485 Jy
! Component: 1100  -  total flux cleaned = 0.0198121 Jy
! Component: 1150  -  total flux cleaned = 0.0200911 Jy
! Component: 1200  -  total flux cleaned = 0.0204789 Jy
! Component: 1250  -  total flux cleaned = 0.0209186 Jy
! Component: 1300  -  total flux cleaned = 0.0213002 Jy
! Component: 1350  -  total flux cleaned = 0.0216252 Jy
! Component: 1400  -  total flux cleaned = 0.0221088 Jy
! Component: 1450  -  total flux cleaned = 0.0223217 Jy
! Component: 1500  -  total flux cleaned = 0.0226397 Jy
! Component: 1550  -  total flux cleaned = 0.0229024 Jy
! Component: 1600  -  total flux cleaned = 0.0232681 Jy
! Component: 1650  -  total flux cleaned = 0.0235792 Jy
! Component: 1700  -  total flux cleaned = 0.0237339 Jy
! Component: 1750  -  total flux cleaned = 0.0241437 Jy
! Component: 1800  -  total flux cleaned = 0.0243982 Jy
! Component: 1850  -  total flux cleaned = 0.0246511 Jy
! Component: 1900  -  total flux cleaned = 0.025003 Jy
! Component: 1950  -  total flux cleaned = 0.0252027 Jy
! Component: 2000  -  total flux cleaned = 0.0254013 Jy
! Total flux subtracted in 2048 components = 0.0257469 Jy
! Clean residual min=-0.002519 max=0.002972 Jy/beam
! Clean residual mean=0.000143 rms=0.000990 Jy/beam
! Combined flux in latest and established models = 2.59273 Jy
keep
! Adding 144 model components to the UV plane model.
! The established model now contains 508 components and 2.59273 Jy
![Exited script file: muppet]
wmap "J1058+0133_S_1998_10_01_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.923 x 7.252 at -8.438 degrees (North through East)
! Clean map  min=-0.0034659  max=1.2243 Jy/beam
! Writing clean map to FITS file: J1058+0133_S_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.2243 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000990228 
device "J1058+0133_S_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J1058+0133_S_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.242644 0.242644 0.485288 0.970576 1.94115 3.8823 7.76461 15.5292 31.0584 62.1169
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.224 
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.923 x 7.252 at -8.438 degrees (North through East)
! Clean map  min=-0.0034659  max=1.2243 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1058+0133_S_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J1058+0133_S_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1058+0133_S_1998_10_01_pus_uvs.log closed on Thu Feb  7 17:12:39 2008