! Started logfile: J0538-4405_S_2000_05_22_pus_uvs.log on Tue Nov 20 16:48:33 2007
obs J0538-4405_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0538-4405_S_2000_05_22_pus_uva.fits
! AN table 1: 9 integrations on 190 of 190 possible baselines.
! AN table 2: 23 integrations on 190 of 190 possible baselines.
! AN table 3: 36 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0161765 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0538-4405
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2007 lines of history.
! 
! Reading 836 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 = 1024 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0538-4405_S_2000_05_22_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 = 1024x1024 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 180 telescope corrections were flagged in sub-array 1.
!  A total of 402 telescope corrections were flagged in sub-array 2.
!  A total of 660 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 402 telescope corrections were flagged in sub-array 2.
!  A total of 690 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 402 telescope corrections were flagged in sub-array 2.
!  A total of 660 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  A total of 402 telescope corrections were flagged in sub-array 2.
!  A total of 660 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=2.628042Jy  sigma=0.022765
! Fit after  self-cal, rms=2.250460Jy  sigma=0.018186
! 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.284 mas, bmaj=21.1 mas, bpa=12.08 degrees
! Estimated noise=5545.16 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 = 2.23641 Jy
! Component: 100  -  total flux cleaned = 2.80484 Jy
! Total flux subtracted in 100 components = 2.80484 Jy
! Clean residual min=-0.159076 max=0.238671 Jy/beam
! Clean residual mean=0.002109 rms=0.062996 Jy/beam
! Combined flux in latest and established models = 2.80484 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 2.80484 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.635527Jy  sigma=0.005072
! Fit after  self-cal, rms=0.635463Jy  sigma=0.005072
! 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.77 mas, bmaj=26.15 mas, bpa=11.38 degrees
! Estimated noise=3319.95 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.436662 Jy
! Component: 100  -  total flux cleaned = 0.65573 Jy
! Component: 150  -  total flux cleaned = 0.768916 Jy
! Component: 200  -  total flux cleaned = 0.828797 Jy
! Total flux subtracted in 200 components = 0.828797 Jy
! Clean residual min=-0.033390 max=0.048150 Jy/beam
! Clean residual mean=0.000232 rms=0.010478 Jy/beam
! Combined flux in latest and established models = 3.63363 Jy
! Performing phase self-cal
! Adding 71 model components to the UV plane model.
! The established model now contains 85 components and 3.63364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183650Jy  sigma=0.001508
! Fit after  self-cal, rms=0.183444Jy  sigma=0.001507
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   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*    LA        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.99     SC        0.98     
!   TS        1.00*    WF        1.00*    WZ        1.00*    LA        1.00     
! 
!  A total of 60 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*    
!   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*    LA        0.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   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*    LA        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.99     SC        0.97     
!   TS        1.00*    WF        1.00*    WZ        1.00*    LA        0.96     
! 
!  A total of 30 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*    
!   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*    LA        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   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*    LA        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.97     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.99     SC        1.02     
!   TS        1.00*    WF        1.00*    WZ        1.00*    LA        1.00     
! 
!  A total of 60 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*    
!   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*    LA        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   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*    LA        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.02     SC        1.01     
!   TS        1.00*    WF        1.00*    WZ        1.00*    LA        1.00     
! 
!  A total of 60 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*    
!   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*    LA        0.00*    
! 
! 
! Fit before self-cal, rms=0.183444Jy  sigma=0.001507
! Fit after  self-cal, rms=0.160642Jy  sigma=0.001160
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.59 mas, bmaj=57.91 mas, bpa=7.621 degrees
! Estimated noise=4602.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)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00143104 Jy
! Component: 100  -  total flux cleaned = 0.000803045 Jy
! Component: 150  -  total flux cleaned = 0.000987658 Jy
! Component: 200  -  total flux cleaned = 0.00116787 Jy
! Total flux subtracted in 200 components = 0.00116787 Jy
! Clean residual min=-0.016202 max=0.016868 Jy/beam
! Clean residual mean=-0.000161 rms=0.005271 Jy/beam
! Combined flux in latest and established models = 3.6348 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 95 components and 3.6348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160129Jy  sigma=0.001157
! Fit after  self-cal, rms=0.160121Jy  sigma=0.001157
! 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.160121Jy  sigma=0.001157
! Fit after  self-cal, rms=0.160090Jy  sigma=0.001157
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.588 mas, bmaj=57.92 mas, bpa=7.621 degrees
! Estimated noise=4601.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00110958 Jy
! Component: 100  -  total flux cleaned = 0.000610383 Jy
! Component: 150  -  total flux cleaned = 0.000609765 Jy
! Component: 200  -  total flux cleaned = 0.000752695 Jy
! Total flux subtracted in 200 components = 0.000752694 Jy
! Clean residual min=-0.015198 max=0.015837 Jy/beam
! Clean residual mean=-0.000161 rms=0.005071 Jy/beam
! Combined flux in latest and established models = 3.63556 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 98 components and 3.63556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159784Jy  sigma=0.001155
! Fit after  self-cal, rms=0.159775Jy  sigma=0.001155
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.000162647 Jy
! Component: 100  -  total flux cleaned = 0.000156892 Jy
! Component: 150  -  total flux cleaned = 0.000158684 Jy
! Component: 200  -  total flux cleaned = 0.000276184 Jy
! Total flux subtracted in 200 components = 0.000276184 Jy
! Clean residual min=-0.014484 max=0.015383 Jy/beam
! Clean residual mean=-0.000165 rms=0.004951 Jy/beam
! Combined flux in latest and established models = 3.63583 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 100 components and 3.63583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159597Jy  sigma=0.001153
! Fit after  self-cal, rms=0.159594Jy  sigma=0.001153
! 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.159594Jy  sigma=0.001153
! Fit after  self-cal, rms=0.159531Jy  sigma=0.001153
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.587 mas, bmaj=57.92 mas, bpa=7.621 degrees
! Estimated noise=4599.48 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000567125 Jy
! Component: 100  -  total flux cleaned = 0.000116214 Jy
! Component: 150  -  total flux cleaned = 0.000110074 Jy
! Component: 200  -  total flux cleaned = 0.000207722 Jy
! Total flux subtracted in 200 components = 0.000207722 Jy
! Clean residual min=-0.013716 max=0.014874 Jy/beam
! Clean residual mean=-0.000162 rms=0.004838 Jy/beam
! Combined flux in latest and established models = 3.63604 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 104 components and 3.63604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159379Jy  sigma=0.001152
! Fit after  self-cal, rms=0.159377Jy  sigma=0.001152
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.8144e-06 Jy
! Component: 100  -  total flux cleaned = 0.000102982 Jy
! Component: 150  -  total flux cleaned = 0.000102083 Jy
! Component: 200  -  total flux cleaned = 0.0001901 Jy
! Total flux subtracted in 200 components = 0.0001901 Jy
! Clean residual min=-0.013302 max=0.014706 Jy/beam
! Clean residual mean=-0.000165 rms=0.004773 Jy/beam
! Combined flux in latest and established models = 3.63623 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 110 components and 3.63623 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159284Jy  sigma=0.001152
! Fit after  self-cal, rms=0.159284Jy  sigma=0.001152
! 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.159284Jy  sigma=0.001152
! Fit after  self-cal, rms=0.159224Jy  sigma=0.001152
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=11.67 mas, bmaj=55.99 mas, bpa=2.64 degrees
! Estimated noise=5641.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000796004 Jy
! Component: 100  -  total flux cleaned = 0.00068648 Jy
! Component: 150  -  total flux cleaned = 0.000644257 Jy
! Component: 200  -  total flux cleaned = 0.000637542 Jy
! Total flux subtracted in 200 components = 0.000637542 Jy
! Clean residual min=-0.011151 max=0.014105 Jy/beam
! Clean residual mean=-0.000275 rms=0.005415 Jy/beam
! Combined flux in latest and established models = 3.63687 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 126 components and 3.63687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159167Jy  sigma=0.001152
! Fit after  self-cal, rms=0.159163Jy  sigma=0.001152
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.096e-05 Jy
! Component: 100  -  total flux cleaned = -0.000123499 Jy
! Component: 150  -  total flux cleaned = -0.000112246 Jy
! Component: 200  -  total flux cleaned = -0.000103695 Jy
! Total flux subtracted in 200 components = -0.000103695 Jy
! Clean residual min=-0.011051 max=0.013971 Jy/beam
! Clean residual mean=-0.000274 rms=0.005374 Jy/beam
! Combined flux in latest and established models = 3.63676 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 130 components and 3.63676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159122Jy  sigma=0.001151
! Fit after  self-cal, rms=0.159120Jy  sigma=0.001151
! 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=3.586 mas, bmaj=57.92 mas, bpa=7.622 degrees
! Estimated noise=4597.65 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.586 x 57.92 at 7.622 degrees (North through East)
! Clean map  min=-0.01297  max=3.0044 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.159120Jy  sigma=0.001151
! Fit after  self-cal, rms=0.130581Jy  sigma=0.000936
! Inverting map and beam 
! Estimated beam: bmin=3.585 mas, bmaj=57.94 mas, bpa=7.623 degrees
! Estimated noise=4596.59 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000366472 Jy
! Component: 100  -  total flux cleaned = 0.0002764 Jy
! Component: 150  -  total flux cleaned = 0.000116126 Jy
! Component: 200  -  total flux cleaned = -3.65407e-05 Jy
! Total flux subtracted in 200 components = -3.65407e-05 Jy
! Clean residual min=-0.012246 max=0.014027 Jy/beam
! Clean residual mean=-0.000169 rms=0.004635 Jy/beam
! Combined flux in latest and established models = 3.63673 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 142 components and 3.63673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130453Jy  sigma=0.000935
! Fit after  self-cal, rms=0.130454Jy  sigma=0.000935
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00021485 Jy
! Component: 100  -  total flux cleaned = -0.000140257 Jy
! Component: 150  -  total flux cleaned = -5.51347e-05 Jy
! Component: 200  -  total flux cleaned = -5.68441e-05 Jy
! Total flux subtracted in 200 components = -5.68441e-05 Jy
! Clean residual min=-0.012113 max=0.013788 Jy/beam
! Clean residual mean=-0.000170 rms=0.004585 Jy/beam
! Combined flux in latest and established models = 3.63667 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 147 components and 3.63667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130369Jy  sigma=0.000935
! Fit after  self-cal, rms=0.130370Jy  sigma=0.000935
! 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.130370Jy  sigma=0.000935
! Fit after  self-cal, rms=0.130339Jy  sigma=0.000935
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=3.085 mas, bmaj=57.71 mas, bpa=7.417 degrees
! Estimated noise=7415.95 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.56313 Jy
! Component: 100  -  total flux cleaned = 3.14813 Jy
! Component: 150  -  total flux cleaned = 3.38627 Jy
! Component: 200  -  total flux cleaned = 3.50159 Jy
! Total flux subtracted in 200 components = 3.50159 Jy
! Clean residual min=-0.041034 max=0.054208 Jy/beam
! Clean residual mean=0.000619 rms=0.016616 Jy/beam
! Combined flux in latest and established models = 3.50159 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 51 model components to the UV plane model.
! The established model now contains 51 components and 3.50159 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.584 mas, bmaj=57.94 mas, bpa=7.623 degrees
! Estimated noise=4595.04 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.0649281 Jy
! Component: 100  -  total flux cleaned = 0.0931357 Jy
! Component: 150  -  total flux cleaned = 0.107466 Jy
! Component: 200  -  total flux cleaned = 0.114984 Jy
! Total flux subtracted in 200 components = 0.114984 Jy
! Clean residual min=-0.013174 max=0.012156 Jy/beam
! Clean residual mean=-0.000098 rms=0.004926 Jy/beam
! Combined flux in latest and established models = 3.61657 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 92 components and 3.61657 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=11.66 mas, bmaj=55.99 mas, bpa=2.652 degrees
! Estimated noise=5642.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00521459 Jy
! Component: 100  -  total flux cleaned = 0.006616 Jy
! Component: 150  -  total flux cleaned = 0.0069606 Jy
! Component: 200  -  total flux cleaned = 0.00720132 Jy
! Total flux subtracted in 200 components = 0.00720132 Jy
! Clean residual min=-0.012435 max=0.012947 Jy/beam
! Clean residual mean=-0.000267 rms=0.005849 Jy/beam
! Combined flux in latest and established models = 3.62377 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.000300912 Jy
! Component: 100  -  total flux cleaned = 0.000576328 Jy
! Component: 150  -  total flux cleaned = 0.000771858 Jy
! Component: 200  -  total flux cleaned = 0.0010101 Jy
! Total flux subtracted in 200 components = 0.0010101 Jy
! Clean residual min=-0.012402 max=0.013147 Jy/beam
! Clean residual mean=-0.000284 rms=0.005748 Jy/beam
! Combined flux in latest and established models = 3.62478 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 118 components and 3.62478 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.584 mas, bmaj=57.94 mas, bpa=7.623 degrees
! Estimated noise=4595.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000483908 Jy
! Component: 100  -  total flux cleaned = 0.000415359 Jy
! Component: 150  -  total flux cleaned = 0.000355453 Jy
! Component: 200  -  total flux cleaned = 0.000300877 Jy
! Total flux subtracted in 200 components = 0.000300877 Jy
! Clean residual min=-0.012780 max=0.012149 Jy/beam
! Clean residual mean=-0.000178 rms=0.004670 Jy/beam
! Combined flux in latest and established models = 3.62508 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 125 components and 3.62508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130221Jy  sigma=0.000933
! Fit after  self-cal, rms=0.130188Jy  sigma=0.000933
wmodel J0538-4405_S_2000_05_22_pus_map.mod
! Writing 125 model components to file: J0538-4405_S_2000_05_22_pus_map.mod
wobs J0538-4405_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0538-4405_S_2000_05_22_pus_uvs.fits
wwins J0538-4405_S_2000_05_22_pus_map.win
! wwins: Wrote 1 windows to J0538-4405_S_2000_05_22_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00337095 Jy
! Component: 100  -  total flux cleaned = -0.00490801 Jy
! Component: 150  -  total flux cleaned = -0.00576762 Jy
! Component: 200  -  total flux cleaned = -0.00655307 Jy
! Component: 250  -  total flux cleaned = -0.00655504 Jy
! Component: 300  -  total flux cleaned = -0.00683202 Jy
! Component: 350  -  total flux cleaned = -0.00709516 Jy
! Component: 400  -  total flux cleaned = -0.00734234 Jy
! Component: 450  -  total flux cleaned = -0.00734272 Jy
! Component: 500  -  total flux cleaned = -0.00757186 Jy
! Component: 550  -  total flux cleaned = -0.00768025 Jy
! Component: 600  -  total flux cleaned = -0.0078917 Jy
! Component: 650  -  total flux cleaned = -0.00809516 Jy
! Component: 700  -  total flux cleaned = -0.00819677 Jy
! Component: 750  -  total flux cleaned = -0.00829596 Jy
! Component: 800  -  total flux cleaned = -0.00801247 Jy
! Component: 850  -  total flux cleaned = -0.00782472 Jy
! Component: 900  -  total flux cleaned = -0.00763772 Jy
! Component: 950  -  total flux cleaned = -0.00726517 Jy
! Component: 1000  -  total flux cleaned = -0.0067033 Jy
! Component: 1050  -  total flux cleaned = -0.00679906 Jy
! Component: 1100  -  total flux cleaned = -0.0070867 Jy
! Component: 1150  -  total flux cleaned = -0.00718526 Jy
! Component: 1200  -  total flux cleaned = -0.00748134 Jy
! Component: 1250  -  total flux cleaned = -0.00778414 Jy
! Component: 1300  -  total flux cleaned = -0.00819538 Jy
! Component: 1350  -  total flux cleaned = -0.00830052 Jy
! Component: 1400  -  total flux cleaned = -0.00862191 Jy
! Component: 1450  -  total flux cleaned = -0.0088425 Jy
! Component: 1500  -  total flux cleaned = -0.00906928 Jy
! Component: 1550  -  total flux cleaned = -0.00930165 Jy
! Component: 1600  -  total flux cleaned = -0.00953836 Jy
! Component: 1650  -  total flux cleaned = -0.0097822 Jy
! Component: 1700  -  total flux cleaned = -0.010032 Jy
! Component: 1750  -  total flux cleaned = -0.0102885 Jy
! Component: 1800  -  total flux cleaned = -0.0104185 Jy
! Component: 1850  -  total flux cleaned = -0.0106858 Jy
! Component: 1900  -  total flux cleaned = -0.0109602 Jy
! Component: 1950  -  total flux cleaned = -0.0113848 Jy
! Component: 2000  -  total flux cleaned = -0.0116779 Jy
! Component: 2050  -  total flux cleaned = -0.0119783 Jy
! Component: 2100  -  total flux cleaned = -0.0122882 Jy
! Component: 2150  -  total flux cleaned = -0.0124455 Jy
! Component: 2200  -  total flux cleaned = -0.0129313 Jy
! Component: 2250  -  total flux cleaned = -0.0130999 Jy
! Component: 2300  -  total flux cleaned = -0.0134405 Jy
! Component: 2350  -  total flux cleaned = -0.0137922 Jy
! Component: 2400  -  total flux cleaned = -0.0139731 Jy
! Component: 2450  -  total flux cleaned = -0.0145316 Jy
! Component: 2500  -  total flux cleaned = -0.0147238 Jy
! Component: 2550  -  total flux cleaned = -0.0151107 Jy
! Component: 2600  -  total flux cleaned = -0.0157112 Jy
! Component: 2650  -  total flux cleaned = -0.0159186 Jy
! Component: 2700  -  total flux cleaned = -0.0165557 Jy
! Component: 2750  -  total flux cleaned = -0.0169966 Jy
! Component: 2800  -  total flux cleaned = -0.0172199 Jy
! Component: 2850  -  total flux cleaned = -0.0179091 Jy
! Component: 2900  -  total flux cleaned = -0.0188582 Jy
! Component: 2950  -  total flux cleaned = -0.0200869 Jy
! Component: 3000  -  total flux cleaned = -0.0210945 Jy
! Component: 3050  -  total flux cleaned = -0.0223933 Jy
! Component: 3100  -  total flux cleaned = -0.0234634 Jy
! Component: 3150  -  total flux cleaned = -0.0245591 Jy
! Component: 3200  -  total flux cleaned = -0.026255 Jy
! Component: 3250  -  total flux cleaned = -0.0274203 Jy
! Component: 3300  -  total flux cleaned = -0.0292154 Jy
! Component: 3350  -  total flux cleaned = -0.0307583 Jy
! Component: 3400  -  total flux cleaned = -0.0323448 Jy
! Component: 3450  -  total flux cleaned = -0.033983 Jy
! Component: 3500  -  total flux cleaned = -0.0356716 Jy
! Component: 3550  -  total flux cleaned = -0.0374117 Jy
! Component: 3600  -  total flux cleaned = -0.03921 Jy
! Component: 3650  -  total flux cleaned = -0.041063 Jy
! Component: 3700  -  total flux cleaned = -0.0425877 Jy
! Component: 3750  -  total flux cleaned = -0.0445526 Jy
! Component: 3800  -  total flux cleaned = -0.0465781 Jy
! Component: 3850  -  total flux cleaned = -0.0482508 Jy
! Component: 3900  -  total flux cleaned = -0.0499764 Jy
! Component: 3950  -  total flux cleaned = -0.0513134 Jy
! Component: 4000  -  total flux cleaned = -0.0531508 Jy
! Component: 4050  -  total flux cleaned = -0.0540991 Jy
! Total flux subtracted in 4096 components = -0.0555454 Jy
! Clean residual min=-0.026860 max=0.027835 Jy/beam
! Clean residual mean=0.000001 rms=0.009560 Jy/beam
! Combined flux in latest and established models = 3.56954 Jy
keep
! Adding 162 model components to the UV plane model.
! The established model now contains 287 components and 3.56954 Jy
![Exited script file: muppet]
wmap "J0538-4405_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.584 x 57.94 at 7.623 degrees (North through East)
! Clean map  min=-0.063111  max=3.2139 Jy/beam
! Writing clean map to FITS file: J0538-4405_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 3.21393 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0109895 
device "J0538-4405_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0538-4405_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.0258 1.0258 2.0516 4.1032 8.20641 16.4128 32.8256 65.6512
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0329 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.213 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.584 x 57.94 at 7.623 degrees (North through East)
! Clean map  min=-0.063111  max=3.2139 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0538-4405_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0538-4405_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0538-4405_S_2000_05_22_pus_uvs.log closed on Tue Nov 20 16:49:01 2007