! Started logfile: J0006-0623_S_2000_12_04_pus_uvs.log on Thu Oct 18 13:27:24 2007
obs J0006-0623_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0006-0623_S_2000_12_04_pus_uva.fits
! AN table 1: 70 integrations on 190 of 190 possible baselines.
! AN table 2: 124 integrations on 190 of 190 possible baselines.
! AN table 3: 73 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0469348 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0006-0623
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2173 lines of history.
! 
! Reading 9524 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0006-0623_S_2000_12_04_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1340 telescope corrections were flagged in sub-array 1.
!  A total of 2028 telescope corrections were flagged in sub-array 2.
!  A total of 1336 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1340 telescope corrections were flagged in sub-array 1.
!  A total of 2031 telescope corrections were flagged in sub-array 2.
!  A total of 1305 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1340 telescope corrections were flagged in sub-array 1.
!  A total of 2031 telescope corrections were flagged in sub-array 2.
!  A total of 1330 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1340 telescope corrections were flagged in sub-array 1.
!  A total of 2022 telescope corrections were flagged in sub-array 2.
!  A total of 1308 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.113155Jy  sigma=0.010027
! Fit after  self-cal, rms=0.663848Jy  sigma=0.005904
! 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.15 mas, bmaj=4.598 mas, bpa=-3.361 degrees
! Estimated noise=1684.29 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.902647 Jy
! Component: 100  -  total flux cleaned = 1.20507 Jy
! Total flux subtracted in 100 components = 1.20507 Jy
! Clean residual min=-0.067922 max=0.205078 Jy/beam
! Clean residual mean=0.002975 rms=0.024723 Jy/beam
! Combined flux in latest and established models = 1.20507 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 1.20507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.531601Jy  sigma=0.004685
! Fit after  self-cal, rms=0.530772Jy  sigma=0.004673
! Inverting map 
! Added new window around map position (-5.5, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.207096 Jy
! Component: 100  -  total flux cleaned = 0.338462 Jy
! Total flux subtracted in 100 components = 0.338462 Jy
! Clean residual min=-0.052060 max=0.100215 Jy/beam
! Clean residual mean=0.001684 rms=0.015765 Jy/beam
! Combined flux in latest and established models = 1.54353 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 31 components and 1.54353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354473Jy  sigma=0.003109
! Fit after  self-cal, rms=0.347958Jy  sigma=0.003040
! Inverting map 
! Added new window around map position (-3, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.115173 Jy
! Component: 100  -  total flux cleaned = 0.184474 Jy
! Total flux subtracted in 100 components = 0.184474 Jy
! Clean residual min=-0.040056 max=0.049092 Jy/beam
! Clean residual mean=0.000957 rms=0.010268 Jy/beam
! Combined flux in latest and established models = 1.728 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 46 components and 1.728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270185Jy  sigma=0.002337
! Fit after  self-cal, rms=0.267294Jy  sigma=0.002302
! 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.311 mas, bmaj=8.455 mas, bpa=-1.082 degrees
! Estimated noise=841.148 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.0958384 Jy
! Component: 100  -  total flux cleaned = 0.144204 Jy
! Component: 150  -  total flux cleaned = 0.171788 Jy
! Component: 200  -  total flux cleaned = 0.188028 Jy
! Total flux subtracted in 200 components = 0.188028 Jy
! Clean residual min=-0.021590 max=0.022027 Jy/beam
! Clean residual mean=0.000943 rms=0.006219 Jy/beam
! Combined flux in latest and established models = 1.91603 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 79 components and 1.91603 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230986Jy  sigma=0.001977
! Fit after  self-cal, rms=0.229617Jy  sigma=0.001963
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.00     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        0.99     NY        1.00*    OV        0.96     PT        0.98     
!   SC        1.00*    TS        1.02     WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        0.95     HN        1.10     KK        1.00*    KP        1.06     
!   LA        1.05     MA        1.88     MC        1.02     MK        1.00*    
!   NL        0.95     NY        1.00*    OV        1.13     PT        1.05     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.98     
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        0.96     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.96     NY        1.00*    OV        0.93     PT        0.99     
!   SC        1.00*    TS        1.02     WF        1.00*    WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.12     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.00     HN        1.07     KK        1.00*    KP        1.04     
!   LA        1.02     MA        1.42     MC        0.95     MK        1.00*    
!   NL        0.90     NY        1.00*    OV        1.05     PT        1.06     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.93     
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.01     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.03     NY        1.00*    OV        1.02     PT        1.02     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.41     GC        1.00*    GG        1.00*    
!   HH        0.94     HN        0.64     KK        1.00*    KP        0.78     
!   LA        0.94     MA        0.90     MC        1.29     MK        1.00*    
!   NL        0.79     NY        1.00*    OV        0.89     PT        0.86     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.96     
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.99     NY        1.00*    OV        0.97     PT        0.98     
!   SC        1.00*    TS        1.02     WF        1.00*    WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.18     HN        1.08     KK        1.00*    KP        1.03     
!   LA        1.04     MA        0.98     MC        1.01     MK        1.00*    
!   NL        0.94     NY        1.00*    OV        1.09     PT        1.04     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.13     
! 
! 
! Fit before self-cal, rms=0.229617Jy  sigma=0.001963
! Fit after  self-cal, rms=0.185000Jy  sigma=0.001558
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=9.298 mas, bpa=-1.232 degrees
! Estimated noise=844.513 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.0143005 Jy
! Component: 100  -  total flux cleaned = 0.0140002 Jy
! Component: 150  -  total flux cleaned = 0.0136832 Jy
! Component: 200  -  total flux cleaned = 0.0134359 Jy
! Total flux subtracted in 200 components = 0.0134359 Jy
! Clean residual min=-0.010596 max=0.011533 Jy/beam
! Clean residual mean=-0.000148 rms=0.003039 Jy/beam
! Combined flux in latest and established models = 1.92947 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 90 components and 1.92947 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182404Jy  sigma=0.001537
! Fit after  self-cal, rms=0.182512Jy  sigma=0.001531
! 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.182512Jy  sigma=0.001531
! Fit after  self-cal, rms=0.181609Jy  sigma=0.001525
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=9.263 mas, bpa=-1.244 degrees
! Estimated noise=842.464 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00825762 Jy
! Component: 100  -  total flux cleaned = 0.0082554 Jy
! Component: 150  -  total flux cleaned = 0.0082393 Jy
! Component: 200  -  total flux cleaned = 0.00823767 Jy
! Total flux subtracted in 200 components = 0.00823767 Jy
! Clean residual min=-0.008491 max=0.009100 Jy/beam
! Clean residual mean=-0.000105 rms=0.002433 Jy/beam
! Combined flux in latest and established models = 1.9377 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 101 components and 1.9377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180406Jy  sigma=0.001516
! Fit after  self-cal, rms=0.180294Jy  sigma=0.001514
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.00193199 Jy
! Component: 100  -  total flux cleaned = 0.00192137 Jy
! Component: 150  -  total flux cleaned = 0.00155656 Jy
! Component: 200  -  total flux cleaned = 0.0010646 Jy
! Total flux subtracted in 200 components = 0.0010646 Jy
! Clean residual min=-0.008383 max=0.008652 Jy/beam
! Clean residual mean=-0.000117 rms=0.002259 Jy/beam
! Combined flux in latest and established models = 1.93877 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 107 components and 1.93877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179718Jy  sigma=0.001511
! Fit after  self-cal, rms=0.179681Jy  sigma=0.001510
! 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.179681Jy  sigma=0.001510
! Fit after  self-cal, rms=0.179324Jy  sigma=0.001507
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.311 mas, bmaj=9.239 mas, bpa=-1.251 degrees
! Estimated noise=841.266 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00456206 Jy
! Component: 100  -  total flux cleaned = 0.00478718 Jy
! Component: 150  -  total flux cleaned = 0.00480125 Jy
! Component: 200  -  total flux cleaned = 0.00480644 Jy
! Total flux subtracted in 200 components = 0.00480644 Jy
! Clean residual min=-0.007797 max=0.007631 Jy/beam
! Clean residual mean=-0.000067 rms=0.001975 Jy/beam
! Combined flux in latest and established models = 1.94357 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 112 components and 1.94357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178762Jy  sigma=0.001503
! Fit after  self-cal, rms=0.178715Jy  sigma=0.001503
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.000911486 Jy
! Component: 100  -  total flux cleaned = 0.000926885 Jy
! Component: 150  -  total flux cleaned = 0.000506282 Jy
! Component: 200  -  total flux cleaned = 0.000132401 Jy
! Total flux subtracted in 200 components = 0.000132401 Jy
! Clean residual min=-0.007609 max=0.007207 Jy/beam
! Clean residual mean=-0.000068 rms=0.001880 Jy/beam
! Combined flux in latest and established models = 1.94371 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 117 components and 1.94371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178376Jy  sigma=0.001501
! Fit after  self-cal, rms=0.178338Jy  sigma=0.001500
! 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.178338Jy  sigma=0.001500
! Fit after  self-cal, rms=0.178244Jy  sigma=0.001500
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.887 mas, bmaj=13.01 mas, bpa=2.499 degrees
! Estimated noise=1136.89 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00342567 Jy
! Component: 100  -  total flux cleaned = 0.00353204 Jy
! Component: 150  -  total flux cleaned = 0.00331924 Jy
! Component: 200  -  total flux cleaned = 0.00306507 Jy
! Total flux subtracted in 200 components = 0.00306507 Jy
! Clean residual min=-0.007056 max=0.007662 Jy/beam
! Clean residual mean=-0.000101 rms=0.002297 Jy/beam
! Combined flux in latest and established models = 1.94677 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 129 components and 1.94677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178039Jy  sigma=0.001499
! Fit after  self-cal, rms=0.178049Jy  sigma=0.001499
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.000651098 Jy
! Component: 100  -  total flux cleaned = 0.000570533 Jy
! Component: 150  -  total flux cleaned = 0.000437441 Jy
! Component: 200  -  total flux cleaned = 0.00020377 Jy
! Total flux subtracted in 200 components = 0.00020377 Jy
! Clean residual min=-0.007038 max=0.007581 Jy/beam
! Clean residual mean=-0.000105 rms=0.002252 Jy/beam
! Combined flux in latest and established models = 1.94698 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 131 components and 1.94698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177918Jy  sigma=0.001499
! Fit after  self-cal, rms=0.177912Jy  sigma=0.001498
! 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.311 mas, bmaj=9.222 mas, bpa=-1.257 degrees
! Estimated noise=840.577 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.311 x 9.222 at -1.257 degrees (North through East)
! Clean map  min=-0.0068064  max=1.1481 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.177912Jy  sigma=0.001498
! Fit after  self-cal, rms=0.165303Jy  sigma=0.001329
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=9.218 mas, bpa=-1.25 degrees
! Estimated noise=840.395 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00204888 Jy
! Component: 100  -  total flux cleaned = 0.00204891 Jy
! Component: 150  -  total flux cleaned = 0.00194454 Jy
! Component: 200  -  total flux cleaned = 0.00163999 Jy
! Total flux subtracted in 200 components = 0.00163999 Jy
! Clean residual min=-0.007065 max=0.006410 Jy/beam
! Clean residual mean=-0.000060 rms=0.001677 Jy/beam
! Combined flux in latest and established models = 1.94862 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 134 components and 1.94862 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165005Jy  sigma=0.001327
! Fit after  self-cal, rms=0.164948Jy  sigma=0.001327
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000530358 Jy
! Component: 100  -  total flux cleaned = 0.000426942 Jy
! Component: 150  -  total flux cleaned = 0.000123055 Jy
! Component: 200  -  total flux cleaned = -0.000238838 Jy
! Total flux subtracted in 200 components = -0.000238838 Jy
! Clean residual min=-0.006803 max=0.006096 Jy/beam
! Clean residual mean=-0.000056 rms=0.001624 Jy/beam
! Combined flux in latest and established models = 1.94838 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 135 components and 1.94838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164742Jy  sigma=0.001326
! Fit after  self-cal, rms=0.164707Jy  sigma=0.001325
! 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.164707Jy  sigma=0.001325
! Fit after  self-cal, rms=0.164620Jy  sigma=0.001325
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.23 mas, bmaj=5.256 mas, bpa=-0.4497 degrees
! Estimated noise=1690 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.90085 Jy
! Component: 100  -  total flux cleaned = 1.2575 Jy
! Component: 150  -  total flux cleaned = 1.47616 Jy
! Component: 200  -  total flux cleaned = 1.62145 Jy
! Total flux subtracted in 200 components = 1.62145 Jy
! Clean residual min=-0.031264 max=0.078434 Jy/beam
! Clean residual mean=0.000672 rms=0.010595 Jy/beam
! Combined flux in latest and established models = 1.62145 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 20 model components to the UV plane model.
! The established model now contains 20 components and 1.62145 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=9.207 mas, bpa=-1.253 degrees
! Estimated noise=840.276 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.148302 Jy
! Component: 100  -  total flux cleaned = 0.225825 Jy
! Component: 150  -  total flux cleaned = 0.267768 Jy
! Component: 200  -  total flux cleaned = 0.291078 Jy
! Total flux subtracted in 200 components = 0.291078 Jy
! Clean residual min=-0.007027 max=0.014054 Jy/beam
! Clean residual mean=0.000399 rms=0.002820 Jy/beam
! Combined flux in latest and established models = 1.91253 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 51 components and 1.91253 Jy
! Inverting map 
! Added new window around map position (3, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0146872 Jy
! Component: 100  -  total flux cleaned = 0.0238646 Jy
! Component: 150  -  total flux cleaned = 0.0298898 Jy
! Component: 200  -  total flux cleaned = 0.0327954 Jy
! Total flux subtracted in 200 components = 0.0327954 Jy
! Clean residual min=-0.005568 max=0.005420 Jy/beam
! Clean residual mean=0.000004 rms=0.001581 Jy/beam
! Combined flux in latest and established models = 1.94532 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 79 components and 1.94532 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.875 mas, bmaj=13 mas, bpa=2.456 degrees
! Estimated noise=1138.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00246995 Jy
! Component: 100  -  total flux cleaned = 0.00300475 Jy
! Component: 150  -  total flux cleaned = 0.00330039 Jy
! Component: 200  -  total flux cleaned = 0.00329832 Jy
! Total flux subtracted in 200 components = 0.00329832 Jy
! Clean residual min=-0.005773 max=0.006479 Jy/beam
! Clean residual mean=-0.000068 rms=0.001943 Jy/beam
! Combined flux in latest and established models = 1.94862 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 = 6.4595e-05 Jy
! Component: 100  -  total flux cleaned = 0.000184837 Jy
! Component: 150  -  total flux cleaned = 0.000288075 Jy
! Component: 200  -  total flux cleaned = 0.000426663 Jy
! Total flux subtracted in 200 components = 0.000426663 Jy
! Clean residual min=-0.005644 max=0.006570 Jy/beam
! Clean residual mean=-0.000076 rms=0.001914 Jy/beam
! Combined flux in latest and established models = 1.94905 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 96 components and 1.94905 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=9.207 mas, bpa=-1.253 degrees
! Estimated noise=840.276 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000197684 Jy
! Component: 100  -  total flux cleaned = -9.50999e-05 Jy
! Component: 150  -  total flux cleaned = -0.000278038 Jy
! Component: 200  -  total flux cleaned = -0.000353899 Jy
! Total flux subtracted in 200 components = -0.000353899 Jy
! Clean residual min=-0.005165 max=0.005420 Jy/beam
! Clean residual mean=-0.000032 rms=0.001440 Jy/beam
! Combined flux in latest and established models = 1.94869 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 104 components and 1.94869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164076Jy  sigma=0.001321
! Fit after  self-cal, rms=0.164085Jy  sigma=0.001320
wmodel J0006-0623_S_2000_12_04_pus_map.mod
! Writing 104 model components to file: J0006-0623_S_2000_12_04_pus_map.mod
wobs J0006-0623_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0006-0623_S_2000_12_04_pus_uvs.fits
wwins J0006-0623_S_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J0006-0623_S_2000_12_04_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.00125768 Jy
! Component: 100  -  total flux cleaned = 0.00230399 Jy
! Component: 150  -  total flux cleaned = 0.00311841 Jy
! Component: 200  -  total flux cleaned = 0.00381596 Jy
! Component: 250  -  total flux cleaned = 0.00448292 Jy
! Component: 300  -  total flux cleaned = 0.00519595 Jy
! Component: 350  -  total flux cleaned = 0.0058163 Jy
! Component: 400  -  total flux cleaned = 0.00641771 Jy
! Component: 450  -  total flux cleaned = 0.00700167 Jy
! Component: 500  -  total flux cleaned = 0.00750616 Jy
! Component: 550  -  total flux cleaned = 0.00793469 Jy
! Component: 600  -  total flux cleaned = 0.0081732 Jy
! Component: 650  -  total flux cleaned = 0.00840756 Jy
! Component: 700  -  total flux cleaned = 0.0086944 Jy
! Component: 750  -  total flux cleaned = 0.0089748 Jy
! Component: 800  -  total flux cleaned = 0.00930382 Jy
! Component: 850  -  total flux cleaned = 0.00967874 Jy
! Component: 900  -  total flux cleaned = 0.010045 Jy
! Component: 950  -  total flux cleaned = 0.0101474 Jy
! Component: 1000  -  total flux cleaned = 0.0102482 Jy
! Component: 1050  -  total flux cleaned = 0.0104957 Jy
! Component: 1100  -  total flux cleaned = 0.0106892 Jy
! Component: 1150  -  total flux cleaned = 0.0107852 Jy
! Component: 1200  -  total flux cleaned = 0.0109731 Jy
! Component: 1250  -  total flux cleaned = 0.0111113 Jy
! Component: 1300  -  total flux cleaned = 0.0112932 Jy
! Component: 1350  -  total flux cleaned = 0.0114724 Jy
! Component: 1400  -  total flux cleaned = 0.0115604 Jy
! Component: 1450  -  total flux cleaned = 0.0116039 Jy
! Component: 1500  -  total flux cleaned = 0.0116901 Jy
! Component: 1550  -  total flux cleaned = 0.011775 Jy
! Component: 1600  -  total flux cleaned = 0.0118171 Jy
! Component: 1650  -  total flux cleaned = 0.0118999 Jy
! Component: 1700  -  total flux cleaned = 0.0119403 Jy
! Component: 1750  -  total flux cleaned = 0.011819 Jy
! Component: 1800  -  total flux cleaned = 0.0119783 Jy
! Component: 1850  -  total flux cleaned = 0.0119784 Jy
! Component: 1900  -  total flux cleaned = 0.0120178 Jy
! Component: 1950  -  total flux cleaned = 0.0121335 Jy
! Component: 2000  -  total flux cleaned = 0.0121335 Jy
! Total flux subtracted in 2048 components = 0.0122093 Jy
! Clean residual min=-0.002072 max=0.002946 Jy/beam
! Clean residual mean=-0.000054 rms=0.000761 Jy/beam
! Combined flux in latest and established models = 1.9609 Jy
keep
! Adding 134 model components to the UV plane model.
! The established model now contains 238 components and 1.9609 Jy
![Exited script file: muppet]
wmap "J0006-0623_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.31 x 9.207 at -1.253 degrees (North through East)
! Clean map  min=-0.0033821  max=1.14 Jy/beam
! Writing clean map to FITS file: J0006-0623_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.14001 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000754207 
device "J0006-0623_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0006-0623_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.198474 0.198474 0.396947 0.793894 1.58779 3.17558 6.35115 12.7023 25.4046 50.8092
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.14 
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.31 x 9.207 at -1.253 degrees (North through East)
! Clean map  min=-0.0033821  max=1.14 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0006-0623_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0006-0623_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0006-0623_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 13:27:34 2007