! Started logfile: J1127-1857_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:20:12 2008
obs J1127-1857_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1127-1857_S_2001_10_29_pus_uva.fits
! AN table 1: 102 integrations on 153 of 153 possible baselines.
! AN table 2: 67 integrations on 153 of 153 possible baselines.
! AN table 3: 10 integrations on 153 of 153 possible baselines.
! AN table 4: 167 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.162076 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 2604 lines of history.
! 
! Reading 34320 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_10_29_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 1345 telescope corrections were flagged in sub-array 1.
!  A total of 912 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 1498 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1345 telescope corrections were flagged in sub-array 1.
!  A total of 912 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 1498 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1345 telescope corrections were flagged in sub-array 1.
!  A total of 912 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 1498 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1345 telescope corrections were flagged in sub-array 1.
!  A total of 969 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 1498 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.861151Jy  sigma=0.006632
! Fit after  self-cal, rms=0.266478Jy  sigma=0.001812
! 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=1.961 mas, bmaj=4.716 mas, bpa=16.06 degrees
! Estimated noise=1264.38 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.640946 Jy
! Component: 100  -  total flux cleaned = 0.78551 Jy
! Total flux subtracted in 100 components = 0.78551 Jy
! Clean residual min=-0.016395 max=0.048051 Jy/beam
! Clean residual mean=0.000096 rms=0.004936 Jy/beam
! Combined flux in latest and established models = 0.785511 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.785511 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230768Jy  sigma=0.001603
! Fit after  self-cal, rms=0.230770Jy  sigma=0.001603
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0446291 Jy
! Component: 100  -  total flux cleaned = 0.0623767 Jy
! Total flux subtracted in 100 components = 0.0623767 Jy
! Clean residual min=-0.015794 max=0.016373 Jy/beam
! Clean residual mean=-0.000026 rms=0.003821 Jy/beam
! Combined flux in latest and established models = 0.847887 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 14 components and 0.847887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217863Jy  sigma=0.001469
! Fit after  self-cal, rms=0.217864Jy  sigma=0.001469
! 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.749 mas, bmaj=6.393 mas, bpa=10.86 degrees
! Estimated noise=504.833 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.025841 Jy
! Component: 100  -  total flux cleaned = 0.0360639 Jy
! Component: 150  -  total flux cleaned = 0.0412853 Jy
! Component: 200  -  total flux cleaned = 0.0442119 Jy
! Total flux subtracted in 200 components = 0.0442119 Jy
! Clean residual min=-0.007691 max=0.013264 Jy/beam
! Clean residual mean=-0.000446 rms=0.002815 Jy/beam
! Combined flux in latest and established models = 0.892099 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 27 components and 0.892099 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215786Jy  sigma=0.001441
! Fit after  self-cal, rms=0.215777Jy  sigma=0.001440
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00*    GG        1.00*    HH        0.97     
!   HN        0.98     KK        0.99     KP        0.97     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.99     
!   OV        1.04     PT        1.02     SC        0.91     TS        0.98     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.11     FD        1.00*    GG        1.00*    HH        0.97     
!   HN        0.96     KK        1.00*    KP        0.86     LA        1.01     
!   MA        1.11     MC        1.01     MK        1.00*    NL        1.00     
!   OV        1.07     PT        1.03     SC        0.97     TS        1.00*    
!   WF        0.95     WZ        0.93     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.43     KK        0.97     KP        0.94     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.97     
!   OV        0.99     PT        0.98     SC        0.99     TS        1.00*    
!   WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        1.00*    GG        1.00*    HH        1.01     
!   HN        0.95     KK        1.00     KP        0.99     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.99     
!   OV        1.07     PT        1.01     SC        0.94     TS        1.00     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.21     FD        1.00*    GG        1.00*    HH        0.93     
!   HN        1.00     KK        1.00*    KP        1.99     LA        0.99     
!   MA        0.96     MC        0.93     MK        1.00*    NL        1.02     
!   OV        1.12     PT        1.02     SC        0.97     TS        1.00*    
!   WF        0.94     WZ        1.03     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.96     KP        1.02     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.95     
!   OV        1.02     PT        0.97     SC        0.99     TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.04     
!   HN        0.99     KK        0.96     KP        1.02     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.00     
!   OV        1.07     PT        1.04     SC        0.95     TS        1.00     
!   WF        0.91     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.22     FD        1.00*    GG        1.00*    HH        1.06     
!   HN        1.01     KK        1.00*    KP        1.06     LA        1.06     
!   MA        1.04     MC        1.01     MK        1.00*    NL        1.05     
!   OV        1.12     PT        1.08     SC        0.96     TS        1.00*    
!   WF        1.22     WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.02     KP        0.99     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.98     
!   OV        1.01     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.14     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.00*    GG        1.00*    HH        0.98     
!   HN        0.97     KK        0.94     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.07     
!   OV        1.06     PT        1.01     SC        0.96     TS        1.01     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.16     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.03     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   OV        1.08     PT        0.89     SC        1.00     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.01     KP        0.98     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.00     
!   OV        0.99     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.215777Jy  sigma=0.001440
! Fit after  self-cal, rms=0.219475Jy  sigma=0.001353
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.763 mas, bmaj=6.507 mas, bpa=10.27 degrees
! Estimated noise=506.305 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.000299059 Jy
! Component: 100  -  total flux cleaned = -0.000295732 Jy
! Component: 150  -  total flux cleaned = -0.000387241 Jy
! Component: 200  -  total flux cleaned = -0.000428434 Jy
! Total flux subtracted in 200 components = -0.000428434 Jy
! Clean residual min=-0.003733 max=0.002938 Jy/beam
! Clean residual mean=-0.000313 rms=0.000858 Jy/beam
! Combined flux in latest and established models = 0.891671 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 35 components and 0.891671 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219444Jy  sigma=0.001353
! Fit after  self-cal, rms=0.219630Jy  sigma=0.001353
! 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.219630Jy  sigma=0.001353
! Fit after  self-cal, rms=0.219777Jy  sigma=0.001350
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.765 mas, bmaj=6.51 mas, bpa=10.25 degrees
! Estimated noise=506.616 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000183045 Jy
! Component: 100  -  total flux cleaned = -8.64873e-05 Jy
! Component: 150  -  total flux cleaned = -0.000128226 Jy
! Component: 200  -  total flux cleaned = -0.000162486 Jy
! Total flux subtracted in 200 components = -0.000162486 Jy
! Clean residual min=-0.003064 max=0.002954 Jy/beam
! Clean residual mean=-0.000062 rms=0.000742 Jy/beam
! Combined flux in latest and established models = 0.891508 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 35 components and 0.891508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219752Jy  sigma=0.001350
! Fit after  self-cal, rms=0.219755Jy  sigma=0.001350
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.000113594 Jy
! Component: 100  -  total flux cleaned = -0.000236732 Jy
! Component: 150  -  total flux cleaned = -0.000290258 Jy
! Component: 200  -  total flux cleaned = -0.000362894 Jy
! Total flux subtracted in 200 components = -0.000362894 Jy
! Clean residual min=-0.002989 max=0.002939 Jy/beam
! Clean residual mean=-0.000058 rms=0.000727 Jy/beam
! Combined flux in latest and established models = 0.891145 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 37 components and 0.891145 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219745Jy  sigma=0.001350
! Fit after  self-cal, rms=0.219744Jy  sigma=0.001350
! 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.219744Jy  sigma=0.001350
! Fit after  self-cal, rms=0.220558Jy  sigma=0.001348
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.766 mas, bmaj=6.513 mas, bpa=10.22 degrees
! Estimated noise=507.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000421901 Jy
! Component: 100  -  total flux cleaned = 0.000504017 Jy
! Component: 150  -  total flux cleaned = 0.000471447 Jy
! Component: 200  -  total flux cleaned = 0.000442176 Jy
! Total flux subtracted in 200 components = 0.000442176 Jy
! Clean residual min=-0.003148 max=0.002992 Jy/beam
! Clean residual mean=-0.000030 rms=0.000730 Jy/beam
! Combined flux in latest and established models = 0.891588 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 39 components and 0.891587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220540Jy  sigma=0.001348
! Fit after  self-cal, rms=0.220547Jy  sigma=0.001348
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.72832e-05 Jy
! Component: 100  -  total flux cleaned = -0.000144638 Jy
! Component: 150  -  total flux cleaned = -0.000214334 Jy
! Component: 200  -  total flux cleaned = -0.000256552 Jy
! Total flux subtracted in 200 components = -0.000256552 Jy
! Clean residual min=-0.003109 max=0.003010 Jy/beam
! Clean residual mean=-0.000028 rms=0.000720 Jy/beam
! Combined flux in latest and established models = 0.891331 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 40 components and 0.891331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220538Jy  sigma=0.001348
! Fit after  self-cal, rms=0.220538Jy  sigma=0.001348
! 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.220538Jy  sigma=0.001348
! Fit after  self-cal, rms=0.220674Jy  sigma=0.001347
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.023 mas, bmaj=15.53 mas, bpa=4.952 degrees
! Estimated noise=644.636 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 9.56939e-05 Jy
! Component: 100  -  total flux cleaned = 9.64819e-05 Jy
! Component: 150  -  total flux cleaned = 8.55044e-05 Jy
! Component: 200  -  total flux cleaned = 6.52331e-05 Jy
! Total flux subtracted in 200 components = 6.52331e-05 Jy
! Clean residual min=-0.002601 max=0.002512 Jy/beam
! Clean residual mean=-0.000035 rms=0.000842 Jy/beam
! Combined flux in latest and established models = 0.891396 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 41 components and 0.891396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220668Jy  sigma=0.001347
! Fit after  self-cal, rms=0.220670Jy  sigma=0.001347
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 = -5.62194e-05 Jy
! Component: 100  -  total flux cleaned = -6.55922e-05 Jy
! Component: 150  -  total flux cleaned = -8.37069e-05 Jy
! Component: 200  -  total flux cleaned = -0.000101063 Jy
! Total flux subtracted in 200 components = -0.000101063 Jy
! Clean residual min=-0.002610 max=0.002547 Jy/beam
! Clean residual mean=-0.000033 rms=0.000844 Jy/beam
! Combined flux in latest and established models = 0.891295 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 41 components and 0.891295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220667Jy  sigma=0.001347
! Fit after  self-cal, rms=0.220667Jy  sigma=0.001347
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.767 mas, bmaj=6.514 mas, bpa=10.21 degrees
! Estimated noise=507.665 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.767 x 6.514 at 10.21 degrees (North through East)
! Clean map  min=-0.0028135  max=0.85117 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.220667Jy  sigma=0.001347
! Fit after  self-cal, rms=0.210072Jy  sigma=0.001179
! Inverting map and beam 
! Estimated beam: bmin=2.768 mas, bmaj=6.516 mas, bpa=10.18 degrees
! Estimated noise=507.444 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00016251 Jy
! Component: 100  -  total flux cleaned = -0.000192198 Jy
! Component: 150  -  total flux cleaned = -0.000205367 Jy
! Component: 200  -  total flux cleaned = -0.000229418 Jy
! Total flux subtracted in 200 components = -0.000229418 Jy
! Clean residual min=-0.002436 max=0.002694 Jy/beam
! Clean residual mean=0.000053 rms=0.000639 Jy/beam
! Combined flux in latest and established models = 0.891066 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 44 components and 0.891066 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210070Jy  sigma=0.001179
! Fit after  self-cal, rms=0.210070Jy  sigma=0.001179
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.47547e-06 Jy
! Component: 100  -  total flux cleaned = -1.98596e-05 Jy
! Component: 150  -  total flux cleaned = -5.14709e-05 Jy
! Component: 200  -  total flux cleaned = -7.03242e-05 Jy
! Total flux subtracted in 200 components = -7.03242e-05 Jy
! Clean residual min=-0.002439 max=0.002690 Jy/beam
! Clean residual mean=0.000053 rms=0.000638 Jy/beam
! Combined flux in latest and established models = 0.890995 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 45 components and 0.890996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210070Jy  sigma=0.001179
! Fit after  self-cal, rms=0.210069Jy  sigma=0.001179
! 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.210069Jy  sigma=0.001179
! Fit after  self-cal, rms=0.210159Jy  sigma=0.001179
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=1.962 mas, bmaj=4.694 mas, bpa=16.24 degrees
! Estimated noise=1307.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.65535 Jy
! Component: 100  -  total flux cleaned = 0.80448 Jy
! Component: 150  -  total flux cleaned = 0.849991 Jy
! Component: 200  -  total flux cleaned = 0.868148 Jy
! Total flux subtracted in 200 components = 0.868148 Jy
! Clean residual min=-0.006233 max=0.008275 Jy/beam
! Clean residual mean=0.000049 rms=0.001655 Jy/beam
! Combined flux in latest and established models = 0.868149 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.868149 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.768 mas, bmaj=6.516 mas, bpa=10.18 degrees
! Estimated noise=507.464 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.0129711 Jy
! Component: 100  -  total flux cleaned = 0.0185686 Jy
! Component: 150  -  total flux cleaned = 0.0213103 Jy
! Component: 200  -  total flux cleaned = 0.0221834 Jy
! Total flux subtracted in 200 components = 0.0221834 Jy
! Clean residual min=-0.002272 max=0.002738 Jy/beam
! Clean residual mean=0.000062 rms=0.000669 Jy/beam
! Combined flux in latest and established models = 0.890332 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 37 components and 0.890332 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.02 mas, bmaj=15.54 mas, bpa=4.929 degrees
! Estimated noise=644.428 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000514511 Jy
! Component: 100  -  total flux cleaned = 0.000541365 Jy
! Component: 150  -  total flux cleaned = 0.000560503 Jy
! Component: 200  -  total flux cleaned = 0.000575326 Jy
! Total flux subtracted in 200 components = 0.000575326 Jy
! Clean residual min=-0.002319 max=0.002784 Jy/beam
! Clean residual mean=0.000129 rms=0.000865 Jy/beam
! Combined flux in latest and established models = 0.890907 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.27567e-05 Jy
! Component: 100  -  total flux cleaned = 2.31496e-05 Jy
! Component: 150  -  total flux cleaned = 2.29373e-05 Jy
! Component: 200  -  total flux cleaned = 2.24483e-05 Jy
! Total flux subtracted in 200 components = 2.24483e-05 Jy
! Clean residual min=-0.002324 max=0.002811 Jy/beam
! Clean residual mean=0.000129 rms=0.000859 Jy/beam
! Combined flux in latest and established models = 0.89093 Jy
! Adding 11 model components to the UV plane model.
! The established model now contains 44 components and 0.89093 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.768 mas, bmaj=6.516 mas, bpa=10.18 degrees
! Estimated noise=507.464 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000265772 Jy
! Component: 100  -  total flux cleaned = 0.000213334 Jy
! Component: 150  -  total flux cleaned = 0.00023682 Jy
! Component: 200  -  total flux cleaned = 0.000257055 Jy
! Total flux subtracted in 200 components = 0.000257055 Jy
! Clean residual min=-0.002293 max=0.002687 Jy/beam
! Clean residual mean=0.000052 rms=0.000647 Jy/beam
! Combined flux in latest and established models = 0.891187 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 52 components and 0.891187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210166Jy  sigma=0.001179
! Fit after  self-cal, rms=0.210163Jy  sigma=0.001179
wmodel J1127-1857_S_2001_10_29_pus_map.mod
! Writing 52 model components to file: J1127-1857_S_2001_10_29_pus_map.mod
wobs J1127-1857_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1127-1857_S_2001_10_29_pus_uvs.fits
wwins J1127-1857_S_2001_10_29_pus_map.win
! wwins: Wrote 1 windows to J1127-1857_S_2001_10_29_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.000833253 Jy
! Component: 100  -  total flux cleaned = 0.00103445 Jy
! Component: 150  -  total flux cleaned = 0.000997775 Jy
! Component: 200  -  total flux cleaned = 0.000891037 Jy
! Component: 250  -  total flux cleaned = 0.000858181 Jy
! Component: 300  -  total flux cleaned = 0.000924406 Jy
! Component: 350  -  total flux cleaned = 0.00079598 Jy
! Component: 400  -  total flux cleaned = 0.000733973 Jy
! Component: 450  -  total flux cleaned = 0.000673246 Jy
! Component: 500  -  total flux cleaned = 0.000614727 Jy
! Component: 550  -  total flux cleaned = 0.000557296 Jy
! Component: 600  -  total flux cleaned = 0.000500851 Jy
! Component: 650  -  total flux cleaned = 0.000500549 Jy
! Component: 700  -  total flux cleaned = 0.000554223 Jy
! Component: 750  -  total flux cleaned = 0.000527453 Jy
! Component: 800  -  total flux cleaned = 0.000527307 Jy
! Component: 850  -  total flux cleaned = 0.000578432 Jy
! Component: 900  -  total flux cleaned = 0.000628542 Jy
! Component: 950  -  total flux cleaned = 0.000677629 Jy
! Component: 1000  -  total flux cleaned = 0.000726049 Jy
! Component: 1050  -  total flux cleaned = 0.000726118 Jy
! Component: 1100  -  total flux cleaned = 0.000796669 Jy
! Component: 1150  -  total flux cleaned = 0.000866225 Jy
! Component: 1200  -  total flux cleaned = 0.000911813 Jy
! Component: 1250  -  total flux cleaned = 0.000979018 Jy
! Component: 1300  -  total flux cleaned = 0.000979134 Jy
! Component: 1350  -  total flux cleaned = 0.00106643 Jy
! Component: 1400  -  total flux cleaned = 0.00115225 Jy
! Component: 1450  -  total flux cleaned = 0.00129999 Jy
! Component: 1500  -  total flux cleaned = 0.0013831 Jy
! Component: 1550  -  total flux cleaned = 0.00150667 Jy
! Component: 1600  -  total flux cleaned = 0.00162891 Jy
! Component: 1650  -  total flux cleaned = 0.00174977 Jy
! Component: 1700  -  total flux cleaned = 0.00184928 Jy
! Component: 1750  -  total flux cleaned = 0.00196742 Jy
! Component: 1800  -  total flux cleaned = 0.0020648 Jy
! Component: 1850  -  total flux cleaned = 0.00210336 Jy
! Component: 1900  -  total flux cleaned = 0.0022177 Jy
! Component: 1950  -  total flux cleaned = 0.0022743 Jy
! Component: 2000  -  total flux cleaned = 0.00238597 Jy
! Total flux subtracted in 2048 components = 0.0023858 Jy
! Clean residual min=-0.001016 max=0.001014 Jy/beam
! Clean residual mean=0.000028 rms=0.000343 Jy/beam
! Combined flux in latest and established models = 0.893573 Jy
keep
! Adding 115 model components to the UV plane model.
! The established model now contains 167 components and 0.893572 Jy
![Exited script file: muppet]
wmap "J1127-1857_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.768 x 6.516 at 10.18 degrees (North through East)
! Clean map  min=-0.0018606  max=0.85175 Jy/beam
! Writing clean map to FITS file: J1127-1857_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.851755 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000335829 
device "J1127-1857_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1127-1857_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.118284 0.118284 0.236568 0.473135 0.94627 1.89254 3.78508 7.57016 15.1403 30.2806 60.5613
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.851 
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.768 x 6.516 at 10.18 degrees (North through East)
! Clean map  min=-0.0018606  max=0.85175 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1127-1857_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1127-1857_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1127-1857_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:20:26 2008