! Started logfile: J0006-0623_S_2001_04_09_pus_uvs.log on Mon Oct  8 11:00:58 2007
obs J0006-0623_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0006-0623_S_2001_04_09_pus_uva.fits
! AN table 1: 89 integrations on 190 of 190 possible baselines.
! AN table 2: 34 integrations on 190 of 190 possible baselines.
! AN table 3: 30 integrations on 190 of 190 possible baselines.
! AN table 4: 108 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0778988 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1953 lines of history.
! 
! Reading 15452 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_2001_04_09_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 1325 telescope corrections were flagged in sub-array 1.
!  A total of 650 telescope corrections were flagged in sub-array 2.
!  A total of 570 telescope corrections were flagged in sub-array 3.
!  A total of 1540 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1325 telescope corrections were flagged in sub-array 1.
!  A total of 650 telescope corrections were flagged in sub-array 2.
!  A total of 573 telescope corrections were flagged in sub-array 3.
!  A total of 1546 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1325 telescope corrections were flagged in sub-array 1.
!  A total of 650 telescope corrections were flagged in sub-array 2.
!  A total of 570 telescope corrections were flagged in sub-array 3.
!  A total of 1546 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1341 telescope corrections were flagged in sub-array 1.
!  A total of 650 telescope corrections were flagged in sub-array 2.
!  A total of 570 telescope corrections were flagged in sub-array 3.
!  A total of 1546 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.152891Jy  sigma=0.009394
! Fit after  self-cal, rms=0.575924Jy  sigma=0.004863
! 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.278 mas, bmaj=5.114 mas, bpa=-3.272 degrees
! Estimated noise=1075.19 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.858149 Jy
! Component: 100  -  total flux cleaned = 1.11376 Jy
! Total flux subtracted in 100 components = 1.11376 Jy
! Clean residual min=-0.066511 max=0.248828 Jy/beam
! Clean residual mean=0.001541 rms=0.020900 Jy/beam
! Combined flux in latest and established models = 1.11376 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 1.11376 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.520982Jy  sigma=0.004370
! Fit after  self-cal, rms=0.519532Jy  sigma=0.004361
! Inverting map 
! Added new window around map position (-5, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.230043 Jy
! Component: 100  -  total flux cleaned = 0.368052 Jy
! Total flux subtracted in 100 components = 0.368052 Jy
! Clean residual min=-0.042672 max=0.078075 Jy/beam
! Clean residual mean=0.000948 rms=0.012397 Jy/beam
! Combined flux in latest and established models = 1.48182 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 33 components and 1.48182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348226Jy  sigma=0.002850
! Fit after  self-cal, rms=0.333113Jy  sigma=0.002744
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.117469 Jy
! Component: 100  -  total flux cleaned = 0.199815 Jy
! Total flux subtracted in 100 components = 0.199815 Jy
! Clean residual min=-0.024905 max=0.047354 Jy/beam
! Clean residual mean=0.000607 rms=0.007694 Jy/beam
! Combined flux in latest and established models = 1.68163 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 45 components and 1.68163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259344Jy  sigma=0.002049
! Fit after  self-cal, rms=0.255954Jy  sigma=0.002027
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0674444 Jy
! Component: 100  -  total flux cleaned = 0.117473 Jy
! Total flux subtracted in 100 components = 0.117473 Jy
! Clean residual min=-0.020494 max=0.028967 Jy/beam
! Clean residual mean=0.000409 rms=0.005447 Jy/beam
! Combined flux in latest and established models = 1.7991 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 59 components and 1.7991 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224675Jy  sigma=0.001713
! Fit after  self-cal, rms=0.223640Jy  sigma=0.001706
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0411262 Jy
! Component: 100  -  total flux cleaned = 0.0721878 Jy
! Total flux subtracted in 100 components = 0.0721878 Jy
! Clean residual min=-0.017485 max=0.019385 Jy/beam
! Clean residual mean=0.000289 rms=0.004333 Jy/beam
! Combined flux in latest and established models = 1.87129 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 73 components and 1.87129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210559Jy  sigma=0.001567
! Fit after  self-cal, rms=0.210158Jy  sigma=0.001564
! 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.721 mas, bmaj=6.171 mas, bpa=0.1577 degrees
! Estimated noise=725.601 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 (-2.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0433042 Jy
! Component: 100  -  total flux cleaned = 0.0703889 Jy
! Component: 150  -  total flux cleaned = 0.0880685 Jy
! Component: 200  -  total flux cleaned = 0.100365 Jy
! Total flux subtracted in 200 components = 0.100365 Jy
! Clean residual min=-0.013618 max=0.015370 Jy/beam
! Clean residual mean=0.000491 rms=0.004338 Jy/beam
! Combined flux in latest and established models = 1.97166 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 90 components and 1.97166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201250Jy  sigma=0.001461
! Fit after  self-cal, rms=0.200852Jy  sigma=0.001458
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.96     GC        1.14     GG        1.00*    
!   HH        0.92     HN        1.02     KK        1.00*    KP        0.93     
!   LA        0.96     MA        1.26     MC        0.88     MK        0.99     
!   NL        1.00     NY        1.00*    OV        1.00     PT        0.94     
!   SC        0.98     TS        1.00*    WF        1.05     WZ        1.03     
! 
!  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*    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 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.01     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.05     KP        1.03     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.00     NY        1.00*    OV        1.02     PT        0.95     
!   SC        0.96     TS        0.99     WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     GC        1.09     GG        1.00*    
!   HH        0.97     HN        1.01     KK        1.00*    KP        0.96     
!   LA        0.99     MA        1.28     MC        1.04     MK        1.01     
!   NL        1.02     NY        1.00*    OV        0.96     PT        0.99     
!   SC        0.96     TS        1.00*    WF        1.03     WZ        0.97     
! 
!  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*    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 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.01     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.97     KP        0.94     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.99     NY        1.00*    OV        1.00     PT        0.99     
!   SC        0.98     TS        1.02     WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.99     GC        1.08     GG        1.00*    
!   HH        0.96     HN        1.03     KK        1.00*    KP        1.01     
!   LA        0.96     MA        0.99     MC        0.88     MK        0.97     
!   NL        1.01     NY        1.00*    OV        0.97     PT        0.99     
!   SC        0.96     TS        1.00*    WF        1.01     WZ        1.05     
! 
!  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*    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 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.01     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.99     KP        1.04     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.00     NY        1.00*    OV        1.00     PT        0.99     
!   SC        0.95     TS        1.05     WF        1.00     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        0.97     FD        1.02     GC        1.11     GG        1.00*    
!   HH        0.93     HN        1.04     KK        1.00*    KP        1.01     
!   LA        0.97     MA        1.06     MC        1.03     MK        0.95     
!   NL        1.00     NY        1.00*    OV        0.98     PT        1.00     
!   SC        0.95     TS        1.00*    WF        1.05     WZ        1.08     
! 
!  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*    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 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.02     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.96     KP        1.03     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.01     NY        1.00*    OV        1.00     PT        1.00     
!   SC        0.96     TS        1.00     WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.200852Jy  sigma=0.001458
! Fit after  self-cal, rms=0.185214Jy  sigma=0.001339
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.756 mas, bmaj=6.767 mas, bpa=0.02658 degrees
! Estimated noise=734.422 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.00214654 Jy
! Component: 100  -  total flux cleaned = 0.00259407 Jy
! Component: 150  -  total flux cleaned = 0.00295539 Jy
! Component: 200  -  total flux cleaned = 0.00340456 Jy
! Total flux subtracted in 200 components = 0.00340456 Jy
! Clean residual min=-0.007443 max=0.008295 Jy/beam
! Clean residual mean=0.000466 rms=0.002352 Jy/beam
! Combined flux in latest and established models = 1.97506 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 106 components and 1.97506 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184713Jy  sigma=0.001335
! Fit after  self-cal, rms=0.184757Jy  sigma=0.001335
! 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.184757Jy  sigma=0.001335
! Fit after  self-cal, rms=0.177885Jy  sigma=0.001259
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.765 mas, bmaj=6.778 mas, bpa=0.1797 degrees
! Estimated noise=735.241 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00259479 Jy
! Component: 100  -  total flux cleaned = 0.00306628 Jy
! Component: 150  -  total flux cleaned = 0.00295389 Jy
! Component: 200  -  total flux cleaned = 0.00285194 Jy
! Total flux subtracted in 200 components = 0.00285194 Jy
! Clean residual min=-0.004349 max=0.004835 Jy/beam
! Clean residual mean=0.000351 rms=0.001227 Jy/beam
! Combined flux in latest and established models = 1.97791 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 118 components and 1.97791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177581Jy  sigma=0.001257
! Fit after  self-cal, rms=0.177555Jy  sigma=0.001256
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.000539891 Jy
! Component: 100  -  total flux cleaned = 0.000731374 Jy
! Component: 150  -  total flux cleaned = 0.000733526 Jy
! Component: 200  -  total flux cleaned = 0.00065535 Jy
! Total flux subtracted in 200 components = 0.00065535 Jy
! Clean residual min=-0.004247 max=0.004567 Jy/beam
! Clean residual mean=0.000341 rms=0.001179 Jy/beam
! Combined flux in latest and established models = 1.97857 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 124 components and 1.97857 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177442Jy  sigma=0.001256
! Fit after  self-cal, rms=0.177433Jy  sigma=0.001255
! 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.177433Jy  sigma=0.001255
! Fit after  self-cal, rms=0.177418Jy  sigma=0.001255
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.766 mas, bmaj=6.781 mas, bpa=0.1876 degrees
! Estimated noise=735.634 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00102845 Jy
! Component: 100  -  total flux cleaned = 0.00120134 Jy
! Component: 150  -  total flux cleaned = 0.00104951 Jy
! Component: 200  -  total flux cleaned = 0.000908408 Jy
! Total flux subtracted in 200 components = 0.000908408 Jy
! Clean residual min=-0.004220 max=0.004559 Jy/beam
! Clean residual mean=0.000273 rms=0.001158 Jy/beam
! Combined flux in latest and established models = 1.97948 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 127 components and 1.97948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177320Jy  sigma=0.001255
! Fit after  self-cal, rms=0.177314Jy  sigma=0.001254
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.000178213 Jy
! Component: 100  -  total flux cleaned = 0.000180117 Jy
! Component: 150  -  total flux cleaned = 5.08399e-05 Jy
! Component: 200  -  total flux cleaned = -7.29135e-05 Jy
! Total flux subtracted in 200 components = -7.29135e-05 Jy
! Clean residual min=-0.004155 max=0.004512 Jy/beam
! Clean residual mean=0.000274 rms=0.001141 Jy/beam
! Combined flux in latest and established models = 1.9794 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 133 components and 1.9794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177254Jy  sigma=0.001254
! Fit after  self-cal, rms=0.177253Jy  sigma=0.001254
! 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.177253Jy  sigma=0.001254
! Fit after  self-cal, rms=0.177330Jy  sigma=0.001254
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.865 mas, bmaj=12.14 mas, bpa=4.27 degrees
! Estimated noise=992.053 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00118999 Jy
! Component: 100  -  total flux cleaned = 0.001357 Jy
! Component: 150  -  total flux cleaned = 0.00142815 Jy
! Component: 200  -  total flux cleaned = 0.00146159 Jy
! Total flux subtracted in 200 components = 0.00146159 Jy
! Clean residual min=-0.004569 max=0.004948 Jy/beam
! Clean residual mean=0.000646 rms=0.001467 Jy/beam
! Combined flux in latest and established models = 1.98086 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 144 components and 1.98086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177326Jy  sigma=0.001254
! Fit after  self-cal, rms=0.177319Jy  sigma=0.001254
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 = -2.11576e-05 Jy
! Component: 100  -  total flux cleaned = 1.58962e-05 Jy
! Component: 150  -  total flux cleaned = 4.63162e-05 Jy
! Component: 200  -  total flux cleaned = 0.00010502 Jy
! Total flux subtracted in 200 components = 0.00010502 Jy
! Clean residual min=-0.004521 max=0.004954 Jy/beam
! Clean residual mean=0.000642 rms=0.001461 Jy/beam
! Combined flux in latest and established models = 1.98097 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 145 components and 1.98097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177325Jy  sigma=0.001254
! Fit after  self-cal, rms=0.177319Jy  sigma=0.001254
! 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.767 mas, bmaj=6.783 mas, bpa=0.1932 degrees
! Estimated noise=736.023 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.767 x 6.783 at 0.1932 degrees (North through East)
! Clean map  min=-0.0038886  max=1.1467 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.177319Jy  sigma=0.001254
! Fit after  self-cal, rms=0.161249Jy  sigma=0.001092
! Inverting map and beam 
! Estimated beam: bmin=2.766 mas, bmaj=6.781 mas, bpa=0.1761 degrees
! Estimated noise=735.122 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00214628 Jy
! Component: 100  -  total flux cleaned = 0.00222148 Jy
! Component: 150  -  total flux cleaned = 0.00228462 Jy
! Component: 200  -  total flux cleaned = 0.00234374 Jy
! Total flux subtracted in 200 components = 0.00234374 Jy
! Clean residual min=-0.003336 max=0.004272 Jy/beam
! Clean residual mean=0.000173 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 1.98331 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 154 components and 1.98331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161162Jy  sigma=0.001091
! Fit after  self-cal, rms=0.161157Jy  sigma=0.001091
! Inverting map 
! Added new window around map position (-16.5, 51).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00366937 Jy
! Component: 100  -  total flux cleaned = 0.00466759 Jy
! Component: 150  -  total flux cleaned = 0.00513489 Jy
! Component: 200  -  total flux cleaned = 0.00548776 Jy
! Total flux subtracted in 200 components = 0.00548776 Jy
! Clean residual min=-0.003106 max=0.003650 Jy/beam
! Clean residual mean=0.000114 rms=0.000852 Jy/beam
! Combined flux in latest and established models = 1.9888 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 163 components and 1.9888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161042Jy  sigma=0.001090
! Fit after  self-cal, rms=0.161033Jy  sigma=0.001090
! Inverting map 
! Added new window around map position (46, 12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00251104 Jy
! Component: 100  -  total flux cleaned = 0.00268242 Jy
! Component: 150  -  total flux cleaned = 0.00345668 Jy
! Component: 200  -  total flux cleaned = 0.00389764 Jy
! Total flux subtracted in 200 components = 0.00389764 Jy
! Clean residual min=-0.003198 max=0.003260 Jy/beam
! Clean residual mean=0.000083 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 1.9927 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 187 components and 1.9927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160917Jy  sigma=0.001090
! Fit after  self-cal, rms=0.160922Jy  sigma=0.001090
! 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.160922Jy  sigma=0.001090
! Fit after  self-cal, rms=0.160931Jy  sigma=0.001089
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.307 mas, bmaj=5.425 mas, bpa=-1.945 degrees
! Estimated noise=1099.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.854325 Jy
! Component: 100  -  total flux cleaned = 1.18318 Jy
! Component: 150  -  total flux cleaned = 1.39419 Jy
! Component: 200  -  total flux cleaned = 1.53834 Jy
! Total flux subtracted in 200 components = 1.53834 Jy
! Clean residual min=-0.023129 max=0.081248 Jy/beam
! Clean residual mean=0.000793 rms=0.009867 Jy/beam
! Combined flux in latest and established models = 1.53835 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 26 model components to the UV plane model.
! The established model now contains 26 components and 1.53835 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.766 mas, bmaj=6.779 mas, bpa=0.1799 degrees
! Estimated noise=735.042 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.156763 Jy
! Component: 100  -  total flux cleaned = 0.254334 Jy
! Component: 150  -  total flux cleaned = 0.317087 Jy
! Component: 200  -  total flux cleaned = 0.357788 Jy
! Total flux subtracted in 200 components = 0.357788 Jy
! Clean residual min=-0.006344 max=0.021864 Jy/beam
! Clean residual mean=0.001318 rms=0.003503 Jy/beam
! Combined flux in latest and established models = 1.89613 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 55 components and 1.89613 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0269005 Jy
! Component: 100  -  total flux cleaned = 0.0453466 Jy
! Component: 150  -  total flux cleaned = 0.0583073 Jy
! Component: 200  -  total flux cleaned = 0.0674729 Jy
! Total flux subtracted in 200 components = 0.0674729 Jy
! Clean residual min=-0.003201 max=0.005220 Jy/beam
! Clean residual mean=0.000452 rms=0.001251 Jy/beam
! Combined flux in latest and established models = 1.96361 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 89 components and 1.96361 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=6.855 mas, bmaj=12.13 mas, bpa=4.243 degrees
! Estimated noise=993.028 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0115952 Jy
! Component: 100  -  total flux cleaned = 0.0178587 Jy
! Component: 150  -  total flux cleaned = 0.0222513 Jy
! Component: 200  -  total flux cleaned = 0.0255228 Jy
! Total flux subtracted in 200 components = 0.0255228 Jy
! Clean residual min=-0.003043 max=0.004426 Jy/beam
! Clean residual mean=0.000383 rms=0.001111 Jy/beam
! Combined flux in latest and established models = 1.98913 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.00205414 Jy
! Component: 100  -  total flux cleaned = 0.00330615 Jy
! Component: 150  -  total flux cleaned = 0.00442127 Jy
! Component: 200  -  total flux cleaned = 0.00524452 Jy
! Total flux subtracted in 200 components = 0.00524452 Jy
! Clean residual min=-0.002973 max=0.003643 Jy/beam
! Clean residual mean=0.000228 rms=0.000985 Jy/beam
! Combined flux in latest and established models = 1.99437 Jy
! Adding 105 model components to the UV plane model.
! The established model now contains 186 components and 1.99437 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.766 mas, bmaj=6.779 mas, bpa=0.1799 degrees
! Estimated noise=735.042 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.39062e-05 Jy
! Component: 100  -  total flux cleaned = 0.000459975 Jy
! Component: 150  -  total flux cleaned = 0.000645972 Jy
! Component: 200  -  total flux cleaned = 0.00106433 Jy
! Total flux subtracted in 200 components = 0.00106433 Jy
! Clean residual min=-0.002908 max=0.003522 Jy/beam
! Clean residual mean=0.000083 rms=0.000816 Jy/beam
! Combined flux in latest and established models = 1.99544 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 200 components and 1.99544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161117Jy  sigma=0.001091
! Fit after  self-cal, rms=0.161089Jy  sigma=0.001090
wmodel J0006-0623_S_2001_04_09_pus_map.mod
! Writing 200 model components to file: J0006-0623_S_2001_04_09_pus_map.mod
wobs J0006-0623_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0006-0623_S_2001_04_09_pus_uvs.fits
wwins J0006-0623_S_2001_04_09_pus_map.win
! wwins: Wrote 5 windows to J0006-0623_S_2001_04_09_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.00131515 Jy
! Component: 100  -  total flux cleaned = 0.00207096 Jy
! Component: 150  -  total flux cleaned = 0.00257891 Jy
! Component: 200  -  total flux cleaned = 0.00311351 Jy
! Component: 250  -  total flux cleaned = 0.00362945 Jy
! Component: 300  -  total flux cleaned = 0.00381152 Jy
! Component: 350  -  total flux cleaned = 0.00398918 Jy
! Component: 400  -  total flux cleaned = 0.00411962 Jy
! Component: 450  -  total flux cleaned = 0.00428978 Jy
! Component: 500  -  total flux cleaned = 0.00437311 Jy
! Component: 550  -  total flux cleaned = 0.00453715 Jy
! Component: 600  -  total flux cleaned = 0.00461827 Jy
! Component: 650  -  total flux cleaned = 0.00473793 Jy
! Component: 700  -  total flux cleaned = 0.00481652 Jy
! Component: 750  -  total flux cleaned = 0.00493215 Jy
! Component: 800  -  total flux cleaned = 0.0050833 Jy
! Component: 850  -  total flux cleaned = 0.00515731 Jy
! Component: 900  -  total flux cleaned = 0.00526795 Jy
! Component: 950  -  total flux cleaned = 0.00541342 Jy
! Component: 1000  -  total flux cleaned = 0.00544951 Jy
! Component: 1050  -  total flux cleaned = 0.00562684 Jy
! Component: 1100  -  total flux cleaned = 0.00569676 Jy
! Component: 1150  -  total flux cleaned = 0.00583469 Jy
! Component: 1200  -  total flux cleaned = 0.00586866 Jy
! Component: 1250  -  total flux cleaned = 0.00590269 Jy
! Component: 1300  -  total flux cleaned = 0.00596931 Jy
! Component: 1350  -  total flux cleaned = 0.00600236 Jy
! Component: 1400  -  total flux cleaned = 0.00603519 Jy
! Component: 1450  -  total flux cleaned = 0.00616502 Jy
! Component: 1500  -  total flux cleaned = 0.00626119 Jy
! Component: 1550  -  total flux cleaned = 0.00632451 Jy
! Component: 1600  -  total flux cleaned = 0.00635567 Jy
! Component: 1650  -  total flux cleaned = 0.00638661 Jy
! Component: 1700  -  total flux cleaned = 0.0064482 Jy
! Component: 1750  -  total flux cleaned = 0.00644796 Jy
! Component: 1800  -  total flux cleaned = 0.00650867 Jy
! Component: 1850  -  total flux cleaned = 0.00653891 Jy
! Component: 1900  -  total flux cleaned = 0.00659862 Jy
! Component: 1950  -  total flux cleaned = 0.00662834 Jy
! Component: 2000  -  total flux cleaned = 0.00662845 Jy
! Total flux subtracted in 2048 components = 0.00665785 Jy
! Clean residual min=-0.001539 max=0.001605 Jy/beam
! Clean residual mean=0.000013 rms=0.000580 Jy/beam
! Combined flux in latest and established models = 2.0021 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 338 components and 2.0021 Jy
![Exited script file: muppet]
wmap "J0006-0623_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.766 x 6.779 at 0.1799 degrees (North through East)
! Clean map  min=-0.002413  max=1.1489 Jy/beam
! Writing clean map to FITS file: J0006-0623_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.14894 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000578814 
device "J0006-0623_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0006-0623_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.151135 0.151135 0.302269 0.604539 1.20908 2.41815 4.83631 9.67262 19.3452 38.6905 77.381
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.148 
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.766 x 6.779 at 0.1799 degrees (North through East)
! Clean map  min=-0.002413  max=1.1489 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0006-0623_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0006-0623_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0006-0623_S_2001_04_09_pus_uvs.log closed on Mon Oct  8 11:01:11 2007