! Started logfile: J1127-1857_S_2000_12_04_pus_uvs.log on Thu Oct 18 16:27:45 2007
obs J1127-1857_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1127-1857_S_2000_12_04_pus_uva.fits
! AN table 1: 30 integrations on 190 of 190 possible baselines.
! AN table 2: 97 integrations on 190 of 190 possible baselines.
! AN table 3: 17 integrations on 190 of 190 possible baselines.
! AN table 4: 27 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0679286 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1127-1857
! 
! 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 8828 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 J1127-1857_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 393 telescope corrections were flagged in sub-array 1.
!  A total of 1799 telescope corrections were flagged in sub-array 2.
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  A total of 473 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 393 telescope corrections were flagged in sub-array 1.
!  A total of 1799 telescope corrections were flagged in sub-array 2.
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  A total of 473 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 393 telescope corrections were flagged in sub-array 1.
!  A total of 1800 telescope corrections were flagged in sub-array 2.
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  A total of 470 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 393 telescope corrections were flagged in sub-array 1.
!  A total of 1799 telescope corrections were flagged in sub-array 2.
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  A total of 470 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.530999Jy  sigma=0.004068
! Fit after  self-cal, rms=0.288272Jy  sigma=0.002016
! 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.441 mas, bmaj=6.371 mas, bpa=-7.735 degrees
! Estimated noise=1394.9 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.688561 Jy
! Component: 100  -  total flux cleaned = 0.840845 Jy
! Total flux subtracted in 100 components = 0.840845 Jy
! Clean residual min=-0.019545 max=0.047809 Jy/beam
! Clean residual mean=-0.000232 rms=0.005681 Jy/beam
! Combined flux in latest and established models = 0.840845 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.840845 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264977Jy  sigma=0.001932
! Fit after  self-cal, rms=0.264944Jy  sigma=0.001932
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0446716 Jy
! Component: 100  -  total flux cleaned = 0.0670698 Jy
! Total flux subtracted in 100 components = 0.0670698 Jy
! Clean residual min=-0.016778 max=0.023152 Jy/beam
! Clean residual mean=-0.000480 rms=0.004676 Jy/beam
! Combined flux in latest and established models = 0.907914 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 21 components and 0.907914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258870Jy  sigma=0.001835
! Fit after  self-cal, rms=0.258807Jy  sigma=0.001835
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.024 mas, bmaj=7.714 mas, bpa=-9.638 degrees
! Estimated noise=960.341 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.0142613 Jy
! Component: 100  -  total flux cleaned = 0.0181243 Jy
! Component: 150  -  total flux cleaned = 0.0181149 Jy
! Component: 200  -  total flux cleaned = 0.0183251 Jy
! Total flux subtracted in 200 components = 0.0183251 Jy
! Clean residual min=-0.015307 max=0.013837 Jy/beam
! Clean residual mean=-0.001708 rms=0.003979 Jy/beam
! Combined flux in latest and established models = 0.926239 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 30 components and 0.926239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258439Jy  sigma=0.001824
! Fit after  self-cal, rms=0.258430Jy  sigma=0.001824
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.99     KP        1.00     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.95     NY        1.00*    OV        0.94     PT        0.97     
!   SC        1.04     TS        1.00*    WF        1.64     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        0.93     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.06     
!   NL        0.96     NY        1.00*    OV        0.96     PT        0.97     
!   SC        0.99     TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.01     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00     NY        1.00*    OV        1.00     PT        1.00     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.92     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.59     MC        1.18     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.26     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.97     KP        0.97     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.90     NY        1.00*    OV        0.91     PT        0.98     
!   SC        0.99     TS        1.00*    WF        1.87     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        0.96     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        1.06     
!   NL        0.94     NY        1.00*    OV        0.94     PT        1.00     
!   SC        0.96     TS        1.00*    WF        0.94     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.00     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00     NY        1.00*    OV        0.96     PT        1.02     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.83     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.58     MC        1.06     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.41     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.11     KK        0.94     KP        1.00     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00     NY        1.00*    OV        1.00     PT        1.01     
!   SC        1.02     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.57     KK        1.00*    KP        0.95     
!   LA        1.24     MA        1.00*    MC        1.00*    MK        1.09     
!   NL        1.34     NY        1.00*    OV        1.18     PT        1.26     
!   SC        0.96     TS        1.00*    WF        1.11     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        1.08     
!   LA        1.09     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.08     NY        1.00*    OV        1.05     PT        1.08     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.94     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.26     MC        1.26     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.09     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.00     KP        0.95     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.95     NY        1.00*    OV        0.95     PT        0.98     
!   SC        1.05     TS        1.00*    WF        1.11     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        0.98     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.97     NY        1.00*    OV        0.97     PT        1.01     
!   SC        1.02     TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.00     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.03     NY        1.00*    OV        1.02     PT        1.04     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.84     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.07     MC        1.42     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.55     
! 
! 
! Fit before self-cal, rms=0.258430Jy  sigma=0.001824
! Fit after  self-cal, rms=0.290855Jy  sigma=0.001662
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.031 mas, bmaj=8.311 mas, bpa=-9.168 degrees
! Estimated noise=962.744 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.00028147 Jy
! Component: 100  -  total flux cleaned = 0.00034207 Jy
! Component: 150  -  total flux cleaned = 0.000393737 Jy
! Component: 200  -  total flux cleaned = 0.00043684 Jy
! Total flux subtracted in 200 components = 0.00043684 Jy
! Clean residual min=-0.005714 max=0.005009 Jy/beam
! Clean residual mean=-0.000212 rms=0.001523 Jy/beam
! Combined flux in latest and established models = 0.926676 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 40 components and 0.926676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290821Jy  sigma=0.001662
! Fit after  self-cal, rms=0.292105Jy  sigma=0.001660
! 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.292105Jy  sigma=0.001660
! Fit after  self-cal, rms=0.296040Jy  sigma=0.001660
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.029 mas, bmaj=8.315 mas, bpa=-9.185 degrees
! Estimated noise=963.009 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.60087e-06 Jy
! Component: 100  -  total flux cleaned = 5.51466e-05 Jy
! Component: 150  -  total flux cleaned = 5.70264e-05 Jy
! Component: 200  -  total flux cleaned = 0.000101089 Jy
! Total flux subtracted in 200 components = 0.000101089 Jy
! Clean residual min=-0.005846 max=0.005165 Jy/beam
! Clean residual mean=-0.000211 rms=0.001517 Jy/beam
! Combined flux in latest and established models = 0.926777 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 42 components and 0.926777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296009Jy  sigma=0.001660
! Fit after  self-cal, rms=0.296165Jy  sigma=0.001660
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.000160989 Jy
! Component: 100  -  total flux cleaned = -0.000160124 Jy
! Component: 150  -  total flux cleaned = -0.000161995 Jy
! Component: 200  -  total flux cleaned = -0.000161171 Jy
! Total flux subtracted in 200 components = -0.000161171 Jy
! Clean residual min=-0.005849 max=0.005171 Jy/beam
! Clean residual mean=-0.000210 rms=0.001514 Jy/beam
! Combined flux in latest and established models = 0.926616 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 45 components and 0.926616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296152Jy  sigma=0.001659
! Fit after  self-cal, rms=0.296162Jy  sigma=0.001659
! 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.296162Jy  sigma=0.001659
! Fit after  self-cal, rms=0.296919Jy  sigma=0.001659
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.028 mas, bmaj=8.327 mas, bpa=-9.201 degrees
! Estimated noise=963.326 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.78168e-06 Jy
! Component: 100  -  total flux cleaned = -7.3217e-06 Jy
! Component: 150  -  total flux cleaned = 3.0159e-05 Jy
! Component: 200  -  total flux cleaned = 6.10534e-05 Jy
! Total flux subtracted in 200 components = 6.10534e-05 Jy
! Clean residual min=-0.005944 max=0.005147 Jy/beam
! Clean residual mean=-0.000217 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 0.926677 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 47 components and 0.926677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296900Jy  sigma=0.001659
! Fit after  self-cal, rms=0.296918Jy  sigma=0.001659
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 = -6.31101e-05 Jy
! Component: 100  -  total flux cleaned = -6.25544e-05 Jy
! Component: 150  -  total flux cleaned = -6.3086e-05 Jy
! Component: 200  -  total flux cleaned = -6.13003e-05 Jy
! Total flux subtracted in 200 components = -6.13003e-05 Jy
! Clean residual min=-0.005940 max=0.005149 Jy/beam
! Clean residual mean=-0.000217 rms=0.001512 Jy/beam
! Combined flux in latest and established models = 0.926616 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 48 components and 0.926616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296910Jy  sigma=0.001659
! Fit after  self-cal, rms=0.296916Jy  sigma=0.001659
! 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.296916Jy  sigma=0.001659
! Fit after  self-cal, rms=0.297183Jy  sigma=0.001659
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.584 mas, bmaj=16.26 mas, bpa=2.449 degrees
! Estimated noise=1223.1 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000555288 Jy
! Component: 100  -  total flux cleaned = -0.000556944 Jy
! Component: 150  -  total flux cleaned = -0.000576904 Jy
! Component: 200  -  total flux cleaned = -0.000577355 Jy
! Total flux subtracted in 200 components = -0.000577355 Jy
! Clean residual min=-0.006755 max=0.005022 Jy/beam
! Clean residual mean=-0.000455 rms=0.001894 Jy/beam
! Combined flux in latest and established models = 0.926039 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 60 components and 0.926039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297188Jy  sigma=0.001659
! Fit after  self-cal, rms=0.297181Jy  sigma=0.001659
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 = 3.51031e-05 Jy
! Component: 100  -  total flux cleaned = 3.4357e-05 Jy
! Component: 150  -  total flux cleaned = 1.2831e-06 Jy
! Component: 200  -  total flux cleaned = -1.342e-05 Jy
! Total flux subtracted in 200 components = -1.342e-05 Jy
! Clean residual min=-0.006737 max=0.005013 Jy/beam
! Clean residual mean=-0.000457 rms=0.001893 Jy/beam
! Combined flux in latest and established models = 0.926025 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 62 components and 0.926025 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297185Jy  sigma=0.001659
! Fit after  self-cal, rms=0.297182Jy  sigma=0.001659
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=3.027 mas, bmaj=8.335 mas, bpa=-9.213 degrees
! Estimated noise=963.61 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.027 x 8.335 at -9.213 degrees (North through East)
! Clean map  min=-0.0056506  max=0.89497 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.297182Jy  sigma=0.001659
! Fit after  self-cal, rms=0.422102Jy  sigma=0.001526
! Inverting map and beam 
! Estimated beam: bmin=3.033 mas, bmaj=8.351 mas, bpa=-9.16 degrees
! Estimated noise=963.954 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000809074 Jy
! Component: 100  -  total flux cleaned = -0.000893441 Jy
! Component: 150  -  total flux cleaned = -0.00096021 Jy
! Component: 200  -  total flux cleaned = -0.00104275 Jy
! Total flux subtracted in 200 components = -0.00104275 Jy
! Clean residual min=-0.006238 max=0.005083 Jy/beam
! Clean residual mean=-0.000186 rms=0.001501 Jy/beam
! Combined flux in latest and established models = 0.924983 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 65 components and 0.924983 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422078Jy  sigma=0.001526
! Fit after  self-cal, rms=0.422100Jy  sigma=0.001526
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.18328e-05 Jy
! Component: 100  -  total flux cleaned = -0.000166492 Jy
! Component: 150  -  total flux cleaned = -0.00023337 Jy
! Component: 200  -  total flux cleaned = -0.000254901 Jy
! Total flux subtracted in 200 components = -0.000254901 Jy
! Clean residual min=-0.006246 max=0.005064 Jy/beam
! Clean residual mean=-0.000183 rms=0.001502 Jy/beam
! Combined flux in latest and established models = 0.924728 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 66 components and 0.924728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422088Jy  sigma=0.001526
! Fit after  self-cal, rms=0.422096Jy  sigma=0.001526
! 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.422096Jy  sigma=0.001526
! Fit after  self-cal, rms=0.515975Jy  sigma=0.001526
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.454 mas, bmaj=6.526 mas, bpa=-7.496 degrees
! Estimated noise=1421.76 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.694354 Jy
! Component: 100  -  total flux cleaned = 0.846131 Jy
! Component: 150  -  total flux cleaned = 0.8865 Jy
! Component: 200  -  total flux cleaned = 0.90318 Jy
! Total flux subtracted in 200 components = 0.90318 Jy
! Clean residual min=-0.006960 max=0.008938 Jy/beam
! Clean residual mean=-0.000020 rms=0.002141 Jy/beam
! Combined flux in latest and established models = 0.90318 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 0.90318 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.033 mas, bmaj=8.362 mas, bpa=-9.172 degrees
! Estimated noise=963.697 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.011492 Jy
! Component: 100  -  total flux cleaned = 0.017041 Jy
! Component: 150  -  total flux cleaned = 0.0192692 Jy
! Component: 200  -  total flux cleaned = 0.0194504 Jy
! Total flux subtracted in 200 components = 0.0194504 Jy
! Clean residual min=-0.006565 max=0.005447 Jy/beam
! Clean residual mean=-0.000165 rms=0.001542 Jy/beam
! Combined flux in latest and established models = 0.92263 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 27 components and 0.92263 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.584 mas, bmaj=16.28 mas, bpa=2.462 degrees
! Estimated noise=1221.29 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000685556 Jy
! Component: 100  -  total flux cleaned = 0.000841603 Jy
! Component: 150  -  total flux cleaned = 0.000843401 Jy
! Component: 200  -  total flux cleaned = 0.000886619 Jy
! Total flux subtracted in 200 components = 0.000886619 Jy
! Clean residual min=-0.007005 max=0.005675 Jy/beam
! Clean residual mean=-0.000377 rms=0.002015 Jy/beam
! Combined flux in latest and established models = 0.923517 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 = 3.7805e-05 Jy
! Component: 100  -  total flux cleaned = 7.0626e-05 Jy
! Component: 150  -  total flux cleaned = 9.94933e-05 Jy
! Component: 200  -  total flux cleaned = 9.73831e-05 Jy
! Total flux subtracted in 200 components = 9.73831e-05 Jy
! Clean residual min=-0.006966 max=0.005588 Jy/beam
! Clean residual mean=-0.000380 rms=0.002006 Jy/beam
! Combined flux in latest and established models = 0.923614 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 37 components and 0.923614 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.033 mas, bmaj=8.362 mas, bpa=-9.172 degrees
! Estimated noise=963.697 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00049981 Jy
! Component: 100  -  total flux cleaned = 0.000653378 Jy
! Component: 150  -  total flux cleaned = 0.000715859 Jy
! Component: 200  -  total flux cleaned = 0.000659959 Jy
! Total flux subtracted in 200 components = 0.000659959 Jy
! Clean residual min=-0.006345 max=0.005308 Jy/beam
! Clean residual mean=-0.000186 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 0.924274 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 41 components and 0.924274 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.515955Jy  sigma=0.001526
! Fit after  self-cal, rms=0.515974Jy  sigma=0.001526
wmodel J1127-1857_S_2000_12_04_pus_map.mod
! Writing 41 model components to file: J1127-1857_S_2000_12_04_pus_map.mod
wobs J1127-1857_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1127-1857_S_2000_12_04_pus_uvs.fits
wwins J1127-1857_S_2000_12_04_pus_map.win
! wwins: Wrote 1 windows to J1127-1857_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.00189514 Jy
! Component: 100  -  total flux cleaned = -0.00171245 Jy
! Component: 150  -  total flux cleaned = -0.0018822 Jy
! Component: 200  -  total flux cleaned = -0.00204314 Jy
! Component: 250  -  total flux cleaned = -0.00220018 Jy
! Component: 300  -  total flux cleaned = -0.00258002 Jy
! Component: 350  -  total flux cleaned = -0.00279951 Jy
! Component: 400  -  total flux cleaned = -0.00308626 Jy
! Component: 450  -  total flux cleaned = -0.00343625 Jy
! Component: 500  -  total flux cleaned = -0.00384898 Jy
! Component: 550  -  total flux cleaned = -0.00438789 Jy
! Component: 600  -  total flux cleaned = -0.0047184 Jy
! Component: 650  -  total flux cleaned = -0.0053049 Jy
! Component: 700  -  total flux cleaned = -0.00569009 Jy
! Component: 750  -  total flux cleaned = -0.00625951 Jy
! Component: 800  -  total flux cleaned = -0.00663453 Jy
! Component: 850  -  total flux cleaned = -0.0071892 Jy
! Component: 900  -  total flux cleaned = -0.00755374 Jy
! Component: 950  -  total flux cleaned = -0.00785432 Jy
! Component: 1000  -  total flux cleaned = -0.00838928 Jy
! Component: 1050  -  total flux cleaned = -0.00868283 Jy
! Component: 1100  -  total flux cleaned = -0.0089732 Jy
! Component: 1150  -  total flux cleaned = -0.00937547 Jy
! Component: 1200  -  total flux cleaned = -0.00977343 Jy
! Component: 1250  -  total flux cleaned = -0.0100548 Jy
! Component: 1300  -  total flux cleaned = -0.0104442 Jy
! Component: 1350  -  total flux cleaned = -0.010665 Jy
! Component: 1400  -  total flux cleaned = -0.0108837 Jy
! Component: 1450  -  total flux cleaned = -0.0113166 Jy
! Component: 1500  -  total flux cleaned = -0.0116916 Jy
! Component: 1550  -  total flux cleaned = -0.01201 Jy
! Component: 1600  -  total flux cleaned = -0.0124308 Jy
! Component: 1650  -  total flux cleaned = -0.0128477 Jy
! Component: 1700  -  total flux cleaned = -0.0131063 Jy
! Component: 1750  -  total flux cleaned = -0.0134655 Jy
! Component: 1800  -  total flux cleaned = -0.0138721 Jy
! Component: 1850  -  total flux cleaned = -0.0141242 Jy
! Component: 1900  -  total flux cleaned = -0.0145742 Jy
! Component: 1950  -  total flux cleaned = -0.0150198 Jy
! Component: 2000  -  total flux cleaned = -0.0152158 Jy
! Total flux subtracted in 2048 components = -0.0155569 Jy
! Clean residual min=-0.003654 max=0.002957 Jy/beam
! Clean residual mean=-0.000138 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 0.908717 Jy
keep
! Adding 139 model components to the UV plane model.
! The established model now contains 180 components and 0.908717 Jy
![Exited script file: muppet]
wmap "J1127-1857_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.033 x 8.362 at -9.172 degrees (North through East)
! Clean map  min=-0.005484  max=0.89557 Jy/beam
! Writing clean map to FITS file: J1127-1857_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 0.895567 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00101754 
device "J1127-1857_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1127-1857_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.340859 0.340859 0.681718 1.36344 2.72687 5.45375 10.9075 21.815 43.63 87.2599
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.003 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.895 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.033 x 8.362 at -9.172 degrees (North through East)
! Clean map  min=-0.005484  max=0.89557 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1127-1857_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1127-1857_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1127-1857_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 16:27:53 2007