! Started logfile: J1147-0724_S_2003_06_18_pus_uvs.log on Tue Jan 23 22:36:57 2007
obs J1147-0724_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J1147-0724_S_2003_06_18_pus_uva.fits
! AN table 1: 25 integrations on 153 of 153 possible baselines.
! AN table 2: 23 integrations on 153 of 153 possible baselines.
! AN table 3: 54 integrations on 153 of 153 possible baselines.
! AN table 4: 50 integrations on 153 of 153 possible baselines.
! AN table 5: 103 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0830962 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 2425 lines of history.
! 
! Reading 12968 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.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 450 telescope corrections were flagged in sub-array 1.
!  A total of 384 telescope corrections were flagged in sub-array 2.
!  A total of 731 telescope corrections were flagged in sub-array 3.
!  A total of 700 telescope corrections were flagged in sub-array 4.
!  A total of 1361 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 450 telescope corrections were flagged in sub-array 1.
!  A total of 384 telescope corrections were flagged in sub-array 2.
!  A total of 731 telescope corrections were flagged in sub-array 3.
!  A total of 700 telescope corrections were flagged in sub-array 4.
!  A total of 1361 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 450 telescope corrections were flagged in sub-array 1.
!  A total of 384 telescope corrections were flagged in sub-array 2.
!  A total of 774 telescope corrections were flagged in sub-array 3.
!  A total of 700 telescope corrections were flagged in sub-array 4.
!  A total of 1361 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 450 telescope corrections were flagged in sub-array 1.
!  A total of 384 telescope corrections were flagged in sub-array 2.
!  A total of 774 telescope corrections were flagged in sub-array 3.
!  A total of 700 telescope corrections were flagged in sub-array 4.
!  A total of 1361 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.688027Jy  sigma=0.006635
! Fit after  self-cal, rms=0.398076Jy  sigma=0.003965
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.989 mas, bmaj=7.573 mas, bpa=-5.368 degrees
! Estimated noise=940.176 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.491372 Jy
! Component: 100  -  total flux cleaned = 0.657752 Jy
! Total flux subtracted in 100 components = 0.657752 Jy
! Clean residual min=-0.033884 max=0.073608 Jy/beam
! Clean residual mean=0.000082 rms=0.008704 Jy/beam
! Combined flux in latest and established models = 0.657752 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.657753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279986Jy  sigma=0.002570
! Fit after  self-cal, rms=0.278735Jy  sigma=0.002558
! Inverting map 
! Added new window around map position (-2, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0884402 Jy
! Component: 100  -  total flux cleaned = 0.137458 Jy
! Total flux subtracted in 100 components = 0.137458 Jy
! Clean residual min=-0.021194 max=0.032915 Jy/beam
! Clean residual mean=0.000035 rms=0.005146 Jy/beam
! Combined flux in latest and established models = 0.795211 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 0.795211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238421Jy  sigma=0.002092
! Fit after  self-cal, rms=0.237283Jy  sigma=0.002079
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0348999 Jy
! Component: 100  -  total flux cleaned = 0.0537398 Jy
! Total flux subtracted in 100 components = 0.0537398 Jy
! Clean residual min=-0.016587 max=0.016648 Jy/beam
! Clean residual mean=0.000012 rms=0.004033 Jy/beam
! Combined flux in latest and established models = 0.848951 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 35 components and 0.848951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230433Jy  sigma=0.002000
! Fit after  self-cal, rms=0.230123Jy  sigma=0.001997
! 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.59 mas, bmaj=9.54 mas, bpa=-11.56 degrees
! Estimated noise=648.605 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.0190513 Jy
! Component: 100  -  total flux cleaned = 0.0280032 Jy
! Component: 150  -  total flux cleaned = 0.0318283 Jy
! Component: 200  -  total flux cleaned = 0.032744 Jy
! Total flux subtracted in 200 components = 0.032744 Jy
! Clean residual min=-0.016371 max=0.019023 Jy/beam
! Clean residual mean=0.000003 rms=0.004199 Jy/beam
! Combined flux in latest and established models = 0.881695 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 64 components and 0.881695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228557Jy  sigma=0.001981
! Fit after  self-cal, rms=0.228484Jy  sigma=0.001980
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  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*    
!   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 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.02     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.00     LA        1.01     MA        1.00*    
!   MK        1.00*    NL        1.06     ON        1.18     OV        1.07     
!   PT        1.00*    SC        0.95     TC        1.00*    TS        1.00*    
!   WF        1.09     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.10     FD        1.04     GG        1.00*    HN        1.00*    
!   KK        1.08     KP        1.00     LA        1.04     MA        1.00*    
!   MK        1.01     NL        1.14     ON        1.00*    OV        0.77     
!   PT        1.02     SC        1.00*    TC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.96     GG        1.00*    HN        1.00     
!   KK        1.01     KP        0.88     LA        0.98     MA        1.00*    
!   MK        1.06     NL        1.04     ON        1.00*    OV        0.83     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  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*    
!   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 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.02     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.07     LA        0.99     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.09     OV        1.07     
!   PT        1.00*    SC        0.96     TC        1.00*    TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.03     GG        1.00*    HN        1.00*    
!   KK        1.10     KP        1.08     LA        1.03     MA        1.00*    
!   MK        1.09     NL        1.06     ON        1.00*    OV        1.02     
!   PT        1.00     SC        1.00*    TC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.95     FD        0.95     GG        1.00*    HN        1.04     
!   KK        1.05     KP        0.96     LA        0.97     MA        1.00*    
!   MK        1.08     NL        0.92     ON        1.00*    OV        0.91     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  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*    
!   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 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.01     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.04     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        0.97     ON        1.00*    OV        1.11     
!   PT        1.00*    SC        1.11     TC        1.00*    TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.02     GG        1.00*    HN        1.00*    
!   KK        1.07     KP        1.05     LA        0.99     MA        1.00*    
!   MK        1.08     NL        1.06     ON        1.00*    OV        1.07     
!   PT        1.05     SC        1.00*    TC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.94     FD        0.94     GG        1.00*    HN        1.07     
!   KK        1.03     KP        0.96     LA        0.92     MA        1.00*    
!   MK        1.04     NL        0.91     ON        1.00*    OV        0.97     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  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*    
!   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 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.02     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.08     LA        1.03     MA        1.00*    
!   MK        1.00*    NL        1.05     ON        1.00*    OV        1.04     
!   PT        1.00*    SC        1.15     TC        1.00*    TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.04     GG        1.00*    HN        1.00*    
!   KK        1.05     KP        1.05     LA        1.04     MA        1.00*    
!   MK        0.97     NL        1.06     ON        1.00*    OV        1.01     
!   PT        1.06     SC        1.00*    TC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.92     FD        0.96     GG        1.00*    HN        0.97     
!   KK        1.04     KP        0.97     LA        0.94     MA        1.00*    
!   MK        0.98     NL        0.95     ON        1.00*    OV        0.89     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.228484Jy  sigma=0.001980
! Fit after  self-cal, rms=0.224015Jy  sigma=0.001843
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.672 mas, bmaj=10.44 mas, bpa=-12.52 degrees
! Estimated noise=674.098 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 (-13, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00931402 Jy
! Component: 100  -  total flux cleaned = 0.0122933 Jy
! Component: 150  -  total flux cleaned = 0.0136742 Jy
! Component: 200  -  total flux cleaned = 0.0140666 Jy
! Total flux subtracted in 200 components = 0.0140666 Jy
! Clean residual min=-0.006530 max=0.005509 Jy/beam
! Clean residual mean=0.000257 rms=0.001433 Jy/beam
! Combined flux in latest and established models = 0.895761 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 87 components and 0.895761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223589Jy  sigma=0.001838
! Fit after  self-cal, rms=0.223707Jy  sigma=0.001837
! 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.223707Jy  sigma=0.001837
! Fit after  self-cal, rms=0.224219Jy  sigma=0.001836
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.674 mas, bmaj=10.44 mas, bpa=-12.5 degrees
! Estimated noise=674.582 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0047745 Jy
! Component: 100  -  total flux cleaned = 0.00643455 Jy
! Component: 150  -  total flux cleaned = 0.00675432 Jy
! Component: 200  -  total flux cleaned = 0.00685077 Jy
! Total flux subtracted in 200 components = 0.00685077 Jy
! Clean residual min=-0.005716 max=0.005274 Jy/beam
! Clean residual mean=0.000184 rms=0.001333 Jy/beam
! Combined flux in latest and established models = 0.902612 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 98 components and 0.902612 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224081Jy  sigma=0.001835
! Fit after  self-cal, rms=0.224070Jy  sigma=0.001834
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.00127655 Jy
! Component: 100  -  total flux cleaned = 0.00136422 Jy
! Component: 150  -  total flux cleaned = 0.00144758 Jy
! Component: 200  -  total flux cleaned = 0.00144646 Jy
! Total flux subtracted in 200 components = 0.00144646 Jy
! Clean residual min=-0.005549 max=0.004937 Jy/beam
! Clean residual mean=0.000170 rms=0.001303 Jy/beam
! Combined flux in latest and established models = 0.904059 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 113 components and 0.904058 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224010Jy  sigma=0.001834
! Fit after  self-cal, rms=0.224007Jy  sigma=0.001834
! 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.224007Jy  sigma=0.001834
! Fit after  self-cal, rms=0.223426Jy  sigma=0.001827
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.674 mas, bmaj=10.44 mas, bpa=-12.48 degrees
! Estimated noise=674.53 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00132811 Jy
! Component: 100  -  total flux cleaned = 0.00161131 Jy
! Component: 150  -  total flux cleaned = 0.00177859 Jy
! Component: 200  -  total flux cleaned = 0.0019272 Jy
! Total flux subtracted in 200 components = 0.0019272 Jy
! Clean residual min=-0.004819 max=0.004341 Jy/beam
! Clean residual mean=0.000151 rms=0.001120 Jy/beam
! Combined flux in latest and established models = 0.905986 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 133 components and 0.905986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223356Jy  sigma=0.001826
! Fit after  self-cal, rms=0.223351Jy  sigma=0.001826
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.000660969 Jy
! Component: 100  -  total flux cleaned = 0.000867587 Jy
! Component: 150  -  total flux cleaned = 0.000930599 Jy
! Component: 200  -  total flux cleaned = 0.000870492 Jy
! Total flux subtracted in 200 components = 0.000870492 Jy
! Clean residual min=-0.004673 max=0.004127 Jy/beam
! Clean residual mean=0.000141 rms=0.001099 Jy/beam
! Combined flux in latest and established models = 0.906856 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 141 components and 0.906856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223311Jy  sigma=0.001825
! Fit after  self-cal, rms=0.223309Jy  sigma=0.001825
! 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.223309Jy  sigma=0.001825
! Fit after  self-cal, rms=0.223212Jy  sigma=0.001825
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.235 mas, bmaj=13.76 mas, bpa=-9.741 degrees
! Estimated noise=876.714 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00155198 Jy
! Component: 100  -  total flux cleaned = 0.00210117 Jy
! Component: 150  -  total flux cleaned = 0.00218004 Jy
! Component: 200  -  total flux cleaned = 0.00236121 Jy
! Total flux subtracted in 200 components = 0.00236121 Jy
! Clean residual min=-0.003202 max=0.003946 Jy/beam
! Clean residual mean=0.000236 rms=0.001251 Jy/beam
! Combined flux in latest and established models = 0.909217 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 150 components and 0.909217 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223196Jy  sigma=0.001825
! Fit after  self-cal, rms=0.223183Jy  sigma=0.001825
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.000190557 Jy
! Component: 100  -  total flux cleaned = 0.000520679 Jy
! Component: 150  -  total flux cleaned = 0.00057495 Jy
! Component: 200  -  total flux cleaned = 0.000623124 Jy
! Total flux subtracted in 200 components = 0.000623124 Jy
! Clean residual min=-0.003118 max=0.004021 Jy/beam
! Clean residual mean=0.000221 rms=0.001229 Jy/beam
! Combined flux in latest and established models = 0.90984 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 158 components and 0.90984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223187Jy  sigma=0.001825
! Fit after  self-cal, rms=0.223182Jy  sigma=0.001825
! 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.676 mas, bmaj=10.44 mas, bpa=-12.48 degrees
! Estimated noise=674.607 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.676 x 10.44 at -12.48 degrees (North through East)
! Clean map  min=-0.0033626  max=0.70571 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.223182Jy  sigma=0.001825
! Fit after  self-cal, rms=0.218243Jy  sigma=0.001664
! Inverting map and beam 
! Estimated beam: bmin=2.678 mas, bmaj=10.46 mas, bpa=-12.52 degrees
! Estimated noise=673.557 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000751049 Jy
! Component: 100  -  total flux cleaned = -0.000958938 Jy
! Component: 150  -  total flux cleaned = -0.00102139 Jy
! Component: 200  -  total flux cleaned = -0.00113528 Jy
! Total flux subtracted in 200 components = -0.00113528 Jy
! Clean residual min=-0.004127 max=0.003783 Jy/beam
! Clean residual mean=0.000019 rms=0.001023 Jy/beam
! Combined flux in latest and established models = 0.908705 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 171 components and 0.908705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218193Jy  sigma=0.001663
! Fit after  self-cal, rms=0.218190Jy  sigma=0.001663
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.84107e-05 Jy
! Component: 100  -  total flux cleaned = 7.29061e-06 Jy
! Component: 150  -  total flux cleaned = -4.09634e-05 Jy
! Component: 200  -  total flux cleaned = -8.66123e-05 Jy
! Total flux subtracted in 200 components = -8.66123e-05 Jy
! Clean residual min=-0.004016 max=0.003661 Jy/beam
! Clean residual mean=0.000020 rms=0.001012 Jy/beam
! Combined flux in latest and established models = 0.908618 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 182 components and 0.908619 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218163Jy  sigma=0.001663
! Fit after  self-cal, rms=0.218159Jy  sigma=0.001663
! 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.218159Jy  sigma=0.001663
! Fit after  self-cal, rms=0.218040Jy  sigma=0.001663
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.017 mas, bmaj=8.657 mas, bpa=-7.867 degrees
! Estimated noise=934.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.513919 Jy
! Component: 100  -  total flux cleaned = 0.68871 Jy
! Component: 150  -  total flux cleaned = 0.768256 Jy
! Component: 200  -  total flux cleaned = 0.810353 Jy
! Total flux subtracted in 200 components = 0.810353 Jy
! Clean residual min=-0.011384 max=0.021355 Jy/beam
! Clean residual mean=0.000050 rms=0.003110 Jy/beam
! Combined flux in latest and established models = 0.810353 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 0.810353 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.68 mas, bmaj=10.46 mas, bpa=-12.52 degrees
! Estimated noise=673.533 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.0342854 Jy
! Component: 100  -  total flux cleaned = 0.0528123 Jy
! Component: 150  -  total flux cleaned = 0.0653107 Jy
! Component: 200  -  total flux cleaned = 0.074336 Jy
! Total flux subtracted in 200 components = 0.074336 Jy
! Clean residual min=-0.004635 max=0.008704 Jy/beam
! Clean residual mean=0.000253 rms=0.001461 Jy/beam
! Combined flux in latest and established models = 0.884689 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 51 components and 0.884689 Jy
! Inverting map 
! Added new window around map position (-6.5, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00812213 Jy
! Component: 100  -  total flux cleaned = 0.0134539 Jy
! Component: 150  -  total flux cleaned = 0.0171321 Jy
! Component: 200  -  total flux cleaned = 0.0185306 Jy
! Total flux subtracted in 200 components = 0.0185306 Jy
! Clean residual min=-0.004554 max=0.004394 Jy/beam
! Clean residual mean=0.000061 rms=0.001112 Jy/beam
! Combined flux in latest and established models = 0.90322 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 78 components and 0.90322 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.235 mas, bmaj=13.77 mas, bpa=-9.705 degrees
! Estimated noise=874.46 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00420127 Jy
! Component: 100  -  total flux cleaned = 0.00553699 Jy
! Component: 150  -  total flux cleaned = 0.0057919 Jy
! Component: 200  -  total flux cleaned = 0.00579143 Jy
! Total flux subtracted in 200 components = 0.00579143 Jy
! Clean residual min=-0.003832 max=0.004289 Jy/beam
! Clean residual mean=0.000004 rms=0.001214 Jy/beam
! Combined flux in latest and established models = 0.909011 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 = -2.33093e-06 Jy
! Component: 100  -  total flux cleaned = -5.82527e-06 Jy
! Component: 150  -  total flux cleaned = -4.78947e-06 Jy
! Component: 200  -  total flux cleaned = 4.97246e-05 Jy
! Total flux subtracted in 200 components = 4.97246e-05 Jy
! Clean residual min=-0.003571 max=0.004034 Jy/beam
! Clean residual mean=0.000001 rms=0.001172 Jy/beam
! Combined flux in latest and established models = 0.909061 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 110 components and 0.909061 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.68 mas, bmaj=10.46 mas, bpa=-12.52 degrees
! Estimated noise=673.533 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00112056 Jy
! Component: 100  -  total flux cleaned = -0.00120798 Jy
! Component: 150  -  total flux cleaned = -0.00120883 Jy
! Component: 200  -  total flux cleaned = -0.00120793 Jy
! Total flux subtracted in 200 components = -0.00120793 Jy
! Clean residual min=-0.003918 max=0.003963 Jy/beam
! Clean residual mean=0.000013 rms=0.000997 Jy/beam
! Combined flux in latest and established models = 0.907853 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 125 components and 0.907853 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218098Jy  sigma=0.001664
! Fit after  self-cal, rms=0.218053Jy  sigma=0.001663
wmodel J1147-0724_S_2003_06_18_pus_map.mod
! Writing 125 model components to file: J1147-0724_S_2003_06_18_pus_map.mod
wobs J1147-0724_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J1147-0724_S_2003_06_18_pus_uvs.fits
wwins J1147-0724_S_2003_06_18_pus_map.win
! wwins: Wrote 4 windows to J1147-0724_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.000217862 Jy
! Component: 100  -  total flux cleaned = 0.000342448 Jy
! Component: 150  -  total flux cleaned = 0.000753177 Jy
! Component: 200  -  total flux cleaned = 0.00120347 Jy
! Component: 250  -  total flux cleaned = 0.00142132 Jy
! Component: 300  -  total flux cleaned = 0.00168533 Jy
! Component: 350  -  total flux cleaned = 0.00189128 Jy
! Component: 400  -  total flux cleaned = 0.00209157 Jy
! Component: 450  -  total flux cleaned = 0.00218941 Jy
! Component: 500  -  total flux cleaned = 0.00238189 Jy
! Component: 550  -  total flux cleaned = 0.00252306 Jy
! Component: 600  -  total flux cleaned = 0.00256874 Jy
! Component: 650  -  total flux cleaned = 0.00265923 Jy
! Component: 700  -  total flux cleaned = 0.00270375 Jy
! Component: 750  -  total flux cleaned = 0.00274715 Jy
! Component: 800  -  total flux cleaned = 0.00278992 Jy
! Component: 850  -  total flux cleaned = 0.00283188 Jy
! Component: 900  -  total flux cleaned = 0.00295595 Jy
! Component: 950  -  total flux cleaned = 0.0030777 Jy
! Component: 1000  -  total flux cleaned = 0.00307749 Jy
! Component: 1050  -  total flux cleaned = 0.00319703 Jy
! Component: 1100  -  total flux cleaned = 0.00335407 Jy
! Component: 1150  -  total flux cleaned = 0.00347051 Jy
! Component: 1200  -  total flux cleaned = 0.00362353 Jy
! Component: 1250  -  total flux cleaned = 0.00369901 Jy
! Component: 1300  -  total flux cleaned = 0.00369942 Jy
! Component: 1350  -  total flux cleaned = 0.00381057 Jy
! Component: 1400  -  total flux cleaned = 0.00388393 Jy
! Component: 1450  -  total flux cleaned = 0.00399245 Jy
! Component: 1500  -  total flux cleaned = 0.00409912 Jy
! Component: 1550  -  total flux cleaned = 0.00416958 Jy
! Component: 1600  -  total flux cleaned = 0.00423932 Jy
! Component: 1650  -  total flux cleaned = 0.00427398 Jy
! Component: 1700  -  total flux cleaned = 0.00434279 Jy
! Component: 1750  -  total flux cleaned = 0.00444489 Jy
! Component: 1800  -  total flux cleaned = 0.00447852 Jy
! Component: 1850  -  total flux cleaned = 0.0045456 Jy
! Component: 1900  -  total flux cleaned = 0.00454553 Jy
! Component: 1950  -  total flux cleaned = 0.00467686 Jy
! Component: 2000  -  total flux cleaned = 0.00467674 Jy
! Total flux subtracted in 2048 components = 0.0047092 Jy
! Clean residual min=-0.001678 max=0.001693 Jy/beam
! Clean residual mean=-0.000021 rms=0.000666 Jy/beam
! Combined flux in latest and established models = 0.912562 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 263 components and 0.912562 Jy
wmap "J1147-0724_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.68 x 10.46 at -12.52 degrees (North through East)
! Clean map  min=-0.0034602  max=0.70642 Jy/beam
! Writing clean map to FITS file: J1147-0724_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 0.706423 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000661854 
device "J1147-0724_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J1147-0724_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.281073 0.281073 0.562146 1.12429 2.24858 4.49717 8.99433 17.9887 35.9773 71.9547
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.706 
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.68 x 10.46 at -12.52 degrees (North through East)
! Clean map  min=-0.0034602  max=0.70642 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1147-0724_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J1147-0724_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1147-0724_S_2003_06_18_pus_uvs.log closed on Tue Jan 23 22:38:27 2007