! Started logfile: J0017+8135_S_2001_04_09_pus_uvs.log on Fri Oct  5 15:46:19 2007
obs J0017+8135_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0017+8135_S_2001_04_09_pus_uva.fits
! AN table 1: 338 integrations on 190 of 190 possible baselines.
! AN table 2: 422 integrations on 190 of 190 possible baselines.
! AN table 3: 444 integrations on 190 of 190 possible baselines.
! AN table 4: 21 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.2851 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0017+8135
! 
! 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 1949 lines of history.
! 
! Reading 265428 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 J0017+8135_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 2926 telescope corrections were flagged in sub-array 1.
!  A total of 4876 telescope corrections were flagged in sub-array 2.
!  A total of 5947 telescope corrections were flagged in sub-array 3.
!  A total of 374 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2926 telescope corrections were flagged in sub-array 1.
!  A total of 4876 telescope corrections were flagged in sub-array 2.
!  A total of 5948 telescope corrections were flagged in sub-array 3.
!  A total of 374 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2926 telescope corrections were flagged in sub-array 1.
!  A total of 4876 telescope corrections were flagged in sub-array 2.
!  A total of 5948 telescope corrections were flagged in sub-array 3.
!  A total of 374 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2934 telescope corrections were flagged in sub-array 1.
!  A total of 4876 telescope corrections were flagged in sub-array 2.
!  A total of 5948 telescope corrections were flagged in sub-array 3.
!  A total of 374 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.777103Jy  sigma=0.005866
! Fit after  self-cal, rms=0.558898Jy  sigma=0.004099
! 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.852 mas, bmaj=1.994 mas, bpa=-38.57 degrees
! Estimated noise=439.122 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.373151 Jy
! Component: 100  -  total flux cleaned = 0.459947 Jy
! Total flux subtracted in 100 components = 0.459947 Jy
! Clean residual min=-0.006494 max=0.035322 Jy/beam
! Clean residual mean=0.000113 rms=0.002011 Jy/beam
! Combined flux in latest and established models = 0.459948 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.459948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282035Jy  sigma=0.001816
! Fit after  self-cal, rms=0.282024Jy  sigma=0.001816
! Inverting map 
! Added new window around map position (-1, -5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0413121 Jy
! Component: 100  -  total flux cleaned = 0.0675967 Jy
! Total flux subtracted in 100 components = 0.0675967 Jy
! Clean residual min=-0.006710 max=0.030851 Jy/beam
! Clean residual mean=0.000086 rms=0.001592 Jy/beam
! Combined flux in latest and established models = 0.527544 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 0.527544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270068Jy  sigma=0.001679
! Fit after  self-cal, rms=0.269788Jy  sigma=0.001677
! Inverting map 
! Added new window around map position (-1.5, -9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0276741 Jy
! Component: 100  -  total flux cleaned = 0.0455225 Jy
! Total flux subtracted in 100 components = 0.0455225 Jy
! Clean residual min=-0.005115 max=0.012323 Jy/beam
! Clean residual mean=0.000067 rms=0.001335 Jy/beam
! Combined flux in latest and established models = 0.573067 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 25 components and 0.573067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263852Jy  sigma=0.001608
! Fit after  self-cal, rms=0.263564Jy  sigma=0.001606
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154145 Jy
! Component: 100  -  total flux cleaned = 0.0279841 Jy
! Total flux subtracted in 100 components = 0.0279841 Jy
! Clean residual min=-0.004646 max=0.009358 Jy/beam
! Clean residual mean=0.000055 rms=0.001212 Jy/beam
! Combined flux in latest and established models = 0.601051 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 36 components and 0.601051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260975Jy  sigma=0.001575
! Fit after  self-cal, rms=0.260871Jy  sigma=0.001574
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113459 Jy
! Component: 100  -  total flux cleaned = 0.0209705 Jy
! Total flux subtracted in 100 components = 0.0209705 Jy
! Clean residual min=-0.004416 max=0.007510 Jy/beam
! Clean residual mean=0.000046 rms=0.001142 Jy/beam
! Combined flux in latest and established models = 0.622021 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 48 components and 0.622021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259339Jy  sigma=0.001556
! Fit after  self-cal, rms=0.259278Jy  sigma=0.001555
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00883559 Jy
! Component: 100  -  total flux cleaned = 0.0165033 Jy
! Total flux subtracted in 100 components = 0.0165033 Jy
! Clean residual min=-0.004257 max=0.006354 Jy/beam
! Clean residual mean=0.000039 rms=0.001096 Jy/beam
! Combined flux in latest and established models = 0.638525 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 53 components and 0.638525 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258303Jy  sigma=0.001543
! Fit after  self-cal, rms=0.258267Jy  sigma=0.001543
! 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.367 mas, bmaj=2.457 mas, bpa=-45.29 degrees
! Estimated noise=183.016 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 (-1.5, -7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.020026 Jy
! Component: 100  -  total flux cleaned = 0.0337997 Jy
! Component: 150  -  total flux cleaned = 0.0438166 Jy
! Component: 200  -  total flux cleaned = 0.0512345 Jy
! Total flux subtracted in 200 components = 0.0512345 Jy
! Clean residual min=-0.003055 max=0.007684 Jy/beam
! Clean residual mean=0.000189 rms=0.000943 Jy/beam
! Combined flux in latest and established models = 0.689759 Jy
! Performing phase self-cal
! Adding 66 model components to the UV plane model.
! The established model now contains 94 components and 0.689759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256480Jy  sigma=0.001522
! Fit after  self-cal, rms=0.256332Jy  sigma=0.001520
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00734085 Jy
! Component: 100  -  total flux cleaned = 0.0122712 Jy
! Component: 150  -  total flux cleaned = 0.0158978 Jy
! Component: 200  -  total flux cleaned = 0.0186496 Jy
! Total flux subtracted in 200 components = 0.0186496 Jy
! Clean residual min=-0.002856 max=0.003987 Jy/beam
! Clean residual mean=0.000120 rms=0.000755 Jy/beam
! Combined flux in latest and established models = 0.708409 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 112 components and 0.708408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256077Jy  sigma=0.001518
! Fit after  self-cal, rms=0.256037Jy  sigma=0.001517
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.01     KP        1.06     
!   LA        0.99     MA        0.96     MC        1.06     MK        1.04     
!   NL        0.99     NY        0.97     OV        1.03     PT        0.96     
!   SC        1.02     TS        1.03     WF        1.02     WZ        1.01     
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00     KP        1.06     
!   LA        0.98     MA        0.95     MC        1.01     MK        0.99     
!   NL        1.01     NY        1.00     OV        1.03     PT        0.96     
!   SC        1.07     TS        0.99     WF        1.00     WZ        1.03     
! 
!  A total of 159 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.03     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.03     KP        1.05     
!   LA        0.97     MA        0.96     MC        1.13     MK        1.03     
!   NL        1.01     NY        0.99     OV        1.03     PT        0.97     
!   SC        1.04     TS        0.98     WF        1.07     WZ        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.91     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.01     KP        0.96     
!   LA        1.01     MA        0.87     MC        1.01     MK        1.05     
!   NL        0.99     NY        1.00     OV        1.00     PT        1.00     
!   SC        1.03     TS        1.05     WF        1.01     WZ        1.00     
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.02     KP        0.99     
!   LA        1.00     MA        0.94     MC        0.97     MK        1.00     
!   NL        1.01     NY        1.02     OV        1.00     PT        1.01     
!   SC        1.07     TS        1.02     WF        1.02     WZ        1.02     
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.02     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.07     KP        0.86     
!   LA        1.00     MA        0.84     MC        0.98     MK        1.04     
!   NL        1.00     NY        1.02     OV        1.00     PT        1.01     
!   SC        1.05     TS        1.03     WF        1.01     WZ        0.95     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.01     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.01     KP        1.08     
!   LA        0.96     MA        1.02     MC        1.29     MK        1.00     
!   NL        0.98     NY        0.96     OV        0.99     PT        1.00     
!   SC        1.01     TS        1.04     WF        0.99     WZ        1.02     
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.02     KP        1.03     
!   LA        0.96     MA        1.00     MC        1.21     MK        0.96     
!   NL        1.00     NY        0.98     OV        0.98     PT        0.99     
!   SC        1.04     TS        1.02     WF        1.01     WZ        1.03     
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.03     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.06     KP        1.03     
!   LA        0.96     MA        1.03     MC        1.90     MK        0.99     
!   NL        0.98     NY        0.95     OV        0.99     PT        1.00     
!   SC        1.00     TS        1.02     WF        1.02     WZ        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.01     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.97     KP        1.06     
!   LA        0.99     MA        0.91     MC        0.85     MK        0.99     
!   NL        0.98     NY        1.01     OV        1.00     PT        0.99     
!   SC        1.02     TS        0.99     WF        1.02     WZ        1.01     
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.99     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.98     KP        1.02     
!   LA        1.00     MA        1.12     MC        0.64     MK        0.96     
!   NL        0.98     NY        1.01     OV        0.99     PT        1.02     
!   SC        1.06     TS        0.99     WF        0.98     WZ        1.00     
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.02     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.02     KP        1.04     
!   LA        1.00     MA        0.85     MC        0.70     MK        0.98     
!   NL        0.99     NY        0.99     OV        0.99     PT        1.00     
!   SC        1.03     TS        0.97     WF        1.01     WZ        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.93     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.89     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.256037Jy  sigma=0.001517
! Fit after  self-cal, rms=0.239566Jy  sigma=0.001488
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.363 mas, bmaj=2.458 mas, bpa=-46.23 degrees
! Estimated noise=183.07 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.5, -12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0039045 Jy
! Component: 100  -  total flux cleaned = 0.0062622 Jy
! Component: 150  -  total flux cleaned = 0.00735775 Jy
! Component: 200  -  total flux cleaned = 0.00819696 Jy
! Total flux subtracted in 200 components = 0.00819696 Jy
! Clean residual min=-0.002501 max=0.001953 Jy/beam
! Clean residual mean=0.000047 rms=0.000527 Jy/beam
! Combined flux in latest and established models = 0.716605 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 126 components and 0.716605 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239489Jy  sigma=0.001487
! Fit after  self-cal, rms=0.239756Jy  sigma=0.001486
! 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.239756Jy  sigma=0.001486
! Fit after  self-cal, rms=0.241099Jy  sigma=0.001471
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.357 mas, bmaj=2.458 mas, bpa=-50.07 degrees
! Estimated noise=183.088 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00271224 Jy
! Component: 100  -  total flux cleaned = 0.00345173 Jy
! Component: 150  -  total flux cleaned = 0.0041403 Jy
! Component: 200  -  total flux cleaned = 0.00468101 Jy
! Total flux subtracted in 200 components = 0.00468101 Jy
! Clean residual min=-0.001553 max=0.001613 Jy/beam
! Clean residual mean=0.000030 rms=0.000371 Jy/beam
! Combined flux in latest and established models = 0.721286 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 137 components and 0.721286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241048Jy  sigma=0.001471
! Fit after  self-cal, rms=0.241192Jy  sigma=0.001470
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 (-11.5, -26).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00154165 Jy
! Component: 100  -  total flux cleaned = 0.00209292 Jy
! Component: 150  -  total flux cleaned = 0.00253498 Jy
! Component: 200  -  total flux cleaned = 0.0028928 Jy
! Total flux subtracted in 200 components = 0.0028928 Jy
! Clean residual min=-0.001605 max=0.001408 Jy/beam
! Clean residual mean=0.000020 rms=0.000367 Jy/beam
! Combined flux in latest and established models = 0.724179 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 147 components and 0.724179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241172Jy  sigma=0.001470
! Fit after  self-cal, rms=0.241173Jy  sigma=0.001470
! 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.241173Jy  sigma=0.001470
! Fit after  self-cal, rms=0.240688Jy  sigma=0.001470
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.354 mas, bmaj=2.455 mas, bpa=-51.27 degrees
! Estimated noise=183.071 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00165754 Jy
! Component: 100  -  total flux cleaned = 0.00227388 Jy
! Component: 150  -  total flux cleaned = 0.00285226 Jy
! Component: 200  -  total flux cleaned = 0.00328935 Jy
! Total flux subtracted in 200 components = 0.00328935 Jy
! Clean residual min=-0.001534 max=0.001391 Jy/beam
! Clean residual mean=0.000014 rms=0.000353 Jy/beam
! Combined flux in latest and established models = 0.727468 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 150 components and 0.727468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240664Jy  sigma=0.001470
! Fit after  self-cal, rms=0.240678Jy  sigma=0.001470
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.000413492 Jy
! Component: 100  -  total flux cleaned = 0.000628523 Jy
! Component: 150  -  total flux cleaned = 0.00076138 Jy
! Component: 200  -  total flux cleaned = 0.000917825 Jy
! Total flux subtracted in 200 components = 0.000917825 Jy
! Clean residual min=-0.001528 max=0.001394 Jy/beam
! Clean residual mean=0.000011 rms=0.000351 Jy/beam
! Combined flux in latest and established models = 0.728386 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 160 components and 0.728386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240668Jy  sigma=0.001470
! Fit after  self-cal, rms=0.240668Jy  sigma=0.001470
! 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.240668Jy  sigma=0.001470
! Fit after  self-cal, rms=0.240228Jy  sigma=0.001470
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.669 mas, bmaj=8.963 mas, bpa=6.403 degrees
! Estimated noise=293.518 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00177974 Jy
! Component: 100  -  total flux cleaned = 0.00278712 Jy
! Component: 150  -  total flux cleaned = 0.00340291 Jy
! Component: 200  -  total flux cleaned = 0.00373502 Jy
! Total flux subtracted in 200 components = 0.00373502 Jy
! Clean residual min=-0.002003 max=0.001822 Jy/beam
! Clean residual mean=0.000004 rms=0.000778 Jy/beam
! Combined flux in latest and established models = 0.732121 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 183 components and 0.732121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240225Jy  sigma=0.001470
! Fit after  self-cal, rms=0.240230Jy  sigma=0.001470
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.000277135 Jy
! Component: 100  -  total flux cleaned = 0.00039471 Jy
! Component: 150  -  total flux cleaned = 0.000477563 Jy
! Component: 200  -  total flux cleaned = 0.00054613 Jy
! Total flux subtracted in 200 components = 0.00054613 Jy
! Clean residual min=-0.001990 max=0.001846 Jy/beam
! Clean residual mean=-0.000002 rms=0.000778 Jy/beam
! Combined flux in latest and established models = 0.732667 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 187 components and 0.732667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240228Jy  sigma=0.001470
! Fit after  self-cal, rms=0.240229Jy  sigma=0.001470
! 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.351 mas, bmaj=2.453 mas, bpa=-52.13 degrees
! Estimated noise=183.086 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.351 x 2.453 at -52.13 degrees (North through East)
! Clean map  min=-0.0013272  max=0.49467 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.841 mas, bmaj=1.992 mas, bpa=-41.98 degrees
! Estimated noise=438.309 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.370603 Jy
! Component: 100  -  total flux cleaned = 0.459237 Jy
! Component: 150  -  total flux cleaned = 0.506049 Jy
! Component: 200  -  total flux cleaned = 0.539573 Jy
! Total flux subtracted in 200 components = 0.539573 Jy
! Clean residual min=-0.004022 max=0.019425 Jy/beam
! Clean residual mean=0.000081 rms=0.001307 Jy/beam
! Combined flux in latest and established models = 0.539573 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.539573 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.351 mas, bmaj=2.453 mas, bpa=-52.13 degrees
! Estimated noise=183.086 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.0561416 Jy
! Component: 100  -  total flux cleaned = 0.0919052 Jy
! Component: 150  -  total flux cleaned = 0.116393 Jy
! Component: 200  -  total flux cleaned = 0.133974 Jy
! Total flux subtracted in 200 components = 0.133974 Jy
! Clean residual min=-0.002140 max=0.010029 Jy/beam
! Clean residual mean=0.000223 rms=0.001149 Jy/beam
! Combined flux in latest and established models = 0.673547 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 65 components and 0.673547 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0129117 Jy
! Component: 100  -  total flux cleaned = 0.022529 Jy
! Component: 150  -  total flux cleaned = 0.0298387 Jy
! Component: 200  -  total flux cleaned = 0.0354655 Jy
! Total flux subtracted in 200 components = 0.0354655 Jy
! Clean residual min=-0.001637 max=0.003425 Jy/beam
! Clean residual mean=0.000086 rms=0.000529 Jy/beam
! Combined flux in latest and established models = 0.709012 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 101 components and 0.709012 Jy
! Inverting map 
! Added new window around map position (-0.5, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00436987 Jy
! Component: 100  -  total flux cleaned = 0.00780501 Jy
! Component: 150  -  total flux cleaned = 0.0106013 Jy
! Component: 200  -  total flux cleaned = 0.0129221 Jy
! Total flux subtracted in 200 components = 0.0129221 Jy
! Clean residual min=-0.001542 max=0.001591 Jy/beam
! Clean residual mean=0.000037 rms=0.000386 Jy/beam
! Combined flux in latest and established models = 0.721934 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 131 components and 0.721935 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.669 mas, bmaj=8.963 mas, bpa=6.403 degrees
! Estimated noise=293.518 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00449119 Jy
! Component: 100  -  total flux cleaned = 0.00690894 Jy
! Component: 150  -  total flux cleaned = 0.00838701 Jy
! Component: 200  -  total flux cleaned = 0.00933692 Jy
! Total flux subtracted in 200 components = 0.00933692 Jy
! Clean residual min=-0.001953 max=0.001817 Jy/beam
! Clean residual mean=0.000016 rms=0.000784 Jy/beam
! Combined flux in latest and established models = 0.731271 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.000621969 Jy
! Component: 100  -  total flux cleaned = 0.00103293 Jy
! Component: 150  -  total flux cleaned = 0.00130601 Jy
! Component: 200  -  total flux cleaned = 0.00138836 Jy
! Total flux subtracted in 200 components = 0.00138836 Jy
! Clean residual min=-0.001960 max=0.001858 Jy/beam
! Clean residual mean=-0.000003 rms=0.000777 Jy/beam
! Combined flux in latest and established models = 0.73266 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 192 components and 0.73266 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.351 mas, bmaj=2.453 mas, bpa=-52.13 degrees
! Estimated noise=183.086 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000227243 Jy
! Component: 100  -  total flux cleaned = -0.000176104 Jy
! Component: 150  -  total flux cleaned = -9.38985e-05 Jy
! Component: 200  -  total flux cleaned = -5.58631e-05 Jy
! Total flux subtracted in 200 components = -5.58631e-05 Jy
! Clean residual min=-0.001498 max=0.001385 Jy/beam
! Clean residual mean=0.000000 rms=0.000341 Jy/beam
! Combined flux in latest and established models = 0.732604 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 196 components and 0.732604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240211Jy  sigma=0.001470
! Fit after  self-cal, rms=0.240209Jy  sigma=0.001470
wmodel J0017+8135_S_2001_04_09_pus_map.mod
! Writing 196 model components to file: J0017+8135_S_2001_04_09_pus_map.mod
wobs J0017+8135_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0017+8135_S_2001_04_09_pus_uvs.fits
wwins J0017+8135_S_2001_04_09_pus_map.win
! wwins: Wrote 7 windows to J0017+8135_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.000137696 Jy
! Component: 100  -  total flux cleaned = -0.000328643 Jy
! Component: 150  -  total flux cleaned = -0.000442885 Jy
! Component: 200  -  total flux cleaned = -0.000487079 Jy
! Component: 250  -  total flux cleaned = -0.000486702 Jy
! Component: 300  -  total flux cleaned = -0.000465341 Jy
! Component: 350  -  total flux cleaned = -0.000547698 Jy
! Component: 400  -  total flux cleaned = -0.000567761 Jy
! Component: 450  -  total flux cleaned = -0.000627887 Jy
! Component: 500  -  total flux cleaned = -0.000706804 Jy
! Component: 550  -  total flux cleaned = -0.00076498 Jy
! Component: 600  -  total flux cleaned = -0.000803316 Jy
! Component: 650  -  total flux cleaned = -0.000822318 Jy
! Component: 700  -  total flux cleaned = -0.000822416 Jy
! Component: 750  -  total flux cleaned = -0.000841184 Jy
! Component: 800  -  total flux cleaned = -0.000859824 Jy
! Component: 850  -  total flux cleaned = -0.000878146 Jy
! Component: 900  -  total flux cleaned = -0.000896368 Jy
! Component: 950  -  total flux cleaned = -0.000896285 Jy
! Component: 1000  -  total flux cleaned = -0.000896303 Jy
! Component: 1050  -  total flux cleaned = -0.000896389 Jy
! Component: 1100  -  total flux cleaned = -0.000931567 Jy
! Component: 1150  -  total flux cleaned = -0.000948935 Jy
! Component: 1200  -  total flux cleaned = -0.000966161 Jy
! Component: 1250  -  total flux cleaned = -0.00094894 Jy
! Component: 1300  -  total flux cleaned = -0.000897742 Jy
! Component: 1350  -  total flux cleaned = -0.000965801 Jy
! Component: 1400  -  total flux cleaned = -0.000915388 Jy
! Component: 1450  -  total flux cleaned = -0.000915473 Jy
! Component: 1500  -  total flux cleaned = -0.00101571 Jy
! Component: 1550  -  total flux cleaned = -0.000982388 Jy
! Component: 1600  -  total flux cleaned = -0.00101538 Jy
! Component: 1650  -  total flux cleaned = -0.00104804 Jy
! Component: 1700  -  total flux cleaned = -0.00103166 Jy
! Component: 1750  -  total flux cleaned = -0.00103161 Jy
! Component: 1800  -  total flux cleaned = -0.00108004 Jy
! Component: 1850  -  total flux cleaned = -0.00106394 Jy
! Component: 1900  -  total flux cleaned = -0.00107988 Jy
! Component: 1950  -  total flux cleaned = -0.00104822 Jy
! Component: 2000  -  total flux cleaned = -0.00109555 Jy
! Total flux subtracted in 2048 components = -0.00107981 Jy
! Clean residual min=-0.000862 max=0.001231 Jy/beam
! Clean residual mean=0.000003 rms=0.000291 Jy/beam
! Combined flux in latest and established models = 0.731524 Jy
keep
! Adding 177 model components to the UV plane model.
! The established model now contains 373 components and 0.731524 Jy
![Exited script file: muppet]
wmap "J0017+8135_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.351 x 2.453 at -52.13 degrees (North through East)
! Clean map  min=-0.0012361  max=0.49492 Jy/beam
! Writing clean map to FITS file: J0017+8135_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.494922 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000291725 
device "J0017+8135_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0017+8135_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.176831 0.176831 0.353662 0.707324 1.41465 2.8293 5.65859 11.3172 22.6344 45.2688 90.5375
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0008 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.494 
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.351 x 2.453 at -52.13 degrees (North through East)
! Clean map  min=-0.0012361  max=0.49492 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0017+8135_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0017+8135_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0017+8135_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 15:47:51 2007