! Started logfile: J2147+0929_S_2003_05_07_pus_uvs.log on Sat Dec 23 02:23:59 2006
obs J2147+0929_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J2147+0929_S_2003_05_07_pus_uva.fits
! AN table 1: 48 integrations on 171 of 171 possible baselines.
! AN table 2: 112 integrations on 171 of 171 possible baselines.
! AN table 3: 189 integrations on 171 of 171 possible baselines.
! AN table 4: 31 integrations on 171 of 171 possible baselines.
! AN table 5: Unused.
! AN table 6: 328 integrations on 171 of 171 possible baselines.
! AN table 7: 361 integrations on 171 of 171 possible baselines.
! AN table 8: Unused.
! AN table 9: Unused.
! Apparent sampling: 0.0888189 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2147+0929
! 
! 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 1676 lines of history.
! 
! Reading 64944 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
float field_size
field_size = 512
float field_cell
field_cell = 0.5
float taper_size
taper_size = 20.
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 643 telescope corrections were flagged in sub-array 1.
!  A total of 2027 telescope corrections were flagged in sub-array 2.
!  A total of 1747 telescope corrections were flagged in sub-array 3.
!  A total of 484 telescope corrections were flagged in sub-array 4.
!  A total of 4631 telescope corrections were flagged in sub-array 5.
!  A total of 6288 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 677 telescope corrections were flagged in sub-array 1.
!  A total of 2027 telescope corrections were flagged in sub-array 2.
!  A total of 1747 telescope corrections were flagged in sub-array 3.
!  A total of 484 telescope corrections were flagged in sub-array 4.
!  A total of 4631 telescope corrections were flagged in sub-array 5.
!  A total of 6626 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 677 telescope corrections were flagged in sub-array 1.
!  A total of 2027 telescope corrections were flagged in sub-array 2.
!  A total of 1747 telescope corrections were flagged in sub-array 3.
!  A total of 484 telescope corrections were flagged in sub-array 4.
!  A total of 4631 telescope corrections were flagged in sub-array 5.
!  A total of 6626 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 643 telescope corrections were flagged in sub-array 1.
!  A total of 2027 telescope corrections were flagged in sub-array 2.
!  A total of 1747 telescope corrections were flagged in sub-array 3.
!  A total of 484 telescope corrections were flagged in sub-array 4.
!  A total of 4631 telescope corrections were flagged in sub-array 5.
!  A total of 6288 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.746595Jy  sigma=0.005623
! Fit after  self-cal, rms=0.633831Jy  sigma=0.004907
! 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.142 mas, bmaj=5.888 mas, bpa=-4.982 degrees
! Estimated noise=869.828 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.30857 Jy
! Component: 100  -  total flux cleaned = 0.405866 Jy
! Total flux subtracted in 100 components = 0.405866 Jy
! Clean residual min=-0.012905 max=0.039983 Jy/beam
! Clean residual mean=0.000264 rms=0.004257 Jy/beam
! Combined flux in latest and established models = 0.405866 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.405866 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288169Jy  sigma=0.001669
! Fit after  self-cal, rms=0.287616Jy  sigma=0.001668
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0414483 Jy
! Component: 100  -  total flux cleaned = 0.0600691 Jy
! Total flux subtracted in 100 components = 0.0600691 Jy
! Clean residual min=-0.012981 max=0.018755 Jy/beam
! Clean residual mean=0.000118 rms=0.003289 Jy/beam
! Combined flux in latest and established models = 0.465936 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 18 components and 0.465936 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278413Jy  sigma=0.001540
! Fit after  self-cal, rms=0.278131Jy  sigma=0.001539
! 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.859 mas, bmaj=7.741 mas, bpa=-7.625 degrees
! Estimated noise=358.92 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 (3.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0322071 Jy
! Component: 100  -  total flux cleaned = 0.0481099 Jy
! Component: 150  -  total flux cleaned = 0.0575795 Jy
! Component: 200  -  total flux cleaned = 0.0639729 Jy
! Total flux subtracted in 200 components = 0.0639729 Jy
! Clean residual min=-0.010433 max=0.009943 Jy/beam
! Clean residual mean=0.000117 rms=0.002659 Jy/beam
! Combined flux in latest and established models = 0.529909 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 46 components and 0.529908 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274396Jy  sigma=0.001494
! Fit after  self-cal, rms=0.274096Jy  sigma=0.001491
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00     LA        1.06     MA        1.00*    
!   MC        1.00*    MK        0.99     NL        0.95     ON        0.65     
!   OV        1.04     PT        1.03     SC        1.00*    TC        1.00*    
!   TS        0.84     WF        0.64     WZ        1.08     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.15     
!   MC        0.85     MK        1.00*    NL        1.00*    ON        1.06     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.11     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        0.99     LA        1.04     MA        1.00*    
!   MC        2.05     MK        1.00*    NL        0.98     ON        0.90     
!   OV        0.88     PT        1.02     SC        0.96     TC        1.00*    
!   TS        1.00*    WF        1.00     WZ        0.94     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.17     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.01     ON        1.00*    
!   OV        1.00*    PT        1.01     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        1.00     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        0.98     LA        1.05     MA        0.67     
!   MC        0.95     MK        1.00*    NL        1.01     ON        1.01     
!   OV        1.19     PT        1.02     SC        0.90     TC        1.00*    
!   TS        1.00*    WF        0.92     WZ        0.92     
! 
!  A total of 357 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.86     
!   MC        0.95     MK        1.00*    NL        1.00*    ON        0.90     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.02     WF        1.00*    WZ        1.00     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.10     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.98     LA        1.01     MA        1.00*    
!   MC        1.00*    MK        0.99     NL        1.01     ON        0.76     
!   OV        1.06     PT        1.02     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.15     WZ        1.26     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.99     
!   MC        1.29     MK        1.00*    NL        1.00*    ON        1.02     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.82     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.02     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.97     LA        0.97     MA        1.00*    
!   MC        2.21     MK        1.00*    NL        1.01     ON        1.01     
!   OV        0.94     PT        1.00     SC        0.96     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        0.89     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.05     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.02     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.01     ON        1.00*    
!   OV        1.00*    PT        1.04     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        1.04     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        0.98     LA        0.99     MA        1.05     
!   MC        0.93     MK        1.00*    NL        1.04     ON        0.96     
!   OV        1.08     PT        1.01     SC        0.91     TC        1.00*    
!   TS        1.00*    WF        1.02     WZ        0.86     
! 
!  A total of 141 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.87     
!   MC        0.91     MK        1.00*    NL        1.00*    ON        1.18     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.04     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.02     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.97     LA        1.01     MA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.00     ON        0.83     
!   OV        0.99     PT        1.05     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.25     WZ        1.23     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.81     
!   MC        1.16     MK        1.00*    NL        1.00*    ON        1.09     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.12     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        0.99     LA        0.99     MA        1.00*    
!   MC        2.27     MK        1.00*    NL        1.02     ON        1.00     
!   OV        0.92     PT        1.02     SC        1.09     TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        0.93     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.97     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.06     ON        1.00*    
!   OV        1.00*    PT        1.09     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.99     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.00     LA        0.99     MA        0.90     
!   MC        1.02     MK        1.00*    NL        1.04     ON        1.19     
!   OV        1.07     PT        1.02     SC        1.05     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        0.92     
! 
!  A total of 141 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.95     
!   MC        0.94     MK        1.00*    NL        1.00*    ON        1.10     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.98     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.01     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.96     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        0.95     ON        0.76     
!   OV        1.01     PT        0.98     SC        1.00*    TC        1.00*    
!   TS        0.82     WF        0.98     WZ        1.12     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.77     
!   MC        0.66     MK        1.00*    NL        1.00*    ON        1.43     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.05     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        0.97     LA        0.97     MA        1.00*    
!   MC        1.99     MK        1.00*    NL        0.95     ON        0.97     
!   OV        0.79     PT        0.97     SC        1.10     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        0.88     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.01     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.98     ON        1.00*    
!   OV        1.00*    PT        1.00     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.99     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.00     LA        0.99     MA        1.03     
!   MC        1.02     MK        1.00*    NL        0.98     ON        1.27     
!   OV        0.95     PT        0.99     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        1.02     WZ        0.98     
! 
!  A total of 357 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.86     
!   MC        1.12     MK        1.00*    NL        1.00*    ON        0.86     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.06     WF        1.00*    WZ        1.02     
! 
! 
! Fit before self-cal, rms=0.274096Jy  sigma=0.001491
! Fit after  self-cal, rms=0.265143Jy  sigma=0.001454
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.915 mas, bmaj=7.743 mas, bpa=-7.978 degrees
! Estimated noise=361.309 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.00586553 Jy
! Component: 100  -  total flux cleaned = 0.00659084 Jy
! Component: 150  -  total flux cleaned = 0.00687857 Jy
! Component: 200  -  total flux cleaned = 0.00705396 Jy
! Total flux subtracted in 200 components = 0.00705396 Jy
! Clean residual min=-0.004975 max=0.006436 Jy/beam
! Clean residual mean=0.000174 rms=0.001425 Jy/beam
! Combined flux in latest and established models = 0.536962 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 66 components and 0.536962 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264977Jy  sigma=0.001452
! Fit after  self-cal, rms=0.265148Jy  sigma=0.001452
! 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.265148Jy  sigma=0.001452
! Fit after  self-cal, rms=0.269600Jy  sigma=0.001447
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.926 mas, bmaj=7.729 mas, bpa=-7.908 degrees
! Estimated noise=362.767 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00349324 Jy
! Component: 100  -  total flux cleaned = 0.00398598 Jy
! Component: 150  -  total flux cleaned = 0.00414649 Jy
! Component: 200  -  total flux cleaned = 0.00428874 Jy
! Total flux subtracted in 200 components = 0.00428874 Jy
! Clean residual min=-0.004156 max=0.005365 Jy/beam
! Clean residual mean=0.000157 rms=0.001272 Jy/beam
! Combined flux in latest and established models = 0.541251 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 78 components and 0.541251 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269500Jy  sigma=0.001446
! Fit after  self-cal, rms=0.269535Jy  sigma=0.001446
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000425725 Jy
! Component: 100  -  total flux cleaned = 0.000685847 Jy
! Component: 150  -  total flux cleaned = 0.000920676 Jy
! Component: 200  -  total flux cleaned = 0.0010884 Jy
! Total flux subtracted in 200 components = 0.0010884 Jy
! Clean residual min=-0.004202 max=0.005065 Jy/beam
! Clean residual mean=0.000147 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 0.542339 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 91 components and 0.542339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269499Jy  sigma=0.001446
! Fit after  self-cal, rms=0.269495Jy  sigma=0.001446
! 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.269495Jy  sigma=0.001446
! Fit after  self-cal, rms=0.273708Jy  sigma=0.001444
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.941 mas, bmaj=7.711 mas, bpa=-7.834 degrees
! Estimated noise=366.079 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00424036 Jy
! Component: 100  -  total flux cleaned = 0.00554958 Jy
! Component: 150  -  total flux cleaned = 0.00577074 Jy
! Component: 200  -  total flux cleaned = 0.00609086 Jy
! Total flux subtracted in 200 components = 0.00609086 Jy
! Clean residual min=-0.004945 max=0.005193 Jy/beam
! Clean residual mean=0.000118 rms=0.001343 Jy/beam
! Combined flux in latest and established models = 0.54843 Jy
selfcal
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 109 components and 0.54843 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273595Jy  sigma=0.001444
! Fit after  self-cal, rms=0.273616Jy  sigma=0.001444
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.000356342 Jy
! Component: 100  -  total flux cleaned = 0.000472034 Jy
! Component: 150  -  total flux cleaned = 0.000578533 Jy
! Component: 200  -  total flux cleaned = 0.000679516 Jy
! Total flux subtracted in 200 components = 0.000679516 Jy
! Clean residual min=-0.005022 max=0.005215 Jy/beam
! Clean residual mean=0.000113 rms=0.001335 Jy/beam
! Combined flux in latest and established models = 0.54911 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 115 components and 0.54911 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273585Jy  sigma=0.001444
! Fit after  self-cal, rms=0.273585Jy  sigma=0.001444
! 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.273585Jy  sigma=0.001444
! Fit after  self-cal, rms=0.276981Jy  sigma=0.001442
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.73 mas, bmaj=11.96 mas, bpa=-7.989 degrees
! Estimated noise=422.027 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00461068 Jy
! Component: 100  -  total flux cleaned = 0.00551525 Jy
! Component: 150  -  total flux cleaned = 0.0058473 Jy
! Component: 200  -  total flux cleaned = 0.00605012 Jy
! Total flux subtracted in 200 components = 0.00605012 Jy
! Clean residual min=-0.005771 max=0.004940 Jy/beam
! Clean residual mean=0.000215 rms=0.001814 Jy/beam
! Combined flux in latest and established models = 0.55516 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 134 components and 0.55516 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276940Jy  sigma=0.001442
! Fit after  self-cal, rms=0.276939Jy  sigma=0.001442
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.000580271 Jy
! Component: 100  -  total flux cleaned = 0.000543973 Jy
! Component: 150  -  total flux cleaned = 0.000517608 Jy
! Component: 200  -  total flux cleaned = 0.000493169 Jy
! Total flux subtracted in 200 components = 0.000493169 Jy
! Clean residual min=-0.005962 max=0.005048 Jy/beam
! Clean residual mean=0.000206 rms=0.001842 Jy/beam
! Combined flux in latest and established models = 0.555653 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 139 components and 0.555653 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276943Jy  sigma=0.001442
! Fit after  self-cal, rms=0.276939Jy  sigma=0.001442
! 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.951 mas, bmaj=7.7 mas, bpa=-7.769 degrees
! Estimated noise=369.329 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.951 x 7.7 at -7.769 degrees (North through East)
! Clean map  min=-0.0050496  max=0.42897 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=2.256 mas, bmaj=5.903 mas, bpa=-4.924 degrees
! Estimated noise=916.319 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.326501 Jy
! Component: 100  -  total flux cleaned = 0.423599 Jy
! Component: 150  -  total flux cleaned = 0.465981 Jy
! Component: 200  -  total flux cleaned = 0.49107 Jy
! Total flux subtracted in 200 components = 0.49107 Jy
! Clean residual min=-0.007199 max=0.013123 Jy/beam
! Clean residual mean=0.000165 rms=0.002019 Jy/beam
! Combined flux in latest and established models = 0.49107 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 15 model components to the UV plane model.
! The established model now contains 15 components and 0.49107 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.951 mas, bmaj=7.7 mas, bpa=-7.769 degrees
! Estimated noise=369.329 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.0259938 Jy
! Component: 100  -  total flux cleaned = 0.0395543 Jy
! Component: 150  -  total flux cleaned = 0.0478143 Jy
! Component: 200  -  total flux cleaned = 0.0533575 Jy
! Total flux subtracted in 200 components = 0.0533575 Jy
! Clean residual min=-0.004698 max=0.006570 Jy/beam
! Clean residual mean=0.000191 rms=0.001454 Jy/beam
! Combined flux in latest and established models = 0.544427 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 74 components and 0.544427 Jy
! Inverting map 
! Added new window around map position (12.5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00624819 Jy
! Component: 100  -  total flux cleaned = 0.00967 Jy
! Component: 150  -  total flux cleaned = 0.0112312 Jy
! Component: 200  -  total flux cleaned = 0.0122639 Jy
! Total flux subtracted in 200 components = 0.0122639 Jy
! Clean residual min=-0.004357 max=0.004104 Jy/beam
! Clean residual mean=0.000098 rms=0.001226 Jy/beam
! Combined flux in latest and established models = 0.556691 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 99 components and 0.556691 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.73 mas, bmaj=11.96 mas, bpa=-7.989 degrees
! Estimated noise=422.027 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00130985 Jy
! Component: 100  -  total flux cleaned = 0.00165538 Jy
! Component: 150  -  total flux cleaned = 0.00175486 Jy
! Component: 200  -  total flux cleaned = 0.00178296 Jy
! Total flux subtracted in 200 components = 0.00178296 Jy
! Clean residual min=-0.005472 max=0.004543 Jy/beam
! Clean residual mean=0.000159 rms=0.001695 Jy/beam
! Combined flux in latest and established models = 0.558474 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 = 1.33042e-06 Jy
! Component: 100  -  total flux cleaned = 2.0395e-06 Jy
! Component: 150  -  total flux cleaned = 2.33777e-06 Jy
! Component: 200  -  total flux cleaned = 2.06914e-06 Jy
! Total flux subtracted in 200 components = 2.06914e-06 Jy
! Clean residual min=-0.005418 max=0.004460 Jy/beam
! Clean residual mean=0.000158 rms=0.001692 Jy/beam
! Combined flux in latest and established models = 0.558476 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 130 components and 0.558476 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.951 mas, bmaj=7.7 mas, bpa=-7.769 degrees
! Estimated noise=369.329 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000474725 Jy
! Component: 100  -  total flux cleaned = -0.000334102 Jy
! Component: 150  -  total flux cleaned = -0.000201965 Jy
! Component: 200  -  total flux cleaned = -7.7245e-05 Jy
! Total flux subtracted in 200 components = -7.7245e-05 Jy
! Clean residual min=-0.004282 max=0.004047 Jy/beam
! Clean residual mean=0.000084 rms=0.001194 Jy/beam
! Combined flux in latest and established models = 0.558399 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 149 components and 0.558399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276746Jy  sigma=0.001441
! Fit after  self-cal, rms=0.276763Jy  sigma=0.001441
wmodel J2147+0929_S_2003_05_07_pus_map.mod
! Writing 149 model components to file: J2147+0929_S_2003_05_07_pus_map.mod
wobs J2147+0929_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J2147+0929_S_2003_05_07_pus_uvs.fits
wwins J2147+0929_S_2003_05_07_pus_map.win
! wwins: Wrote 3 windows to J2147+0929_S_2003_05_07_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.00130711 Jy
! Component: 100  -  total flux cleaned = -0.00224655 Jy
! Component: 150  -  total flux cleaned = -0.00261961 Jy
! Component: 200  -  total flux cleaned = -0.00267862 Jy
! Component: 250  -  total flux cleaned = -0.00267929 Jy
! Component: 300  -  total flux cleaned = -0.00273564 Jy
! Component: 350  -  total flux cleaned = -0.00273734 Jy
! Component: 400  -  total flux cleaned = -0.00284107 Jy
! Component: 450  -  total flux cleaned = -0.00284014 Jy
! Component: 500  -  total flux cleaned = -0.00289002 Jy
! Component: 550  -  total flux cleaned = -0.00293852 Jy
! Component: 600  -  total flux cleaned = -0.00303244 Jy
! Component: 650  -  total flux cleaned = -0.00303226 Jy
! Component: 700  -  total flux cleaned = -0.00294107 Jy
! Component: 750  -  total flux cleaned = -0.00285159 Jy
! Component: 800  -  total flux cleaned = -0.00276367 Jy
! Component: 850  -  total flux cleaned = -0.00254801 Jy
! Component: 900  -  total flux cleaned = -0.00246307 Jy
! Component: 950  -  total flux cleaned = -0.00229505 Jy
! Component: 1000  -  total flux cleaned = -0.00212898 Jy
! Component: 1050  -  total flux cleaned = -0.00196556 Jy
! Component: 1100  -  total flux cleaned = -0.00188482 Jy
! Component: 1150  -  total flux cleaned = -0.00172611 Jy
! Component: 1200  -  total flux cleaned = -0.00172652 Jy
! Component: 1250  -  total flux cleaned = -0.00161016 Jy
! Component: 1300  -  total flux cleaned = -0.00157243 Jy
! Component: 1350  -  total flux cleaned = -0.00161041 Jy
! Component: 1400  -  total flux cleaned = -0.00149792 Jy
! Component: 1450  -  total flux cleaned = -0.00149784 Jy
! Component: 1500  -  total flux cleaned = -0.00138746 Jy
! Component: 1550  -  total flux cleaned = -0.00146014 Jy
! Component: 1600  -  total flux cleaned = -0.00128038 Jy
! Component: 1650  -  total flux cleaned = -0.00128066 Jy
! Component: 1700  -  total flux cleaned = -0.00117489 Jy
! Component: 1750  -  total flux cleaned = -0.00107077 Jy
! Component: 1800  -  total flux cleaned = -0.00107071 Jy
! Component: 1850  -  total flux cleaned = -0.000899938 Jy
! Component: 1900  -  total flux cleaned = -0.000764929 Jy
! Component: 1950  -  total flux cleaned = -0.000698565 Jy
! Component: 2000  -  total flux cleaned = -0.000698655 Jy
! Total flux subtracted in 2048 components = -0.000600282 Jy
! Clean residual min=-0.002360 max=0.001791 Jy/beam
! Clean residual mean=0.000080 rms=0.000736 Jy/beam
! Combined flux in latest and established models = 0.557798 Jy
keep
! Adding 172 model components to the UV plane model.
! The established model now contains 321 components and 0.557799 Jy
wmap "J2147+0929_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.951 x 7.7 at -7.769 degrees (North through East)
! Clean map  min=-0.0033434  max=0.43061 Jy/beam
! Writing clean map to FITS file: J2147+0929_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.430611 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000729742 
device "J2147+0929_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J2147+0929_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.508401 0.508401 1.0168 2.0336 4.0672 8.13441 16.2688 32.5376 65.0753
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.43 
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.951 x 7.7 at -7.769 degrees (North through East)
! Clean map  min=-0.0033434  max=0.43061 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2147+0929_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J2147+0929_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2147+0929_S_2003_05_07_pus_uvs.log closed on Sat Dec 23 02:27:54 2006