! Started logfile: J0730-1141_S_2001_07_05_pus_uvs.log on Fri Aug 10 00:31:25 2007
obs J0730-1141_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0730-1141_S_2001_07_05_pus_uva.fits
! AN table 1: 28 integrations on 171 of 171 possible baselines.
! AN table 2: 13 integrations on 171 of 171 possible baselines.
! AN table 3: 187 integrations on 171 of 171 possible baselines.
! AN table 4: 75 integrations on 171 of 171 possible baselines.
! AN table 5: 39 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0809138 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0730-1141
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 18928 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 445 telescope corrections were flagged in sub-array 1.
!  A total of 217 telescope corrections were flagged in sub-array 2.
!  A total of 3082 telescope corrections were flagged in sub-array 3.
!  A total of 846 telescope corrections were flagged in sub-array 4.
!  A total of 496 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 445 telescope corrections were flagged in sub-array 1.
!  A total of 217 telescope corrections were flagged in sub-array 2.
!  A total of 3082 telescope corrections were flagged in sub-array 3.
!  A total of 846 telescope corrections were flagged in sub-array 4.
!  A total of 496 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 445 telescope corrections were flagged in sub-array 1.
!  A total of 217 telescope corrections were flagged in sub-array 2.
!  A total of 3082 telescope corrections were flagged in sub-array 3.
!  A total of 846 telescope corrections were flagged in sub-array 4.
!  A total of 496 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 445 telescope corrections were flagged in sub-array 1.
!  A total of 217 telescope corrections were flagged in sub-array 2.
!  A total of 3082 telescope corrections were flagged in sub-array 3.
!  A total of 846 telescope corrections were flagged in sub-array 4.
!  A total of 496 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.807193Jy  sigma=0.014638
! Fit after  self-cal, rms=1.168075Jy  sigma=0.009258
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.89 mas, bmaj=4.6 mas, bpa=6.911 degrees
! Estimated noise=1311.76 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 = 1.44724 Jy
! Component: 100  -  total flux cleaned = 1.84003 Jy
! Total flux subtracted in 100 components = 1.84003 Jy
! Clean residual min=-0.049976 max=0.177053 Jy/beam
! Clean residual mean=-0.000464 rms=0.016571 Jy/beam
! Combined flux in latest and established models = 1.84003 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.84003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.485700Jy  sigma=0.003782
! Fit after  self-cal, rms=0.485457Jy  sigma=0.003781
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.198712 Jy
! Component: 100  -  total flux cleaned = 0.305769 Jy
! Total flux subtracted in 100 components = 0.305769 Jy
! Clean residual min=-0.035948 max=0.060367 Jy/beam
! Clean residual mean=-0.000284 rms=0.009858 Jy/beam
! Combined flux in latest and established models = 2.1458 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 25 components and 2.1458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319590Jy  sigma=0.002391
! Fit after  self-cal, rms=0.318955Jy  sigma=0.002386
! Inverting map 
! Added new window around map position (-2.5, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0709613 Jy
! Component: 100  -  total flux cleaned = 0.118448 Jy
! Total flux subtracted in 100 components = 0.118448 Jy
! Clean residual min=-0.029319 max=0.050276 Jy/beam
! Clean residual mean=-0.000223 rms=0.008535 Jy/beam
! Combined flux in latest and established models = 2.26425 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 35 components and 2.26425 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281920Jy  sigma=0.002057
! Fit after  self-cal, rms=0.281133Jy  sigma=0.002051
! Inverting map 
! Added new window around map position (-6, 8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0474393 Jy
! Component: 100  -  total flux cleaned = 0.0790391 Jy
! Total flux subtracted in 100 components = 0.0790391 Jy
! Clean residual min=-0.027991 max=0.035807 Jy/beam
! Clean residual mean=-0.000211 rms=0.007833 Jy/beam
! Combined flux in latest and established models = 2.34329 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 49 components and 2.34329 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264971Jy  sigma=0.001906
! Fit after  self-cal, rms=0.264282Jy  sigma=0.001901
! 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.526 mas, bmaj=7.802 mas, bpa=-0.0129 degrees
! Estimated noise=662.122 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.0566568 Jy
! Component: 100  -  total flux cleaned = 0.0900324 Jy
! Component: 150  -  total flux cleaned = 0.112502 Jy
! Component: 200  -  total flux cleaned = 0.127859 Jy
! Total flux subtracted in 200 components = 0.127859 Jy
! Clean residual min=-0.017756 max=0.024465 Jy/beam
! Clean residual mean=0.000450 rms=0.005933 Jy/beam
! Combined flux in latest and established models = 2.47115 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 84 components and 2.47115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251102Jy  sigma=0.001780
! Fit after  self-cal, rms=0.250059Jy  sigma=0.001770
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.15     
!   LA        1.00*    MC        1.00*    MK        0.99     NL        1.00*    
!   NY        1.00*    OV        1.04     PT        1.00*    SC        1.00*    
!   TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.93     GC        1.00*    GG        1.00*    
!   HH        1.04     HN        1.04     KK        1.00*    KP        0.98     
!   LA        0.94     MC        1.01     MK        1.00*    NL        1.01     
!   NY        1.00*    OV        1.00     PT        0.90     SC        0.92     
!   TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        0.97     
!   LA        1.00     MC        1.00*    MK        1.07     NL        1.03     
!   NY        1.00*    OV        1.02     PT        0.97     SC        1.00*    
!   TS        1.05     WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.02     
!   LA        1.00     MC        1.00*    MK        0.98     NL        0.99     
!   NY        1.00*    OV        1.01     PT        0.97     SC        0.96     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.02     
!   LA        1.00*    MC        1.00*    MK        0.96     NL        1.00*    
!   NY        1.00*    OV        1.07     PT        1.00*    SC        1.00*    
!   TS        0.93     WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.03     HN        0.95     KK        1.00*    KP        1.05     
!   LA        0.93     MC        1.11     MK        1.00*    NL        0.98     
!   NY        1.00*    OV        1.01     PT        0.94     SC        0.97     
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        0.96     
!   LA        0.96     MC        1.00*    MK        0.99     NL        0.98     
!   NY        1.00*    OV        1.03     PT        0.99     SC        1.00*    
!   TS        1.02     WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.09     
!   LA        0.97     MC        1.00*    MK        0.98     NL        0.96     
!   NY        1.00*    OV        1.02     PT        0.99     SC        0.96     
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00*    GC        1.11     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        1.12     
!   LA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   NY        1.00*    OV        1.09     PT        1.00*    SC        1.00*    
!   TS        0.91     WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.89     GC        1.00*    GG        1.00*    
!   HH        1.01     HN        1.06     KK        1.00*    KP        0.95     
!   LA        0.95     MC        1.98     MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.03     PT        0.92     SC        0.97     
!   TS        1.00*    WF        1.09     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.03     
!   LA        0.99     MC        1.00*    MK        1.05     NL        1.03     
!   NY        1.00*    OV        1.07     PT        1.00     SC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        1.08     
!   LA        1.00     MC        1.00*    MK        0.99     NL        0.99     
!   NY        1.00*    OV        1.05     PT        1.01     SC        0.95     
!   TS        1.00*    WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.15     
!   LA        1.00*    MC        1.00*    MK        0.98     NL        1.00*    
!   NY        1.00*    OV        1.01     PT        1.00*    SC        1.00*    
!   TS        0.91     WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        0.99     HN        0.93     KK        1.00*    KP        0.99     
!   LA        0.92     MC        1.55     MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.00     PT        0.97     SC        0.95     
!   TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        0.99     
!   LA        0.99     MC        1.00*    MK        1.04     NL        1.00     
!   NY        1.00*    OV        0.97     PT        1.05     SC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        1.03     
!   LA        0.99     MC        1.00*    MK        0.97     NL        0.98     
!   NY        1.00*    OV        0.97     PT        1.09     SC        0.94     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.250059Jy  sigma=0.001770
! Fit after  self-cal, rms=0.208784Jy  sigma=0.001383
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.529 mas, bmaj=8.166 mas, bpa=-0.2526 degrees
! Estimated noise=665.261 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.00417383 Jy
! Component: 100  -  total flux cleaned = -0.00598613 Jy
! Component: 150  -  total flux cleaned = -0.00654473 Jy
! Component: 200  -  total flux cleaned = -0.00697323 Jy
! Total flux subtracted in 200 components = -0.00697323 Jy
! Clean residual min=-0.010104 max=0.011996 Jy/beam
! Clean residual mean=0.000553 rms=0.002653 Jy/beam
! Combined flux in latest and established models = 2.46417 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 96 components and 2.46417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207900Jy  sigma=0.001372
! Fit after  self-cal, rms=0.208056Jy  sigma=0.001371
! 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.208056Jy  sigma=0.001371
! Fit after  self-cal, rms=0.208487Jy  sigma=0.001370
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.535 mas, bmaj=8.162 mas, bpa=-0.2227 degrees
! Estimated noise=665.307 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00120763 Jy
! Component: 100  -  total flux cleaned = -0.00194568 Jy
! Component: 150  -  total flux cleaned = -0.0023512 Jy
! Component: 200  -  total flux cleaned = -0.00253669 Jy
! Total flux subtracted in 200 components = -0.00253669 Jy
! Clean residual min=-0.008999 max=0.011738 Jy/beam
! Clean residual mean=0.000615 rms=0.002525 Jy/beam
! Combined flux in latest and established models = 2.46164 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 103 components and 2.46163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208026Jy  sigma=0.001365
! Fit after  self-cal, rms=0.207987Jy  sigma=0.001364
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 (-12.5, 14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0111267 Jy
! Component: 100  -  total flux cleaned = 0.0133135 Jy
! Component: 150  -  total flux cleaned = 0.0144419 Jy
! Component: 200  -  total flux cleaned = 0.0156384 Jy
! Total flux subtracted in 200 components = 0.0156384 Jy
! Clean residual min=-0.009404 max=0.009894 Jy/beam
! Clean residual mean=0.000324 rms=0.002114 Jy/beam
! Combined flux in latest and established models = 2.47727 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 125 components and 2.47727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207309Jy  sigma=0.001356
! Fit after  self-cal, rms=0.207247Jy  sigma=0.001356
! Inverting map 
! Added new window around map position (-1.5, 14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00895883 Jy
! Component: 100  -  total flux cleaned = 0.00946065 Jy
! Component: 150  -  total flux cleaned = 0.0101193 Jy
! Component: 200  -  total flux cleaned = 0.010317 Jy
! Total flux subtracted in 200 components = 0.010317 Jy
! Clean residual min=-0.008536 max=0.006772 Jy/beam
! Clean residual mean=0.000137 rms=0.001842 Jy/beam
! Combined flux in latest and established models = 2.48759 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 139 components and 2.48759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206676Jy  sigma=0.001349
! Fit after  self-cal, rms=0.206630Jy  sigma=0.001349
! 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.206630Jy  sigma=0.001349
! Fit after  self-cal, rms=0.206877Jy  sigma=0.001347
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.538 mas, bmaj=8.16 mas, bpa=-0.2147 degrees
! Estimated noise=664.919 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00234397 Jy
! Component: 100  -  total flux cleaned = 0.00432574 Jy
! Component: 150  -  total flux cleaned = 0.0050722 Jy
! Component: 200  -  total flux cleaned = 0.00591934 Jy
! Total flux subtracted in 200 components = 0.00591934 Jy
! Clean residual min=-0.007444 max=0.005989 Jy/beam
! Clean residual mean=0.000269 rms=0.001596 Jy/beam
! Combined flux in latest and established models = 2.49351 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 148 components and 2.49351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206514Jy  sigma=0.001343
! Fit after  self-cal, rms=0.206486Jy  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)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00113549 Jy
! Component: 100  -  total flux cleaned = 0.0020709 Jy
! Component: 150  -  total flux cleaned = 0.00277768 Jy
! Component: 200  -  total flux cleaned = 0.00343186 Jy
! Total flux subtracted in 200 components = 0.00343186 Jy
! Clean residual min=-0.007268 max=0.005811 Jy/beam
! Clean residual mean=0.000206 rms=0.001519 Jy/beam
! Combined flux in latest and established models = 2.49694 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 155 components and 2.49694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206302Jy  sigma=0.001340
! Fit after  self-cal, rms=0.206279Jy  sigma=0.001340
! 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.206279Jy  sigma=0.001340
! Fit after  self-cal, rms=0.206511Jy  sigma=0.001339
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.209 mas, bmaj=14.37 mas, bpa=7.482 degrees
! Estimated noise=838.231 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00394639 Jy
! Component: 100  -  total flux cleaned = 0.00547979 Jy
! Component: 150  -  total flux cleaned = 0.0066023 Jy
! Component: 200  -  total flux cleaned = 0.00729826 Jy
! Total flux subtracted in 200 components = 0.00729826 Jy
! Clean residual min=-0.003953 max=0.005325 Jy/beam
! Clean residual mean=0.000429 rms=0.001433 Jy/beam
! Combined flux in latest and established models = 2.50424 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 187 components and 2.50424 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206418Jy  sigma=0.001339
! Fit after  self-cal, rms=0.206390Jy  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.000238788 Jy
! Component: 100  -  total flux cleaned = 0.000956015 Jy
! Component: 150  -  total flux cleaned = 0.00127186 Jy
! Component: 200  -  total flux cleaned = 0.00143915 Jy
! Total flux subtracted in 200 components = 0.00143915 Jy
! Clean residual min=-0.003678 max=0.005045 Jy/beam
! Clean residual mean=0.000372 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 2.50568 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 197 components and 2.50568 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206342Jy  sigma=0.001338
! Fit after  self-cal, rms=0.206315Jy  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.542 mas, bmaj=8.157 mas, bpa=-0.2077 degrees
! Estimated noise=664.795 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.542 x 8.157 at -0.2077 degrees (North through East)
! Clean map  min=-0.0070081  max=1.9699 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.206315Jy  sigma=0.001338
! Fit after  self-cal, rms=0.188081Jy  sigma=0.001158
! Inverting map and beam 
! Estimated beam: bmin=2.544 mas, bmaj=8.158 mas, bpa=-0.2131 degrees
! Estimated noise=664.493 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00134941 Jy
! Component: 100  -  total flux cleaned = -0.00163311 Jy
! Component: 150  -  total flux cleaned = -0.00163123 Jy
! Component: 200  -  total flux cleaned = -0.00129695 Jy
! Total flux subtracted in 200 components = -0.00129695 Jy
! Clean residual min=-0.006328 max=0.004808 Jy/beam
! Clean residual mean=0.000277 rms=0.001230 Jy/beam
! Combined flux in latest and established models = 2.50438 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 207 components and 2.50438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187898Jy  sigma=0.001156
! Fit after  self-cal, rms=0.187875Jy  sigma=0.001156
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000644676 Jy
! Component: 100  -  total flux cleaned = 0.00074973 Jy
! Component: 150  -  total flux cleaned = 0.000942754 Jy
! Component: 200  -  total flux cleaned = 0.001127 Jy
! Total flux subtracted in 200 components = 0.001127 Jy
! Clean residual min=-0.006052 max=0.004797 Jy/beam
! Clean residual mean=0.000258 rms=0.001186 Jy/beam
! Combined flux in latest and established models = 2.50551 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 212 components and 2.50551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187779Jy  sigma=0.001155
! Fit after  self-cal, rms=0.187767Jy  sigma=0.001155
! 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.187767Jy  sigma=0.001155
! Fit after  self-cal, rms=0.187978Jy  sigma=0.001154
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.909 mas, bmaj=4.84 mas, bpa=6.582 degrees
! Estimated noise=1331.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.45924 Jy
! Component: 100  -  total flux cleaned = 1.84479 Jy
! Component: 150  -  total flux cleaned = 2.03734 Jy
! Component: 200  -  total flux cleaned = 2.14334 Jy
! Total flux subtracted in 200 components = 2.14334 Jy
! Clean residual min=-0.019888 max=0.053948 Jy/beam
! Clean residual mean=-0.000076 rms=0.006550 Jy/beam
! Combined flux in latest and established models = 2.14334 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 25 model components to the UV plane model.
! The established model now contains 25 components and 2.14334 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.547 mas, bmaj=8.16 mas, bpa=-0.209 degrees
! Estimated noise=664.437 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.12682 Jy
! Component: 100  -  total flux cleaned = 0.194971 Jy
! Component: 150  -  total flux cleaned = 0.237252 Jy
! Component: 200  -  total flux cleaned = 0.26586 Jy
! Total flux subtracted in 200 components = 0.26586 Jy
! Clean residual min=-0.007056 max=0.016058 Jy/beam
! Clean residual mean=0.001919 rms=0.004097 Jy/beam
! Combined flux in latest and established models = 2.4092 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 92 components and 2.4092 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=8.207 mas, bmaj=14.36 mas, bpa=7.529 degrees
! Estimated noise=836.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0331991 Jy
! Component: 100  -  total flux cleaned = 0.0532859 Jy
! Component: 150  -  total flux cleaned = 0.0667867 Jy
! Component: 200  -  total flux cleaned = 0.0762149 Jy
! Total flux subtracted in 200 components = 0.0762149 Jy
! Clean residual min=-0.003317 max=0.005980 Jy/beam
! Clean residual mean=0.001267 rms=0.001894 Jy/beam
! Combined flux in latest and established models = 2.48541 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.00666137 Jy
! Component: 100  -  total flux cleaned = 0.0113861 Jy
! Component: 150  -  total flux cleaned = 0.0147457 Jy
! Component: 200  -  total flux cleaned = 0.0171383 Jy
! Total flux subtracted in 200 components = 0.0171383 Jy
! Clean residual min=-0.002643 max=0.003500 Jy/beam
! Clean residual mean=0.000653 rms=0.001091 Jy/beam
! Combined flux in latest and established models = 2.50255 Jy
! Adding 107 model components to the UV plane model.
! The established model now contains 190 components and 2.50255 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.547 mas, bmaj=8.16 mas, bpa=-0.209 degrees
! Estimated noise=664.437 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000217637 Jy
! Component: 100  -  total flux cleaned = 0.000661796 Jy
! Component: 150  -  total flux cleaned = 0.00119342 Jy
! Component: 200  -  total flux cleaned = 0.00155649 Jy
! Total flux subtracted in 200 components = 0.00155649 Jy
! Clean residual min=-0.004582 max=0.006250 Jy/beam
! Clean residual mean=0.000282 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 2.50411 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 208 components and 2.50411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188327Jy  sigma=0.001156
! Fit after  self-cal, rms=0.188187Jy  sigma=0.001155
wmodel J0730-1141_S_2001_07_05_pus_map.mod
! Writing 208 model components to file: J0730-1141_S_2001_07_05_pus_map.mod
wobs J0730-1141_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0730-1141_S_2001_07_05_pus_uvs.fits
wwins J0730-1141_S_2001_07_05_pus_map.win
! wwins: Wrote 5 windows to J0730-1141_S_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000773473 Jy
! Component: 100  -  total flux cleaned = 0.000943654 Jy
! Component: 150  -  total flux cleaned = 0.0011021 Jy
! Component: 200  -  total flux cleaned = 0.00170355 Jy
! Component: 250  -  total flux cleaned = 0.00249539 Jy
! Component: 300  -  total flux cleaned = 0.00347206 Jy
! Component: 350  -  total flux cleaned = 0.00441826 Jy
! Component: 400  -  total flux cleaned = 0.00540233 Jy
! Component: 450  -  total flux cleaned = 0.00635973 Jy
! Component: 500  -  total flux cleaned = 0.00729283 Jy
! Component: 550  -  total flux cleaned = 0.00820218 Jy
! Component: 600  -  total flux cleaned = 0.00908964 Jy
! Component: 650  -  total flux cleaned = 0.0100131 Jy
! Component: 700  -  total flux cleaned = 0.0108585 Jy
! Component: 750  -  total flux cleaned = 0.0114651 Jy
! Component: 800  -  total flux cleaned = 0.01206 Jy
! Component: 850  -  total flux cleaned = 0.0125902 Jy
! Component: 900  -  total flux cleaned = 0.0129547 Jy
! Component: 950  -  total flux cleaned = 0.0132117 Jy
! Component: 1000  -  total flux cleaned = 0.0135665 Jy
! Component: 1050  -  total flux cleaned = 0.0139153 Jy
! Component: 1100  -  total flux cleaned = 0.0141604 Jy
! Component: 1150  -  total flux cleaned = 0.0143541 Jy
! Component: 1200  -  total flux cleaned = 0.0146878 Jy
! Component: 1250  -  total flux cleaned = 0.0148291 Jy
! Component: 1300  -  total flux cleaned = 0.0150626 Jy
! Component: 1350  -  total flux cleaned = 0.015385 Jy
! Component: 1400  -  total flux cleaned = 0.0155672 Jy
! Component: 1450  -  total flux cleaned = 0.0157927 Jy
! Component: 1500  -  total flux cleaned = 0.0161492 Jy
! Component: 1550  -  total flux cleaned = 0.0163693 Jy
! Component: 1600  -  total flux cleaned = 0.0166743 Jy
! Component: 1650  -  total flux cleaned = 0.0169328 Jy
! Component: 1700  -  total flux cleaned = 0.0171462 Jy
! Component: 1750  -  total flux cleaned = 0.0172733 Jy
! Component: 1800  -  total flux cleaned = 0.017525 Jy
! Component: 1850  -  total flux cleaned = 0.0177326 Jy
! Component: 1900  -  total flux cleaned = 0.017938 Jy
! Component: 1950  -  total flux cleaned = 0.0180194 Jy
! Component: 2000  -  total flux cleaned = 0.0182214 Jy
! Total flux subtracted in 2048 components = 0.0182616 Jy
! Clean residual min=-0.002453 max=0.002373 Jy/beam
! Clean residual mean=0.000064 rms=0.000780 Jy/beam
! Combined flux in latest and established models = 2.52237 Jy
keep
! Adding 112 model components to the UV plane model.
! The established model now contains 319 components and 2.52237 Jy
wmap "J0730-1141_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.547 x 8.16 at -0.209 degrees (North through East)
! Clean map  min=-0.004929  max=1.9727 Jy/beam
! Writing clean map to FITS file: J0730-1141_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.97273 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000780255 
device "J0730-1141_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0730-1141_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.118656 0.118656 0.237312 0.474623 0.949246 1.89849 3.79699 7.59397 15.1879 30.3759 60.7518
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.972 
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.547 x 8.16 at -0.209 degrees (North through East)
! Clean map  min=-0.004929  max=1.9727 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0730-1141_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0730-1141_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0730-1141_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:33:26 2007