! Started logfile: J1416+3444_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:49:52 2007
obs J1416+3444_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1416+3444_S_2000_05_22_pus_uva.fits
! AN table 1: 18 integrations on 190 of 190 possible baselines.
! AN table 2: 34 integrations on 190 of 190 possible baselines.
! AN table 3: 104 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.133333 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1416+3444
! 
! 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 2003 lines of history.
! 
! Reading 15808 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 J1416+3444_S_2000_05_22_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 221 telescope corrections were flagged in sub-array 1.
!  A total of 561 telescope corrections were flagged in sub-array 2.
!  A total of 1478 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 221 telescope corrections were flagged in sub-array 1.
!  A total of 561 telescope corrections were flagged in sub-array 2.
!  A total of 1478 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 221 telescope corrections were flagged in sub-array 1.
!  A total of 561 telescope corrections were flagged in sub-array 2.
!  A total of 1478 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 221 telescope corrections were flagged in sub-array 1.
!  A total of 561 telescope corrections were flagged in sub-array 2.
!  A total of 1478 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.756907Jy  sigma=0.004909
! Fit after  self-cal, rms=0.703194Jy  sigma=0.004626
! 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.939 mas, bmaj=3.128 mas, bpa=-14.9 degrees
! Estimated noise=1173.77 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.424394 Jy
! Component: 100  -  total flux cleaned = 0.603517 Jy
! Total flux subtracted in 100 components = 0.603517 Jy
! Clean residual min=-0.027808 max=0.081404 Jy/beam
! Clean residual mean=-0.000493 rms=0.008958 Jy/beam
! Combined flux in latest and established models = 0.603517 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.603517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.420998Jy  sigma=0.002533
! Fit after  self-cal, rms=0.415193Jy  sigma=0.002512
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0949532 Jy
! Component: 100  -  total flux cleaned = 0.149378 Jy
! Total flux subtracted in 100 components = 0.149378 Jy
! Clean residual min=-0.020165 max=0.049509 Jy/beam
! Clean residual mean=-0.000460 rms=0.006668 Jy/beam
! Combined flux in latest and established models = 0.752894 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 17 components and 0.752894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395294Jy  sigma=0.002143
! Fit after  self-cal, rms=0.394644Jy  sigma=0.002142
! Inverting map 
! Added new window around map position (18.5, 17.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0502545 Jy
! Component: 100  -  total flux cleaned = 0.087037 Jy
! Total flux subtracted in 100 components = 0.087037 Jy
! Clean residual min=-0.018219 max=0.028976 Jy/beam
! Clean residual mean=-0.000511 rms=0.005752 Jy/beam
! Combined flux in latest and established models = 0.839931 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 36 components and 0.839931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387440Jy  sigma=0.002001
! Fit after  self-cal, rms=0.387288Jy  sigma=0.001998
! 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.018 mas, bmaj=3.62 mas, bpa=-21.11 degrees
! Estimated noise=770.807 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.0508652 Jy
! Component: 100  -  total flux cleaned = 0.0885379 Jy
! Component: 150  -  total flux cleaned = 0.118861 Jy
! Component: 200  -  total flux cleaned = 0.143567 Jy
! Total flux subtracted in 200 components = 0.143567 Jy
! Clean residual min=-0.025485 max=0.033532 Jy/beam
! Clean residual mean=-0.004158 rms=0.007515 Jy/beam
! Combined flux in latest and established models = 0.983499 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 64 components and 0.983499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379987Jy  sigma=0.001833
! Fit after  self-cal, rms=0.379625Jy  sigma=0.001829
! 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.04     FD        1.00*    GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        0.91     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.00*    
!   NY        1.05     OV        0.94     PT        0.94     SC        1.00*    
!   TS        1.02     WF        1.00*    WZ        1.00*    LA        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.86     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.04     KP        1.00*    
!   MA        0.40     MC        1.11     MK        1.00*    NL        1.00*    
!   NY        0.94     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.96     WF        1.00*    WZ        1.03     LA        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.83     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.88     KP        0.92     
!   MA        0.76     MC        0.96     MK        0.96     NL        1.01     
!   NY        1.05     OV        0.91     PT        0.84     SC        1.05     
!   TS        1.00*    WF        2.05     WZ        1.00     LA        0.95     
! 
! 
! Correcting IF 2.
!  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.05     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        0.89     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.00*    
!   NY        1.06     OV        0.94     PT        0.92     SC        1.00*    
!   TS        0.94     WF        1.00*    WZ        1.00*    LA        0.90     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.84     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.21     KP        1.00*    
!   MA        2.20     MC        1.00     MK        1.00*    NL        1.00*    
!   NY        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.04     LA        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.86     GC        0.93     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.95     KP        0.93     
!   MA        0.81     MC        0.90     MK        0.92     NL        1.05     
!   NY        1.07     OV        0.89     PT        0.86     SC        1.06     
!   TS        1.00*    WF        2.12     WZ        0.99     LA        0.91     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.91     KP        0.92     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.00*    
!   NY        1.09     OV        0.95     PT        0.90     SC        1.00*    
!   TS        0.97     WF        1.00*    WZ        1.00*    LA        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.82     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.25     KP        1.00*    
!   MA        0.57     MC        0.71     MK        1.00*    NL        1.00*    
!   NY        1.05     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.06     WF        1.00*    WZ        1.16     LA        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.86     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.93     KP        0.98     
!   MA        0.88     MC        1.41     MK        0.93     NL        1.01     
!   NY        1.02     OV        0.93     PT        0.85     SC        1.07     
!   TS        1.00*    WF        2.18     WZ        1.04     LA        0.97     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00*    GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        0.91     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.00*    
!   NY        1.09     OV        0.91     PT        0.95     SC        1.00*    
!   TS        1.01     WF        1.00*    WZ        1.00*    LA        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.87     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.26     KP        1.00*    
!   MA        0.86     MC        0.86     MK        1.00*    NL        1.00*    
!   NY        0.94     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.07     WF        1.00*    WZ        1.11     LA        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.88     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.96     KP        0.98     
!   MA        1.24     MC        1.05     MK        0.99     NL        1.00     
!   NY        1.00     OV        0.92     PT        0.90     SC        1.05     
!   TS        1.00*    WF        2.16     WZ        1.06     LA        0.97     
! 
! 
! Fit before self-cal, rms=0.379625Jy  sigma=0.001829
! Fit after  self-cal, rms=0.441195Jy  sigma=0.001573
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.012 mas, bmaj=3.7 mas, bpa=-21.55 degrees
! Estimated noise=756.487 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 (16, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0319021 Jy
! Component: 100  -  total flux cleaned = 0.0519249 Jy
! Component: 150  -  total flux cleaned = 0.0662026 Jy
! Component: 200  -  total flux cleaned = 0.0743599 Jy
! Total flux subtracted in 200 components = 0.0743599 Jy
! Clean residual min=-0.010557 max=0.016192 Jy/beam
! Clean residual mean=-0.000547 rms=0.003016 Jy/beam
! Combined flux in latest and established models = 1.05786 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 99 components and 1.05786 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.439326Jy  sigma=0.001501
! Fit after  self-cal, rms=0.440365Jy  sigma=0.001497
! Inverting map 
! Added new window around map position (10, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0162112 Jy
! Component: 100  -  total flux cleaned = 0.0218543 Jy
! Component: 150  -  total flux cleaned = 0.0258743 Jy
! Component: 200  -  total flux cleaned = 0.0284405 Jy
! Total flux subtracted in 200 components = 0.0284405 Jy
! Clean residual min=-0.009669 max=0.011880 Jy/beam
! Clean residual mean=-0.000616 rms=0.002638 Jy/beam
! Combined flux in latest and established models = 1.0863 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 125 components and 1.0863 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.440049Jy  sigma=0.001475
! Fit after  self-cal, rms=0.439975Jy  sigma=0.001473
! 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.439975Jy  sigma=0.001473
! Fit after  self-cal, rms=0.457971Jy  sigma=0.001467
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.017 mas, bmaj=3.688 mas, bpa=-21.26 degrees
! Estimated noise=760.058 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113292 Jy
! Component: 100  -  total flux cleaned = 0.0182039 Jy
! Component: 150  -  total flux cleaned = 0.0224451 Jy
! Component: 200  -  total flux cleaned = 0.0258226 Jy
! Total flux subtracted in 200 components = 0.0258226 Jy
! Clean residual min=-0.008331 max=0.010424 Jy/beam
! Clean residual mean=-0.000570 rms=0.002304 Jy/beam
! Combined flux in latest and established models = 1.11212 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 140 components and 1.11212 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457778Jy  sigma=0.001454
! Fit after  self-cal, rms=0.457896Jy  sigma=0.001453
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 (21.5, 15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0114847 Jy
! Component: 100  -  total flux cleaned = 0.0158483 Jy
! Component: 150  -  total flux cleaned = 0.0186927 Jy
! Component: 200  -  total flux cleaned = 0.020133 Jy
! Total flux subtracted in 200 components = 0.020133 Jy
! Clean residual min=-0.008256 max=0.009200 Jy/beam
! Clean residual mean=-0.000641 rms=0.002063 Jy/beam
! Combined flux in latest and established models = 1.13225 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 161 components and 1.13225 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457797Jy  sigma=0.001443
! Fit after  self-cal, rms=0.457763Jy  sigma=0.001443
! Inverting map 
! Added new window around map position (-15, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00867697 Jy
! Component: 100  -  total flux cleaned = 0.0116139 Jy
! Component: 150  -  total flux cleaned = 0.0136554 Jy
! Component: 200  -  total flux cleaned = 0.0151777 Jy
! Total flux subtracted in 200 components = 0.0151777 Jy
! Clean residual min=-0.008076 max=0.007329 Jy/beam
! Clean residual mean=-0.000692 rms=0.001853 Jy/beam
! Combined flux in latest and established models = 1.14743 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 183 components and 1.14743 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457748Jy  sigma=0.001436
! Fit after  self-cal, rms=0.457743Jy  sigma=0.001436
! 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.457743Jy  sigma=0.001436
! Fit after  self-cal, rms=0.470069Jy  sigma=0.001433
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.022 mas, bmaj=3.687 mas, bpa=-21.05 degrees
! Estimated noise=763.701 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00630508 Jy
! Component: 100  -  total flux cleaned = 0.0100659 Jy
! Component: 150  -  total flux cleaned = 0.012611 Jy
! Component: 200  -  total flux cleaned = 0.0144274 Jy
! Total flux subtracted in 200 components = 0.0144274 Jy
! Clean residual min=-0.006990 max=0.006743 Jy/beam
! Clean residual mean=-0.000674 rms=0.001705 Jy/beam
! Combined flux in latest and established models = 1.16186 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 193 components and 1.16186 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.470058Jy  sigma=0.001429
! Fit after  self-cal, rms=0.470167Jy  sigma=0.001428
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.00262946 Jy
! Component: 100  -  total flux cleaned = 0.00404289 Jy
! Component: 150  -  total flux cleaned = 0.00520608 Jy
! Component: 200  -  total flux cleaned = 0.00616459 Jy
! Total flux subtracted in 200 components = 0.00616459 Jy
! Clean residual min=-0.006910 max=0.006303 Jy/beam
! Clean residual mean=-0.000691 rms=0.001652 Jy/beam
! Combined flux in latest and established models = 1.16802 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 199 components and 1.16802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.470151Jy  sigma=0.001426
! Fit after  self-cal, rms=0.470147Jy  sigma=0.001426
! 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.470147Jy  sigma=0.001426
! Fit after  self-cal, rms=0.474877Jy  sigma=0.001426
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.224 mas, bmaj=8.991 mas, bpa=0.3715 degrees
! Estimated noise=1263.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108772 Jy
! Component: 100  -  total flux cleaned = 0.016996 Jy
! Component: 150  -  total flux cleaned = 0.0188808 Jy
! Component: 200  -  total flux cleaned = 0.0203628 Jy
! Total flux subtracted in 200 components = 0.0203628 Jy
! Clean residual min=-0.013676 max=0.005828 Jy/beam
! Clean residual mean=-0.003189 rms=0.003345 Jy/beam
! Combined flux in latest and established models = 1.18839 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 213 components and 1.18839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474893Jy  sigma=0.001425
! Fit after  self-cal, rms=0.474947Jy  sigma=0.001424
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.00342709 Jy
! Component: 100  -  total flux cleaned = 0.00418265 Jy
! Component: 150  -  total flux cleaned = 0.00456 Jy
! Component: 200  -  total flux cleaned = 0.0046681 Jy
! Total flux subtracted in 200 components = 0.0046681 Jy
! Clean residual min=-0.013811 max=0.004479 Jy/beam
! Clean residual mean=-0.003223 rms=0.003240 Jy/beam
! Combined flux in latest and established models = 1.19306 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 222 components and 1.19306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474982Jy  sigma=0.001424
! Fit after  self-cal, rms=0.474971Jy  sigma=0.001424
! 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.024 mas, bmaj=3.685 mas, bpa=-20.95 degrees
! Estimated noise=765.79 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.024 x 3.685 at -20.95 degrees (North through East)
! Clean map  min=-0.0062661  max=0.49572 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
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.957 mas, bmaj=3.163 mas, bpa=-14.49 degrees
! Estimated noise=1139.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.40896 Jy
! Component: 100  -  total flux cleaned = 0.580823 Jy
! Component: 150  -  total flux cleaned = 0.667873 Jy
! Component: 200  -  total flux cleaned = 0.725499 Jy
! Total flux subtracted in 200 components = 0.725499 Jy
! Clean residual min=-0.016217 max=0.035012 Jy/beam
! Clean residual mean=-0.000044 rms=0.005603 Jy/beam
! Combined flux in latest and established models = 0.725499 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.725499 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.024 mas, bmaj=3.685 mas, bpa=-20.95 degrees
! Estimated noise=765.79 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 (2, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.072612 Jy
! Component: 100  -  total flux cleaned = 0.130209 Jy
! Component: 150  -  total flux cleaned = 0.177785 Jy
! Component: 200  -  total flux cleaned = 0.217494 Jy
! Total flux subtracted in 200 components = 0.217494 Jy
! Clean residual min=-0.012904 max=0.024173 Jy/beam
! Clean residual mean=0.000234 rms=0.005747 Jy/beam
! Combined flux in latest and established models = 0.942992 Jy
! Adding 71 model components to the UV plane model.
! The established model now contains 81 components and 0.942993 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.224 mas, bmaj=8.991 mas, bpa=0.3715 degrees
! Estimated noise=1263.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.101326 Jy
! Component: 100  -  total flux cleaned = 0.154665 Jy
! Component: 150  -  total flux cleaned = 0.186673 Jy
! Component: 200  -  total flux cleaned = 0.207571 Jy
! Total flux subtracted in 200 components = 0.207571 Jy
! Clean residual min=-0.017229 max=0.011858 Jy/beam
! Clean residual mean=-0.002515 rms=0.005436 Jy/beam
! Combined flux in latest and established models = 1.15056 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.0140443 Jy
! Component: 100  -  total flux cleaned = 0.0236404 Jy
! Component: 150  -  total flux cleaned = 0.0302835 Jy
! Component: 200  -  total flux cleaned = 0.0347726 Jy
! Total flux subtracted in 200 components = 0.0347726 Jy
! Clean residual min=-0.014630 max=0.005999 Jy/beam
! Clean residual mean=-0.003118 rms=0.003464 Jy/beam
! Combined flux in latest and established models = 1.18534 Jy
! Adding 135 model components to the UV plane model.
! The established model now contains 191 components and 1.18534 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.024 mas, bmaj=3.685 mas, bpa=-20.95 degrees
! Estimated noise=765.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00475677 Jy
! Component: 100  -  total flux cleaned = -0.0044939 Jy
! Component: 150  -  total flux cleaned = -0.00302594 Jy
! Component: 200  -  total flux cleaned = -0.00226171 Jy
! Total flux subtracted in 200 components = -0.00226171 Jy
! Clean residual min=-0.007189 max=0.007563 Jy/beam
! Clean residual mean=-0.000705 rms=0.001724 Jy/beam
! Combined flux in latest and established models = 1.18307 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 203 components and 1.18307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.475212Jy  sigma=0.001426
! Fit after  self-cal, rms=0.475169Jy  sigma=0.001424
wmodel J1416+3444_S_2000_05_22_pus_map.mod
! Writing 203 model components to file: J1416+3444_S_2000_05_22_pus_map.mod
wobs J1416+3444_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1416+3444_S_2000_05_22_pus_uvs.fits
wwins J1416+3444_S_2000_05_22_pus_map.win
! wwins: Wrote 7 windows to J1416+3444_S_2000_05_22_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000732095 Jy
! Component: 100  -  total flux cleaned = -0.00230855 Jy
! Component: 150  -  total flux cleaned = -0.00403186 Jy
! Component: 200  -  total flux cleaned = -0.00580121 Jy
! Component: 250  -  total flux cleaned = -0.00772264 Jy
! Component: 300  -  total flux cleaned = -0.00968319 Jy
! Component: 350  -  total flux cleaned = -0.0112847 Jy
! Component: 400  -  total flux cleaned = -0.0126496 Jy
! Component: 450  -  total flux cleaned = -0.0138871 Jy
! Component: 500  -  total flux cleaned = -0.0151891 Jy
! Component: 550  -  total flux cleaned = -0.0164622 Jy
! Component: 600  -  total flux cleaned = -0.0177985 Jy
! Component: 650  -  total flux cleaned = -0.0191087 Jy
! Component: 700  -  total flux cleaned = -0.0204803 Jy
! Component: 750  -  total flux cleaned = -0.0217446 Jy
! Component: 800  -  total flux cleaned = -0.0231557 Jy
! Component: 850  -  total flux cleaned = -0.0246252 Jy
! Component: 900  -  total flux cleaned = -0.0259911 Jy
! Component: 950  -  total flux cleaned = -0.027257 Jy
! Component: 1000  -  total flux cleaned = -0.0286612 Jy
! Component: 1050  -  total flux cleaned = -0.0299679 Jy
! Component: 1100  -  total flux cleaned = -0.0311837 Jy
! Component: 1150  -  total flux cleaned = -0.0326074 Jy
! Component: 1200  -  total flux cleaned = -0.0337902 Jy
! Component: 1250  -  total flux cleaned = -0.0350312 Jy
! Component: 1300  -  total flux cleaned = -0.036186 Jy
! Component: 1350  -  total flux cleaned = -0.0374703 Jy
! Component: 1400  -  total flux cleaned = -0.0385978 Jy
! Component: 1450  -  total flux cleaned = -0.0398517 Jy
! Component: 1500  -  total flux cleaned = -0.0409531 Jy
! Component: 1550  -  total flux cleaned = -0.0423826 Jy
! Component: 1600  -  total flux cleaned = -0.0434595 Jy
! Component: 1650  -  total flux cleaned = -0.0445924 Jy
! Component: 1700  -  total flux cleaned = -0.0458456 Jy
! Component: 1750  -  total flux cleaned = -0.0470204 Jy
! Component: 1800  -  total flux cleaned = -0.0481187 Jy
! Component: 1850  -  total flux cleaned = -0.049206 Jy
! Component: 1900  -  total flux cleaned = -0.0502833 Jy
! Component: 1950  -  total flux cleaned = -0.0514128 Jy
! Component: 2000  -  total flux cleaned = -0.0524705 Jy
! Total flux subtracted in 2048 components = -0.0533953 Jy
! Clean residual min=-0.003580 max=0.003067 Jy/beam
! Clean residual mean=-0.000517 rms=0.001109 Jy/beam
! Combined flux in latest and established models = 1.12968 Jy
keep
! Adding 165 model components to the UV plane model.
! The established model now contains 366 components and 1.12968 Jy
![Exited script file: muppet]
wmap "J1416+3444_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.024 x 3.685 at -20.95 degrees (North through East)
! Clean map  min=-0.0052061  max=0.50005 Jy/beam
! Writing clean map to FITS file: J1416+3444_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.500049 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00110531 
device "J1416+3444_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1416+3444_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.663119 0.663119 1.32624 2.65248 5.30495 10.6099 21.2198 42.4396 84.8792
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0033 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.5 
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.024 x 3.685 at -20.95 degrees (North through East)
! Clean map  min=-0.0052061  max=0.50005 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1416+3444_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1416+3444_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1416+3444_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:50:02 2007