! Started logfile: J1127-1857_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:20:22 2008
obs J1127-1857_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J1127-1857_S_1999_03_08_pus_uva.fits
! AN table 1: 122 integrations on 190 of 190 possible baselines.
! AN table 2: 36 integrations on 190 of 190 possible baselines.
! AN table 3: 82 integrations on 190 of 190 possible baselines.
! AN table 4: 21 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0963299 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 2332 lines of history.
! 
! Reading 19108 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_1999_03_08_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 2410 telescope corrections were flagged in sub-array 1.
!  A total of 720 telescope corrections were flagged in sub-array 2.
!  A total of 826 telescope corrections were flagged in sub-array 3.
!  A total of 269 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2410 telescope corrections were flagged in sub-array 1.
!  A total of 720 telescope corrections were flagged in sub-array 2.
!  A total of 826 telescope corrections were flagged in sub-array 3.
!  A total of 269 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2373 telescope corrections were flagged in sub-array 1.
!  A total of 678 telescope corrections were flagged in sub-array 2.
!  A total of 826 telescope corrections were flagged in sub-array 3.
!  A total of 269 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2373 telescope corrections were flagged in sub-array 1.
!  A total of 678 telescope corrections were flagged in sub-array 2.
!  A total of 826 telescope corrections were flagged in sub-array 3.
!  A total of 269 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.941959Jy  sigma=0.006345
! Fit after  self-cal, rms=0.223366Jy  sigma=0.001385
! 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.387 mas, bmaj=6.265 mas, bpa=-2.566 degrees
! Estimated noise=1323.55 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.735144 Jy
! Component: 100  -  total flux cleaned = 0.895454 Jy
! Total flux subtracted in 100 components = 0.895454 Jy
! Clean residual min=-0.018060 max=0.044733 Jy/beam
! Clean residual mean=-0.000092 rms=0.004219 Jy/beam
! Combined flux in latest and established models = 0.895454 Jy
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.895454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225731Jy  sigma=0.001444
! Fit after  self-cal, rms=0.225725Jy  sigma=0.001444
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0430169 Jy
! Component: 100  -  total flux cleaned = 0.0656946 Jy
! Total flux subtracted in 100 components = 0.0656946 Jy
! Clean residual min=-0.018748 max=0.014437 Jy/beam
! Clean residual mean=-0.000094 rms=0.003004 Jy/beam
! Combined flux in latest and established models = 0.961149 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 0.961149 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215708Jy  sigma=0.001333
! Fit after  self-cal, rms=0.215746Jy  sigma=0.001333
! 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.869 mas, bmaj=8.181 mas, bpa=-5.418 degrees
! Estimated noise=701.442 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.0193839 Jy
! Component: 100  -  total flux cleaned = 0.0288132 Jy
! Component: 150  -  total flux cleaned = 0.0336217 Jy
! Component: 200  -  total flux cleaned = 0.0355884 Jy
! Total flux subtracted in 200 components = 0.0355884 Jy
! Clean residual min=-0.012329 max=0.008259 Jy/beam
! Clean residual mean=-0.000461 rms=0.002306 Jy/beam
! Combined flux in latest and established models = 0.996737 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 37 components and 0.996737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214553Jy  sigma=0.001314
! Fit after  self-cal, rms=0.214579Jy  sigma=0.001314
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 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*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GC        1.00*    GG        1.00*    
!   HN        1.01     KP        0.99     LA        0.98     NL        1.05     
!   OV        0.99     PT        1.02     SC        1.02     WF        1.01     
!   GN        1.03     HH        1.00*    KK        1.06     MC        1.00*    
!   MK        0.94     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.99     GC        1.00*    GG        1.00*    
!   HN        0.97     KP        1.03     LA        1.00     NL        1.01     
!   OV        1.00     PT        1.02     SC        1.01     WF        1.03     
!   GN        0.99     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 30 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*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.04     GC        1.00*    GG        1.00*    
!   HN        0.97     KP        1.00     LA        0.96     NL        1.02     
!   OV        0.97     PT        0.99     SC        1.03     WF        1.02     
!   GN        1.02     HH        1.00*    KK        1.01     MC        1.00*    
!   MK        0.97     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.12     FD        1.03     GC        1.00*    GG        1.00*    
!   HN        0.98     KP        1.00     LA        0.97     NL        1.05     
!   OV        0.99     PT        0.98     SC        1.07     WF        0.98     
!   GN        0.96     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        0.89     KK        1.00*    MC        1.22     
!   MK        1.00*    NY        1.00*    ON        1.17     WZ        1.11     
! 
!  A total of 42 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*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.00*    GG        1.00*    
!   HN        1.23     KP        0.97     LA        0.99     NL        1.02     
!   OV        0.99     PT        0.95     SC        1.00     WF        1.01     
!   GN        0.99     HH        1.00*    KK        1.02     MC        1.00*    
!   MK        0.95     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.10     FD        0.97     GC        1.00*    GG        1.00*    
!   HN        1.20     KP        0.98     LA        0.95     NL        0.98     
!   OV        0.99     PT        0.98     SC        1.00     WF        0.95     
!   GN        0.97     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        0.99     KK        1.00*    MC        1.04     
!   MK        1.00*    NY        1.00*    ON        1.34     WZ        1.00     
! 
!  A total of 42 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*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00     GC        1.00*    GG        1.00*    
!   HN        1.15     KP        0.98     LA        0.97     NL        1.02     
!   OV        0.99     PT        0.94     SC        1.00     WF        1.00     
!   GN        0.99     HH        1.00*    KK        1.15     MC        1.00*    
!   MK        0.97     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        0.98     GC        1.00*    GG        1.00*    
!   HN        1.15     KP        1.01     LA        0.97     NL        1.05     
!   OV        0.97     PT        0.96     SC        1.02     WF        0.97     
!   GN        0.95     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.214579Jy  sigma=0.001314
! Fit after  self-cal, rms=0.209818Jy  sigma=0.001240
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.887 mas, bmaj=8.47 mas, bpa=-5.734 degrees
! Estimated noise=703.414 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.00205338 Jy
! Component: 100  -  total flux cleaned = -0.00265992 Jy
! Component: 150  -  total flux cleaned = -0.00301513 Jy
! Component: 200  -  total flux cleaned = -0.0033378 Jy
! Total flux subtracted in 200 components = -0.0033378 Jy
! Clean residual min=-0.006922 max=0.006367 Jy/beam
! Clean residual mean=0.000014 rms=0.001547 Jy/beam
! Combined flux in latest and established models = 0.993399 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 45 components and 0.993399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209699Jy  sigma=0.001239
! Fit after  self-cal, rms=0.209732Jy  sigma=0.001239
! 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.209732Jy  sigma=0.001239
! Fit after  self-cal, rms=0.206866Jy  sigma=0.001223
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.891 mas, bmaj=8.484 mas, bpa=-5.637 degrees
! Estimated noise=703.639 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00133662 Jy
! Component: 100  -  total flux cleaned = -0.00169367 Jy
! Component: 150  -  total flux cleaned = -0.00180291 Jy
! Component: 200  -  total flux cleaned = -0.00194476 Jy
! Total flux subtracted in 200 components = -0.00194476 Jy
! Clean residual min=-0.003789 max=0.004193 Jy/beam
! Clean residual mean=0.000064 rms=0.001071 Jy/beam
! Combined flux in latest and established models = 0.991454 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 58 components and 0.991454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206824Jy  sigma=0.001222
! Fit after  self-cal, rms=0.206818Jy  sigma=0.001222
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.000175209 Jy
! Component: 100  -  total flux cleaned = -0.000292044 Jy
! Component: 150  -  total flux cleaned = -0.000399096 Jy
! Component: 200  -  total flux cleaned = -0.000532957 Jy
! Total flux subtracted in 200 components = -0.000532957 Jy
! Clean residual min=-0.003826 max=0.004249 Jy/beam
! Clean residual mean=0.000066 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 0.990922 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 62 components and 0.990922 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206806Jy  sigma=0.001222
! Fit after  self-cal, rms=0.206804Jy  sigma=0.001222
! 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.206804Jy  sigma=0.001222
! Fit after  self-cal, rms=0.205829Jy  sigma=0.001218
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.894 mas, bmaj=8.501 mas, bpa=-5.593 degrees
! Estimated noise=703.894 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00160819 Jy
! Component: 100  -  total flux cleaned = -0.00160873 Jy
! Component: 150  -  total flux cleaned = -0.00150811 Jy
! Component: 200  -  total flux cleaned = -0.0013764 Jy
! Total flux subtracted in 200 components = -0.0013764 Jy
! Clean residual min=-0.003159 max=0.003770 Jy/beam
! Clean residual mean=0.000108 rms=0.000927 Jy/beam
! Combined flux in latest and established models = 0.989545 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 66 components and 0.989545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205797Jy  sigma=0.001218
! Fit after  self-cal, rms=0.205798Jy  sigma=0.001218
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 = 8.01932e-05 Jy
! Component: 100  -  total flux cleaned = 0.000183552 Jy
! Component: 150  -  total flux cleaned = 0.000214942 Jy
! Component: 200  -  total flux cleaned = 0.000185694 Jy
! Total flux subtracted in 200 components = 0.000185694 Jy
! Clean residual min=-0.003122 max=0.003791 Jy/beam
! Clean residual mean=0.000107 rms=0.000926 Jy/beam
! Combined flux in latest and established models = 0.989731 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 69 components and 0.989731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205789Jy  sigma=0.001218
! Fit after  self-cal, rms=0.205788Jy  sigma=0.001218
! 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.205788Jy  sigma=0.001218
! Fit after  self-cal, rms=0.205913Jy  sigma=0.001218
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.724 mas, bmaj=15.73 mas, bpa=1.105 degrees
! Estimated noise=901.311 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00132957 Jy
! Component: 100  -  total flux cleaned = -0.00157723 Jy
! Component: 150  -  total flux cleaned = -0.00159599 Jy
! Component: 200  -  total flux cleaned = -0.00162565 Jy
! Total flux subtracted in 200 components = -0.00162565 Jy
! Clean residual min=-0.003896 max=0.003864 Jy/beam
! Clean residual mean=0.000273 rms=0.001214 Jy/beam
! Combined flux in latest and established models = 0.988105 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 82 components and 0.988105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205915Jy  sigma=0.001218
! Fit after  self-cal, rms=0.205913Jy  sigma=0.001218
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 = 7.98328e-07 Jy
! Component: 100  -  total flux cleaned = -1.45946e-05 Jy
! Component: 150  -  total flux cleaned = -2.83311e-05 Jy
! Component: 200  -  total flux cleaned = -2.87567e-05 Jy
! Total flux subtracted in 200 components = -2.87567e-05 Jy
! Clean residual min=-0.003882 max=0.003856 Jy/beam
! Clean residual mean=0.000274 rms=0.001211 Jy/beam
! Combined flux in latest and established models = 0.988076 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 82 components and 0.988076 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205918Jy  sigma=0.001218
! Fit after  self-cal, rms=0.205916Jy  sigma=0.001218
! 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.896 mas, bmaj=8.511 mas, bpa=-5.59 degrees
! Estimated noise=704.246 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.896 x 8.511 at -5.59 degrees (North through East)
! Clean map  min=-0.003018  max=0.95632 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.205916Jy  sigma=0.001218
! Fit after  self-cal, rms=0.213483Jy  sigma=0.001133
! Inverting map and beam 
! Estimated beam: bmin=2.898 mas, bmaj=8.516 mas, bpa=-5.584 degrees
! Estimated noise=703.638 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000915685 Jy
! Component: 100  -  total flux cleaned = -0.00111162 Jy
! Component: 150  -  total flux cleaned = -0.00121123 Jy
! Component: 200  -  total flux cleaned = -0.00121262 Jy
! Total flux subtracted in 200 components = -0.00121262 Jy
! Clean residual min=-0.003006 max=0.003752 Jy/beam
! Clean residual mean=0.000113 rms=0.000891 Jy/beam
! Combined flux in latest and established models = 0.986864 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 82 components and 0.986864 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213467Jy  sigma=0.001132
! Fit after  self-cal, rms=0.213479Jy  sigma=0.001132
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.59909e-06 Jy
! Component: 100  -  total flux cleaned = 7.28275e-07 Jy
! Component: 150  -  total flux cleaned = 2.63283e-05 Jy
! Component: 200  -  total flux cleaned = 2.81857e-06 Jy
! Total flux subtracted in 200 components = 2.81857e-06 Jy
! Clean residual min=-0.002978 max=0.003736 Jy/beam
! Clean residual mean=0.000113 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 0.986866 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 83 components and 0.986866 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213471Jy  sigma=0.001132
! Fit after  self-cal, rms=0.213472Jy  sigma=0.001132
! 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.213472Jy  sigma=0.001132
! Fit after  self-cal, rms=0.224731Jy  sigma=0.001132
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.429 mas, bmaj=6.732 mas, bpa=-3.74 degrees
! Estimated noise=1329.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.740739 Jy
! Component: 100  -  total flux cleaned = 0.90231 Jy
! Component: 150  -  total flux cleaned = 0.94145 Jy
! Component: 200  -  total flux cleaned = 0.959575 Jy
! Total flux subtracted in 200 components = 0.959575 Jy
! Clean residual min=-0.006024 max=0.009095 Jy/beam
! Clean residual mean=0.000032 rms=0.001585 Jy/beam
! Combined flux in latest and established models = 0.959575 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 0.959575 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.899 mas, bmaj=8.521 mas, bpa=-5.577 degrees
! Estimated noise=703.7 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.015169 Jy
! Component: 100  -  total flux cleaned = 0.0221433 Jy
! Component: 150  -  total flux cleaned = 0.0255126 Jy
! Component: 200  -  total flux cleaned = 0.0270757 Jy
! Total flux subtracted in 200 components = 0.0270757 Jy
! Clean residual min=-0.003016 max=0.003920 Jy/beam
! Clean residual mean=0.000115 rms=0.000914 Jy/beam
! Combined flux in latest and established models = 0.98665 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 32 components and 0.986651 Jy
! Inverting map 
! Added new window around map position (-34, -54).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00300954 Jy
! Component: 100  -  total flux cleaned = 0.00318826 Jy
! Component: 150  -  total flux cleaned = 0.00312262 Jy
! Component: 200  -  total flux cleaned = 0.00312101 Jy
! Total flux subtracted in 200 components = 0.00312101 Jy
! Clean residual min=-0.002814 max=0.003102 Jy/beam
! Clean residual mean=0.000089 rms=0.000865 Jy/beam
! Combined flux in latest and established models = 0.989772 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 51 components and 0.989772 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.727 mas, bmaj=15.74 mas, bpa=1.115 degrees
! Estimated noise=899.608 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00046503 Jy
! Component: 100  -  total flux cleaned = -0.000632379 Jy
! Component: 150  -  total flux cleaned = -0.000668617 Jy
! Component: 200  -  total flux cleaned = -0.000766262 Jy
! Total flux subtracted in 200 components = -0.000766262 Jy
! Clean residual min=-0.003744 max=0.004062 Jy/beam
! Clean residual mean=0.000235 rms=0.001168 Jy/beam
! Combined flux in latest and established models = 0.989005 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -2.87072e-05 Jy
! Component: 100  -  total flux cleaned = -8.01839e-05 Jy
! Component: 150  -  total flux cleaned = -0.000150771 Jy
! Component: 200  -  total flux cleaned = -0.000194569 Jy
! Total flux subtracted in 200 components = -0.000194569 Jy
! Clean residual min=-0.003697 max=0.003940 Jy/beam
! Clean residual mean=0.000238 rms=0.001155 Jy/beam
! Combined flux in latest and established models = 0.988811 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 82 components and 0.988811 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.899 mas, bmaj=8.521 mas, bpa=-5.577 degrees
! Estimated noise=703.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000636077 Jy
! Component: 100  -  total flux cleaned = 0.000800113 Jy
! Component: 150  -  total flux cleaned = 0.000949539 Jy
! Component: 200  -  total flux cleaned = 0.000995507 Jy
! Total flux subtracted in 200 components = 0.000995507 Jy
! Clean residual min=-0.002710 max=0.003072 Jy/beam
! Clean residual mean=0.000093 rms=0.000845 Jy/beam
! Combined flux in latest and established models = 0.989807 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 92 components and 0.989806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224688Jy  sigma=0.001132
! Fit after  self-cal, rms=0.224627Jy  sigma=0.001132
wmodel J1127-1857_S_1999_03_08_pus_map.mod
! Writing 92 model components to file: J1127-1857_S_1999_03_08_pus_map.mod
wobs J1127-1857_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J1127-1857_S_1999_03_08_pus_uvs.fits
wwins J1127-1857_S_1999_03_08_pus_map.win
! wwins: Wrote 2 windows to J1127-1857_S_1999_03_08_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.00105259 Jy
! Component: 100  -  total flux cleaned = 0.00140852 Jy
! Component: 150  -  total flux cleaned = 0.00160259 Jy
! Component: 200  -  total flux cleaned = 0.00178947 Jy
! Component: 250  -  total flux cleaned = 0.00201722 Jy
! Component: 300  -  total flux cleaned = 0.00210657 Jy
! Component: 350  -  total flux cleaned = 0.00236778 Jy
! Component: 400  -  total flux cleaned = 0.00249514 Jy
! Component: 450  -  total flux cleaned = 0.00274385 Jy
! Component: 500  -  total flux cleaned = 0.00282401 Jy
! Component: 550  -  total flux cleaned = 0.00290361 Jy
! Component: 600  -  total flux cleaned = 0.00302108 Jy
! Component: 650  -  total flux cleaned = 0.00317511 Jy
! Component: 700  -  total flux cleaned = 0.00332684 Jy
! Component: 750  -  total flux cleaned = 0.00340125 Jy
! Component: 800  -  total flux cleaned = 0.00343827 Jy
! Component: 850  -  total flux cleaned = 0.00358353 Jy
! Component: 900  -  total flux cleaned = 0.00376284 Jy
! Component: 950  -  total flux cleaned = 0.00383384 Jy
! Component: 1000  -  total flux cleaned = 0.00400893 Jy
! Component: 1050  -  total flux cleaned = 0.00411306 Jy
! Component: 1100  -  total flux cleaned = 0.00428429 Jy
! Component: 1150  -  total flux cleaned = 0.00441992 Jy
! Component: 1200  -  total flux cleaned = 0.00462106 Jy
! Component: 1250  -  total flux cleaned = 0.00475343 Jy
! Component: 1300  -  total flux cleaned = 0.00491724 Jy
! Component: 1350  -  total flux cleaned = 0.00514434 Jy
! Component: 1400  -  total flux cleaned = 0.00524048 Jy
! Component: 1450  -  total flux cleaned = 0.00539972 Jy
! Component: 1500  -  total flux cleaned = 0.0055258 Jy
! Component: 1550  -  total flux cleaned = 0.00558836 Jy
! Component: 1600  -  total flux cleaned = 0.00571267 Jy
! Component: 1650  -  total flux cleaned = 0.00586621 Jy
! Component: 1700  -  total flux cleaned = 0.00598794 Jy
! Component: 1750  -  total flux cleaned = 0.00616841 Jy
! Component: 1800  -  total flux cleaned = 0.00619785 Jy
! Component: 1850  -  total flux cleaned = 0.00625686 Jy
! Component: 1900  -  total flux cleaned = 0.00634523 Jy
! Component: 1950  -  total flux cleaned = 0.00646222 Jy
! Component: 2000  -  total flux cleaned = 0.0065491 Jy
! Total flux subtracted in 2048 components = 0.00669285 Jy
! Clean residual min=-0.001593 max=0.001612 Jy/beam
! Clean residual mean=0.000049 rms=0.000595 Jy/beam
! Combined flux in latest and established models = 0.996499 Jy
keep
! Adding 136 model components to the UV plane model.
! The established model now contains 228 components and 0.996499 Jy
![Exited script file: muppet]
wmap "J1127-1857_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.899 x 8.521 at -5.577 degrees (North through East)
! Clean map  min=-0.0028226  max=0.95572 Jy/beam
! Writing clean map to FITS file: J1127-1857_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.95572 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000590703 
device "J1127-1857_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J1127-1857_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.185421 0.185421 0.370843 0.741685 1.48337 2.96674 5.93348 11.867 23.7339 47.4679 94.9357
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.955 
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.899 x 8.521 at -5.577 degrees (North through East)
! Clean map  min=-0.0028226  max=0.95572 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1127-1857_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J1127-1857_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1127-1857_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:20:37 2008