! Started logfile: J1127-1857_S_2001_04_09_pus_uvs.log on Mon Oct  8 13:08:56 2007
obs J1127-1857_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1127-1857_S_2001_04_09_pus_uva.fits
! AN table 1: 21 integrations on 190 of 190 possible baselines.
! AN table 2: 43 integrations on 190 of 190 possible baselines.
! AN table 3: 88 integrations on 190 of 190 possible baselines.
! AN table 4: 51 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0525538 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.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 8108 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_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 420 telescope corrections were flagged in sub-array 1.
!  A total of 818 telescope corrections were flagged in sub-array 2.
!  A total of 1498 telescope corrections were flagged in sub-array 3.
!  A total of 800 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 420 telescope corrections were flagged in sub-array 1.
!  A total of 809 telescope corrections were flagged in sub-array 2.
!  A total of 1530 telescope corrections were flagged in sub-array 3.
!  A total of 800 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 420 telescope corrections were flagged in sub-array 1.
!  A total of 812 telescope corrections were flagged in sub-array 2.
!  A total of 1495 telescope corrections were flagged in sub-array 3.
!  A total of 800 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 420 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 1526 telescope corrections were flagged in sub-array 3.
!  A total of 800 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.480148Jy  sigma=0.003498
! Fit after  self-cal, rms=0.242220Jy  sigma=0.001562
! 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.22 mas, bmaj=5.066 mas, bpa=-1.341 degrees
! Estimated noise=1592.41 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.695062 Jy
! Component: 100  -  total flux cleaned = 0.853727 Jy
! Total flux subtracted in 100 components = 0.853727 Jy
! Clean residual min=-0.017236 max=0.052601 Jy/beam
! Clean residual mean=0.000058 rms=0.005627 Jy/beam
! Combined flux in latest and established models = 0.853727 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.853727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217181Jy  sigma=0.001463
! Fit after  self-cal, rms=0.216831Jy  sigma=0.001463
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0503289 Jy
! Component: 100  -  total flux cleaned = 0.0767103 Jy
! Total flux subtracted in 100 components = 0.0767103 Jy
! Clean residual min=-0.013906 max=0.024464 Jy/beam
! Clean residual mean=-0.000047 rms=0.003865 Jy/beam
! Combined flux in latest and established models = 0.930437 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 22 components and 0.930437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205115Jy  sigma=0.001339
! Fit after  self-cal, rms=0.204896Jy  sigma=0.001339
! Inverting map 
! Added new window around map position (-3, 10).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0158237 Jy
! Component: 100  -  total flux cleaned = 0.0234759 Jy
! Total flux subtracted in 100 components = 0.0234759 Jy
! Clean residual min=-0.011977 max=0.016809 Jy/beam
! Clean residual mean=-0.000080 rms=0.003314 Jy/beam
! Combined flux in latest and established models = 0.953913 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 31 components and 0.953913 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202625Jy  sigma=0.001318
! Fit after  self-cal, rms=0.202467Jy  sigma=0.001317
! 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.553 mas, bmaj=6.236 mas, bpa=-5.337 degrees
! Estimated noise=1090.32 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.0109349 Jy
! Component: 100  -  total flux cleaned = 0.0133904 Jy
! Component: 150  -  total flux cleaned = 0.0153275 Jy
! Component: 200  -  total flux cleaned = 0.0167172 Jy
! Total flux subtracted in 200 components = 0.0167172 Jy
! Clean residual min=-0.010605 max=0.010812 Jy/beam
! Clean residual mean=-0.000773 rms=0.002498 Jy/beam
! Combined flux in latest and established models = 0.97063 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 42 components and 0.97063 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201667Jy  sigma=0.001311
! Fit after  self-cal, rms=0.201629Jy  sigma=0.001311
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    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 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*    
!   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 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        0.99     HN        1.05     KK        0.95     KP        1.03     
!   LA        0.96     MA        1.10     MC        0.92     MK        0.96     
!   NL        0.98     NY        1.00*    OV        0.99     PT        0.98     
!   SC        1.00     TS        1.00*    WF        1.02     WZ        1.03     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.08     KP        0.84     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.98     NY        1.00*    OV        1.03     PT        0.97     
!   SC        0.99     TS        1.00*    WF        0.95     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 51 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 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        2.22     HN        1.04     KK        1.01     KP        0.99     
!   LA        0.97     MA        1.32     MC        0.87     MK        0.99     
!   NL        0.99     NY        1.00*    OV        0.97     PT        1.00     
!   SC        1.00     TS        1.00*    WF        1.00     WZ        1.01     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.21     KP        1.07     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.01     NY        1.00*    OV        1.01     PT        1.01     
!   SC        0.99     TS        1.00*    WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 48 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        1.03     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        0.79     HN        1.06     KK        1.00     KP        1.00     
!   LA        0.95     MA        1.00     MC        0.95     MK        0.95     
!   NL        0.98     NY        1.00*    OV        0.97     PT        1.00     
!   SC        1.02     TS        1.00*    WF        1.04     WZ        0.96     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.19     KP        1.01     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        0.98     NY        1.00*    OV        1.00     PT        1.01     
!   SC        0.98     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 45 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 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*    
!   HH        1.08     HN        1.08     KK        1.00     KP        1.01     
!   LA        0.97     MA        1.19     MC        1.26     MK        0.93     
!   NL        0.99     NY        1.00*    OV        0.97     PT        1.08     
!   SC        1.03     TS        1.00*    WF        0.99     WZ        0.91     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.20     KP        0.96     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.99     NY        1.00*    OV        1.01     PT        1.04     
!   SC        0.98     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.201629Jy  sigma=0.001311
! Fit after  self-cal, rms=0.187799Jy  sigma=0.001228
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.59 mas, bmaj=7.048 mas, bpa=-7.085 degrees
! Estimated noise=1106.04 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.00515109 Jy
! Component: 100  -  total flux cleaned = -0.00594684 Jy
! Component: 150  -  total flux cleaned = -0.00609814 Jy
! Component: 200  -  total flux cleaned = -0.00635106 Jy
! Total flux subtracted in 200 components = -0.00635106 Jy
! Clean residual min=-0.006663 max=0.005245 Jy/beam
! Clean residual mean=-0.000284 rms=0.001557 Jy/beam
! Combined flux in latest and established models = 0.964279 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 56 components and 0.964279 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187442Jy  sigma=0.001225
! Fit after  self-cal, rms=0.187751Jy  sigma=0.001224
! 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.187751Jy  sigma=0.001224
! Fit after  self-cal, rms=0.188253Jy  sigma=0.001224
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.592 mas, bmaj=7.059 mas, bpa=-7.042 degrees
! Estimated noise=1105.89 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00294403 Jy
! Component: 100  -  total flux cleaned = -0.00307296 Jy
! Component: 150  -  total flux cleaned = -0.00328085 Jy
! Component: 200  -  total flux cleaned = -0.00328188 Jy
! Total flux subtracted in 200 components = -0.00328188 Jy
! Clean residual min=-0.006294 max=0.005070 Jy/beam
! Clean residual mean=-0.000193 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 0.960997 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 0.960997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188120Jy  sigma=0.001222
! Fit after  self-cal, rms=0.188189Jy  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 = -2.12428e-05 Jy
! Component: 100  -  total flux cleaned = 0.000115666 Jy
! Component: 150  -  total flux cleaned = 0.000238237 Jy
! Component: 200  -  total flux cleaned = 0.000292402 Jy
! Total flux subtracted in 200 components = 0.000292402 Jy
! Clean residual min=-0.006175 max=0.004996 Jy/beam
! Clean residual mean=-0.000194 rms=0.001448 Jy/beam
! Combined flux in latest and established models = 0.96129 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 69 components and 0.96129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188150Jy  sigma=0.001222
! Fit after  self-cal, rms=0.188148Jy  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.188148Jy  sigma=0.001222
! Fit after  self-cal, rms=0.188395Jy  sigma=0.001221
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.595 mas, bmaj=7.066 mas, bpa=-6.997 degrees
! Estimated noise=1105.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00250251 Jy
! Component: 100  -  total flux cleaned = -0.00249632 Jy
! Component: 150  -  total flux cleaned = -0.00242708 Jy
! Component: 200  -  total flux cleaned = -0.00236577 Jy
! Total flux subtracted in 200 components = -0.00236577 Jy
! Clean residual min=-0.006157 max=0.004971 Jy/beam
! Clean residual mean=-0.000127 rms=0.001406 Jy/beam
! Combined flux in latest and established models = 0.958924 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 72 components and 0.958924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188336Jy  sigma=0.001221
! Fit after  self-cal, rms=0.188375Jy  sigma=0.001221
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 = -1.62093e-05 Jy
! Component: 100  -  total flux cleaned = 0.000129057 Jy
! Component: 150  -  total flux cleaned = 0.00017379 Jy
! Component: 200  -  total flux cleaned = 0.000214319 Jy
! Total flux subtracted in 200 components = 0.000214319 Jy
! Clean residual min=-0.006063 max=0.004932 Jy/beam
! Clean residual mean=-0.000128 rms=0.001393 Jy/beam
! Combined flux in latest and established models = 0.959138 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 77 components and 0.959138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188356Jy  sigma=0.001220
! Fit after  self-cal, rms=0.188355Jy  sigma=0.001220
! 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.188355Jy  sigma=0.001220
! Fit after  self-cal, rms=0.188499Jy  sigma=0.001220
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.198 mas, bmaj=14.87 mas, bpa=-0.9196 degrees
! Estimated noise=1480.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00143812 Jy
! Component: 100  -  total flux cleaned = -0.00147437 Jy
! Component: 150  -  total flux cleaned = -0.00147896 Jy
! Component: 200  -  total flux cleaned = -0.00147793 Jy
! Total flux subtracted in 200 components = -0.00147793 Jy
! Clean residual min=-0.007088 max=0.006532 Jy/beam
! Clean residual mean=-0.000212 rms=0.002180 Jy/beam
! Combined flux in latest and established models = 0.95766 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 90 components and 0.95766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188492Jy  sigma=0.001220
! Fit after  self-cal, rms=0.188506Jy  sigma=0.001220
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.000129794 Jy
! Component: 100  -  total flux cleaned = -8.8969e-05 Jy
! Component: 150  -  total flux cleaned = -6.95948e-05 Jy
! Component: 200  -  total flux cleaned = -5.2342e-05 Jy
! Total flux subtracted in 200 components = -5.2342e-05 Jy
! Clean residual min=-0.007039 max=0.006542 Jy/beam
! Clean residual mean=-0.000212 rms=0.002180 Jy/beam
! Combined flux in latest and established models = 0.957608 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 95 components and 0.957608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188505Jy  sigma=0.001220
! Fit after  self-cal, rms=0.188502Jy  sigma=0.001220
! 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.597 mas, bmaj=7.07 mas, bpa=-6.966 degrees
! Estimated noise=1105.92 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.597 x 7.07 at -6.966 degrees (North through East)
! Clean map  min=-0.0055641  max=0.89805 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.188502Jy  sigma=0.001220
! Fit after  self-cal, rms=0.246629Jy  sigma=0.001134
! Inverting map and beam 
! Estimated beam: bmin=2.599 mas, bmaj=7.068 mas, bpa=-6.984 degrees
! Estimated noise=1104.68 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00161592 Jy
! Component: 100  -  total flux cleaned = -0.00176428 Jy
! Component: 150  -  total flux cleaned = -0.00188456 Jy
! Component: 200  -  total flux cleaned = -0.00202427 Jy
! Total flux subtracted in 200 components = -0.00202427 Jy
! Clean residual min=-0.005830 max=0.004856 Jy/beam
! Clean residual mean=-0.000069 rms=0.001323 Jy/beam
! Combined flux in latest and established models = 0.955584 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 99 components and 0.955584 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246582Jy  sigma=0.001134
! Fit after  self-cal, rms=0.246586Jy  sigma=0.001134
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000149705 Jy
! Component: 100  -  total flux cleaned = -0.000242355 Jy
! Component: 150  -  total flux cleaned = -0.000269482 Jy
! Component: 200  -  total flux cleaned = -0.000296331 Jy
! Total flux subtracted in 200 components = -0.000296331 Jy
! Clean residual min=-0.005734 max=0.004820 Jy/beam
! Clean residual mean=-0.000067 rms=0.001317 Jy/beam
! Combined flux in latest and established models = 0.955287 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 102 components and 0.955287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246566Jy  sigma=0.001134
! Fit after  self-cal, rms=0.246567Jy  sigma=0.001134
! 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.246567Jy  sigma=0.001134
! Fit after  self-cal, rms=0.348726Jy  sigma=0.001134
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.285 mas, bmaj=5.408 mas, bpa=-3.979 degrees
! Estimated noise=1646.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.698665 Jy
! Component: 100  -  total flux cleaned = 0.854644 Jy
! Component: 150  -  total flux cleaned = 0.900911 Jy
! Component: 200  -  total flux cleaned = 0.922766 Jy
! Total flux subtracted in 200 components = 0.922766 Jy
! Clean residual min=-0.009228 max=0.012239 Jy/beam
! Clean residual mean=-0.000022 rms=0.002307 Jy/beam
! Combined flux in latest and established models = 0.922766 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.922766 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.6 mas, bmaj=7.07 mas, bpa=-6.971 degrees
! Estimated noise=1104.62 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.0140224 Jy
! Component: 100  -  total flux cleaned = 0.0216105 Jy
! Component: 150  -  total flux cleaned = 0.026269 Jy
! Component: 200  -  total flux cleaned = 0.0277421 Jy
! Total flux subtracted in 200 components = 0.0277421 Jy
! Clean residual min=-0.005510 max=0.005015 Jy/beam
! Clean residual mean=-0.000018 rms=0.001397 Jy/beam
! Combined flux in latest and established models = 0.950508 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 36 components and 0.950508 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.203 mas, bmaj=14.89 mas, bpa=-0.9397 degrees
! Estimated noise=1476.53 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00217903 Jy
! Component: 100  -  total flux cleaned = 0.00250024 Jy
! Component: 150  -  total flux cleaned = 0.00275881 Jy
! Component: 200  -  total flux cleaned = 0.00296912 Jy
! Total flux subtracted in 200 components = 0.00296912 Jy
! Clean residual min=-0.006639 max=0.006522 Jy/beam
! Clean residual mean=-0.000079 rms=0.002046 Jy/beam
! Combined flux in latest and established models = 0.953477 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.000169912 Jy
! Component: 100  -  total flux cleaned = 0.000307938 Jy
! Component: 150  -  total flux cleaned = 0.000422777 Jy
! Component: 200  -  total flux cleaned = 0.000500428 Jy
! Total flux subtracted in 200 components = 0.000500428 Jy
! Clean residual min=-0.006629 max=0.006530 Jy/beam
! Clean residual mean=-0.000086 rms=0.002044 Jy/beam
! Combined flux in latest and established models = 0.953978 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 53 components and 0.953978 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.6 mas, bmaj=7.07 mas, bpa=-6.971 degrees
! Estimated noise=1104.62 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000497013 Jy
! Component: 100  -  total flux cleaned = 0.000394447 Jy
! Component: 150  -  total flux cleaned = 0.000202467 Jy
! Component: 200  -  total flux cleaned = -5.77718e-05 Jy
! Total flux subtracted in 200 components = -5.77718e-05 Jy
! Clean residual min=-0.005435 max=0.005166 Jy/beam
! Clean residual mean=-0.000035 rms=0.001353 Jy/beam
! Combined flux in latest and established models = 0.95392 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 59 components and 0.95392 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349536Jy  sigma=0.001135
! Fit after  self-cal, rms=0.349568Jy  sigma=0.001135
wmodel J1127-1857_S_2001_04_09_pus_map.mod
! Writing 59 model components to file: J1127-1857_S_2001_04_09_pus_map.mod
wobs J1127-1857_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1127-1857_S_2001_04_09_pus_uvs.fits
wwins J1127-1857_S_2001_04_09_pus_map.win
! wwins: Wrote 2 windows to J1127-1857_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.00110325 Jy
! Component: 100  -  total flux cleaned = -0.00118379 Jy
! Component: 150  -  total flux cleaned = -0.00211325 Jy
! Component: 200  -  total flux cleaned = -0.00270585 Jy
! Component: 250  -  total flux cleaned = -0.00320614 Jy
! Component: 300  -  total flux cleaned = -0.00355242 Jy
! Component: 350  -  total flux cleaned = -0.00375336 Jy
! Component: 400  -  total flux cleaned = -0.00401505 Jy
! Component: 450  -  total flux cleaned = -0.00414242 Jy
! Component: 500  -  total flux cleaned = -0.00426689 Jy
! Component: 550  -  total flux cleaned = -0.00438723 Jy
! Component: 600  -  total flux cleaned = -0.00438689 Jy
! Component: 650  -  total flux cleaned = -0.00427098 Jy
! Component: 700  -  total flux cleaned = -0.00432828 Jy
! Component: 750  -  total flux cleaned = -0.00421578 Jy
! Component: 800  -  total flux cleaned = -0.00427053 Jy
! Component: 850  -  total flux cleaned = -0.0041622 Jy
! Component: 900  -  total flux cleaned = -0.00421602 Jy
! Component: 950  -  total flux cleaned = -0.00421643 Jy
! Component: 1000  -  total flux cleaned = -0.00416408 Jy
! Component: 1050  -  total flux cleaned = -0.00411274 Jy
! Component: 1100  -  total flux cleaned = -0.00406216 Jy
! Component: 1150  -  total flux cleaned = -0.00391269 Jy
! Component: 1200  -  total flux cleaned = -0.00391272 Jy
! Component: 1250  -  total flux cleaned = -0.0038151 Jy
! Component: 1300  -  total flux cleaned = -0.00376742 Jy
! Component: 1350  -  total flux cleaned = -0.00367293 Jy
! Component: 1400  -  total flux cleaned = -0.00376649 Jy
! Component: 1450  -  total flux cleaned = -0.0036732 Jy
! Component: 1500  -  total flux cleaned = -0.00353621 Jy
! Component: 1550  -  total flux cleaned = -0.00353662 Jy
! Component: 1600  -  total flux cleaned = -0.00353671 Jy
! Component: 1650  -  total flux cleaned = -0.00358114 Jy
! Component: 1700  -  total flux cleaned = -0.00349384 Jy
! Component: 1750  -  total flux cleaned = -0.00349405 Jy
! Component: 1800  -  total flux cleaned = -0.00357937 Jy
! Component: 1850  -  total flux cleaned = -0.00349487 Jy
! Component: 1900  -  total flux cleaned = -0.00345383 Jy
! Component: 1950  -  total flux cleaned = -0.00353663 Jy
! Component: 2000  -  total flux cleaned = -0.00357735 Jy
! Total flux subtracted in 2048 components = -0.00357723 Jy
! Clean residual min=-0.002099 max=0.002081 Jy/beam
! Clean residual mean=-0.000012 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.950343 Jy
keep
! Adding 134 model components to the UV plane model.
! The established model now contains 193 components and 0.950343 Jy
![Exited script file: muppet]
wmap "J1127-1857_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.6 x 7.07 at -6.971 degrees (North through East)
! Clean map  min=-0.0043376  max=0.90022 Jy/beam
! Writing clean map to FITS file: J1127-1857_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 0.900218 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000808238 
device "J1127-1857_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1127-1857_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.269347 0.269347 0.538695 1.07739 2.15478 4.30956 8.61912 17.2382 34.4765 68.953
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0024 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.9 
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.6 x 7.07 at -6.971 degrees (North through East)
! Clean map  min=-0.0043376  max=0.90022 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1127-1857_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1127-1857_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1127-1857_S_2001_04_09_pus_uvs.log closed on Mon Oct  8 13:09:04 2007