! Started logfile: J0238+1636_S_2000_12_04_pus_uvs.log on Wed Oct 17 16:55:10 2007
obs J0238+1636_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0238+1636_S_2000_12_04_pus_uva.fits
! AN table 1: 23 integrations on 190 of 190 possible baselines.
! AN table 2: 44 integrations on 190 of 190 possible baselines.
! AN table 3: 11 integrations on 190 of 190 possible baselines.
! AN table 4: 52 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0988664 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0238+1636
! 
! 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 2169 lines of history.
! 
! Reading 9768 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 J0238+1636_S_2000_12_04_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 427 telescope corrections were flagged in sub-array 1.
!  A total of 575 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 755 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 427 telescope corrections were flagged in sub-array 1.
!  A total of 575 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 755 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 427 telescope corrections were flagged in sub-array 1.
!  A total of 575 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 755 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 427 telescope corrections were flagged in sub-array 1.
!  A total of 575 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 755 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.887758Jy  sigma=0.007849
! Fit after  self-cal, rms=0.436802Jy  sigma=0.003677
! 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.337 mas, bmaj=4.444 mas, bpa=-3.375 degrees
! Estimated noise=1248.4 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.575275 Jy
! Component: 100  -  total flux cleaned = 0.704747 Jy
! Total flux subtracted in 100 components = 0.704747 Jy
! Clean residual min=-0.015537 max=0.045871 Jy/beam
! Clean residual mean=0.000225 rms=0.005341 Jy/beam
! Combined flux in latest and established models = 0.704747 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.704747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.361356Jy  sigma=0.003073
! Fit after  self-cal, rms=0.361358Jy  sigma=0.003073
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.048238 Jy
! Component: 100  -  total flux cleaned = 0.0765007 Jy
! Total flux subtracted in 100 components = 0.0765007 Jy
! Clean residual min=-0.012867 max=0.016816 Jy/beam
! Clean residual mean=0.000133 rms=0.003837 Jy/beam
! Combined flux in latest and established models = 0.781248 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 19 components and 0.781248 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353584Jy  sigma=0.002978
! Fit after  self-cal, rms=0.353553Jy  sigma=0.002978
! 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.727 mas, bmaj=5.29 mas, bpa=-7.566 degrees
! Estimated noise=847.926 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.0283098 Jy
! Component: 100  -  total flux cleaned = 0.0438232 Jy
! Component: 150  -  total flux cleaned = 0.0527625 Jy
! Component: 200  -  total flux cleaned = 0.0580559 Jy
! Total flux subtracted in 200 components = 0.0580559 Jy
! Clean residual min=-0.013809 max=0.013798 Jy/beam
! Clean residual mean=-0.000243 rms=0.003304 Jy/beam
! Combined flux in latest and established models = 0.839304 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 40 components and 0.839304 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351692Jy  sigma=0.002954
! Fit after  self-cal, rms=0.351672Jy  sigma=0.002954
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 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*    
!   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 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.92     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.01     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.98     NY        1.00*    OV        0.97     PT        0.98     
!   SC        1.00*    TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  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 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.02     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.10     KK        0.97     KP        0.99     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        1.03     NY        1.07     OV        1.00     PT        1.02     
!   SC        1.00*    TS        0.98     WF        1.07     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 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*    
!   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 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.95     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.93     NY        1.00*    OV        0.95     PT        0.99     
!   SC        1.00*    TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  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 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.01     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.09     KK        1.04     KP        1.00     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.01     NY        1.05     OV        0.96     PT        1.05     
!   SC        1.00*    TS        0.96     WF        1.08     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 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*    
!   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 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.11     FD        0.95     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        0.92     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.08     NY        1.00*    OV        1.07     PT        1.02     
!   SC        1.00*    TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  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 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.80     FD        1.08     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.98     KP        0.97     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.90     NY        1.06     OV        1.22     PT        0.83     
!   SC        1.00*    TS        1.05     WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 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*    
!   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 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.94     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        0.98     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        0.97     NY        1.00*    OV        0.99     PT        1.07     
!   SC        1.00*    TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  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 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.03     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.11     KK        0.98     KP        1.00     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.03     NY        1.07     OV        1.02     PT        1.02     
!   SC        1.00*    TS        0.99     WF        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.351672Jy  sigma=0.002954
! Fit after  self-cal, rms=0.334978Jy  sigma=0.002927
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.727 mas, bmaj=5.542 mas, bpa=-7.782 degrees
! Estimated noise=859.224 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.000971492 Jy
! Component: 100  -  total flux cleaned = -0.00153531 Jy
! Component: 150  -  total flux cleaned = -0.00174178 Jy
! Component: 200  -  total flux cleaned = -0.00186491 Jy
! Total flux subtracted in 200 components = -0.00186491 Jy
! Clean residual min=-0.008127 max=0.010162 Jy/beam
! Clean residual mean=0.000342 rms=0.002481 Jy/beam
! Combined flux in latest and established models = 0.837439 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 46 components and 0.837439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334910Jy  sigma=0.002926
! Fit after  self-cal, rms=0.335477Jy  sigma=0.002924
! 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.335477Jy  sigma=0.002924
! Fit after  self-cal, rms=0.335893Jy  sigma=0.002924
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.732 mas, bmaj=5.547 mas, bpa=-7.815 degrees
! Estimated noise=859.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00108342 Jy
! Component: 100  -  total flux cleaned = -0.00137866 Jy
! Component: 150  -  total flux cleaned = -0.00156441 Jy
! Component: 200  -  total flux cleaned = -0.00167538 Jy
! Total flux subtracted in 200 components = -0.00167538 Jy
! Clean residual min=-0.008103 max=0.009951 Jy/beam
! Clean residual mean=0.000346 rms=0.002494 Jy/beam
! Combined flux in latest and established models = 0.835764 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 47 components and 0.835764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335848Jy  sigma=0.002924
! Fit after  self-cal, rms=0.335899Jy  sigma=0.002924
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 = 5.12334e-05 Jy
! Component: 100  -  total flux cleaned = 5.0387e-05 Jy
! Component: 150  -  total flux cleaned = 3.26835e-06 Jy
! Component: 200  -  total flux cleaned = -3.83672e-05 Jy
! Total flux subtracted in 200 components = -3.83672e-05 Jy
! Clean residual min=-0.008070 max=0.010016 Jy/beam
! Clean residual mean=0.000346 rms=0.002494 Jy/beam
! Combined flux in latest and established models = 0.835725 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 49 components and 0.835725 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335880Jy  sigma=0.002924
! Fit after  self-cal, rms=0.335882Jy  sigma=0.002924
! 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.335882Jy  sigma=0.002924
! Fit after  self-cal, rms=0.336025Jy  sigma=0.002924
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.736 mas, bmaj=5.552 mas, bpa=-7.834 degrees
! Estimated noise=859.01 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00135417 Jy
! Component: 100  -  total flux cleaned = -0.00145784 Jy
! Component: 150  -  total flux cleaned = -0.00155271 Jy
! Component: 200  -  total flux cleaned = -0.00163946 Jy
! Total flux subtracted in 200 components = -0.00163946 Jy
! Clean residual min=-0.008016 max=0.010005 Jy/beam
! Clean residual mean=0.000365 rms=0.002490 Jy/beam
! Combined flux in latest and established models = 0.834086 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 51 components and 0.834086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335998Jy  sigma=0.002924
! Fit after  self-cal, rms=0.336005Jy  sigma=0.002924
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 = 5.69999e-05 Jy
! Component: 100  -  total flux cleaned = 5.84653e-05 Jy
! Component: 150  -  total flux cleaned = 5.83884e-05 Jy
! Component: 200  -  total flux cleaned = 2.25941e-05 Jy
! Total flux subtracted in 200 components = 2.25941e-05 Jy
! Clean residual min=-0.007987 max=0.010028 Jy/beam
! Clean residual mean=0.000364 rms=0.002488 Jy/beam
! Combined flux in latest and established models = 0.834108 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 51 components and 0.834108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335992Jy  sigma=0.002923
! Fit after  self-cal, rms=0.335992Jy  sigma=0.002923
! 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.335992Jy  sigma=0.002923
! Fit after  self-cal, rms=0.336025Jy  sigma=0.002923
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.263 mas, bmaj=9.348 mas, bpa=-12.55 degrees
! Estimated noise=1087.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00407382 Jy
! Component: 100  -  total flux cleaned = 0.00407239 Jy
! Component: 150  -  total flux cleaned = 0.00415028 Jy
! Component: 200  -  total flux cleaned = 0.00421714 Jy
! Total flux subtracted in 200 components = 0.00421714 Jy
! Clean residual min=-0.012059 max=0.013937 Jy/beam
! Clean residual mean=0.000828 rms=0.004237 Jy/beam
! Combined flux in latest and established models = 0.838326 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 55 components and 0.838326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336085Jy  sigma=0.002924
! Fit after  self-cal, rms=0.336082Jy  sigma=0.002924
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.00077924 Jy
! Component: 100  -  total flux cleaned = 0.000843961 Jy
! Component: 150  -  total flux cleaned = 0.000903591 Jy
! Component: 200  -  total flux cleaned = 0.000960073 Jy
! Total flux subtracted in 200 components = 0.000960073 Jy
! Clean residual min=-0.011988 max=0.013597 Jy/beam
! Clean residual mean=0.000812 rms=0.004229 Jy/beam
! Combined flux in latest and established models = 0.839286 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 56 components and 0.839286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336145Jy  sigma=0.002924
! Fit after  self-cal, rms=0.336143Jy  sigma=0.002924
! 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.74 mas, bmaj=5.557 mas, bpa=-7.846 degrees
! Estimated noise=859.023 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.74 x 5.557 at -7.846 degrees (North through East)
! Clean map  min=-0.0080731  max=0.74722 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.336143Jy  sigma=0.002924
! Fit after  self-cal, rms=0.476702Jy  sigma=0.002684
! Inverting map and beam 
! Estimated beam: bmin=2.742 mas, bmaj=5.577 mas, bpa=-7.819 degrees
! Estimated noise=858.714 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00447761 Jy
! Component: 100  -  total flux cleaned = -0.00530765 Jy
! Component: 150  -  total flux cleaned = -0.00585656 Jy
! Component: 200  -  total flux cleaned = -0.00638967 Jy
! Total flux subtracted in 200 components = -0.00638967 Jy
! Clean residual min=-0.008116 max=0.009948 Jy/beam
! Clean residual mean=0.000364 rms=0.002446 Jy/beam
! Combined flux in latest and established models = 0.832896 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 59 components and 0.832896 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476553Jy  sigma=0.002684
! Fit after  self-cal, rms=0.476471Jy  sigma=0.002684
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000785804 Jy
! Component: 100  -  total flux cleaned = -0.0010443 Jy
! Component: 150  -  total flux cleaned = -0.00134834 Jy
! Component: 200  -  total flux cleaned = -0.0015358 Jy
! Total flux subtracted in 200 components = -0.0015358 Jy
! Clean residual min=-0.008229 max=0.009811 Jy/beam
! Clean residual mean=0.000373 rms=0.002445 Jy/beam
! Combined flux in latest and established models = 0.83136 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 60 components and 0.83136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476418Jy  sigma=0.002684
! Fit after  self-cal, rms=0.476386Jy  sigma=0.002684
! 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.476386Jy  sigma=0.002684
! Fit after  self-cal, rms=0.475439Jy  sigma=0.002684
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.326 mas, bmaj=4.742 mas, bpa=-4.113 degrees
! Estimated noise=1275.35 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.577837 Jy
! Component: 100  -  total flux cleaned = 0.705823 Jy
! Component: 150  -  total flux cleaned = 0.749859 Jy
! Component: 200  -  total flux cleaned = 0.773421 Jy
! Total flux subtracted in 200 components = 0.773421 Jy
! Clean residual min=-0.009446 max=0.012490 Jy/beam
! Clean residual mean=0.000162 rms=0.003026 Jy/beam
! Combined flux in latest and established models = 0.773421 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 22 model components to the UV plane model.
! The established model now contains 22 components and 0.773421 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=5.593 mas, bpa=-7.806 degrees
! Estimated noise=860.241 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.0229158 Jy
! Component: 100  -  total flux cleaned = 0.0355487 Jy
! Component: 150  -  total flux cleaned = 0.0429314 Jy
! Component: 200  -  total flux cleaned = 0.0472764 Jy
! Total flux subtracted in 200 components = 0.0472764 Jy
! Clean residual min=-0.008620 max=0.010191 Jy/beam
! Clean residual mean=0.000424 rms=0.002497 Jy/beam
! Combined flux in latest and established models = 0.820697 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 48 components and 0.820697 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.287 mas, bmaj=9.37 mas, bpa=-12.56 degrees
! Estimated noise=1080.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00743546 Jy
! Component: 100  -  total flux cleaned = 0.00887403 Jy
! Component: 150  -  total flux cleaned = 0.00905482 Jy
! Component: 200  -  total flux cleaned = 0.00922432 Jy
! Total flux subtracted in 200 components = 0.00922432 Jy
! Clean residual min=-0.011505 max=0.013824 Jy/beam
! Clean residual mean=0.000879 rms=0.004052 Jy/beam
! Combined flux in latest and established models = 0.829921 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.000107877 Jy
! Component: 100  -  total flux cleaned = 0.000266942 Jy
! Component: 150  -  total flux cleaned = 0.000416699 Jy
! Component: 200  -  total flux cleaned = 0.000514449 Jy
! Total flux subtracted in 200 components = 0.000514449 Jy
! Clean residual min=-0.011454 max=0.013814 Jy/beam
! Clean residual mean=0.000870 rms=0.004041 Jy/beam
! Combined flux in latest and established models = 0.830436 Jy
! Adding 8 model components to the UV plane model.
! The established model now contains 54 components and 0.830436 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=5.593 mas, bpa=-7.806 degrees
! Estimated noise=860.241 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00458143 Jy
! Component: 100  -  total flux cleaned = -0.00426769 Jy
! Component: 150  -  total flux cleaned = -0.00403145 Jy
! Component: 200  -  total flux cleaned = -0.00384266 Jy
! Total flux subtracted in 200 components = -0.00384266 Jy
! Clean residual min=-0.008190 max=0.009869 Jy/beam
! Clean residual mean=0.000380 rms=0.002454 Jy/beam
! Combined flux in latest and established models = 0.826593 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 56 components and 0.826593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.475217Jy  sigma=0.002685
! Fit after  self-cal, rms=0.475165Jy  sigma=0.002685
wmodel J0238+1636_S_2000_12_04_pus_map.mod
! Writing 56 model components to file: J0238+1636_S_2000_12_04_pus_map.mod
wobs J0238+1636_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0238+1636_S_2000_12_04_pus_uvs.fits
wwins J0238+1636_S_2000_12_04_pus_map.win
! wwins: Wrote 1 windows to J0238+1636_S_2000_12_04_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.00446621 Jy
! Component: 100  -  total flux cleaned = 0.00763526 Jy
! Component: 150  -  total flux cleaned = 0.00971222 Jy
! Component: 200  -  total flux cleaned = 0.0117018 Jy
! Component: 250  -  total flux cleaned = 0.013347 Jy
! Component: 300  -  total flux cleaned = 0.0150726 Jy
! Component: 350  -  total flux cleaned = 0.0167447 Jy
! Component: 400  -  total flux cleaned = 0.0181222 Jy
! Component: 450  -  total flux cleaned = 0.0195902 Jy
! Component: 500  -  total flux cleaned = 0.0212609 Jy
! Component: 550  -  total flux cleaned = 0.0226581 Jy
! Component: 600  -  total flux cleaned = 0.0240258 Jy
! Component: 650  -  total flux cleaned = 0.0252535 Jy
! Component: 700  -  total flux cleaned = 0.0265649 Jy
! Component: 750  -  total flux cleaned = 0.0277433 Jy
! Component: 800  -  total flux cleaned = 0.0287912 Jy
! Component: 850  -  total flux cleaned = 0.0297171 Jy
! Component: 900  -  total flux cleaned = 0.0305264 Jy
! Component: 950  -  total flux cleaned = 0.0313231 Jy
! Component: 1000  -  total flux cleaned = 0.03201 Jy
! Component: 1050  -  total flux cleaned = 0.0327843 Jy
! Component: 1100  -  total flux cleaned = 0.033831 Jy
! Component: 1150  -  total flux cleaned = 0.0345802 Jy
! Component: 1200  -  total flux cleaned = 0.0354116 Jy
! Component: 1250  -  total flux cleaned = 0.0361404 Jy
! Component: 1300  -  total flux cleaned = 0.0368599 Jy
! Component: 1350  -  total flux cleaned = 0.0376571 Jy
! Component: 1400  -  total flux cleaned = 0.0381814 Jy
! Component: 1450  -  total flux cleaned = 0.0387858 Jy
! Component: 1500  -  total flux cleaned = 0.0392973 Jy
! Component: 1550  -  total flux cleaned = 0.0395506 Jy
! Component: 1600  -  total flux cleaned = 0.0402175 Jy
! Component: 1650  -  total flux cleaned = 0.0404648 Jy
! Component: 1700  -  total flux cleaned = 0.0409536 Jy
! Component: 1750  -  total flux cleaned = 0.0411955 Jy
! Component: 1800  -  total flux cleaned = 0.0417543 Jy
! Component: 1850  -  total flux cleaned = 0.0419123 Jy
! Component: 1900  -  total flux cleaned = 0.0423037 Jy
! Component: 1950  -  total flux cleaned = 0.0423035 Jy
! Component: 2000  -  total flux cleaned = 0.0426889 Jy
! Total flux subtracted in 2048 components = 0.0429178 Jy
! Clean residual min=-0.004703 max=0.003804 Jy/beam
! Clean residual mean=0.000042 rms=0.001602 Jy/beam
! Combined flux in latest and established models = 0.869511 Jy
keep
! Adding 162 model components to the UV plane model.
! The established model now contains 218 components and 0.86951 Jy
![Exited script file: muppet]
wmap "J0238+1636_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.753 x 5.593 at -7.806 degrees (North through East)
! Clean map  min=-0.0068926  max=0.74993 Jy/beam
! Writing clean map to FITS file: J0238+1636_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.74993 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0016022 
device "J0238+1636_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0238+1636_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.640942 0.640942 1.28188 2.56377 5.12753 10.2551 20.5101 41.0203 82.0405
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0048 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.749 
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.753 x 5.593 at -7.806 degrees (North through East)
! Clean map  min=-0.0068926  max=0.74993 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0238+1636_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0238+1636_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0238+1636_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 16:55:17 2007