! Started logfile: J2148+0657_S_2003_06_18_pus_uvs.log on Thu Jan 25 00:09:39 2007
obs J2148+0657_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J2148+0657_S_2003_06_18_pus_uva.fits
! AN table 1: 89 integrations on 153 of 153 possible baselines.
! AN table 2: 86 integrations on 153 of 153 possible baselines.
! AN table 3: 180 integrations on 153 of 153 possible baselines.
! AN table 4: 13 integrations on 153 of 153 possible baselines.
! AN table 5: 30 integrations on 153 of 153 possible baselines.
! AN table 6: 11 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.077121 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2148+0657
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2425 lines of history.
! 
! Reading 19304 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
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.600x0.600 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 1436 telescope corrections were flagged in sub-array 1.
!  A total of 1134 telescope corrections were flagged in sub-array 2.
!  A total of 2496 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  A total of 367 telescope corrections were flagged in sub-array 5.
!  A total of 198 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 1436 telescope corrections were flagged in sub-array 1.
!  A total of 1137 telescope corrections were flagged in sub-array 2.
!  A total of 2496 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  A total of 367 telescope corrections were flagged in sub-array 5.
!  A total of 198 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 1436 telescope corrections were flagged in sub-array 1.
!  A total of 1137 telescope corrections were flagged in sub-array 2.
!  A total of 2494 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  A total of 367 telescope corrections were flagged in sub-array 5.
!  A total of 198 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 1436 telescope corrections were flagged in sub-array 1.
!  A total of 1137 telescope corrections were flagged in sub-array 2.
!  A total of 2494 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  A total of 367 telescope corrections were flagged in sub-array 5.
!  A total of 198 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=2.832721Jy  sigma=0.025115
! Fit after  self-cal, rms=2.352193Jy  sigma=0.019856
! 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.365 mas, bmaj=4.318 mas, bpa=-10.68 degrees
! Estimated noise=985.336 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 = 2.08709 Jy
! Component: 100  -  total flux cleaned = 2.65021 Jy
! Total flux subtracted in 100 components = 2.65021 Jy
! Clean residual min=-0.076646 max=0.246419 Jy/beam
! Clean residual mean=0.001787 rms=0.028590 Jy/beam
! Combined flux in latest and established models = 2.65021 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 2.65021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.552086Jy  sigma=0.006784
! Fit after  self-cal, rms=1.556297Jy  sigma=0.006782
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.272834 Jy
! Component: 100  -  total flux cleaned = 0.424733 Jy
! Total flux subtracted in 100 components = 0.424733 Jy
! Clean residual min=-0.063846 max=0.177985 Jy/beam
! Clean residual mean=0.001129 rms=0.019789 Jy/beam
! Combined flux in latest and established models = 3.07494 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 22 components and 3.07494 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.507144Jy  sigma=0.005109
! Fit after  self-cal, rms=1.509216Jy  sigma=0.005105
! Inverting map 
! Added new window around map position (4.2, -4.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.160734 Jy
! Component: 100  -  total flux cleaned = 0.242476 Jy
! Total flux subtracted in 100 components = 0.242476 Jy
! Clean residual min=-0.058989 max=0.089732 Jy/beam
! Clean residual mean=0.000770 rms=0.016053 Jy/beam
! Combined flux in latest and established models = 3.31742 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 32 components and 3.31742 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.494380Jy  sigma=0.004563
! Fit after  self-cal, rms=1.491144Jy  sigma=0.004515
! 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.854 mas, bmaj=5.878 mas, bpa=-10.84 degrees
! Estimated noise=581.397 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.059844 Jy
! Component: 100  -  total flux cleaned = 0.0875601 Jy
! Component: 150  -  total flux cleaned = 0.0981465 Jy
! Component: 200  -  total flux cleaned = 0.099887 Jy
! Total flux subtracted in 200 components = 0.099887 Jy
! Clean residual min=-0.057045 max=0.085829 Jy/beam
! Clean residual mean=0.003608 rms=0.018936 Jy/beam
! Combined flux in latest and established models = 3.4173 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 43 components and 3.4173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.489099Jy  sigma=0.004429
! Fit after  self-cal, rms=1.488710Jy  sigma=0.004421
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.90     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.26     OV        1.00*    
!   PT        1.00*    SC        1.05     TC        1.07     TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.96     GG        1.00*    HN        1.09     
!   KK        0.97     KP        0.96     LA        0.97     MA        1.00*    
!   MK        1.04     NL        1.01     ON        1.00*    OV        1.00     
!   PT        0.95     SC        0.91     TC        1.00*    TS        1.00*    
!   WF        1.25     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        1.06     GG        1.00*    HN        0.91     
!   KK        1.00*    KP        1.10     LA        1.02     MA        1.00*    
!   MK        1.00*    NL        1.05     ON        1.19     OV        1.00*    
!   PT        1.03     SC        0.97     TC        1.10     TS        1.00*    
!   WF        1.11     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.16     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.05     KP        0.90     LA        0.93     MA        1.00*    
!   MK        1.01     NL        0.93     ON        1.00*    OV        1.05     
!   PT        0.93     SC        1.00*    TC        1.00*    TS        1.11     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.18     OV        1.00*    
!   PT        1.00*    SC        1.05     TC        1.03     TS        1.00*    
!   WF        0.92     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.95     GG        1.00*    HN        1.08     
!   KK        0.97     KP        1.03     LA        0.95     MA        1.00*    
!   MK        1.01     NL        0.96     ON        1.00*    OV        0.95     
!   PT        0.94     SC        0.91     TC        1.00*    TS        1.00*    
!   WF        1.17     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.06     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.16     LA        1.01     MA        1.00*    
!   MK        1.00*    NL        0.99     ON        1.09     OV        1.00*    
!   PT        1.03     SC        0.96     TC        1.03     TS        1.00*    
!   WF        1.07     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.09     FD        0.96     GG        1.00*    HN        1.00*    
!   KK        1.04     KP        1.02     LA        0.94     MA        1.00*    
!   MK        1.05     NL        0.88     ON        1.00*    OV        1.00     
!   PT        0.92     SC        1.00*    TC        1.00*    TS        1.10     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.18     OV        1.00*    
!   PT        1.00*    SC        1.19     TC        0.93     TS        1.00*    
!   WF        0.93     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GG        1.00*    HN        1.07     
!   KK        0.94     KP        0.99     LA        0.92     MA        1.00*    
!   MK        0.95     NL        0.95     ON        1.00*    OV        0.98     
!   PT        0.95     SC        1.03     TC        1.00*    TS        1.00*    
!   WF        1.26     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.05     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.11     LA        0.97     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.08     OV        1.00*    
!   PT        1.02     SC        1.10     TC        0.96     TS        1.00*    
!   WF        1.09     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.25     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.03     KP        1.00     LA        0.89     MA        1.00*    
!   MK        1.00     NL        0.86     ON        1.00*    OV        0.97     
!   PT        0.92     SC        1.00*    TC        1.00*    TS        1.11     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.90     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.21     OV        1.00*    
!   PT        1.00*    SC        1.22     TC        0.98     TS        1.00*    
!   WF        0.91     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.93     GG        1.00*    HN        0.68     
!   KK        0.95     KP        1.01     LA        0.95     MA        1.00*    
!   MK        0.90     NL        0.99     ON        1.00*    OV        0.89     
!   PT        0.99     SC        1.04     TC        1.00*    TS        1.00*    
!   WF        1.19     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GG        1.00*    HN        0.88     
!   KK        1.00*    KP        1.12     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.11     OV        1.00*    
!   PT        1.05     SC        1.12     TC        0.94     TS        1.00*    
!   WF        1.08     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.95     GG        1.00*    HN        1.00*    
!   KK        1.02     KP        1.00     LA        0.93     MA        1.00*    
!   MK        0.94     NL        0.91     ON        1.00*    OV        0.89     
!   PT        0.97     SC        1.00*    TC        1.00*    TS        1.10     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=1.488710Jy  sigma=0.004421
! Fit after  self-cal, rms=1.098854Jy  sigma=0.002938
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.876 mas, bmaj=6.144 mas, bpa=-9.858 degrees
! Estimated noise=574.901 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 (23.4, -70.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0696321 Jy
! Component: 100  -  total flux cleaned = 0.111401 Jy
! Component: 150  -  total flux cleaned = 0.140473 Jy
! Component: 200  -  total flux cleaned = 0.160155 Jy
! Total flux subtracted in 200 components = 0.160155 Jy
! Clean residual min=-0.021735 max=0.039401 Jy/beam
! Clean residual mean=0.000914 rms=0.007451 Jy/beam
! Combined flux in latest and established models = 3.57746 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 81 components and 3.57746 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.093175Jy  sigma=0.002740
! Fit after  self-cal, rms=1.093910Jy  sigma=0.002729
! Inverting map 
! Added new window around map position (24.6, -54).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.03277 Jy
! Component: 100  -  total flux cleaned = 0.0461108 Jy
! Component: 150  -  total flux cleaned = 0.0585403 Jy
! Component: 200  -  total flux cleaned = 0.0665631 Jy
! Total flux subtracted in 200 components = 0.0665631 Jy
! Clean residual min=-0.019323 max=0.026923 Jy/beam
! Clean residual mean=0.000599 rms=0.006040 Jy/beam
! Combined flux in latest and established models = 3.64402 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 103 components and 3.64402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.092220Jy  sigma=0.002661
! Fit after  self-cal, rms=1.092043Jy  sigma=0.002656
! 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=1.092043Jy  sigma=0.002656
! Fit after  self-cal, rms=1.085967Jy  sigma=0.002592
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.876 mas, bmaj=6.128 mas, bpa=-9.894 degrees
! Estimated noise=575.914 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0261449 Jy
! Component: 100  -  total flux cleaned = 0.0449591 Jy
! Component: 150  -  total flux cleaned = 0.0556302 Jy
! Component: 200  -  total flux cleaned = 0.0639476 Jy
! Total flux subtracted in 200 components = 0.0639476 Jy
! Clean residual min=-0.015727 max=0.019366 Jy/beam
! Clean residual mean=0.000782 rms=0.004765 Jy/beam
! Combined flux in latest and established models = 3.70797 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 124 components and 3.70797 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.084836Jy  sigma=0.002553
! Fit after  self-cal, rms=1.084676Jy  sigma=0.002550
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.00644227 Jy
! Component: 100  -  total flux cleaned = 0.0123162 Jy
! Component: 150  -  total flux cleaned = 0.016181 Jy
! Component: 200  -  total flux cleaned = 0.0192597 Jy
! Total flux subtracted in 200 components = 0.0192597 Jy
! Clean residual min=-0.014300 max=0.018149 Jy/beam
! Clean residual mean=0.000676 rms=0.004450 Jy/beam
! Combined flux in latest and established models = 3.72723 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 138 components and 3.72723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.084252Jy  sigma=0.002537
! Fit after  self-cal, rms=1.084210Jy  sigma=0.002536
! 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=1.084210Jy  sigma=0.002536
! Fit after  self-cal, rms=1.021653Jy  sigma=0.002523
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.877 mas, bmaj=6.13 mas, bpa=-9.903 degrees
! Estimated noise=576.492 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141647 Jy
! Component: 100  -  total flux cleaned = 0.0222826 Jy
! Component: 150  -  total flux cleaned = 0.0265923 Jy
! Component: 200  -  total flux cleaned = 0.0303317 Jy
! Total flux subtracted in 200 components = 0.0303317 Jy
! Clean residual min=-0.012623 max=0.016504 Jy/beam
! Clean residual mean=0.000648 rms=0.003970 Jy/beam
! Combined flux in latest and established models = 3.75756 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 148 components and 3.75756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.021222Jy  sigma=0.002510
! Fit after  self-cal, rms=1.021042Jy  sigma=0.002509
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.00302287 Jy
! Component: 100  -  total flux cleaned = 0.00570832 Jy
! Component: 150  -  total flux cleaned = 0.00834381 Jy
! Component: 200  -  total flux cleaned = 0.0102484 Jy
! Total flux subtracted in 200 components = 0.0102484 Jy
! Clean residual min=-0.012169 max=0.015765 Jy/beam
! Clean residual mean=0.000588 rms=0.003811 Jy/beam
! Combined flux in latest and established models = 3.76781 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 155 components and 3.76781 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.020829Jy  sigma=0.002503
! Fit after  self-cal, rms=1.020808Jy  sigma=0.002503
! 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=1.020808Jy  sigma=0.002503
! Fit after  self-cal, rms=1.022756Jy  sigma=0.002501
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.095 mas, bmaj=11.45 mas, bpa=-17.39 degrees
! Estimated noise=706.408 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0152808 Jy
! Component: 100  -  total flux cleaned = 0.0228324 Jy
! Component: 150  -  total flux cleaned = 0.0260493 Jy
! Component: 200  -  total flux cleaned = 0.0290666 Jy
! Total flux subtracted in 200 components = 0.0290666 Jy
! Clean residual min=-0.014192 max=0.022215 Jy/beam
! Clean residual mean=0.001202 rms=0.005792 Jy/beam
! Combined flux in latest and established models = 3.79688 Jy
selfcal
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 189 components and 3.79688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.022638Jy  sigma=0.002497
! Fit after  self-cal, rms=1.022568Jy  sigma=0.002496
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.00192723 Jy
! Component: 100  -  total flux cleaned = 0.00488804 Jy
! Component: 150  -  total flux cleaned = 0.0072923 Jy
! Component: 200  -  total flux cleaned = 0.00928119 Jy
! Total flux subtracted in 200 components = 0.00928119 Jy
! Clean residual min=-0.013583 max=0.021270 Jy/beam
! Clean residual mean=0.001089 rms=0.005586 Jy/beam
! Combined flux in latest and established models = 3.80616 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 201 components and 3.80616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.022507Jy  sigma=0.002495
! Fit after  self-cal, rms=1.022483Jy  sigma=0.002494
! 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.878 mas, bmaj=6.131 mas, bpa=-9.922 degrees
! Estimated noise=576.694 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.878 x 6.131 at -9.922 degrees (North through East)
! Clean map  min=-0.010191  max=2.7344 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=1.022483Jy  sigma=0.002494
! Fit after  self-cal, rms=1.232183Jy  sigma=0.001900
! Inverting map and beam 
! Estimated beam: bmin=2.88 mas, bmaj=6.134 mas, bpa=-9.974 degrees
! Estimated noise=576.028 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00266035 Jy
! Component: 100  -  total flux cleaned = -0.00220163 Jy
! Component: 150  -  total flux cleaned = -0.00217831 Jy
! Component: 200  -  total flux cleaned = -0.00217538 Jy
! Total flux subtracted in 200 components = -0.00217538 Jy
! Clean residual min=-0.009994 max=0.011379 Jy/beam
! Clean residual mean=0.000480 rms=0.002751 Jy/beam
! Combined flux in latest and established models = 3.80398 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 209 components and 3.80398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.232112Jy  sigma=0.001895
! Fit after  self-cal, rms=1.232084Jy  sigma=0.001894
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000129279 Jy
! Component: 100  -  total flux cleaned = -4.20569e-05 Jy
! Component: 150  -  total flux cleaned = -3.92629e-05 Jy
! Component: 200  -  total flux cleaned = 0.000100544 Jy
! Total flux subtracted in 200 components = 0.000100544 Jy
! Clean residual min=-0.009996 max=0.011032 Jy/beam
! Clean residual mean=0.000478 rms=0.002708 Jy/beam
! Combined flux in latest and established models = 3.80408 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 214 components and 3.80408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.232032Jy  sigma=0.001892
! Fit after  self-cal, rms=1.232016Jy  sigma=0.001891
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.232016Jy  sigma=0.001891
! Fit after  self-cal, rms=1.231112Jy  sigma=0.001891
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.395 mas, bmaj=4.402 mas, bpa=-10.59 degrees
! Estimated noise=988.951 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.07605 Jy
! Component: 100  -  total flux cleaned = 2.62672 Jy
! Component: 150  -  total flux cleaned = 2.92461 Jy
! Component: 200  -  total flux cleaned = 3.10541 Jy
! Total flux subtracted in 200 components = 3.10541 Jy
! Clean residual min=-0.029549 max=0.094422 Jy/beam
! Clean residual mean=0.000982 rms=0.012073 Jy/beam
! Combined flux in latest and established models = 3.10541 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 17 model components to the UV plane model.
! The established model now contains 17 components and 3.10541 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.881 mas, bmaj=6.136 mas, bpa=-9.994 degrees
! Estimated noise=575.741 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.170569 Jy
! Component: 100  -  total flux cleaned = 0.267432 Jy
! Component: 150  -  total flux cleaned = 0.338833 Jy
! Component: 200  -  total flux cleaned = 0.395467 Jy
! Total flux subtracted in 200 components = 0.395467 Jy
! Clean residual min=-0.020830 max=0.037740 Jy/beam
! Clean residual mean=0.002406 rms=0.009548 Jy/beam
! Combined flux in latest and established models = 3.50088 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 67 components and 3.50088 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=8.082 mas, bmaj=11.46 mas, bpa=-17.46 degrees
! Estimated noise=705.615 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0837324 Jy
! Component: 100  -  total flux cleaned = 0.139878 Jy
! Component: 150  -  total flux cleaned = 0.180536 Jy
! Component: 200  -  total flux cleaned = 0.210905 Jy
! Total flux subtracted in 200 components = 0.210905 Jy
! Clean residual min=-0.016940 max=0.022211 Jy/beam
! Clean residual mean=0.002223 rms=0.007661 Jy/beam
! Combined flux in latest and established models = 3.71178 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.0230809 Jy
! Component: 100  -  total flux cleaned = 0.0408058 Jy
! Component: 150  -  total flux cleaned = 0.0544622 Jy
! Component: 200  -  total flux cleaned = 0.0650237 Jy
! Total flux subtracted in 200 components = 0.0650237 Jy
! Clean residual min=-0.011612 max=0.015712 Jy/beam
! Clean residual mean=0.001215 rms=0.005050 Jy/beam
! Combined flux in latest and established models = 3.77681 Jy
! Adding 125 model components to the UV plane model.
! The established model now contains 178 components and 3.77681 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.881 mas, bmaj=6.136 mas, bpa=-9.994 degrees
! Estimated noise=575.741 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0110108 Jy
! Component: 100  -  total flux cleaned = 0.01301 Jy
! Component: 150  -  total flux cleaned = 0.0135864 Jy
! Component: 200  -  total flux cleaned = 0.0141191 Jy
! Total flux subtracted in 200 components = 0.0141191 Jy
! Clean residual min=-0.010720 max=0.011202 Jy/beam
! Clean residual mean=0.000546 rms=0.002882 Jy/beam
! Combined flux in latest and established models = 3.79093 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 193 components and 3.79093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.232275Jy  sigma=0.001903
! Fit after  self-cal, rms=1.232101Jy  sigma=0.001895
wmodel J2148+0657_S_2003_06_18_pus_map.mod
! Writing 193 model components to file: J2148+0657_S_2003_06_18_pus_map.mod
wobs J2148+0657_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J2148+0657_S_2003_06_18_pus_uvs.fits
wwins J2148+0657_S_2003_06_18_pus_map.win
! wwins: Wrote 4 windows to J2148+0657_S_2003_06_18_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.0049148 Jy
! Component: 100  -  total flux cleaned = 0.00747706 Jy
! Component: 150  -  total flux cleaned = 0.0103691 Jy
! Component: 200  -  total flux cleaned = 0.0134345 Jy
! Component: 250  -  total flux cleaned = 0.0165266 Jy
! Component: 300  -  total flux cleaned = 0.0196517 Jy
! Component: 350  -  total flux cleaned = 0.0226623 Jy
! Component: 400  -  total flux cleaned = 0.0254319 Jy
! Component: 450  -  total flux cleaned = 0.0278447 Jy
! Component: 500  -  total flux cleaned = 0.0301821 Jy
! Component: 550  -  total flux cleaned = 0.0324475 Jy
! Component: 600  -  total flux cleaned = 0.0345219 Jy
! Component: 650  -  total flux cleaned = 0.0363013 Jy
! Component: 700  -  total flux cleaned = 0.0378019 Jy
! Component: 750  -  total flux cleaned = 0.0389261 Jy
! Component: 800  -  total flux cleaned = 0.0400234 Jy
! Component: 850  -  total flux cleaned = 0.0406669 Jy
! Component: 900  -  total flux cleaned = 0.0411932 Jy
! Component: 950  -  total flux cleaned = 0.0419139 Jy
! Component: 1000  -  total flux cleaned = 0.042721 Jy
! Component: 1050  -  total flux cleaned = 0.0437109 Jy
! Component: 1100  -  total flux cleaned = 0.0445849 Jy
! Component: 1150  -  total flux cleaned = 0.0452549 Jy
! Component: 1200  -  total flux cleaned = 0.0460107 Jy
! Component: 1250  -  total flux cleaned = 0.0467516 Jy
! Component: 1300  -  total flux cleaned = 0.0476628 Jy
! Component: 1350  -  total flux cleaned = 0.0478429 Jy
! Component: 1400  -  total flux cleaned = 0.0486395 Jy
! Component: 1450  -  total flux cleaned = 0.0489884 Jy
! Component: 1500  -  total flux cleaned = 0.0495052 Jy
! Component: 1550  -  total flux cleaned = 0.0500993 Jy
! Component: 1600  -  total flux cleaned = 0.0503503 Jy
! Component: 1650  -  total flux cleaned = 0.0506821 Jy
! Component: 1700  -  total flux cleaned = 0.0513368 Jy
! Component: 1750  -  total flux cleaned = 0.0517405 Jy
! Component: 1800  -  total flux cleaned = 0.0522982 Jy
! Component: 1850  -  total flux cleaned = 0.0527711 Jy
! Component: 1900  -  total flux cleaned = 0.0533941 Jy
! Component: 1950  -  total flux cleaned = 0.0540877 Jy
! Component: 2000  -  total flux cleaned = 0.0546201 Jy
! Total flux subtracted in 2048 components = 0.0552226 Jy
! Clean residual min=-0.005525 max=0.003747 Jy/beam
! Clean residual mean=0.000193 rms=0.001370 Jy/beam
! Combined flux in latest and established models = 3.84615 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 333 components and 3.84615 Jy
wmap "J2148+0657_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.881 x 6.136 at -9.994 degrees (North through East)
! Clean map  min=-0.0070074  max=2.7403 Jy/beam
! Writing clean map to FITS file: J2148+0657_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.74032 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00136095 
device "J2148+0657_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J2148+0657_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.148992 0.148992 0.297984 0.595968 1.19194 2.38387 4.76774 9.53549 19.071 38.1419 76.2839
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.004 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.74 
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.881 x 6.136 at -9.994 degrees (North through East)
! Clean map  min=-0.0070074  max=2.7403 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2148+0657_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J2148+0657_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2148+0657_S_2003_06_18_pus_uvs.log closed on Thu Jan 25 00:11:58 2007