! Started logfile: J1147-0724_S_2003_05_07_pus_uvs.log on Sun Dec 24 10:25:57 2006
obs J1147-0724_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1147-0724_S_2003_05_07_pus_uva.fits
! AN table 1: 89 integrations on 171 of 171 possible baselines.
! AN table 2: 10 integrations on 171 of 171 possible baselines.
! AN table 3: 73 integrations on 171 of 171 possible baselines.
! AN table 4: 166 integrations on 171 of 171 possible baselines.
! AN table 5: 51 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0521204 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1147-0724
! 
! 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 1680 lines of history.
! 
! Reading 13868 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 1327 telescope corrections were flagged in sub-array 1.
!  A total of 190 telescope corrections were flagged in sub-array 2.
!  A total of 1230 telescope corrections were flagged in sub-array 3.
!  A total of 2406 telescope corrections were flagged in sub-array 4.
!  A total of 920 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1327 telescope corrections were flagged in sub-array 1.
!  A total of 190 telescope corrections were flagged in sub-array 2.
!  A total of 1230 telescope corrections were flagged in sub-array 3.
!  A total of 2406 telescope corrections were flagged in sub-array 4.
!  A total of 920 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1327 telescope corrections were flagged in sub-array 1.
!  A total of 190 telescope corrections were flagged in sub-array 2.
!  A total of 1233 telescope corrections were flagged in sub-array 3.
!  A total of 2406 telescope corrections were flagged in sub-array 4.
!  A total of 920 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1327 telescope corrections were flagged in sub-array 1.
!  A total of 190 telescope corrections were flagged in sub-array 2.
!  A total of 1236 telescope corrections were flagged in sub-array 3.
!  A total of 2407 telescope corrections were flagged in sub-array 4.
!  A total of 920 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.874631Jy  sigma=0.006670
! Fit after  self-cal, rms=0.467038Jy  sigma=0.003559
! 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.118 mas, bmaj=7.616 mas, bpa=2.66 degrees
! Estimated noise=1361.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 (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.410403 Jy
! Component: 100  -  total flux cleaned = 0.54619 Jy
! Total flux subtracted in 100 components = 0.54619 Jy
! Clean residual min=-0.026188 max=0.060228 Jy/beam
! Clean residual mean=0.000304 rms=0.007091 Jy/beam
! Combined flux in latest and established models = 0.54619 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.546191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256765Jy  sigma=0.001727
! Fit after  self-cal, rms=0.255764Jy  sigma=0.001725
! Inverting map 
! Added new window around map position (-2, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0658712 Jy
! Component: 100  -  total flux cleaned = 0.100285 Jy
! Total flux subtracted in 100 components = 0.100285 Jy
! Clean residual min=-0.020938 max=0.032498 Jy/beam
! Clean residual mean=0.000176 rms=0.005015 Jy/beam
! Combined flux in latest and established models = 0.646476 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 24 components and 0.646476 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231959Jy  sigma=0.001476
! Fit after  self-cal, rms=0.231405Jy  sigma=0.001473
! 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=3.147 mas, bmaj=9.719 mas, bpa=0.5053 degrees
! Estimated noise=802.488 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.0316739 Jy
! Component: 100  -  total flux cleaned = 0.0468944 Jy
! Component: 150  -  total flux cleaned = 0.0551798 Jy
! Component: 200  -  total flux cleaned = 0.0598072 Jy
! Total flux subtracted in 200 components = 0.0598072 Jy
! Clean residual min=-0.013507 max=0.017857 Jy/beam
! Clean residual mean=0.000192 rms=0.004053 Jy/beam
! Combined flux in latest and established models = 0.706283 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 55 components and 0.706283 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228196Jy  sigma=0.001429
! Fit after  self-cal, rms=0.227930Jy  sigma=0.001427
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.07     GG        1.00*    HN        1.00*    
!   KK        1.03     KP        1.00*    LA        1.08     MA        1.13     
!   MC        1.05     MK        0.97     NL        1.04     ON        1.00*    
!   OV        1.00     PT        1.04     SC        1.00*    TC        1.00*    
!   TS        1.05     WF        1.00*    WZ        1.03     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.09     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.12     LA        1.01     MA        0.73     
!   MC        1.19     MK        1.00*    NL        1.00*    ON        0.92     
!   OV        1.00*    PT        1.02     SC        1.00*    TC        1.00*    
!   TS        0.88     WF        1.00*    WZ        1.20     
! 
!  A total of 72 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.99     GG        1.00*    HN        1.07     
!   KK        1.02     KP        0.94     LA        1.04     MA        1.00*    
!   MC        1.00*    MK        1.05     NL        0.98     ON        1.00*    
!   OV        0.85     PT        1.00     SC        0.92     TC        1.00*    
!   TS        1.00*    WF        1.09     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.16     ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00     TC        1.00*    
!   TS        1.00*    WF        0.95     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.12     GG        1.00*    HN        1.00*    
!   KK        1.00     KP        1.00*    LA        1.00     MA        1.57     
!   MC        1.42     MK        0.99     NL        1.03     ON        1.00*    
!   OV        0.99     PT        1.04     SC        1.00*    TC        1.00*    
!   TS        1.01     WF        1.00*    WZ        0.91     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.09     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.05     LA        1.07     MA        1.06     
!   MC        1.07     MK        1.00*    NL        1.00*    ON        1.04     
!   OV        1.00*    PT        1.12     SC        1.00*    TC        1.00*    
!   TS        0.86     WF        1.00*    WZ        1.17     
! 
!  A total of 72 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        1.03     GG        1.00*    HN        1.06     
!   KK        1.01     KP        0.94     LA        0.99     MA        1.00*    
!   MC        1.00*    MK        1.05     NL        1.01     ON        1.00*    
!   OV        0.93     PT        0.99     SC        0.91     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.04     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.31     ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.79     TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.04     GG        1.00*    HN        1.00*    
!   KK        0.99     KP        1.00*    LA        1.02     MA        1.02     
!   MC        1.00     MK        0.96     NL        1.04     ON        1.00*    
!   OV        0.97     PT        1.05     SC        1.00*    TC        1.00*    
!   TS        0.97     WF        1.00*    WZ        1.31     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.14     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.96     LA        1.03     MA        1.05     
!   MC        1.27     MK        1.00*    NL        1.00*    ON        1.12     
!   OV        1.00*    PT        1.16     SC        1.00*    TC        1.00*    
!   TS        0.85     WF        1.00*    WZ        1.15     
! 
!  A total of 72 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.97     GG        1.00*    HN        1.07     
!   KK        0.87     KP        0.96     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.06     NL        1.04     ON        1.00*    
!   OV        0.95     PT        1.02     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.34     ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.93     TC        1.00*    
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.05     GG        1.00*    HN        1.00*    
!   KK        1.02     KP        1.00*    LA        1.01     MA        1.34     
!   MC        1.09     MK        0.91     NL        0.92     ON        1.00*    
!   OV        0.90     PT        1.02     SC        1.00*    TC        1.00*    
!   TS        0.94     WF        1.00*    WZ        1.08     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.12     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.96     LA        0.99     MA        1.04     
!   MC        1.15     MK        1.00*    NL        1.00*    ON        0.97     
!   OV        1.00*    PT        1.06     SC        1.00*    TC        1.00*    
!   TS        0.80     WF        1.00*    WZ        1.18     
! 
!  A total of 72 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.98     GG        1.00*    HN        1.06     
!   KK        0.98     KP        0.90     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.03     NL        0.96     ON        1.00*    
!   OV        0.91     PT        0.95     SC        1.07     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.08     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.10     ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00     TC        1.00*    
!   TS        1.00*    WF        1.08     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.227930Jy  sigma=0.001427
! Fit after  self-cal, rms=0.225027Jy  sigma=0.001386
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.222 mas, bmaj=10.09 mas, bpa=-0.7409 degrees
! Estimated noise=825.174 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.0012769 Jy
! Component: 100  -  total flux cleaned = -0.00192936 Jy
! Component: 150  -  total flux cleaned = -0.00214182 Jy
! Component: 200  -  total flux cleaned = -0.00223608 Jy
! Total flux subtracted in 200 components = -0.00223608 Jy
! Clean residual min=-0.013790 max=0.014300 Jy/beam
! Clean residual mean=0.001072 rms=0.003303 Jy/beam
! Combined flux in latest and established models = 0.704047 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 64 components and 0.704047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224896Jy  sigma=0.001385
! Fit after  self-cal, rms=0.225190Jy  sigma=0.001385
! 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.225190Jy  sigma=0.001385
! Fit after  self-cal, rms=0.225946Jy  sigma=0.001307
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.221 mas, bmaj=10.1 mas, bpa=-0.7507 degrees
! Estimated noise=829.841 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00326796 Jy
! Component: 100  -  total flux cleaned = 0.00314526 Jy
! Component: 150  -  total flux cleaned = 0.0029935 Jy
! Component: 200  -  total flux cleaned = 0.00292675 Jy
! Total flux subtracted in 200 components = 0.00292675 Jy
! Clean residual min=-0.004933 max=0.007711 Jy/beam
! Clean residual mean=0.000622 rms=0.001937 Jy/beam
! Combined flux in latest and established models = 0.706974 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 70 components and 0.706974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225874Jy  sigma=0.001305
! Fit after  self-cal, rms=0.225992Jy  sigma=0.001305
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.000530055 Jy
! Component: 100  -  total flux cleaned = 0.00019733 Jy
! Component: 150  -  total flux cleaned = 8.24747e-06 Jy
! Component: 200  -  total flux cleaned = -4.83209e-05 Jy
! Total flux subtracted in 200 components = -4.83209e-05 Jy
! Clean residual min=-0.004913 max=0.007626 Jy/beam
! Clean residual mean=0.000626 rms=0.001922 Jy/beam
! Combined flux in latest and established models = 0.706926 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 74 components and 0.706926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225948Jy  sigma=0.001304
! Fit after  self-cal, rms=0.225936Jy  sigma=0.001304
! 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.225936Jy  sigma=0.001304
! Fit after  self-cal, rms=0.226213Jy  sigma=0.001274
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.231 mas, bmaj=10.1 mas, bpa=-0.7025 degrees
! Estimated noise=830.439 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -2.64523e-05 Jy
! Component: 100  -  total flux cleaned = -0.000537999 Jy
! Component: 150  -  total flux cleaned = -0.00101573 Jy
! Component: 200  -  total flux cleaned = -0.0013571 Jy
! Total flux subtracted in 200 components = -0.0013571 Jy
! Clean residual min=-0.004050 max=0.008382 Jy/beam
! Clean residual mean=0.000512 rms=0.001518 Jy/beam
! Combined flux in latest and established models = 0.705569 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 78 components and 0.705569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226177Jy  sigma=0.001273
! Fit after  self-cal, rms=0.226221Jy  sigma=0.001273
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-10, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00809084 Jy
! Component: 100  -  total flux cleaned = 0.012148 Jy
! Component: 150  -  total flux cleaned = 0.0128236 Jy
! Component: 200  -  total flux cleaned = 0.0130454 Jy
! Total flux subtracted in 200 components = 0.0130454 Jy
! Clean residual min=-0.004272 max=0.005043 Jy/beam
! Clean residual mean=0.000339 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 0.718614 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 100 components and 0.718614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225892Jy  sigma=0.001269
! Fit after  self-cal, rms=0.225822Jy  sigma=0.001269
! 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.225822Jy  sigma=0.001269
! Fit after  self-cal, rms=0.225927Jy  sigma=0.001268
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.603 mas, bmaj=14.19 mas, bpa=-13.72 degrees
! Estimated noise=978.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00612114 Jy
! Component: 100  -  total flux cleaned = 0.0075033 Jy
! Component: 150  -  total flux cleaned = 0.00795046 Jy
! Component: 200  -  total flux cleaned = 0.0082174 Jy
! Total flux subtracted in 200 components = 0.0082174 Jy
! Clean residual min=-0.003463 max=0.004976 Jy/beam
! Clean residual mean=0.000400 rms=0.001106 Jy/beam
! Combined flux in latest and established models = 0.726831 Jy
selfcal
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 135 components and 0.726831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225806Jy  sigma=0.001267
! Fit after  self-cal, rms=0.225784Jy  sigma=0.001267
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (13, 33).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0047394 Jy
! Component: 100  -  total flux cleaned = 0.00652859 Jy
! Component: 150  -  total flux cleaned = 0.00765735 Jy
! Component: 200  -  total flux cleaned = 0.00803681 Jy
! Total flux subtracted in 200 components = 0.00803681 Jy
! Clean residual min=-0.003045 max=0.002781 Jy/beam
! Clean residual mean=0.000220 rms=0.000904 Jy/beam
! Combined flux in latest and established models = 0.734868 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 172 components and 0.734868 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225667Jy  sigma=0.001266
! Fit after  self-cal, rms=0.225666Jy  sigma=0.001266
! 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=3.226 mas, bmaj=10.1 mas, bpa=-0.6831 degrees
! Estimated noise=830.367 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.226 x 10.1 at -0.6831 degrees (North through East)
! Clean map  min=-0.0032661  max=0.57151 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.225666Jy  sigma=0.001266
! Fit after  self-cal, rms=0.312103Jy  sigma=0.001118
! Inverting map and beam 
! Estimated beam: bmin=3.235 mas, bmaj=10.09 mas, bpa=-0.7026 degrees
! Estimated noise=830.09 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128026 Jy
! Component: 100  -  total flux cleaned = 0.00184999 Jy
! Component: 150  -  total flux cleaned = 0.00237886 Jy
! Component: 200  -  total flux cleaned = 0.00257647 Jy
! Total flux subtracted in 200 components = 0.00257647 Jy
! Clean residual min=-0.003408 max=0.003050 Jy/beam
! Clean residual mean=0.000101 rms=0.000841 Jy/beam
! Combined flux in latest and established models = 0.737445 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 201 components and 0.737445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312027Jy  sigma=0.001117
! Fit after  self-cal, rms=0.311992Jy  sigma=0.001117
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000205444 Jy
! Component: 100  -  total flux cleaned = 0.000390609 Jy
! Component: 150  -  total flux cleaned = 0.000567374 Jy
! Component: 200  -  total flux cleaned = 0.000736805 Jy
! Total flux subtracted in 200 components = 0.000736805 Jy
! Clean residual min=-0.003244 max=0.002931 Jy/beam
! Clean residual mean=0.000093 rms=0.000815 Jy/beam
! Combined flux in latest and established models = 0.738181 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 217 components and 0.738181 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311945Jy  sigma=0.001116
! Fit after  self-cal, rms=0.311920Jy  sigma=0.001116
! 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.311920Jy  sigma=0.001116
! Fit after  self-cal, rms=0.312716Jy  sigma=0.001116
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.182 mas, bmaj=7.789 mas, bpa=1.161 degrees
! Estimated noise=1420.78 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.419599 Jy
! Component: 100  -  total flux cleaned = 0.558786 Jy
! Component: 150  -  total flux cleaned = 0.61794 Jy
! Component: 200  -  total flux cleaned = 0.648043 Jy
! Total flux subtracted in 200 components = 0.648043 Jy
! Clean residual min=-0.009625 max=0.017547 Jy/beam
! Clean residual mean=0.000146 rms=0.002554 Jy/beam
! Combined flux in latest and established models = 0.648043 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 0.648043 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.235 mas, bmaj=10.09 mas, bpa=-0.7205 degrees
! Estimated noise=829.872 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.0318236 Jy
! Component: 100  -  total flux cleaned = 0.0489589 Jy
! Component: 150  -  total flux cleaned = 0.0595677 Jy
! Component: 200  -  total flux cleaned = 0.066691 Jy
! Total flux subtracted in 200 components = 0.066691 Jy
! Clean residual min=-0.004543 max=0.005308 Jy/beam
! Clean residual mean=0.000386 rms=0.001280 Jy/beam
! Combined flux in latest and established models = 0.714734 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 73 components and 0.714734 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.586 mas, bmaj=14.16 mas, bpa=-13.61 degrees
! Estimated noise=978.551 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00729764 Jy
! Component: 100  -  total flux cleaned = 0.0122671 Jy
! Component: 150  -  total flux cleaned = 0.0160298 Jy
! Component: 200  -  total flux cleaned = 0.0187884 Jy
! Total flux subtracted in 200 components = 0.0187884 Jy
! Clean residual min=-0.003067 max=0.003530 Jy/beam
! Clean residual mean=0.000257 rms=0.000912 Jy/beam
! Combined flux in latest and established models = 0.733522 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.00166026 Jy
! Component: 100  -  total flux cleaned = 0.00304843 Jy
! Component: 150  -  total flux cleaned = 0.00368706 Jy
! Component: 200  -  total flux cleaned = 0.00400675 Jy
! Total flux subtracted in 200 components = 0.00400675 Jy
! Clean residual min=-0.002873 max=0.002926 Jy/beam
! Clean residual mean=0.000164 rms=0.000809 Jy/beam
! Combined flux in latest and established models = 0.737529 Jy
! Adding 79 model components to the UV plane model.
! The established model now contains 145 components and 0.737529 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.235 mas, bmaj=10.09 mas, bpa=-0.7205 degrees
! Estimated noise=829.872 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000397009 Jy
! Component: 100  -  total flux cleaned = 0.000717159 Jy
! Component: 150  -  total flux cleaned = 0.00111647 Jy
! Component: 200  -  total flux cleaned = 0.00120997 Jy
! Total flux subtracted in 200 components = 0.00120997 Jy
! Clean residual min=-0.003713 max=0.002964 Jy/beam
! Clean residual mean=0.000088 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 0.738739 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 175 components and 0.738739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312744Jy  sigma=0.001116
! Fit after  self-cal, rms=0.312729Jy  sigma=0.001116
wmodel J1147-0724_S_2003_05_07_pus_map.mod
! Writing 175 model components to file: J1147-0724_S_2003_05_07_pus_map.mod
wobs J1147-0724_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1147-0724_S_2003_05_07_pus_uvs.fits
wwins J1147-0724_S_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J1147-0724_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.000167592 Jy
! Component: 100  -  total flux cleaned = 0.000389238 Jy
! Component: 150  -  total flux cleaned = 0.000768379 Jy
! Component: 200  -  total flux cleaned = 0.00113352 Jy
! Component: 250  -  total flux cleaned = 0.00135505 Jy
! Component: 300  -  total flux cleaned = 0.00161279 Jy
! Component: 350  -  total flux cleaned = 0.00177905 Jy
! Component: 400  -  total flux cleaned = 0.00190187 Jy
! Component: 450  -  total flux cleaned = 0.00202291 Jy
! Component: 500  -  total flux cleaned = 0.00229957 Jy
! Component: 550  -  total flux cleaned = 0.00257092 Jy
! Component: 600  -  total flux cleaned = 0.00283795 Jy
! Component: 650  -  total flux cleaned = 0.00310059 Jy
! Component: 700  -  total flux cleaned = 0.00335956 Jy
! Component: 750  -  total flux cleaned = 0.00361515 Jy
! Component: 800  -  total flux cleaned = 0.00390333 Jy
! Component: 850  -  total flux cleaned = 0.00415227 Jy
! Component: 900  -  total flux cleaned = 0.0043633 Jy
! Component: 950  -  total flux cleaned = 0.00457199 Jy
! Component: 1000  -  total flux cleaned = 0.00481307 Jy
! Component: 1050  -  total flux cleaned = 0.0050855 Jy
! Component: 1100  -  total flux cleaned = 0.00522026 Jy
! Component: 1150  -  total flux cleaned = 0.00538721 Jy
! Component: 1200  -  total flux cleaned = 0.00561865 Jy
! Component: 1250  -  total flux cleaned = 0.00574921 Jy
! Component: 1300  -  total flux cleaned = 0.00581377 Jy
! Component: 1350  -  total flux cleaned = 0.00600691 Jy
! Component: 1400  -  total flux cleaned = 0.00607066 Jy
! Component: 1450  -  total flux cleaned = 0.00619713 Jy
! Component: 1500  -  total flux cleaned = 0.00635382 Jy
! Component: 1550  -  total flux cleaned = 0.00638501 Jy
! Component: 1600  -  total flux cleaned = 0.00650859 Jy
! Component: 1650  -  total flux cleaned = 0.00663086 Jy
! Component: 1700  -  total flux cleaned = 0.00675208 Jy
! Component: 1750  -  total flux cleaned = 0.00678199 Jy
! Component: 1800  -  total flux cleaned = 0.00693134 Jy
! Component: 1850  -  total flux cleaned = 0.00702025 Jy
! Component: 1900  -  total flux cleaned = 0.00707897 Jy
! Component: 1950  -  total flux cleaned = 0.00719573 Jy
! Component: 2000  -  total flux cleaned = 0.00725383 Jy
! Total flux subtracted in 2048 components = 0.0073403 Jy
! Clean residual min=-0.001548 max=0.001937 Jy/beam
! Clean residual mean=0.000021 rms=0.000605 Jy/beam
! Combined flux in latest and established models = 0.746079 Jy
keep
! Adding 143 model components to the UV plane model.
! The established model now contains 318 components and 0.746079 Jy
wmap "J1147-0724_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.235 x 10.09 at -0.7205 degrees (North through East)
! Clean map  min=-0.0035845  max=0.57384 Jy/beam
! Writing clean map to FITS file: J1147-0724_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.573844 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000603964 
device "J1147-0724_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1147-0724_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.315747 0.315747 0.631493 1.26299 2.52597 5.05194 10.1039 20.2078 40.4156 80.8311
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.573 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.235 x 10.09 at -0.7205 degrees (North through East)
! Clean map  min=-0.0035845  max=0.57384 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1147-0724_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1147-0724_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1147-0724_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 10:27:54 2006