! Started logfile: J1842+6809_S_2001_04_09_pus_uvs.log on Mon Oct  8 11:10:44 2007
obs J1842+6809_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1842+6809_S_2001_04_09_pus_uva.fits
! AN table 1: 111 integrations on 190 of 190 possible baselines.
! AN table 2: 441 integrations on 190 of 190 possible baselines.
! AN table 3: 72 integrations on 190 of 190 possible baselines.
! AN table 4: 82 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.218883 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1842+6809
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1953 lines of history.
! 
! Reading 117444 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 J1842+6809_S_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1014 telescope corrections were flagged in sub-array 1.
!  A total of 6009 telescope corrections were flagged in sub-array 2.
!  A total of 887 telescope corrections were flagged in sub-array 3.
!  A total of 968 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1014 telescope corrections were flagged in sub-array 1.
!  A total of 6009 telescope corrections were flagged in sub-array 2.
!  A total of 887 telescope corrections were flagged in sub-array 3.
!  A total of 968 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1014 telescope corrections were flagged in sub-array 1.
!  A total of 6009 telescope corrections were flagged in sub-array 2.
!  A total of 887 telescope corrections were flagged in sub-array 3.
!  A total of 968 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1014 telescope corrections were flagged in sub-array 1.
!  A total of 6015 telescope corrections were flagged in sub-array 2.
!  A total of 887 telescope corrections were flagged in sub-array 3.
!  A total of 968 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.888314Jy  sigma=0.007049
! Fit after  self-cal, rms=0.812575Jy  sigma=0.006516
! 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.904 mas, bmaj=2.075 mas, bpa=-4.73 degrees
! Estimated noise=568.618 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.153005 Jy
! Component: 100  -  total flux cleaned = 0.206372 Jy
! Total flux subtracted in 100 components = 0.206372 Jy
! Clean residual min=-0.006440 max=0.032507 Jy/beam
! Clean residual mean=0.000073 rms=0.001758 Jy/beam
! Combined flux in latest and established models = 0.206372 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.206372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235470Jy  sigma=0.001577
! Fit after  self-cal, rms=0.234997Jy  sigma=0.001574
! 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.0361511 Jy
! Component: 100  -  total flux cleaned = 0.0590097 Jy
! Total flux subtracted in 100 components = 0.0590097 Jy
! Clean residual min=-0.005958 max=0.012392 Jy/beam
! Clean residual mean=0.000051 rms=0.001350 Jy/beam
! Combined flux in latest and established models = 0.265382 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 0.265382 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225818Jy  sigma=0.001470
! Fit after  self-cal, rms=0.225274Jy  sigma=0.001466
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0185637 Jy
! Component: 100  -  total flux cleaned = 0.0307207 Jy
! Total flux subtracted in 100 components = 0.0307207 Jy
! Clean residual min=-0.004399 max=0.011181 Jy/beam
! Clean residual mean=0.000040 rms=0.001197 Jy/beam
! Combined flux in latest and established models = 0.296103 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 0.296103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222487Jy  sigma=0.001434
! Fit after  self-cal, rms=0.222322Jy  sigma=0.001433
! Inverting map 
! Added new window around map position (5.5, -10).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0118254 Jy
! Component: 100  -  total flux cleaned = 0.0201148 Jy
! Total flux subtracted in 100 components = 0.0201148 Jy
! Clean residual min=-0.004112 max=0.005998 Jy/beam
! Clean residual mean=0.000033 rms=0.001127 Jy/beam
! Combined flux in latest and established models = 0.316218 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 23 components and 0.316218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221117Jy  sigma=0.001419
! Fit after  self-cal, rms=0.221023Jy  sigma=0.001418
! 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.452 mas, bmaj=2.657 mas, bpa=32.33 degrees
! Estimated noise=263.028 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.0147791 Jy
! Component: 100  -  total flux cleaned = 0.024804 Jy
! Component: 150  -  total flux cleaned = 0.0320309 Jy
! Component: 200  -  total flux cleaned = 0.0373584 Jy
! Total flux subtracted in 200 components = 0.0373584 Jy
! Clean residual min=-0.002862 max=0.005841 Jy/beam
! Clean residual mean=0.000170 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 0.353576 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 46 components and 0.353576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219882Jy  sigma=0.001405
! Fit after  self-cal, rms=0.219746Jy  sigma=0.001404
! Inverting map 
! Added new window around map position (5.5, -13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00640118 Jy
! Component: 100  -  total flux cleaned = 0.0108481 Jy
! Component: 150  -  total flux cleaned = 0.0142512 Jy
! Component: 200  -  total flux cleaned = 0.0168776 Jy
! Total flux subtracted in 200 components = 0.0168776 Jy
! Clean residual min=-0.002477 max=0.003505 Jy/beam
! Clean residual mean=0.000121 rms=0.000746 Jy/beam
! Combined flux in latest and established models = 0.370454 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 64 components and 0.370454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219524Jy  sigma=0.001401
! Fit after  self-cal, rms=0.219476Jy  sigma=0.001401
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.04     KP        0.98     
!   LA        0.96     MA        0.99     MC        1.04     MK        1.03     
!   NL        0.96     NY        0.99     OV        0.99     PT        0.95     
!   SC        1.04     TS        1.02     WF        0.96     WZ        1.11     
! 
!  A total of 333 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.03     KP        1.10     
!   LA        0.92     MA        0.94     MC        1.05     MK        1.02     
!   NL        1.00     NY        0.93     OV        1.00     PT        0.92     
!   SC        1.01     TS        1.00     WF        0.97     WZ        1.06     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.12     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.95     KP        1.25     
!   LA        1.03     MA        0.91     MC        1.46     MK        1.00*    
!   NL        1.00     NY        0.97     OV        1.09     PT        1.08     
!   SC        1.00*    TS        1.24     WF        0.97     WZ        0.97     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.15     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.02     KP        1.69     
!   LA        1.09     MA        0.89     MC        1.01     MK        1.05     
!   NL        1.11     NY        1.00     OV        1.12     PT        1.06     
!   SC        1.00*    TS        1.02     WF        0.92     WZ        1.01     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.97     KP        0.93     
!   LA        0.96     MA        0.85     MC        1.01     MK        1.10     
!   NL        0.97     NY        1.00     OV        0.97     PT        0.98     
!   SC        1.03     TS        1.10     WF        1.00     WZ        1.11     
! 
!  A total of 333 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.02     KP        0.96     
!   LA        0.96     MA        0.78     MC        0.99     MK        1.04     
!   NL        0.97     NY        0.96     OV        0.97     PT        0.97     
!   SC        1.00     TS        1.07     WF        1.01     WZ        1.04     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.09     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.05     KP        1.16     
!   LA        1.07     MA        0.82     MC        1.24     MK        1.00*    
!   NL        1.02     NY        1.02     OV        1.05     PT        1.07     
!   SC        1.00*    TS        1.04     WF        1.00     WZ        1.02     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.15     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.13     KK        0.98     KP        1.38     
!   LA        1.12     MA        0.75     MC        1.00     MK        1.08     
!   NL        1.16     NY        0.98     OV        1.12     PT        1.12     
!   SC        1.00*    TS        1.02     WF        0.94     WZ        1.04     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.99     KP        1.00     
!   LA        0.94     MA        1.04     MC        1.41     MK        1.02     
!   NL        0.98     NY        0.92     OV        0.98     PT        0.98     
!   SC        1.00     TS        1.05     WF        0.97     WZ        1.04     
! 
!  A total of 333 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.98     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.02     KP        1.07     
!   LA        0.92     MA        0.99     MC        1.75     MK        1.02     
!   NL        0.98     NY        0.94     OV        0.97     PT        0.95     
!   SC        0.98     TS        1.04     WF        0.96     WZ        1.04     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        1.06     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.05     KP        1.18     
!   LA        1.04     MA        0.89     MC        0.99     MK        1.00*    
!   NL        1.03     NY        0.96     OV        1.16     PT        1.06     
!   SC        1.00*    TS        1.08     WF        0.93     WZ        1.00     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.16     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.11     KK        1.02     KP        1.44     
!   LA        1.07     MA        0.90     MC        0.93     MK        1.04     
!   NL        1.16     NY        1.09     OV        1.04     PT        1.06     
!   SC        1.00*    TS        0.98     WF        0.97     WZ        1.03     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.96     KP        1.00     
!   LA        0.95     MA        0.67     MC        0.77     MK        0.99     
!   NL        0.97     NY        1.02     OV        0.99     PT        0.98     
!   SC        1.03     TS        0.96     WF        0.99     WZ        1.09     
! 
!  A total of 327 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00     KP        1.08     
!   LA        0.95     MA        0.66     MC        0.59     MK        0.97     
!   NL        0.96     NY        0.95     OV        0.98     PT        0.97     
!   SC        1.01     TS        1.04     WF        0.95     WZ        0.97     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.10     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.03     KP        1.28     
!   LA        1.05     MA        0.85     MC        0.80     MK        1.00*    
!   NL        1.07     NY        1.01     OV        1.03     PT        1.12     
!   SC        1.00*    TS        0.88     WF        1.10     WZ        0.94     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.17     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.29     KK        0.93     KP        1.50     
!   LA        1.08     MA        0.75     MC        0.53     MK        1.02     
!   NL        1.07     NY        1.04     OV        1.10     PT        0.87     
!   SC        1.00*    TS        0.94     WF        0.78     WZ        1.07     
! 
! 
! Fit before self-cal, rms=0.219476Jy  sigma=0.001401
! Fit after  self-cal, rms=0.205023Jy  sigma=0.001383
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.427 mas, bmaj=2.636 mas, bpa=31.75 degrees
! Estimated noise=263.818 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 (2.5, -5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332586 Jy
! Component: 100  -  total flux cleaned = 0.00543171 Jy
! Component: 150  -  total flux cleaned = 0.00609145 Jy
! Component: 200  -  total flux cleaned = 0.006701 Jy
! Total flux subtracted in 200 components = 0.006701 Jy
! Clean residual min=-0.001916 max=0.001779 Jy/beam
! Clean residual mean=0.000055 rms=0.000458 Jy/beam
! Combined flux in latest and established models = 0.377155 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 79 components and 0.377155 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204955Jy  sigma=0.001383
! Fit after  self-cal, rms=0.205224Jy  sigma=0.001381
! 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.205224Jy  sigma=0.001381
! Fit after  self-cal, rms=0.206700Jy  sigma=0.001377
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.425 mas, bmaj=2.635 mas, bpa=31.17 degrees
! Estimated noise=263.666 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00216927 Jy
! Component: 100  -  total flux cleaned = 0.00327532 Jy
! Component: 150  -  total flux cleaned = 0.00389154 Jy
! Component: 200  -  total flux cleaned = 0.00437949 Jy
! Total flux subtracted in 200 components = 0.00437949 Jy
! Clean residual min=-0.001511 max=0.001561 Jy/beam
! Clean residual mean=0.000020 rms=0.000372 Jy/beam
! Combined flux in latest and established models = 0.381534 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 89 components and 0.381534 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206667Jy  sigma=0.001376
! Fit after  self-cal, rms=0.206823Jy  sigma=0.001376
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.000390177 Jy
! Component: 100  -  total flux cleaned = 0.000898417 Jy
! Component: 150  -  total flux cleaned = 0.00130246 Jy
! Component: 200  -  total flux cleaned = 0.00159765 Jy
! Total flux subtracted in 200 components = 0.00159765 Jy
! Clean residual min=-0.001490 max=0.001600 Jy/beam
! Clean residual mean=0.000018 rms=0.000369 Jy/beam
! Combined flux in latest and established models = 0.383132 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 95 components and 0.383132 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206809Jy  sigma=0.001376
! Fit after  self-cal, rms=0.206812Jy  sigma=0.001376
! Inverting map 
! Added new window around map position (5.5, -30).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000983315 Jy
! Component: 100  -  total flux cleaned = 0.00137895 Jy
! Component: 150  -  total flux cleaned = 0.0017629 Jy
! Component: 200  -  total flux cleaned = 0.00207631 Jy
! Total flux subtracted in 200 components = 0.00207631 Jy
! Clean residual min=-0.001483 max=0.001310 Jy/beam
! Clean residual mean=0.000011 rms=0.000363 Jy/beam
! Combined flux in latest and established models = 0.385208 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 110 components and 0.385208 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206793Jy  sigma=0.001376
! Fit after  self-cal, rms=0.206797Jy  sigma=0.001376
! 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.206797Jy  sigma=0.001376
! Fit after  self-cal, rms=0.206907Jy  sigma=0.001376
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.423 mas, bmaj=2.633 mas, bpa=31.18 degrees
! Estimated noise=263.525 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00134497 Jy
! Component: 100  -  total flux cleaned = 0.00212845 Jy
! Component: 150  -  total flux cleaned = 0.00271193 Jy
! Component: 200  -  total flux cleaned = 0.00314165 Jy
! Total flux subtracted in 200 components = 0.00314165 Jy
! Clean residual min=-0.001454 max=0.001344 Jy/beam
! Clean residual mean=0.000007 rms=0.000359 Jy/beam
! Combined flux in latest and established models = 0.38835 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 112 components and 0.38835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206892Jy  sigma=0.001376
! Fit after  self-cal, rms=0.206942Jy  sigma=0.001376
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.000351365 Jy
! Component: 100  -  total flux cleaned = 0.000671999 Jy
! Component: 150  -  total flux cleaned = 0.000910897 Jy
! Component: 200  -  total flux cleaned = 0.00110914 Jy
! Total flux subtracted in 200 components = 0.00110914 Jy
! Clean residual min=-0.001473 max=0.001331 Jy/beam
! Clean residual mean=0.000004 rms=0.000357 Jy/beam
! Combined flux in latest and established models = 0.389459 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 115 components and 0.389459 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206933Jy  sigma=0.001375
! Fit after  self-cal, rms=0.206936Jy  sigma=0.001375
! 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.206936Jy  sigma=0.001375
! Fit after  self-cal, rms=0.206938Jy  sigma=0.001375
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.541 mas, bmaj=8.456 mas, bpa=21.42 degrees
! Estimated noise=418.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171118 Jy
! Component: 100  -  total flux cleaned = 0.00265917 Jy
! Component: 150  -  total flux cleaned = 0.00328305 Jy
! Component: 200  -  total flux cleaned = 0.0037055 Jy
! Total flux subtracted in 200 components = 0.0037055 Jy
! Clean residual min=-0.001296 max=0.001632 Jy/beam
! Clean residual mean=-0.000016 rms=0.000476 Jy/beam
! Combined flux in latest and established models = 0.393165 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 146 components and 0.393165 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206932Jy  sigma=0.001375
! Fit after  self-cal, rms=0.206956Jy  sigma=0.001375
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.000384566 Jy
! Component: 100  -  total flux cleaned = 0.000556987 Jy
! Component: 150  -  total flux cleaned = 0.000682729 Jy
! Component: 200  -  total flux cleaned = 0.000735918 Jy
! Total flux subtracted in 200 components = 0.000735918 Jy
! Clean residual min=-0.001301 max=0.001622 Jy/beam
! Clean residual mean=-0.000023 rms=0.000467 Jy/beam
! Combined flux in latest and established models = 0.393901 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 152 components and 0.393901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206955Jy  sigma=0.001375
! Fit after  self-cal, rms=0.206959Jy  sigma=0.001375
! 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.421 mas, bmaj=2.631 mas, bpa=31.2 degrees
! Estimated noise=263.57 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.421 x 2.631 at 31.2 degrees (North through East)
! Clean map  min=-0.0013316  max=0.20583 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.884 mas, bmaj=2.068 mas, bpa=-2.063 degrees
! Estimated noise=563.921 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.150181 Jy
! Component: 100  -  total flux cleaned = 0.211747 Jy
! Component: 150  -  total flux cleaned = 0.249823 Jy
! Component: 200  -  total flux cleaned = 0.274338 Jy
! Total flux subtracted in 200 components = 0.274338 Jy
! Clean residual min=-0.004043 max=0.013347 Jy/beam
! Clean residual mean=0.000044 rms=0.001165 Jy/beam
! Combined flux in latest and established models = 0.274338 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.274338 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.421 mas, bmaj=2.631 mas, bpa=31.2 degrees
! Estimated noise=263.57 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.0308473 Jy
! Component: 100  -  total flux cleaned = 0.0506184 Jy
! Component: 150  -  total flux cleaned = 0.0645859 Jy
! Component: 200  -  total flux cleaned = 0.0749273 Jy
! Total flux subtracted in 200 components = 0.0749273 Jy
! Clean residual min=-0.001893 max=0.005970 Jy/beam
! Clean residual mean=0.000145 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 0.349265 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 51 components and 0.349265 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00785032 Jy
! Component: 100  -  total flux cleaned = 0.013937 Jy
! Component: 150  -  total flux cleaned = 0.0187612 Jy
! Component: 200  -  total flux cleaned = 0.0226588 Jy
! Total flux subtracted in 200 components = 0.0226588 Jy
! Clean residual min=-0.001655 max=0.002369 Jy/beam
! Clean residual mean=0.000067 rms=0.000470 Jy/beam
! Combined flux in latest and established models = 0.371924 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 98 components and 0.371924 Jy
! Inverting map 
! Added new window around map position (2, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00321477 Jy
! Component: 100  -  total flux cleaned = 0.00590565 Jy
! Component: 150  -  total flux cleaned = 0.00816394 Jy
! Component: 200  -  total flux cleaned = 0.0100956 Jy
! Total flux subtracted in 200 components = 0.0100956 Jy
! Clean residual min=-0.001536 max=0.001679 Jy/beam
! Clean residual mean=0.000033 rms=0.000388 Jy/beam
! Combined flux in latest and established models = 0.38202 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 129 components and 0.38202 Jy
! Inverting map 
! Added new window around map position (7.5, -25.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179705 Jy
! Component: 100  -  total flux cleaned = 0.00330331 Jy
! Component: 150  -  total flux cleaned = 0.00447936 Jy
! Component: 200  -  total flux cleaned = 0.00539118 Jy
! Total flux subtracted in 200 components = 0.00539118 Jy
! Clean residual min=-0.001513 max=0.001369 Jy/beam
! Clean residual mean=0.000015 rms=0.000363 Jy/beam
! Combined flux in latest and established models = 0.387411 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 144 components and 0.387411 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.541 mas, bmaj=8.456 mas, bpa=21.42 degrees
! Estimated noise=418.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00247245 Jy
! Component: 100  -  total flux cleaned = 0.00394481 Jy
! Component: 150  -  total flux cleaned = 0.00496372 Jy
! Component: 200  -  total flux cleaned = 0.00568478 Jy
! Total flux subtracted in 200 components = 0.00568478 Jy
! Clean residual min=-0.001311 max=0.001621 Jy/beam
! Clean residual mean=-0.000011 rms=0.000465 Jy/beam
! Combined flux in latest and established models = 0.393096 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.000515895 Jy
! Component: 100  -  total flux cleaned = 0.000893925 Jy
! Component: 150  -  total flux cleaned = 0.00112375 Jy
! Component: 200  -  total flux cleaned = 0.00121877 Jy
! Total flux subtracted in 200 components = 0.00121877 Jy
! Clean residual min=-0.001295 max=0.001661 Jy/beam
! Clean residual mean=-0.000027 rms=0.000461 Jy/beam
! Combined flux in latest and established models = 0.394315 Jy
! Adding 88 model components to the UV plane model.
! The established model now contains 214 components and 0.394314 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.421 mas, bmaj=2.631 mas, bpa=31.2 degrees
! Estimated noise=263.57 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000204098 Jy
! Component: 100  -  total flux cleaned = -0.000170995 Jy
! Component: 150  -  total flux cleaned = -0.000196591 Jy
! Component: 200  -  total flux cleaned = -0.000196901 Jy
! Total flux subtracted in 200 components = -0.000196901 Jy
! Clean residual min=-0.001496 max=0.001294 Jy/beam
! Clean residual mean=-0.000007 rms=0.000349 Jy/beam
! Combined flux in latest and established models = 0.394118 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 227 components and 0.394118 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206930Jy  sigma=0.001375
! Fit after  self-cal, rms=0.206910Jy  sigma=0.001375
wmodel J1842+6809_S_2001_04_09_pus_map.mod
! Writing 227 model components to file: J1842+6809_S_2001_04_09_pus_map.mod
wobs J1842+6809_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1842+6809_S_2001_04_09_pus_uvs.fits
wwins J1842+6809_S_2001_04_09_pus_map.win
! wwins: Wrote 8 windows to J1842+6809_S_2001_04_09_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000646989 Jy
! Component: 100  -  total flux cleaned = -0.000968104 Jy
! Component: 150  -  total flux cleaned = -0.00123051 Jy
! Component: 200  -  total flux cleaned = -0.00143901 Jy
! Component: 250  -  total flux cleaned = -0.00157467 Jy
! Component: 300  -  total flux cleaned = -0.00170759 Jy
! Component: 350  -  total flux cleaned = -0.00177274 Jy
! Component: 400  -  total flux cleaned = -0.00183726 Jy
! Component: 450  -  total flux cleaned = -0.00194333 Jy
! Component: 500  -  total flux cleaned = -0.00200584 Jy
! Component: 550  -  total flux cleaned = -0.00200545 Jy
! Component: 600  -  total flux cleaned = -0.00200524 Jy
! Component: 650  -  total flux cleaned = -0.00200534 Jy
! Component: 700  -  total flux cleaned = -0.00200547 Jy
! Component: 750  -  total flux cleaned = -0.00202551 Jy
! Component: 800  -  total flux cleaned = -0.00202546 Jy
! Component: 850  -  total flux cleaned = -0.0020648 Jy
! Component: 900  -  total flux cleaned = -0.00202555 Jy
! Component: 950  -  total flux cleaned = -0.00200623 Jy
! Component: 1000  -  total flux cleaned = -0.00206391 Jy
! Component: 1050  -  total flux cleaned = -0.00200633 Jy
! Component: 1100  -  total flux cleaned = -0.00202551 Jy
! Component: 1150  -  total flux cleaned = -0.00198767 Jy
! Component: 1200  -  total flux cleaned = -0.00198777 Jy
! Component: 1250  -  total flux cleaned = -0.00198778 Jy
! Component: 1300  -  total flux cleaned = -0.00193205 Jy
! Component: 1350  -  total flux cleaned = -0.00189523 Jy
! Component: 1400  -  total flux cleaned = -0.00185842 Jy
! Component: 1450  -  total flux cleaned = -0.00184015 Jy
! Component: 1500  -  total flux cleaned = -0.00189449 Jy
! Component: 1550  -  total flux cleaned = -0.00182206 Jy
! Component: 1600  -  total flux cleaned = -0.00182205 Jy
! Component: 1650  -  total flux cleaned = -0.00176836 Jy
! Component: 1700  -  total flux cleaned = -0.00180395 Jy
! Component: 1750  -  total flux cleaned = -0.00178619 Jy
! Component: 1800  -  total flux cleaned = -0.00173315 Jy
! Component: 1850  -  total flux cleaned = -0.00175075 Jy
! Component: 1900  -  total flux cleaned = -0.00173317 Jy
! Component: 1950  -  total flux cleaned = -0.00168086 Jy
! Component: 2000  -  total flux cleaned = -0.00169823 Jy
! Total flux subtracted in 2048 components = -0.00162928 Jy
! Clean residual min=-0.001078 max=0.001180 Jy/beam
! Clean residual mean=-0.000000 rms=0.000313 Jy/beam
! Combined flux in latest and established models = 0.392488 Jy
keep
! Adding 175 model components to the UV plane model.
! The established model now contains 402 components and 0.392488 Jy
![Exited script file: muppet]
wmap "J1842+6809_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.421 x 2.631 at 31.2 degrees (North through East)
! Clean map  min=-0.0014008  max=0.20511 Jy/beam
! Writing clean map to FITS file: J1842+6809_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.205115 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000313582 
device "J1842+6809_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1842+6809_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.458643 0.458643 0.917286 1.83457 3.66915 7.33829 14.6766 29.3532 58.7063
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.205 
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.421 x 2.631 at 31.2 degrees (North through East)
! Clean map  min=-0.0014008  max=0.20511 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1842+6809_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1842+6809_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1842+6809_S_2001_04_09_pus_uvs.log closed on Mon Oct  8 11:11:30 2007