! Started logfile: J2129-1538_S_2001_04_09_pus_uvs.log on Fri Oct  5 16:17:56 2007
obs J2129-1538_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J2129-1538_S_2001_04_09_pus_uva.fits
! AN table 1: 143 integrations on 190 of 190 possible baselines.
! AN table 2: 12 integrations on 190 of 190 possible baselines.
! AN table 3: 62 integrations on 190 of 190 possible baselines.
! AN table 4: 14 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0470494 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2129-1538
! 
! 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 1949 lines of history.
! 
! Reading 8260 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 J2129-1538_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 2689 telescope corrections were flagged in sub-array 1.
!  A total of 146 telescope corrections were flagged in sub-array 2.
!  A total of 901 telescope corrections were flagged in sub-array 3.
!  A total of 244 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2689 telescope corrections were flagged in sub-array 1.
!  A total of 146 telescope corrections were flagged in sub-array 2.
!  A total of 901 telescope corrections were flagged in sub-array 3.
!  A total of 244 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2689 telescope corrections were flagged in sub-array 1.
!  A total of 146 telescope corrections were flagged in sub-array 2.
!  A total of 901 telescope corrections were flagged in sub-array 3.
!  A total of 244 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2689 telescope corrections were flagged in sub-array 1.
!  A total of 146 telescope corrections were flagged in sub-array 2.
!  A total of 901 telescope corrections were flagged in sub-array 3.
!  A total of 244 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.732353Jy  sigma=0.005531
! Fit after  self-cal, rms=0.381624Jy  sigma=0.002685
! 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.159 mas, bmaj=5.93 mas, bpa=0.9727 degrees
! Estimated noise=1532.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.540902 Jy
! Component: 100  -  total flux cleaned = 0.672972 Jy
! Total flux subtracted in 100 components = 0.672972 Jy
! Clean residual min=-0.015820 max=0.045897 Jy/beam
! Clean residual mean=0.000755 rms=0.005367 Jy/beam
! Combined flux in latest and established models = 0.672972 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.672972 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240792Jy  sigma=0.001512
! Fit after  self-cal, rms=0.240317Jy  sigma=0.001511
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.048514 Jy
! Component: 100  -  total flux cleaned = 0.0763205 Jy
! Total flux subtracted in 100 components = 0.0763205 Jy
! Clean residual min=-0.011738 max=0.018285 Jy/beam
! Clean residual mean=0.000282 rms=0.003332 Jy/beam
! Combined flux in latest and established models = 0.749292 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 24 components and 0.749292 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226864Jy  sigma=0.001367
! Fit after  self-cal, rms=0.226696Jy  sigma=0.001367
! 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.667 mas, bmaj=6.954 mas, bpa=-2.654 degrees
! Estimated noise=1014.6 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.5, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.022067 Jy
! Component: 100  -  total flux cleaned = 0.033209 Jy
! Component: 150  -  total flux cleaned = 0.0389728 Jy
! Component: 200  -  total flux cleaned = 0.0409448 Jy
! Total flux subtracted in 200 components = 0.0409448 Jy
! Clean residual min=-0.011400 max=0.008375 Jy/beam
! Clean residual mean=-0.000204 rms=0.002734 Jy/beam
! Combined flux in latest and established models = 0.790237 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 41 components and 0.790237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224448Jy  sigma=0.001345
! Fit after  self-cal, rms=0.224368Jy  sigma=0.001345
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.40     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.25     MC        1.11     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.91     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.06     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.00*    NY        1.00*    OV        1.06     PT        1.00     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.04     KP        1.02     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.04     NY        1.00*    OV        1.00     PT        0.98     
!   SC        0.97     TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        2.13     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        2.24     MC        0.90     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.85     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        1.00*    NY        1.00*    OV        1.02     PT        1.04     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.99     KP        0.99     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.02     NY        1.00*    OV        0.98     PT        1.01     
!   SC        1.00     TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        2.38     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.02     MC        0.94     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.94     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.02     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.00*    NY        1.00*    OV        1.05     PT        1.01     
!   SC        1.00*    TS        1.02     WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00     KP        1.01     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.00     NY        1.00*    OV        0.96     PT        0.99     
!   SC        0.98     TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.38     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.01     MC        0.47     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.65     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.01     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.00*    NY        1.00*    OV        1.00     PT        1.07     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.98     KP        1.00     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.01     NY        1.00*    OV        0.98     PT        1.02     
!   SC        0.99     TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Fit before self-cal, rms=0.224368Jy  sigma=0.001345
! Fit after  self-cal, rms=0.217668Jy  sigma=0.001224
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.644 mas, bmaj=8.394 mas, bpa=-3.613 degrees
! Estimated noise=1035.75 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.00205453 Jy
! Component: 100  -  total flux cleaned = 0.00243167 Jy
! Component: 150  -  total flux cleaned = 0.00242513 Jy
! Component: 200  -  total flux cleaned = 0.00233205 Jy
! Total flux subtracted in 200 components = 0.00233205 Jy
! Clean residual min=-0.005050 max=0.005526 Jy/beam
! Clean residual mean=0.000081 rms=0.001499 Jy/beam
! Combined flux in latest and established models = 0.792569 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 56 components and 0.792569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217488Jy  sigma=0.001223
! Fit after  self-cal, rms=0.224559Jy  sigma=0.001218
! 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.224559Jy  sigma=0.001218
! Fit after  self-cal, rms=0.286383Jy  sigma=0.001208
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.642 mas, bmaj=8.451 mas, bpa=-3.627 degrees
! Estimated noise=1037.11 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000302229 Jy
! Component: 100  -  total flux cleaned = -0.000307471 Jy
! Component: 150  -  total flux cleaned = -0.000457265 Jy
! Component: 200  -  total flux cleaned = -0.000520166 Jy
! Total flux subtracted in 200 components = -0.000520166 Jy
! Clean residual min=-0.004239 max=0.005162 Jy/beam
! Clean residual mean=0.000125 rms=0.001235 Jy/beam
! Combined flux in latest and established models = 0.792049 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 67 components and 0.792049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286321Jy  sigma=0.001207
! Fit after  self-cal, rms=0.289176Jy  sigma=0.001207
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)
! Added new window around map position (2.5, -36).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00507506 Jy
! Component: 100  -  total flux cleaned = 0.00735157 Jy
! Component: 150  -  total flux cleaned = 0.00784947 Jy
! Component: 200  -  total flux cleaned = 0.00799304 Jy
! Total flux subtracted in 200 components = 0.00799304 Jy
! Clean residual min=-0.004013 max=0.003882 Jy/beam
! Clean residual mean=0.000005 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 0.800042 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 84 components and 0.800042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288982Jy  sigma=0.001206
! Fit after  self-cal, rms=0.289085Jy  sigma=0.001206
! 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.289085Jy  sigma=0.001206
! Fit after  self-cal, rms=0.375928Jy  sigma=0.001205
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.642 mas, bmaj=8.475 mas, bpa=-3.627 degrees
! Estimated noise=1037.06 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00117035 Jy
! Component: 100  -  total flux cleaned = 0.00117063 Jy
! Component: 150  -  total flux cleaned = 0.00117098 Jy
! Component: 200  -  total flux cleaned = 0.00111098 Jy
! Total flux subtracted in 200 components = 0.00111098 Jy
! Clean residual min=-0.003871 max=0.003936 Jy/beam
! Clean residual mean=0.000008 rms=0.001088 Jy/beam
! Combined flux in latest and established models = 0.801153 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 99 components and 0.801153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375854Jy  sigma=0.001205
! Fit after  self-cal, rms=0.376457Jy  sigma=0.001205
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.000203573 Jy
! Component: 100  -  total flux cleaned = 0.000145145 Jy
! Component: 150  -  total flux cleaned = 3.46198e-05 Jy
! Component: 200  -  total flux cleaned = -1.8955e-05 Jy
! Total flux subtracted in 200 components = -1.8955e-05 Jy
! Clean residual min=-0.003865 max=0.003878 Jy/beam
! Clean residual mean=0.000006 rms=0.001081 Jy/beam
! Combined flux in latest and established models = 0.801134 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 107 components and 0.801134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376405Jy  sigma=0.001205
! Fit after  self-cal, rms=0.376416Jy  sigma=0.001205
! 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.376416Jy  sigma=0.001205
! Fit after  self-cal, rms=0.461774Jy  sigma=0.001204
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.944 mas, bmaj=16.64 mas, bpa=7.636 degrees
! Estimated noise=1328.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00051171 Jy
! Component: 100  -  total flux cleaned = 0.000291872 Jy
! Component: 150  -  total flux cleaned = 0.000174607 Jy
! Component: 200  -  total flux cleaned = 0.00020834 Jy
! Total flux subtracted in 200 components = 0.00020834 Jy
! Clean residual min=-0.004253 max=0.003438 Jy/beam
! Clean residual mean=0.000014 rms=0.001351 Jy/beam
! Combined flux in latest and established models = 0.801343 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 124 components and 0.801343 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461764Jy  sigma=0.001204
! Fit after  self-cal, rms=0.462024Jy  sigma=0.001204
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.000111272 Jy
! Component: 100  -  total flux cleaned = 0.00011198 Jy
! Component: 150  -  total flux cleaned = 8.25818e-05 Jy
! Component: 200  -  total flux cleaned = 5.72656e-05 Jy
! Total flux subtracted in 200 components = 5.72656e-05 Jy
! Clean residual min=-0.004323 max=0.003456 Jy/beam
! Clean residual mean=0.000010 rms=0.001342 Jy/beam
! Combined flux in latest and established models = 0.8014 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 128 components and 0.8014 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462016Jy  sigma=0.001204
! Fit after  self-cal, rms=0.462025Jy  sigma=0.001204
! 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.642 mas, bmaj=8.488 mas, bpa=-3.627 degrees
! Estimated noise=1037.41 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.642 x 8.488 at -3.627 degrees (North through East)
! Clean map  min=-0.0035778  max=0.71401 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.462025Jy  sigma=0.001204
! Fit after  self-cal, rms=1.177936Jy  sigma=0.001101
! Inverting map and beam 
! Estimated beam: bmin=2.642 mas, bmaj=8.459 mas, bpa=-3.637 degrees
! Estimated noise=1037.02 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000143411 Jy
! Component: 100  -  total flux cleaned = -0.000212637 Jy
! Component: 150  -  total flux cleaned = -0.000211311 Jy
! Component: 200  -  total flux cleaned = -0.000212852 Jy
! Total flux subtracted in 200 components = -0.000212852 Jy
! Clean residual min=-0.003717 max=0.003710 Jy/beam
! Clean residual mean=0.000006 rms=0.001068 Jy/beam
! Combined flux in latest and established models = 0.801187 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 137 components and 0.801187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.177862Jy  sigma=0.001101
! Fit after  self-cal, rms=1.177911Jy  sigma=0.001101
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.28167e-05 Jy
! Component: 100  -  total flux cleaned = -6.14456e-05 Jy
! Component: 150  -  total flux cleaned = -0.000115519 Jy
! Component: 200  -  total flux cleaned = -0.000116458 Jy
! Total flux subtracted in 200 components = -0.000116458 Jy
! Clean residual min=-0.003710 max=0.003730 Jy/beam
! Clean residual mean=0.000008 rms=0.001062 Jy/beam
! Combined flux in latest and established models = 0.801071 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 139 components and 0.801071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.177849Jy  sigma=0.001101
! Fit after  self-cal, rms=1.177878Jy  sigma=0.001101
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.177878Jy  sigma=0.001101
! Fit after  self-cal, rms=1.656769Jy  sigma=0.001100
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.184 mas, bmaj=6.53 mas, bpa=-0.3653 degrees
! Estimated noise=1591.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.546515 Jy
! Component: 100  -  total flux cleaned = 0.674293 Jy
! Component: 150  -  total flux cleaned = 0.721331 Jy
! Component: 200  -  total flux cleaned = 0.748996 Jy
! Total flux subtracted in 200 components = 0.748996 Jy
! Clean residual min=-0.009607 max=0.014067 Jy/beam
! Clean residual mean=0.000308 rms=0.002433 Jy/beam
! Combined flux in latest and established models = 0.748996 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 22 model components to the UV plane model.
! The established model now contains 22 components and 0.748996 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.642 mas, bmaj=8.453 mas, bpa=-3.643 degrees
! Estimated noise=1037.03 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.0207536 Jy
! Component: 100  -  total flux cleaned = 0.0311992 Jy
! Component: 150  -  total flux cleaned = 0.0383148 Jy
! Component: 200  -  total flux cleaned = 0.0436207 Jy
! Total flux subtracted in 200 components = 0.0436207 Jy
! Clean residual min=-0.004308 max=0.005123 Jy/beam
! Clean residual mean=0.000129 rms=0.001286 Jy/beam
! Combined flux in latest and established models = 0.792617 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 44 components and 0.792617 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.946 mas, bmaj=16.63 mas, bpa=7.674 degrees
! Estimated noise=1328.91 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00456271 Jy
! Component: 100  -  total flux cleaned = 0.00693709 Jy
! Component: 150  -  total flux cleaned = 0.00797524 Jy
! Component: 200  -  total flux cleaned = 0.00866016 Jy
! Total flux subtracted in 200 components = 0.00866016 Jy
! Clean residual min=-0.004279 max=0.003968 Jy/beam
! Clean residual mean=-0.000005 rms=0.001456 Jy/beam
! Combined flux in latest and established models = 0.801277 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.000345398 Jy
! Component: 100  -  total flux cleaned = 0.000448957 Jy
! Component: 150  -  total flux cleaned = 0.000497079 Jy
! Component: 200  -  total flux cleaned = 0.000497018 Jy
! Total flux subtracted in 200 components = 0.000497018 Jy
! Clean residual min=-0.004233 max=0.003972 Jy/beam
! Clean residual mean=-0.000021 rms=0.001429 Jy/beam
! Combined flux in latest and established models = 0.801774 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 79 components and 0.801774 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.642 mas, bmaj=8.453 mas, bpa=-3.643 degrees
! Estimated noise=1037.03 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00140566 Jy
! Component: 100  -  total flux cleaned = -0.00127578 Jy
! Component: 150  -  total flux cleaned = -0.00127793 Jy
! Component: 200  -  total flux cleaned = -0.00117614 Jy
! Total flux subtracted in 200 components = -0.00117614 Jy
! Clean residual min=-0.004122 max=0.004149 Jy/beam
! Clean residual mean=0.000007 rms=0.001145 Jy/beam
! Combined flux in latest and established models = 0.800598 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 93 components and 0.800598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.657992Jy  sigma=0.001102
! Fit after  self-cal, rms=1.657904Jy  sigma=0.001102
wmodel J2129-1538_S_2001_04_09_pus_map.mod
! Writing 93 model components to file: J2129-1538_S_2001_04_09_pus_map.mod
wobs J2129-1538_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J2129-1538_S_2001_04_09_pus_uvs.fits
wwins J2129-1538_S_2001_04_09_pus_map.win
! wwins: Wrote 3 windows to J2129-1538_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.000142323 Jy
! Component: 100  -  total flux cleaned = 0.000488715 Jy
! Component: 150  -  total flux cleaned = 0.000882133 Jy
! Component: 200  -  total flux cleaned = 0.00138651 Jy
! Component: 250  -  total flux cleaned = 0.0018741 Jy
! Component: 300  -  total flux cleaned = 0.00217004 Jy
! Component: 350  -  total flux cleaned = 0.00234284 Jy
! Component: 400  -  total flux cleaned = 0.00262458 Jy
! Component: 450  -  total flux cleaned = 0.00284439 Jy
! Component: 500  -  total flux cleaned = 0.00295118 Jy
! Component: 550  -  total flux cleaned = 0.00300327 Jy
! Component: 600  -  total flux cleaned = 0.0030033 Jy
! Component: 650  -  total flux cleaned = 0.00305474 Jy
! Component: 700  -  total flux cleaned = 0.00285512 Jy
! Component: 750  -  total flux cleaned = 0.00295363 Jy
! Component: 800  -  total flux cleaned = 0.00271132 Jy
! Component: 850  -  total flux cleaned = 0.00280736 Jy
! Component: 900  -  total flux cleaned = 0.00261924 Jy
! Component: 950  -  total flux cleaned = 0.00257349 Jy
! Component: 1000  -  total flux cleaned = 0.00243659 Jy
! Component: 1050  -  total flux cleaned = 0.00225628 Jy
! Component: 1100  -  total flux cleaned = 0.00216707 Jy
! Component: 1150  -  total flux cleaned = 0.00185977 Jy
! Component: 1200  -  total flux cleaned = 0.00177297 Jy
! Component: 1250  -  total flux cleaned = 0.00168676 Jy
! Component: 1300  -  total flux cleaned = 0.00139011 Jy
! Component: 1350  -  total flux cleaned = 0.00126454 Jy
! Component: 1400  -  total flux cleaned = 0.00105803 Jy
! Component: 1450  -  total flux cleaned = 0.000935767 Jy
! Component: 1500  -  total flux cleaned = 0.000814253 Jy
! Component: 1550  -  total flux cleaned = 0.000693831 Jy
! Component: 1600  -  total flux cleaned = 0.000495647 Jy
! Component: 1650  -  total flux cleaned = 0.000299714 Jy
! Component: 1700  -  total flux cleaned = 0.000183347 Jy
! Component: 1750  -  total flux cleaned = -9.35721e-06 Jy
! Component: 1800  -  total flux cleaned = -0.000199917 Jy
! Component: 1850  -  total flux cleaned = -0.000463904 Jy
! Component: 1900  -  total flux cleaned = -0.000538679 Jy
! Component: 1950  -  total flux cleaned = -0.000723931 Jy
! Component: 2000  -  total flux cleaned = -0.000870702 Jy
! Total flux subtracted in 2048 components = -0.000980299 Jy
! Clean residual min=-0.002272 max=0.002426 Jy/beam
! Clean residual mean=-0.000030 rms=0.000711 Jy/beam
! Combined flux in latest and established models = 0.799618 Jy
keep
! Adding 130 model components to the UV plane model.
! The established model now contains 223 components and 0.799618 Jy
![Exited script file: muppet]
wmap "J2129-1538_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.642 x 8.453 at -3.643 degrees (North through East)
! Clean map  min=-0.003657  max=0.71477 Jy/beam
! Writing clean map to FITS file: J2129-1538_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.714766 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000712113 
device "J2129-1538_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J2129-1538_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.298887 0.298887 0.597773 1.19555 2.39109 4.78219 9.56437 19.1287 38.2575 76.515
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.714 
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.642 x 8.453 at -3.643 degrees (North through East)
! Clean map  min=-0.003657  max=0.71477 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2129-1538_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J2129-1538_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2129-1538_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 16:18:05 2007