! Started logfile: J1127-1857_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:05:33 2007
obs J1127-1857_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1127-1857_S_2001_07_05_pus_uva.fits
! AN table 1: 100 integrations on 171 of 171 possible baselines.
! AN table 2: 36 integrations on 171 of 171 possible baselines.
! AN table 3: 40 integrations on 171 of 171 possible baselines.
! AN table 4: 21 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.105115 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1127-1857
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 1774 lines of history.
! 
! Reading 14164 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 
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 1391 telescope corrections were flagged in sub-array 1.
!  A total of 537 telescope corrections were flagged in sub-array 2.
!  A total of 733 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1391 telescope corrections were flagged in sub-array 1.
!  A total of 537 telescope corrections were flagged in sub-array 2.
!  A total of 733 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1391 telescope corrections were flagged in sub-array 1.
!  A total of 537 telescope corrections were flagged in sub-array 2.
!  A total of 733 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1391 telescope corrections were flagged in sub-array 1.
!  A total of 537 telescope corrections were flagged in sub-array 2.
!  A total of 733 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.865969Jy  sigma=0.005604
! Fit after  self-cal, rms=0.293707Jy  sigma=0.001833
! 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.972 mas, bmaj=4.232 mas, bpa=10.24 degrees
! Estimated noise=1387.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)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.65343 Jy
! Component: 100  -  total flux cleaned = 0.809894 Jy
! Total flux subtracted in 100 components = 0.809894 Jy
! Clean residual min=-0.033458 max=0.061347 Jy/beam
! Clean residual mean=0.000038 rms=0.007951 Jy/beam
! Combined flux in latest and established models = 0.809894 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.809894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257267Jy  sigma=0.001648
! Fit after  self-cal, rms=0.257294Jy  sigma=0.001648
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0657068 Jy
! Component: 100  -  total flux cleaned = 0.100414 Jy
! Total flux subtracted in 100 components = 0.100414 Jy
! Clean residual min=-0.032195 max=0.026461 Jy/beam
! Clean residual mean=-0.000055 rms=0.006544 Jy/beam
! Combined flux in latest and established models = 0.910308 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 14 components and 0.910308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245224Jy  sigma=0.001531
! Fit after  self-cal, rms=0.245200Jy  sigma=0.001530
! 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.543 mas, bmaj=5.221 mas, bpa=13.59 degrees
! Estimated noise=861.996 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.0011334 Jy
! Component: 100  -  total flux cleaned = -0.00176467 Jy
! Component: 150  -  total flux cleaned = -0.00224796 Jy
! Component: 200  -  total flux cleaned = -0.00267019 Jy
! Total flux subtracted in 200 components = -0.00267019 Jy
! Clean residual min=-0.021998 max=0.019331 Jy/beam
! Clean residual mean=0.000211 rms=0.005617 Jy/beam
! Combined flux in latest and established models = 0.907638 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 21 components and 0.907638 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245043Jy  sigma=0.001527
! Fit after  self-cal, rms=0.245033Jy  sigma=0.001527
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        0.96     HN        0.84     KK        0.92     KP        1.12     
!   LA        1.07     MC        1.01     MK        0.96     NL        1.04     
!   NY        1.00*    OV        0.97     PT        1.05     SC        0.89     
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.88     KK        1.00*    KP        0.97     
!   LA        0.97     MC        1.00*    MK        1.01     NL        0.93     
!   NY        1.00*    OV        0.94     PT        0.91     SC        0.90     
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.96     KP        0.95     
!   LA        0.99     MC        1.00*    MK        0.92     NL        0.97     
!   NY        1.00*    OV        0.99     PT        0.97     SC        0.96     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.01     HN        0.85     KK        0.90     KP        1.32     
!   LA        1.09     MC        1.19     MK        0.92     NL        1.04     
!   NY        1.00*    OV        0.98     PT        1.10     SC        0.91     
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.89     KK        1.00*    KP        0.98     
!   LA        0.92     MC        1.00*    MK        0.99     NL        0.92     
!   NY        1.00*    OV        0.97     PT        0.94     SC        0.92     
!   TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.96     KP        0.92     
!   LA        0.96     MC        1.00*    MK        0.95     NL        0.94     
!   NY        1.00*    OV        1.01     PT        0.99     SC        1.00     
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        0.97     HN        0.91     KK        0.93     KP        1.18     
!   LA        1.13     MC        2.54     MK        0.93     NL        1.09     
!   NY        1.00*    OV        0.96     PT        1.07     SC        0.92     
!   TS        1.00*    WF        1.28     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        0.96     
!   LA        0.98     MC        1.00*    MK        1.03     NL        1.02     
!   NY        1.00*    OV        1.00     PT        0.95     SC        0.91     
!   TS        1.00*    WF        1.28     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.14     KK        1.00     KP        1.02     
!   LA        0.99     MC        1.00*    MK        0.98     NL        0.97     
!   NY        1.00*    OV        1.00     PT        1.04     SC        0.97     
!   TS        1.00*    WF        1.31     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        0.95     HN        0.83     KK        0.92     KP        1.12     
!   LA        1.06     MC        1.71     MK        0.98     NL        1.03     
!   NY        1.00*    OV        1.00     PT        1.03     SC        0.92     
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.87     KK        1.00*    KP        0.98     
!   LA        0.97     MC        1.00*    MK        1.03     NL        0.96     
!   NY        1.00*    OV        0.91     PT        0.99     SC        0.93     
!   TS        1.00*    WF        0.96     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    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*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.99     KP        1.04     
!   LA        0.97     MC        1.00*    MK        0.96     NL        0.97     
!   NY        1.00*    OV        0.96     PT        1.24     SC        1.01     
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.245033Jy  sigma=0.001527
! Fit after  self-cal, rms=0.245714Jy  sigma=0.001312
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.582 mas, bmaj=5.388 mas, bpa=12.75 degrees
! Estimated noise=870.534 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.00107065 Jy
! Component: 100  -  total flux cleaned = -0.00120489 Jy
! Component: 150  -  total flux cleaned = -0.00120957 Jy
! Component: 200  -  total flux cleaned = -0.00120883 Jy
! Total flux subtracted in 200 components = -0.00120883 Jy
! Clean residual min=-0.005965 max=0.006931 Jy/beam
! Clean residual mean=0.000707 rms=0.001672 Jy/beam
! Combined flux in latest and established models = 0.906429 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 25 components and 0.906429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245574Jy  sigma=0.001311
! Fit after  self-cal, rms=0.246042Jy  sigma=0.001310
! 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.246042Jy  sigma=0.001310
! Fit after  self-cal, rms=0.246426Jy  sigma=0.001297
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.586 mas, bmaj=5.389 mas, bpa=12.81 degrees
! Estimated noise=869.947 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00134847 Jy
! Component: 100  -  total flux cleaned = -0.00146009 Jy
! Component: 150  -  total flux cleaned = -0.0015618 Jy
! Component: 200  -  total flux cleaned = -0.00166028 Jy
! Total flux subtracted in 200 components = -0.00166028 Jy
! Clean residual min=-0.004387 max=0.005098 Jy/beam
! Clean residual mean=0.000209 rms=0.001252 Jy/beam
! Combined flux in latest and established models = 0.904769 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 30 components and 0.904769 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246329Jy  sigma=0.001296
! Fit after  self-cal, rms=0.246355Jy  sigma=0.001296
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.53831e-05 Jy
! Component: 100  -  total flux cleaned = 0.000174501 Jy
! Component: 150  -  total flux cleaned = 0.000176576 Jy
! Component: 200  -  total flux cleaned = 0.000263064 Jy
! Total flux subtracted in 200 components = 0.000263064 Jy
! Clean residual min=-0.004211 max=0.004916 Jy/beam
! Clean residual mean=0.000208 rms=0.001234 Jy/beam
! Combined flux in latest and established models = 0.905032 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 30 components and 0.905032 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246285Jy  sigma=0.001296
! Fit after  self-cal, rms=0.246284Jy  sigma=0.001296
! 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.246284Jy  sigma=0.001296
! Fit after  self-cal, rms=0.247164Jy  sigma=0.001295
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.588 mas, bmaj=5.391 mas, bpa=12.85 degrees
! Estimated noise=869.744 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00094762 Jy
! Component: 100  -  total flux cleaned = -0.00104157 Jy
! Component: 150  -  total flux cleaned = -0.00112957 Jy
! Component: 200  -  total flux cleaned = -0.00113457 Jy
! Total flux subtracted in 200 components = -0.00113457 Jy
! Clean residual min=-0.004135 max=0.004869 Jy/beam
! Clean residual mean=0.000205 rms=0.001203 Jy/beam
! Combined flux in latest and established models = 0.903898 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 30 components and 0.903898 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247099Jy  sigma=0.001295
! Fit after  self-cal, rms=0.247106Jy  sigma=0.001295
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.6803e-05 Jy
! Component: 100  -  total flux cleaned = 0.000151247 Jy
! Component: 150  -  total flux cleaned = 0.000153636 Jy
! Component: 200  -  total flux cleaned = 0.000228303 Jy
! Total flux subtracted in 200 components = 0.000228303 Jy
! Clean residual min=-0.004113 max=0.004705 Jy/beam
! Clean residual mean=0.000203 rms=0.001190 Jy/beam
! Combined flux in latest and established models = 0.904126 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 31 components and 0.904126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247055Jy  sigma=0.001295
! Fit after  self-cal, rms=0.247055Jy  sigma=0.001295
! 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.247055Jy  sigma=0.001295
! Fit after  self-cal, rms=0.247705Jy  sigma=0.001294
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.123 mas, bmaj=13.93 mas, bpa=-4.735 degrees
! Estimated noise=1083.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000679349 Jy
! Component: 100  -  total flux cleaned = 0.000678316 Jy
! Component: 150  -  total flux cleaned = 0.00067868 Jy
! Component: 200  -  total flux cleaned = 0.000699261 Jy
! Total flux subtracted in 200 components = 0.000699261 Jy
! Clean residual min=-0.004096 max=0.005041 Jy/beam
! Clean residual mean=0.000394 rms=0.001357 Jy/beam
! Combined flux in latest and established models = 0.904825 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 33 components and 0.904825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247691Jy  sigma=0.001295
! Fit after  self-cal, rms=0.247696Jy  sigma=0.001294
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.000153518 Jy
! Component: 100  -  total flux cleaned = 0.00015343 Jy
! Component: 150  -  total flux cleaned = 0.000153938 Jy
! Component: 200  -  total flux cleaned = 0.000171514 Jy
! Total flux subtracted in 200 components = 0.000171514 Jy
! Clean residual min=-0.004109 max=0.005021 Jy/beam
! Clean residual mean=0.000389 rms=0.001355 Jy/beam
! Combined flux in latest and established models = 0.904997 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 34 components and 0.904997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247692Jy  sigma=0.001295
! Fit after  self-cal, rms=0.247690Jy  sigma=0.001295
! 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.59 mas, bmaj=5.391 mas, bpa=12.88 degrees
! Estimated noise=869.577 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.59 x 5.391 at 12.88 degrees (North through East)
! Clean map  min=-0.0037788  max=0.84266 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.247690Jy  sigma=0.001295
! Fit after  self-cal, rms=0.277159Jy  sigma=0.001200
! Inverting map and beam 
! Estimated beam: bmin=2.589 mas, bmaj=5.387 mas, bpa=12.82 degrees
! Estimated noise=868.707 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00118354 Jy
! Component: 100  -  total flux cleaned = -0.00133756 Jy
! Component: 150  -  total flux cleaned = -0.00133617 Jy
! Component: 200  -  total flux cleaned = -0.00133398 Jy
! Total flux subtracted in 200 components = -0.00133398 Jy
! Clean residual min=-0.004326 max=0.004540 Jy/beam
! Clean residual mean=0.000160 rms=0.001141 Jy/beam
! Combined flux in latest and established models = 0.903663 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 34 components and 0.903663 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277126Jy  sigma=0.001199
! Fit after  self-cal, rms=0.277129Jy  sigma=0.001199
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.83694e-06 Jy
! Component: 100  -  total flux cleaned = 6.1435e-06 Jy
! Component: 150  -  total flux cleaned = 8.83949e-06 Jy
! Component: 200  -  total flux cleaned = 6.89095e-06 Jy
! Total flux subtracted in 200 components = 6.89095e-06 Jy
! Clean residual min=-0.004249 max=0.004391 Jy/beam
! Clean residual mean=0.000161 rms=0.001134 Jy/beam
! Combined flux in latest and established models = 0.90367 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 35 components and 0.90367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277108Jy  sigma=0.001199
! Fit after  self-cal, rms=0.277111Jy  sigma=0.001199
! 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.277111Jy  sigma=0.001199
! Fit after  self-cal, rms=0.278745Jy  sigma=0.001199
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.024 mas, bmaj=4.64 mas, bpa=9.637 degrees
! Estimated noise=1406.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.656406 Jy
! Component: 100  -  total flux cleaned = 0.805579 Jy
! Component: 150  -  total flux cleaned = 0.852668 Jy
! Component: 200  -  total flux cleaned = 0.875074 Jy
! Total flux subtracted in 200 components = 0.875074 Jy
! Clean residual min=-0.008344 max=0.011026 Jy/beam
! Clean residual mean=0.000057 rms=0.002225 Jy/beam
! Combined flux in latest and established models = 0.875074 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.875075 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.589 mas, bmaj=5.387 mas, bpa=12.87 degrees
! Estimated noise=868.366 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.0158399 Jy
! Component: 100  -  total flux cleaned = 0.0228981 Jy
! Component: 150  -  total flux cleaned = 0.0263269 Jy
! Component: 200  -  total flux cleaned = 0.0277839 Jy
! Total flux subtracted in 200 components = 0.0277839 Jy
! Clean residual min=-0.003959 max=0.004346 Jy/beam
! Clean residual mean=0.000159 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 0.902858 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 31 components and 0.902858 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.124 mas, bmaj=13.93 mas, bpa=-4.783 degrees
! Estimated noise=1081.66 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00117398 Jy
! Component: 100  -  total flux cleaned = 0.00127397 Jy
! Component: 150  -  total flux cleaned = 0.00128397 Jy
! Component: 200  -  total flux cleaned = 0.00128363 Jy
! Total flux subtracted in 200 components = 0.00128363 Jy
! Clean residual min=-0.004039 max=0.004716 Jy/beam
! Clean residual mean=0.000310 rms=0.001290 Jy/beam
! Combined flux in latest and established models = 0.904142 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 = 1.19672e-06 Jy
! Component: 100  -  total flux cleaned = 2.05333e-06 Jy
! Component: 150  -  total flux cleaned = 3.07423e-06 Jy
! Component: 200  -  total flux cleaned = 3.62622e-06 Jy
! Total flux subtracted in 200 components = 3.62622e-06 Jy
! Clean residual min=-0.004036 max=0.004696 Jy/beam
! Clean residual mean=0.000310 rms=0.001288 Jy/beam
! Combined flux in latest and established models = 0.904146 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 38 components and 0.904146 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.589 mas, bmaj=5.387 mas, bpa=12.87 degrees
! Estimated noise=868.366 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000257146 Jy
! Component: 100  -  total flux cleaned = -0.000154594 Jy
! Component: 150  -  total flux cleaned = -6.21086e-05 Jy
! Component: 200  -  total flux cleaned = 2.48652e-05 Jy
! Total flux subtracted in 200 components = 2.48652e-05 Jy
! Clean residual min=-0.004032 max=0.004266 Jy/beam
! Clean residual mean=0.000140 rms=0.001093 Jy/beam
! Combined flux in latest and established models = 0.904171 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 43 components and 0.904171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278690Jy  sigma=0.001198
! Fit after  self-cal, rms=0.278716Jy  sigma=0.001198
wmodel J1127-1857_S_2001_07_05_pus_map.mod
! Writing 43 model components to file: J1127-1857_S_2001_07_05_pus_map.mod
wobs J1127-1857_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1127-1857_S_2001_07_05_pus_uvs.fits
wwins J1127-1857_S_2001_07_05_pus_map.win
! wwins: Wrote 1 windows to J1127-1857_S_2001_07_05_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.000561656 Jy
! Component: 100  -  total flux cleaned = 0.000990025 Jy
! Component: 150  -  total flux cleaned = 0.00139749 Jy
! Component: 200  -  total flux cleaned = 0.00192044 Jy
! Component: 250  -  total flux cleaned = 0.00230045 Jy
! Component: 300  -  total flux cleaned = 0.00273199 Jy
! Component: 350  -  total flux cleaned = 0.00327058 Jy
! Component: 400  -  total flux cleaned = 0.00356219 Jy
! Component: 450  -  total flux cleaned = 0.00384956 Jy
! Component: 500  -  total flux cleaned = 0.00413124 Jy
! Component: 550  -  total flux cleaned = 0.00440769 Jy
! Component: 600  -  total flux cleaned = 0.00478787 Jy
! Component: 650  -  total flux cleaned = 0.00505472 Jy
! Component: 700  -  total flux cleaned = 0.00531702 Jy
! Component: 750  -  total flux cleaned = 0.00552415 Jy
! Component: 800  -  total flux cleaned = 0.00567737 Jy
! Component: 850  -  total flux cleaned = 0.00577801 Jy
! Component: 900  -  total flux cleaned = 0.00592756 Jy
! Component: 950  -  total flux cleaned = 0.00602636 Jy
! Component: 1000  -  total flux cleaned = 0.00626971 Jy
! Component: 1050  -  total flux cleaned = 0.00631748 Jy
! Component: 1100  -  total flux cleaned = 0.00646089 Jy
! Component: 1150  -  total flux cleaned = 0.00660278 Jy
! Component: 1200  -  total flux cleaned = 0.00678969 Jy
! Component: 1250  -  total flux cleaned = 0.0069744 Jy
! Component: 1300  -  total flux cleaned = 0.00711172 Jy
! Component: 1350  -  total flux cleaned = 0.00724778 Jy
! Component: 1400  -  total flux cleaned = 0.00747213 Jy
! Component: 1450  -  total flux cleaned = 0.00760498 Jy
! Component: 1500  -  total flux cleaned = 0.00773651 Jy
! Component: 1550  -  total flux cleaned = 0.00786678 Jy
! Component: 1600  -  total flux cleaned = 0.00795289 Jy
! Component: 1650  -  total flux cleaned = 0.0080386 Jy
! Component: 1700  -  total flux cleaned = 0.00803843 Jy
! Component: 1750  -  total flux cleaned = 0.00808065 Jy
! Component: 1800  -  total flux cleaned = 0.00816429 Jy
! Component: 1850  -  total flux cleaned = 0.00820565 Jy
! Component: 1900  -  total flux cleaned = 0.00828782 Jy
! Component: 1950  -  total flux cleaned = 0.00828787 Jy
! Component: 2000  -  total flux cleaned = 0.00836898 Jy
! Total flux subtracted in 2048 components = 0.00840914 Jy
! Clean residual min=-0.002108 max=0.002339 Jy/beam
! Clean residual mean=0.000021 rms=0.000760 Jy/beam
! Combined flux in latest and established models = 0.91258 Jy
keep
! Adding 126 model components to the UV plane model.
! The established model now contains 169 components and 0.912579 Jy
wmap "J1127-1857_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.589 x 5.387 at 12.87 degrees (North through East)
! Clean map  min=-0.0037983  max=0.84387 Jy/beam
! Writing clean map to FITS file: J1127-1857_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.843872 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000762415 
device "J1127-1857_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1127-1857_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.271042 0.271042 0.542083 1.08417 2.16833 4.33667 8.67333 17.3467 34.6933 69.3866
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.843 
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.589 x 5.387 at 12.87 degrees (North through East)
! Clean map  min=-0.0037983  max=0.84387 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1127-1857_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1127-1857_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1127-1857_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:06:51 2007