! Started logfile: J1407+2827_S_1999_12_20_pus_uvs.log on Thu Dec 20 15:19:39 2007
obs J1407+2827_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1407+2827_S_1999_12_20_pus_uva.fits
! AN table 1: 181 integrations on 190 of 190 possible baselines.
! AN table 2: 54 integrations on 190 of 190 possible baselines.
! AN table 3: 101 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.215414 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1407+2827
! 
! 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 2298 lines of history.
! 
! Reading 55008 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 J1407+2827_S_1999_12_20_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 2287 telescope corrections were flagged in sub-array 1.
!  A total of 719 telescope corrections were flagged in sub-array 2.
!  A total of 1088 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2287 telescope corrections were flagged in sub-array 1.
!  A total of 719 telescope corrections were flagged in sub-array 2.
!  A total of 1088 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2287 telescope corrections were flagged in sub-array 1.
!  A total of 747 telescope corrections were flagged in sub-array 2.
!  A total of 1088 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2287 telescope corrections were flagged in sub-array 1.
!  A total of 719 telescope corrections were flagged in sub-array 2.
!  A total of 1088 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.893144Jy  sigma=0.007151
! Fit after  self-cal, rms=0.444494Jy  sigma=0.003657
! 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.954 mas, bmaj=3.387 mas, bpa=-5.129 degrees
! Estimated noise=771.125 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.734869 Jy
! Component: 100  -  total flux cleaned = 1.00015 Jy
! Total flux subtracted in 100 components = 1.00015 Jy
! Clean residual min=-0.025879 max=0.136242 Jy/beam
! Clean residual mean=0.000061 rms=0.008912 Jy/beam
! Combined flux in latest and established models = 1.00015 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 1.00015 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423054Jy  sigma=0.003588
! Fit after  self-cal, rms=0.422615Jy  sigma=0.003586
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.168506 Jy
! Component: 100  -  total flux cleaned = 0.282488 Jy
! Total flux subtracted in 100 components = 0.282488 Jy
! Clean residual min=-0.017930 max=0.062774 Jy/beam
! Clean residual mean=0.000020 rms=0.005174 Jy/beam
! Combined flux in latest and established models = 1.28264 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 32 components and 1.28264 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306770Jy  sigma=0.002232
! Fit after  self-cal, rms=0.306486Jy  sigma=0.002231
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0801349 Jy
! Component: 100  -  total flux cleaned = 0.136661 Jy
! Total flux subtracted in 100 components = 0.136661 Jy
! Clean residual min=-0.015129 max=0.043363 Jy/beam
! Clean residual mean=0.000000 rms=0.003790 Jy/beam
! Combined flux in latest and established models = 1.4193 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 35 components and 1.4193 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277840Jy  sigma=0.001812
! Fit after  self-cal, rms=0.277733Jy  sigma=0.001812
! Inverting map 
! Added new window around map position (-5.5, -4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.045967 Jy
! Component: 100  -  total flux cleaned = 0.0794171 Jy
! Total flux subtracted in 100 components = 0.0794171 Jy
! Clean residual min=-0.016108 max=0.019434 Jy/beam
! Clean residual mean=-0.000015 rms=0.003210 Jy/beam
! Combined flux in latest and established models = 1.49872 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 41 components and 1.49872 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269414Jy  sigma=0.001678
! Fit after  self-cal, rms=0.269154Jy  sigma=0.001675
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0272129 Jy
! Component: 100  -  total flux cleaned = 0.0441347 Jy
! Total flux subtracted in 100 components = 0.0441347 Jy
! Clean residual min=-0.017622 max=0.014697 Jy/beam
! Clean residual mean=-0.000024 rms=0.002963 Jy/beam
! Combined flux in latest and established models = 1.54285 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 43 components and 1.54285 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266940Jy  sigma=0.001634
! Fit after  self-cal, rms=0.266869Jy  sigma=0.001633
! 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.685 mas, bmaj=4.478 mas, bpa=-5.066 degrees
! Estimated noise=371.068 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.016772 Jy
! Component: 100  -  total flux cleaned = 0.0254329 Jy
! Component: 150  -  total flux cleaned = 0.0278594 Jy
! Component: 200  -  total flux cleaned = 0.0292087 Jy
! Total flux subtracted in 200 components = 0.0292087 Jy
! Clean residual min=-0.014631 max=0.017776 Jy/beam
! Clean residual mean=-0.000000 rms=0.003273 Jy/beam
! Combined flux in latest and established models = 1.57206 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 51 components and 1.57206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265850Jy  sigma=0.001617
! Fit after  self-cal, rms=0.265794Jy  sigma=0.001617
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        1.00     HH        1.00*    
!   HN        0.97     KK        1.14     KP        1.02     LA        1.01     
!   MC        1.00*    MK        1.05     NY        1.01     ON        1.04     
!   OV        1.00     PT        1.05     SC        1.00     TS        1.00*    
!   WF        1.01     WZ        1.00     GN        1.00     NL        0.96     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        1.03     HH        1.00*    
!   HN        0.93     KK        1.12     KP        1.02     LA        0.99     
!   MC        1.42     MK        1.09     NY        1.72     ON        1.97     
!   OV        1.94     PT        1.04     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.36     GN        1.00*    NL        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.01     GC        1.02     HH        1.00*    
!   HN        1.00     KK        0.97     KP        1.00     LA        1.00     
!   MC        1.00*    MK        0.97     NY        1.04     ON        1.00*    
!   OV        0.99     PT        1.03     SC        1.04     TS        1.07     
!   WF        1.02     WZ        1.00*    GN        1.00     NL        1.05     
! 
! 
! Correcting IF 2.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.05     GC        0.99     HH        1.00*    
!   HN        1.02     KK        1.17     KP        1.02     LA        0.98     
!   MC        1.00*    MK        1.03     NY        1.01     ON        1.07     
!   OV        0.97     PT        1.01     SC        1.00     TS        1.00*    
!   WF        1.01     WZ        1.04     GN        1.00     NL        0.97     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.01     HH        1.00*    
!   HN        0.95     KK        0.99     KP        1.00     LA        0.96     
!   MC        0.97     MK        0.97     NY        1.15     ON        1.16     
!   OV        3.54     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.19     GN        1.00*    NL        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.06     GC        1.03     HH        1.00*    
!   HN        1.06     KK        0.98     KP        1.01     LA        0.97     
!   MC        1.00*    MK        0.95     NY        1.03     ON        1.00*    
!   OV        0.97     PT        1.00     SC        1.05     TS        1.07     
!   WF        1.03     WZ        1.00*    GN        1.00     NL        1.05     
! 
! 
! Correcting IF 3.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GC        0.98     HH        1.00*    
!   HN        0.97     KK        1.19     KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00     NY        0.98     ON        0.97     
!   OV        0.98     PT        0.94     SC        1.01     TS        1.00*    
!   WF        0.98     WZ        1.03     GN        1.00     NL        0.93     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     GC        1.02     HH        1.00*    
!   HN        0.90     KK        1.01     KP        0.97     LA        0.97     
!   MC        1.00*    MK        0.94     NY        1.14     ON        1.15     
!   OV        1.75     PT        1.07     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.20     GN        1.00*    NL        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.02     GC        1.01     HH        1.00*    
!   HN        1.01     KK        0.99     KP        0.98     LA        0.99     
!   MC        1.00*    MK        0.93     NY        1.01     ON        1.00*    
!   OV        0.98     PT        0.95     SC        1.04     TS        1.01     
!   WF        1.01     WZ        1.00*    GN        0.99     NL        1.02     
! 
! 
! Correcting IF 4.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.99     GC        0.97     HH        1.00*    
!   HN        0.96     KK        1.17     KP        1.00     LA        0.98     
!   MC        1.00*    MK        1.03     NY        1.01     ON        0.97     
!   OV        0.94     PT        1.00     SC        1.00     TS        1.00*    
!   WF        0.99     WZ        1.00     GN        0.98     NL        0.92     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.96     GC        1.01     HH        1.00*    
!   HN        0.93     KK        1.07     KP        0.98     LA        0.96     
!   MC        1.40     MK        1.06     NY        1.65     ON        1.53     
!   OV        0.94     PT        1.20     SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.32     GN        1.00*    NL        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        0.97     KP        0.99     LA        0.98     
!   MC        1.00*    MK        0.96     NY        1.02     ON        1.00*    
!   OV        0.94     PT        0.98     SC        1.06     TS        1.02     
!   WF        1.00     WZ        1.00*    GN        0.97     NL        0.99     
! 
! 
! Fit before self-cal, rms=0.265794Jy  sigma=0.001617
! Fit after  self-cal, rms=0.439215Jy  sigma=0.001446
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.728 mas, bmaj=4.539 mas, bpa=-4.646 degrees
! Estimated noise=375.556 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.00335268 Jy
! Component: 100  -  total flux cleaned = 0.00304682 Jy
! Component: 150  -  total flux cleaned = 0.00278516 Jy
! Component: 200  -  total flux cleaned = 0.00266377 Jy
! Total flux subtracted in 200 components = 0.00266377 Jy
! Clean residual min=-0.006162 max=0.005679 Jy/beam
! Clean residual mean=0.000058 rms=0.001396 Jy/beam
! Combined flux in latest and established models = 1.57472 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 58 components and 1.57473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.439086Jy  sigma=0.001444
! Fit after  self-cal, rms=0.439795Jy  sigma=0.001444
! 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.439795Jy  sigma=0.001444
! Fit after  self-cal, rms=0.436463Jy  sigma=0.001406
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.725 mas, bmaj=4.546 mas, bpa=-4.749 degrees
! Estimated noise=375.338 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00142373 Jy
! Component: 100  -  total flux cleaned = -0.00160705 Jy
! Component: 150  -  total flux cleaned = -0.0018599 Jy
! Component: 200  -  total flux cleaned = -0.00201402 Jy
! Total flux subtracted in 200 components = -0.00201402 Jy
! Clean residual min=-0.004069 max=0.004272 Jy/beam
! Clean residual mean=0.000007 rms=0.001080 Jy/beam
! Combined flux in latest and established models = 1.57271 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 62 components and 1.57271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436394Jy  sigma=0.001406
! Fit after  self-cal, rms=0.436400Jy  sigma=0.001406
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 = 1.62643e-05 Jy
! Component: 100  -  total flux cleaned = -0.000127073 Jy
! Component: 150  -  total flux cleaned = -0.000268201 Jy
! Component: 200  -  total flux cleaned = -0.000336507 Jy
! Total flux subtracted in 200 components = -0.000336507 Jy
! Clean residual min=-0.003959 max=0.004296 Jy/beam
! Clean residual mean=0.000009 rms=0.001076 Jy/beam
! Combined flux in latest and established models = 1.57237 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 63 components and 1.57237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436369Jy  sigma=0.001405
! Fit after  self-cal, rms=0.436368Jy  sigma=0.001405
! 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.436368Jy  sigma=0.001405
! Fit after  self-cal, rms=0.434206Jy  sigma=0.001381
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.723 mas, bmaj=4.549 mas, bpa=-4.765 degrees
! Estimated noise=375.608 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00102119 Jy
! Component: 100  -  total flux cleaned = 0.0009366 Jy
! Component: 150  -  total flux cleaned = 0.000862389 Jy
! Component: 200  -  total flux cleaned = 0.00079554 Jy
! Total flux subtracted in 200 components = 0.00079554 Jy
! Clean residual min=-0.004258 max=0.004427 Jy/beam
! Clean residual mean=0.000059 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 1.57317 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 66 components and 1.57317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434155Jy  sigma=0.001381
! Fit after  self-cal, rms=0.434167Jy  sigma=0.001381
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 (-30, -8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00417303 Jy
! Component: 100  -  total flux cleaned = 0.00656779 Jy
! Component: 150  -  total flux cleaned = 0.00749833 Jy
! Component: 200  -  total flux cleaned = 0.00784009 Jy
! Total flux subtracted in 200 components = 0.00784009 Jy
! Clean residual min=-0.004151 max=0.003423 Jy/beam
! Clean residual mean=0.000016 rms=0.000787 Jy/beam
! Combined flux in latest and established models = 1.58101 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 82 components and 1.58101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434110Jy  sigma=0.001380
! Fit after  self-cal, rms=0.434104Jy  sigma=0.001380
! 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.434104Jy  sigma=0.001380
! Fit after  self-cal, rms=0.434920Jy  sigma=0.001380
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.847 mas, bmaj=8.918 mas, bpa=6.54 degrees
! Estimated noise=493.079 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00267752 Jy
! Component: 100  -  total flux cleaned = 0.00324623 Jy
! Component: 150  -  total flux cleaned = 0.00368526 Jy
! Component: 200  -  total flux cleaned = 0.00399249 Jy
! Total flux subtracted in 200 components = 0.00399249 Jy
! Clean residual min=-0.003084 max=0.003244 Jy/beam
! Clean residual mean=0.000007 rms=0.001034 Jy/beam
! Combined flux in latest and established models = 1.585 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 106 components and 1.585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434915Jy  sigma=0.001379
! Fit after  self-cal, rms=0.434915Jy  sigma=0.001379
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.000697864 Jy
! Component: 100  -  total flux cleaned = 0.000767164 Jy
! Component: 150  -  total flux cleaned = 0.000796748 Jy
! Component: 200  -  total flux cleaned = 0.000795163 Jy
! Total flux subtracted in 200 components = 0.000795163 Jy
! Clean residual min=-0.003055 max=0.003188 Jy/beam
! Clean residual mean=-0.000006 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 1.5858 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 117 components and 1.5858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434911Jy  sigma=0.001379
! Fit after  self-cal, rms=0.434913Jy  sigma=0.001379
! 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.724 mas, bmaj=4.55 mas, bpa=-4.79 degrees
! Estimated noise=375.926 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.724 x 4.55 at -4.79 degrees (North through East)
! Clean map  min=-0.0028401  max=1.1264 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.434913Jy  sigma=0.001379
! Fit after  self-cal, rms=1.022712Jy  sigma=0.001275
! Inverting map and beam 
! Estimated beam: bmin=2.727 mas, bmaj=4.559 mas, bpa=-4.715 degrees
! Estimated noise=376.102 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00061939 Jy
! Component: 100  -  total flux cleaned = -0.000843995 Jy
! Component: 150  -  total flux cleaned = -0.00111454 Jy
! Component: 200  -  total flux cleaned = -0.00136653 Jy
! Total flux subtracted in 200 components = -0.00136653 Jy
! Clean residual min=-0.003707 max=0.002853 Jy/beam
! Clean residual mean=-0.000025 rms=0.000711 Jy/beam
! Combined flux in latest and established models = 1.58443 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 121 components and 1.58443 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.022706Jy  sigma=0.001274
! Fit after  self-cal, rms=1.022777Jy  sigma=0.001274
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000168891 Jy
! Component: 100  -  total flux cleaned = -0.000285005 Jy
! Component: 150  -  total flux cleaned = -0.000396847 Jy
! Component: 200  -  total flux cleaned = -0.00050652 Jy
! Total flux subtracted in 200 components = -0.00050652 Jy
! Clean residual min=-0.003481 max=0.002844 Jy/beam
! Clean residual mean=-0.000023 rms=0.000706 Jy/beam
! Combined flux in latest and established models = 1.58393 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 125 components and 1.58393 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.022770Jy  sigma=0.001274
! Fit after  self-cal, rms=1.022792Jy  sigma=0.001274
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.022792Jy  sigma=0.001274
! Fit after  self-cal, rms=1.030717Jy  sigma=0.001274
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.98 mas, bmaj=3.434 mas, bpa=-4.61 degrees
! Estimated noise=788.356 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.751057 Jy
! Component: 100  -  total flux cleaned = 1.01481 Jy
! Component: 150  -  total flux cleaned = 1.17681 Jy
! Component: 200  -  total flux cleaned = 1.28413 Jy
! Total flux subtracted in 200 components = 1.28413 Jy
! Clean residual min=-0.014326 max=0.058172 Jy/beam
! Clean residual mean=0.000053 rms=0.004284 Jy/beam
! Combined flux in latest and established models = 1.28413 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 23 model components to the UV plane model.
! The established model now contains 23 components and 1.28413 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.727 mas, bmaj=4.561 mas, bpa=-4.674 degrees
! Estimated noise=376.406 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.110277 Jy
! Component: 100  -  total flux cleaned = 0.172465 Jy
! Component: 150  -  total flux cleaned = 0.211444 Jy
! Component: 200  -  total flux cleaned = 0.236867 Jy
! Total flux subtracted in 200 components = 0.236867 Jy
! Clean residual min=-0.004174 max=0.014238 Jy/beam
! Clean residual mean=0.000263 rms=0.001666 Jy/beam
! Combined flux in latest and established models = 1.521 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 57 components and 1.521 Jy
! Inverting map 
! Added new window around map position (2, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0170516 Jy
! Component: 100  -  total flux cleaned = 0.0231092 Jy
! Component: 150  -  total flux cleaned = 0.027372 Jy
! Component: 200  -  total flux cleaned = 0.0307344 Jy
! Total flux subtracted in 200 components = 0.0307344 Jy
! Clean residual min=-0.005831 max=0.006297 Jy/beam
! Clean residual mean=0.000133 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 1.55173 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 67 components and 1.55173 Jy
! Inverting map 
! Added new window around map position (-7.5, -5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00302193 Jy
! Component: 100  -  total flux cleaned = 0.00566577 Jy
! Component: 150  -  total flux cleaned = 0.00828646 Jy
! Component: 200  -  total flux cleaned = 0.0106611 Jy
! Total flux subtracted in 200 components = 0.0106611 Jy
! Clean residual min=-0.003779 max=0.004424 Jy/beam
! Clean residual mean=0.000086 rms=0.000853 Jy/beam
! Combined flux in latest and established models = 1.56239 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 72 components and 1.56239 Jy
! Inverting map 
! Added new window around map position (-3, -5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00246329 Jy
! Component: 100  -  total flux cleaned = 0.00463663 Jy
! Component: 150  -  total flux cleaned = 0.00661859 Jy
! Component: 200  -  total flux cleaned = 0.00843621 Jy
! Total flux subtracted in 200 components = 0.00843621 Jy
! Clean residual min=-0.003287 max=0.003266 Jy/beam
! Clean residual mean=0.000047 rms=0.000791 Jy/beam
! Combined flux in latest and established models = 1.57083 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 80 components and 1.57083 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=6.847 mas, bmaj=8.925 mas, bpa=6.547 degrees
! Estimated noise=492.666 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0051889 Jy
! Component: 100  -  total flux cleaned = 0.00829617 Jy
! Component: 150  -  total flux cleaned = 0.0103584 Jy
! Component: 200  -  total flux cleaned = 0.0111547 Jy
! Total flux subtracted in 200 components = 0.0111547 Jy
! Clean residual min=-0.003024 max=0.003115 Jy/beam
! Clean residual mean=-0.000034 rms=0.000984 Jy/beam
! Combined flux in latest and established models = 1.58198 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.000405338 Jy
! Component: 100  -  total flux cleaned = 0.000709338 Jy
! Component: 150  -  total flux cleaned = 0.000978156 Jy
! Component: 200  -  total flux cleaned = 0.00115104 Jy
! Total flux subtracted in 200 components = 0.00115104 Jy
! Clean residual min=-0.002896 max=0.002989 Jy/beam
! Clean residual mean=-0.000053 rms=0.000970 Jy/beam
! Combined flux in latest and established models = 1.58313 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 140 components and 1.58313 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.727 mas, bmaj=4.561 mas, bpa=-4.674 degrees
! Estimated noise=376.406 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000600642 Jy
! Component: 100  -  total flux cleaned = -0.000601255 Jy
! Component: 150  -  total flux cleaned = -0.000603576 Jy
! Component: 200  -  total flux cleaned = -0.000600906 Jy
! Total flux subtracted in 200 components = -0.000600906 Jy
! Clean residual min=-0.003143 max=0.002938 Jy/beam
! Clean residual mean=-0.000014 rms=0.000723 Jy/beam
! Combined flux in latest and established models = 1.58253 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 147 components and 1.58253 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.030864Jy  sigma=0.001277
! Fit after  self-cal, rms=1.031144Jy  sigma=0.001277
wmodel J1407+2827_S_1999_12_20_pus_map.mod
! Writing 147 model components to file: J1407+2827_S_1999_12_20_pus_map.mod
wobs J1407+2827_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1407+2827_S_1999_12_20_pus_uvs.fits
wwins J1407+2827_S_1999_12_20_pus_map.win
! wwins: Wrote 6 windows to J1407+2827_S_1999_12_20_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 = 9.25923e-06 Jy
! Component: 100  -  total flux cleaned = -0.000375826 Jy
! Component: 150  -  total flux cleaned = -0.00042265 Jy
! Component: 200  -  total flux cleaned = -0.000424203 Jy
! Component: 250  -  total flux cleaned = -0.00046916 Jy
! Component: 300  -  total flux cleaned = -0.000425522 Jy
! Component: 350  -  total flux cleaned = -0.000425662 Jy
! Component: 400  -  total flux cleaned = -0.000554826 Jy
! Component: 450  -  total flux cleaned = -0.000554925 Jy
! Component: 500  -  total flux cleaned = -0.000555123 Jy
! Component: 550  -  total flux cleaned = -0.000639271 Jy
! Component: 600  -  total flux cleaned = -0.000763457 Jy
! Component: 650  -  total flux cleaned = -0.00072164 Jy
! Component: 700  -  total flux cleaned = -0.00076249 Jy
! Component: 750  -  total flux cleaned = -0.000721807 Jy
! Component: 800  -  total flux cleaned = -0.000843116 Jy
! Component: 850  -  total flux cleaned = -0.000963563 Jy
! Component: 900  -  total flux cleaned = -0.000963434 Jy
! Component: 950  -  total flux cleaned = -0.000963774 Jy
! Component: 1000  -  total flux cleaned = -0.001003 Jy
! Component: 1050  -  total flux cleaned = -0.00108169 Jy
! Component: 1100  -  total flux cleaned = -0.00112034 Jy
! Component: 1150  -  total flux cleaned = -0.00115914 Jy
! Component: 1200  -  total flux cleaned = -0.00119763 Jy
! Component: 1250  -  total flux cleaned = -0.00123557 Jy
! Component: 1300  -  total flux cleaned = -0.00127378 Jy
! Component: 1350  -  total flux cleaned = -0.00134875 Jy
! Component: 1400  -  total flux cleaned = -0.00131091 Jy
! Component: 1450  -  total flux cleaned = -0.0013111 Jy
! Component: 1500  -  total flux cleaned = -0.0013487 Jy
! Component: 1550  -  total flux cleaned = -0.00134835 Jy
! Component: 1600  -  total flux cleaned = -0.00127504 Jy
! Component: 1650  -  total flux cleaned = -0.00134845 Jy
! Component: 1700  -  total flux cleaned = -0.00131225 Jy
! Component: 1750  -  total flux cleaned = -0.00127614 Jy
! Component: 1800  -  total flux cleaned = -0.00134812 Jy
! Component: 1850  -  total flux cleaned = -0.0013123 Jy
! Component: 1900  -  total flux cleaned = -0.00131237 Jy
! Component: 1950  -  total flux cleaned = -0.00117078 Jy
! Component: 2000  -  total flux cleaned = -0.00120593 Jy
! Total flux subtracted in 2048 components = -0.00113558 Jy
! Clean residual min=-0.001756 max=0.001943 Jy/beam
! Clean residual mean=-0.000009 rms=0.000630 Jy/beam
! Combined flux in latest and established models = 1.5814 Jy
keep
! Adding 118 model components to the UV plane model.
! The established model now contains 253 components and 1.5814 Jy
![Exited script file: muppet]
wmap "J1407+2827_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.727 x 4.561 at -4.674 degrees (North through East)
! Clean map  min=-0.0024309  max=1.1292 Jy/beam
! Writing clean map to FITS file: J1407+2827_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.12921 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000631003 
device "J1407+2827_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1407+2827_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.16764 0.16764 0.33528 0.67056 1.34112 2.68224 5.36448 10.729 21.4579 42.9158 85.8316
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.129 
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.727 x 4.561 at -4.674 degrees (North through East)
! Clean map  min=-0.0024309  max=1.1292 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1407+2827_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1407+2827_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1407+2827_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 15:20:08 2007