! Started logfile: J0050-0929_S_2001_04_09_pus_uvs.log on Fri Oct  5 17:33:30 2007
obs J0050-0929_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0050-0929_S_2001_04_09_pus_uva.fits
! AN table 1: 90 integrations on 190 of 190 possible baselines.
! AN table 2: 173 integrations on 190 of 190 possible baselines.
! AN table 3: 11 integrations on 190 of 190 possible baselines.
! AN table 4: 57 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0556368 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0050-0929
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1953 lines of history.
! 
! Reading 13996 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 J0050-0929_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 1481 telescope corrections were flagged in sub-array 1.
!  A total of 2845 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 851 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1481 telescope corrections were flagged in sub-array 1.
!  A total of 2845 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 851 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1481 telescope corrections were flagged in sub-array 1.
!  A total of 2845 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 851 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1490 telescope corrections were flagged in sub-array 1.
!  A total of 2845 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 851 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.869503Jy  sigma=0.006396
! Fit after  self-cal, rms=0.384649Jy  sigma=0.002625
! 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.18 mas, bmaj=4.054 mas, bpa=-1.871 degrees
! Estimated noise=1215.72 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.549416 Jy
! Component: 100  -  total flux cleaned = 0.671076 Jy
! Total flux subtracted in 100 components = 0.671076 Jy
! Clean residual min=-0.011131 max=0.038469 Jy/beam
! Clean residual mean=0.000310 rms=0.003600 Jy/beam
! Combined flux in latest and established models = 0.671076 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.671076 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245301Jy  sigma=0.001495
! Fit after  self-cal, rms=0.245450Jy  sigma=0.001494
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.037596 Jy
! Component: 100  -  total flux cleaned = 0.0564348 Jy
! Total flux subtracted in 100 components = 0.0564348 Jy
! Clean residual min=-0.011090 max=0.010155 Jy/beam
! Clean residual mean=0.000197 rms=0.002567 Jy/beam
! Combined flux in latest and established models = 0.727511 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 21 components and 0.72751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239206Jy  sigma=0.001416
! Fit after  self-cal, rms=0.239101Jy  sigma=0.001415
! 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.38 mas, bmaj=4.729 mas, bpa=-10.48 degrees
! Estimated noise=809.518 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.0178558 Jy
! Component: 100  -  total flux cleaned = 0.0248564 Jy
! Component: 150  -  total flux cleaned = 0.0253301 Jy
! Component: 200  -  total flux cleaned = 0.0259747 Jy
! Total flux subtracted in 200 components = 0.0259747 Jy
! Clean residual min=-0.009079 max=0.010441 Jy/beam
! Clean residual mean=0.000389 rms=0.002482 Jy/beam
! Combined flux in latest and established models = 0.753485 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 30 components and 0.753485 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237936Jy  sigma=0.001401
! Fit after  self-cal, rms=0.237616Jy  sigma=0.001401
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        0.95     HN        0.97     KK        1.00*    KP        1.14     
!   LA        0.95     MA        1.36     MC        0.88     MK        1.00*    
!   NL        0.96     NY        1.00*    OV        1.00*    PT        0.99     
!   SC        1.01     TS        1.00*    WF        0.97     WZ        1.08     
! 
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.10     GG        1.00*    
!   HH        1.12     HN        0.98     KK        1.03     KP        1.04     
!   LA        1.00     MA        0.98     MC        0.90     MK        1.02     
!   NL        0.97     NY        1.00*    OV        1.03     PT        0.96     
!   SC        0.95     TS        0.99     WF        1.00     WZ        1.09     
! 
!  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*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.96     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.04     KP        0.93     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.01     NY        1.00*    OV        1.06     PT        0.94     
!   SC        1.03     TS        1.00*    WF        1.05     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.06     HN        0.98     KK        1.00*    KP        0.98     
!   LA        0.99     MA        1.97     MC        0.99     MK        1.00*    
!   NL        1.00     NY        1.00*    OV        1.00*    PT        0.97     
!   SC        0.96     TS        1.00*    WF        1.03     WZ        1.10     
! 
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        0.95     GG        1.00*    
!   HH        1.05     HN        0.98     KK        0.97     KP        1.21     
!   LA        0.99     MA        0.91     MC        1.02     MK        1.03     
!   NL        1.01     NY        1.00*    OV        1.00     PT        1.01     
!   SC        0.95     TS        1.05     WF        0.98     WZ        1.02     
! 
!  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*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.98     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.95     KP        0.96     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.99     NY        1.00*    OV        1.02     PT        0.97     
!   SC        1.04     TS        1.00*    WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.02     HN        1.03     KK        1.00*    KP        1.31     
!   LA        0.98     MA        1.01     MC        0.93     MK        1.00*    
!   NL        0.97     NY        1.00*    OV        1.00*    PT        0.99     
!   SC        0.96     TS        1.00*    WF        0.98     WZ        1.05     
! 
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.99     GC        0.99     GG        1.00*    
!   HH        0.97     HN        0.99     KK        0.99     KP        1.03     
!   LA        0.97     MA        0.99     MC        0.88     MK        1.00     
!   NL        0.99     NY        1.00*    OV        0.99     PT        1.01     
!   SC        0.91     TS        1.07     WF        1.01     WZ        1.03     
! 
!  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*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.96     KP        0.98     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00     NY        1.00*    OV        1.00     PT        0.98     
!   SC        1.01     TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.01     HN        1.06     KK        1.00*    KP        1.17     
!   LA        0.98     MA        1.45     MC        0.98     MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.00*    PT        1.00     
!   SC        1.02     TS        1.00*    WF        1.05     WZ        0.98     
! 
!  A total of 285 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.04     GG        1.00*    
!   HH        1.06     HN        1.01     KK        0.97     KP        1.00     
!   LA        1.00     MA        1.21     MC        1.03     MK        0.95     
!   NL        0.98     NY        1.00*    OV        1.00     PT        1.11     
!   SC        0.96     TS        1.16     WF        0.98     WZ        1.30     
! 
!  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*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.97     GC        1.11     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.92     KP        0.98     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00     NY        1.00*    OV        0.98     PT        1.07     
!   SC        1.03     TS        1.00*    WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.237616Jy  sigma=0.001401
! Fit after  self-cal, rms=0.254401Jy  sigma=0.001348
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.656 mas, bmaj=5.562 mas, bpa=-5.184 degrees
! Estimated noise=860.62 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.00385836 Jy
! Component: 100  -  total flux cleaned = 0.0045259 Jy
! Component: 150  -  total flux cleaned = 0.00461358 Jy
! Component: 200  -  total flux cleaned = 0.00473249 Jy
! Total flux subtracted in 200 components = 0.00473249 Jy
! Clean residual min=-0.004788 max=0.005475 Jy/beam
! Clean residual mean=0.000519 rms=0.001241 Jy/beam
! Combined flux in latest and established models = 0.758218 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 36 components and 0.758217 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254330Jy  sigma=0.001348
! Fit after  self-cal, rms=0.255308Jy  sigma=0.001347
! 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.255308Jy  sigma=0.001347
! Fit after  self-cal, rms=0.258764Jy  sigma=0.001342
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.659 mas, bmaj=5.554 mas, bpa=-5.15 degrees
! Estimated noise=861.503 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00151388 Jy
! Component: 100  -  total flux cleaned = 0.00175525 Jy
! Component: 150  -  total flux cleaned = 0.00184077 Jy
! Component: 200  -  total flux cleaned = 0.00189418 Jy
! Total flux subtracted in 200 components = 0.00189418 Jy
! Clean residual min=-0.004385 max=0.005443 Jy/beam
! Clean residual mean=0.000517 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 0.760112 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 42 components and 0.760112 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258747Jy  sigma=0.001342
! Fit after  self-cal, rms=0.259009Jy  sigma=0.001342
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 (5, 12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00501587 Jy
! Component: 100  -  total flux cleaned = 0.00759746 Jy
! Component: 150  -  total flux cleaned = 0.0082208 Jy
! Component: 200  -  total flux cleaned = 0.00827756 Jy
! Total flux subtracted in 200 components = 0.00827756 Jy
! Clean residual min=-0.004320 max=0.005026 Jy/beam
! Clean residual mean=0.000419 rms=0.001154 Jy/beam
! Combined flux in latest and established models = 0.768389 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 61 components and 0.768389 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258840Jy  sigma=0.001341
! Fit after  self-cal, rms=0.258820Jy  sigma=0.001341
! Inverting map 
! Added new window around map position (34.5, -2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00443989 Jy
! Component: 100  -  total flux cleaned = 0.00467616 Jy
! Component: 150  -  total flux cleaned = 0.00467914 Jy
! Component: 200  -  total flux cleaned = 0.00477424 Jy
! Total flux subtracted in 200 components = 0.00477424 Jy
! Clean residual min=-0.004141 max=0.004557 Jy/beam
! Clean residual mean=0.000380 rms=0.001090 Jy/beam
! Combined flux in latest and established models = 0.773164 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 77 components and 0.773164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258630Jy  sigma=0.001340
! Fit after  self-cal, rms=0.258613Jy  sigma=0.001340
! 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.258613Jy  sigma=0.001340
! Fit after  self-cal, rms=0.260096Jy  sigma=0.001339
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.659 mas, bmaj=5.553 mas, bpa=-5.138 degrees
! Estimated noise=862.046 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000403488 Jy
! Component: 100  -  total flux cleaned = 0.000658459 Jy
! Component: 150  -  total flux cleaned = 0.000895127 Jy
! Component: 200  -  total flux cleaned = 0.00125892 Jy
! Total flux subtracted in 200 components = 0.00125892 Jy
! Clean residual min=-0.004164 max=0.004494 Jy/beam
! Clean residual mean=0.000373 rms=0.001077 Jy/beam
! Combined flux in latest and established models = 0.774423 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 85 components and 0.774422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260004Jy  sigma=0.001339
! Fit after  self-cal, rms=0.260163Jy  sigma=0.001338
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.000467356 Jy
! Component: 100  -  total flux cleaned = 0.000749582 Jy
! Component: 150  -  total flux cleaned = 0.00107807 Jy
! Component: 200  -  total flux cleaned = 0.00126621 Jy
! Total flux subtracted in 200 components = 0.00126621 Jy
! Clean residual min=-0.004172 max=0.004412 Jy/beam
! Clean residual mean=0.000359 rms=0.001077 Jy/beam
! Combined flux in latest and established models = 0.775689 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 90 components and 0.775689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260093Jy  sigma=0.001338
! Fit after  self-cal, rms=0.260075Jy  sigma=0.001338
! 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.260075Jy  sigma=0.001338
! Fit after  self-cal, rms=0.261232Jy  sigma=0.001338
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.573 mas, bmaj=13.26 mas, bpa=-1.947 degrees
! Estimated noise=1145.34 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00307638 Jy
! Component: 100  -  total flux cleaned = 0.00481143 Jy
! Component: 150  -  total flux cleaned = 0.00588772 Jy
! Component: 200  -  total flux cleaned = 0.00609092 Jy
! Total flux subtracted in 200 components = 0.00609092 Jy
! Clean residual min=-0.003148 max=0.004874 Jy/beam
! Clean residual mean=0.000720 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 0.78178 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 99 components and 0.78178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261231Jy  sigma=0.001338
! Fit after  self-cal, rms=0.261485Jy  sigma=0.001338
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.000271521 Jy
! Component: 100  -  total flux cleaned = 0.000620121 Jy
! Component: 150  -  total flux cleaned = 0.000740318 Jy
! Component: 200  -  total flux cleaned = 0.000890464 Jy
! Total flux subtracted in 200 components = 0.000890464 Jy
! Clean residual min=-0.003131 max=0.004660 Jy/beam
! Clean residual mean=0.000696 rms=0.001267 Jy/beam
! Combined flux in latest and established models = 0.78267 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 100 components and 0.78267 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261499Jy  sigma=0.001338
! Fit after  self-cal, rms=0.261505Jy  sigma=0.001338
! 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.659 mas, bmaj=5.551 mas, bpa=-5.134 degrees
! Estimated noise=862.239 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.659 x 5.551 at -5.134 degrees (North through East)
! Clean map  min=-0.0038745  max=0.71354 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.261505Jy  sigma=0.001338
! Fit after  self-cal, rms=19.443132Jy  sigma=0.001206
! Inverting map and beam 
! Estimated beam: bmin=2.661 mas, bmaj=5.575 mas, bpa=-5.109 degrees
! Estimated noise=863.943 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000920185 Jy
! Component: 100  -  total flux cleaned = -0.000859076 Jy
! Component: 150  -  total flux cleaned = -0.000916083 Jy
! Component: 200  -  total flux cleaned = -0.000916628 Jy
! Total flux subtracted in 200 components = -0.000916628 Jy
! Clean residual min=-0.004070 max=0.004292 Jy/beam
! Clean residual mean=0.000396 rms=0.001044 Jy/beam
! Combined flux in latest and established models = 0.781753 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 112 components and 0.781753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=19.443140Jy  sigma=0.001206
! Fit after  self-cal, rms=19.444872Jy  sigma=0.001206
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000112551 Jy
! Component: 100  -  total flux cleaned = -0.000114388 Jy
! Component: 150  -  total flux cleaned = -0.000163742 Jy
! Component: 200  -  total flux cleaned = -0.000162104 Jy
! Total flux subtracted in 200 components = -0.000162104 Jy
! Clean residual min=-0.004062 max=0.004301 Jy/beam
! Clean residual mean=0.000397 rms=0.001041 Jy/beam
! Combined flux in latest and established models = 0.781591 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 120 components and 0.781591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=19.444876Jy  sigma=0.001206
! Fit after  self-cal, rms=19.444904Jy  sigma=0.001206
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=19.444904Jy  sigma=0.001206
! Fit after  self-cal, rms=5.236086Jy  sigma=0.001206
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=4.238 mas, bpa=-1.8 degrees
! Estimated noise=1247.37 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.552284 Jy
! Component: 100  -  total flux cleaned = 0.672979 Jy
! Component: 150  -  total flux cleaned = 0.709207 Jy
! Component: 200  -  total flux cleaned = 0.728725 Jy
! Total flux subtracted in 200 components = 0.728725 Jy
! Clean residual min=-0.006831 max=0.009699 Jy/beam
! Clean residual mean=0.000196 rms=0.001855 Jy/beam
! Combined flux in latest and established models = 0.728725 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 23 model components to the UV plane model.
! The established model now contains 23 components and 0.728725 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.66 mas, bmaj=5.581 mas, bpa=-5.094 degrees
! Estimated noise=864.027 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)
! Added new window around map position (-1, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0180446 Jy
! Component: 100  -  total flux cleaned = 0.0277244 Jy
! Component: 150  -  total flux cleaned = 0.034593 Jy
! Component: 200  -  total flux cleaned = 0.0399536 Jy
! Total flux subtracted in 200 components = 0.0399536 Jy
! Clean residual min=-0.004777 max=0.004782 Jy/beam
! Clean residual mean=0.000523 rms=0.001162 Jy/beam
! Combined flux in latest and established models = 0.768678 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 56 components and 0.768678 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.573 mas, bmaj=13.26 mas, bpa=-1.926 degrees
! Estimated noise=1147.09 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00639442 Jy
! Component: 100  -  total flux cleaned = 0.0103695 Jy
! Component: 150  -  total flux cleaned = 0.0131023 Jy
! Component: 200  -  total flux cleaned = 0.0150549 Jy
! Total flux subtracted in 200 components = 0.0150549 Jy
! Clean residual min=-0.002385 max=0.004131 Jy/beam
! Clean residual mean=0.000909 rms=0.001106 Jy/beam
! Combined flux in latest and established models = 0.783733 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.000790641 Jy
! Component: 100  -  total flux cleaned = 0.00130679 Jy
! Component: 150  -  total flux cleaned = 0.00176045 Jy
! Component: 200  -  total flux cleaned = 0.00212954 Jy
! Total flux subtracted in 200 components = 0.00212954 Jy
! Clean residual min=-0.002273 max=0.004191 Jy/beam
! Clean residual mean=0.000856 rms=0.001079 Jy/beam
! Combined flux in latest and established models = 0.785863 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 99 components and 0.785863 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.66 mas, bmaj=5.581 mas, bpa=-5.094 degrees
! Estimated noise=864.027 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00156519 Jy
! Component: 100  -  total flux cleaned = -0.00227398 Jy
! Component: 150  -  total flux cleaned = -0.00248206 Jy
! Component: 200  -  total flux cleaned = -0.00257601 Jy
! Total flux subtracted in 200 components = -0.00257601 Jy
! Clean residual min=-0.003890 max=0.004199 Jy/beam
! Clean residual mean=0.000372 rms=0.001041 Jy/beam
! Combined flux in latest and established models = 0.783287 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 115 components and 0.783287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=5.236133Jy  sigma=0.001207
! Fit after  self-cal, rms=5.236256Jy  sigma=0.001206
wmodel J0050-0929_S_2001_04_09_pus_map.mod
! Writing 115 model components to file: J0050-0929_S_2001_04_09_pus_map.mod
wobs J0050-0929_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0050-0929_S_2001_04_09_pus_uvs.fits
wwins J0050-0929_S_2001_04_09_pus_map.win
! wwins: Wrote 4 windows to J0050-0929_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.0018912 Jy
! Component: 100  -  total flux cleaned = 0.00342499 Jy
! Component: 150  -  total flux cleaned = 0.00475524 Jy
! Component: 200  -  total flux cleaned = 0.00597609 Jy
! Component: 250  -  total flux cleaned = 0.00722835 Jy
! Component: 300  -  total flux cleaned = 0.00838305 Jy
! Component: 350  -  total flux cleaned = 0.00963384 Jy
! Component: 400  -  total flux cleaned = 0.0108544 Jy
! Component: 450  -  total flux cleaned = 0.0120464 Jy
! Component: 500  -  total flux cleaned = 0.0132116 Jy
! Component: 550  -  total flux cleaned = 0.0141251 Jy
! Component: 600  -  total flux cleaned = 0.014799 Jy
! Component: 650  -  total flux cleaned = 0.0155732 Jy
! Component: 700  -  total flux cleaned = 0.016118 Jy
! Component: 750  -  total flux cleaned = 0.016709 Jy
! Component: 800  -  total flux cleaned = 0.0172925 Jy
! Component: 850  -  total flux cleaned = 0.0179202 Jy
! Component: 900  -  total flux cleaned = 0.0184884 Jy
! Component: 950  -  total flux cleaned = 0.0190495 Jy
! Component: 1000  -  total flux cleaned = 0.0195031 Jy
! Component: 1050  -  total flux cleaned = 0.0199022 Jy
! Component: 1100  -  total flux cleaned = 0.0202479 Jy
! Component: 1150  -  total flux cleaned = 0.0206393 Jy
! Component: 1200  -  total flux cleaned = 0.0210266 Jy
! Component: 1250  -  total flux cleaned = 0.0212188 Jy
! Component: 1300  -  total flux cleaned = 0.0215042 Jy
! Component: 1350  -  total flux cleaned = 0.02174 Jy
! Component: 1400  -  total flux cleaned = 0.0220201 Jy
! Component: 1450  -  total flux cleaned = 0.0221591 Jy
! Component: 1500  -  total flux cleaned = 0.022343 Jy
! Component: 1550  -  total flux cleaned = 0.0226619 Jy
! Component: 1600  -  total flux cleaned = 0.0228427 Jy
! Component: 1650  -  total flux cleaned = 0.0231113 Jy
! Component: 1700  -  total flux cleaned = 0.0232448 Jy
! Component: 1750  -  total flux cleaned = 0.0234215 Jy
! Component: 1800  -  total flux cleaned = 0.0236405 Jy
! Component: 1850  -  total flux cleaned = 0.0237711 Jy
! Component: 1900  -  total flux cleaned = 0.0238573 Jy
! Component: 1950  -  total flux cleaned = 0.0240718 Jy
! Component: 2000  -  total flux cleaned = 0.0241998 Jy
! Total flux subtracted in 2048 components = 0.0244111 Jy
! Clean residual min=-0.002373 max=0.002685 Jy/beam
! Clean residual mean=0.000133 rms=0.000773 Jy/beam
! Combined flux in latest and established models = 0.807698 Jy
keep
! Adding 151 model components to the UV plane model.
! The established model now contains 266 components and 0.807698 Jy
![Exited script file: muppet]
wmap "J0050-0929_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.66 x 5.581 at -5.094 degrees (North through East)
! Clean map  min=-0.0034484  max=0.716 Jy/beam
! Writing clean map to FITS file: J0050-0929_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.716 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000771781 
device "J0050-0929_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0050-0929_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.323372 0.323372 0.646744 1.29349 2.58698 5.17395 10.3479 20.6958 41.3916 82.7832
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.715 
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.66 x 5.581 at -5.094 degrees (North through East)
! Clean map  min=-0.0034484  max=0.716 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0050-0929_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0050-0929_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0050-0929_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 17:33:45 2007