! Started logfile: J1023+3948_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:43:44 2007
obs J1023+3948_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1023+3948_S_2000_05_22_pus_uva.fits
! AN table 1: 284 integrations on 190 of 190 possible baselines.
! AN table 2: 205 integrations on 190 of 190 possible baselines.
! AN table 3: 108 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.125152 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1023+3948
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2003 lines of history.
! 
! Reading 56784 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 J1023+3948_S_2000_05_22_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 3931 telescope corrections were flagged in sub-array 1.
!  A total of 2801 telescope corrections were flagged in sub-array 2.
!  A total of 1651 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3931 telescope corrections were flagged in sub-array 1.
!  A total of 2801 telescope corrections were flagged in sub-array 2.
!  A total of 1651 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3931 telescope corrections were flagged in sub-array 1.
!  A total of 2801 telescope corrections were flagged in sub-array 2.
!  A total of 1651 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3941 telescope corrections were flagged in sub-array 1.
!  A total of 2801 telescope corrections were flagged in sub-array 2.
!  A total of 1651 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.811830Jy  sigma=0.006052
! Fit after  self-cal, rms=0.660814Jy  sigma=0.004813
! 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.837 mas, bmaj=3.063 mas, bpa=-5.769 degrees
! Estimated noise=699.021 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.343834 Jy
! Component: 100  -  total flux cleaned = 0.438136 Jy
! Total flux subtracted in 100 components = 0.438136 Jy
! Clean residual min=-0.009534 max=0.040969 Jy/beam
! Clean residual mean=0.000188 rms=0.003075 Jy/beam
! Combined flux in latest and established models = 0.438136 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.438136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.392106Jy  sigma=0.001847
! Fit after  self-cal, rms=0.391685Jy  sigma=0.001847
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0444975 Jy
! Component: 100  -  total flux cleaned = 0.0681959 Jy
! Total flux subtracted in 100 components = 0.0681959 Jy
! Clean residual min=-0.008418 max=0.026748 Jy/beam
! Clean residual mean=0.000128 rms=0.002510 Jy/beam
! Combined flux in latest and established models = 0.506332 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 13 components and 0.506332 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385075Jy  sigma=0.001706
! Fit after  self-cal, rms=0.384704Jy  sigma=0.001705
! Inverting map 
! Added new window around map position (-2.5, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0247012 Jy
! Component: 100  -  total flux cleaned = 0.0390296 Jy
! Total flux subtracted in 100 components = 0.0390296 Jy
! Clean residual min=-0.008326 max=0.014208 Jy/beam
! Clean residual mean=0.000096 rms=0.002293 Jy/beam
! Combined flux in latest and established models = 0.545362 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 26 components and 0.545362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382541Jy  sigma=0.001656
! Fit after  self-cal, rms=0.382050Jy  sigma=0.001653
! Inverting map 
! Added new window around map position (-7, 11).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0164967 Jy
! Component: 100  -  total flux cleaned = 0.0287248 Jy
! Total flux subtracted in 100 components = 0.0287248 Jy
! Clean residual min=-0.008012 max=0.009570 Jy/beam
! Clean residual mean=0.000077 rms=0.002148 Jy/beam
! Combined flux in latest and established models = 0.574087 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 33 components and 0.574087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380946Jy  sigma=0.001627
! Fit after  self-cal, rms=0.380719Jy  sigma=0.001626
! 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.06 mas, bmaj=3.887 mas, bpa=-13.39 degrees
! Estimated noise=373.853 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.0206478 Jy
! Component: 100  -  total flux cleaned = 0.0350788 Jy
! Component: 150  -  total flux cleaned = 0.0460075 Jy
! Component: 200  -  total flux cleaned = 0.0544425 Jy
! Total flux subtracted in 200 components = 0.0544425 Jy
! Clean residual min=-0.005982 max=0.009773 Jy/beam
! Clean residual mean=0.000399 rms=0.001802 Jy/beam
! Combined flux in latest and established models = 0.628529 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 58 components and 0.628529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379665Jy  sigma=0.001596
! Fit after  self-cal, rms=0.379173Jy  sigma=0.001594
! Inverting map 
! Added new window around map position (-10, 13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113484 Jy
! Component: 100  -  total flux cleaned = 0.0187616 Jy
! Component: 150  -  total flux cleaned = 0.0244954 Jy
! Component: 200  -  total flux cleaned = 0.0290897 Jy
! Total flux subtracted in 200 components = 0.0290897 Jy
! Clean residual min=-0.006072 max=0.008186 Jy/beam
! Clean residual mean=0.000227 rms=0.001590 Jy/beam
! Combined flux in latest and established models = 0.657619 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 75 components and 0.657619 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.378851Jy  sigma=0.001586
! Fit after  self-cal, rms=0.378646Jy  sigma=0.001585
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     GC        1.09     GG        1.00*    
!   HH        2.30     HN        0.95     KK        0.95     KP        1.06     
!   MA        1.35     MC        1.03     MK        0.99     NL        1.01     
!   NY        0.99     OV        1.01     PT        0.99     SC        1.02     
!   TS        0.99     WF        0.99     WZ        1.01     LA        1.00     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.84     FD        0.93     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.97     KP        1.03     
!   MA        0.77     MC        1.02     MK        1.00     NL        0.91     
!   NY        0.98     OV        0.92     PT        0.91     SC        1.04     
!   TS        1.00*    WF        0.98     WZ        0.97     LA        0.91     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.00     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.93     KP        0.96     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        0.97     
!   NY        1.00     OV        0.92     PT        0.88     SC        1.00*    
!   TS        0.94     WF        0.98     WZ        1.00*    LA        0.93     
! 
! 
! Correcting IF 2.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.04     GC        1.08     GG        1.00*    
!   HH        1.94     HN        1.05     KK        0.96     KP        1.00     
!   MA        1.11     MC        1.40     MK        0.95     NL        1.07     
!   NY        1.01     OV        1.01     PT        0.99     SC        1.04     
!   TS        1.04     WF        1.01     WZ        0.99     LA        0.95     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.83     FD        0.94     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.99     KP        0.95     
!   MA        1.06     MC        1.18     MK        0.98     NL        0.95     
!   NY        0.97     OV        0.91     PT        0.90     SC        1.04     
!   TS        1.00*    WF        1.05     WZ        0.95     LA        0.87     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.03     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.08     KK        0.96     KP        0.96     
!   MA        1.00*    MC        1.00*    MK        0.93     NL        0.98     
!   NY        1.04     OV        0.89     PT        0.89     SC        1.00*    
!   TS        1.02     WF        1.07     WZ        1.00*    LA        0.89     
! 
! 
! Correcting IF 3.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     GC        1.05     GG        1.00*    
!   HH        2.20     HN        0.99     KK        0.96     KP        0.99     
!   MA        0.97     MC        0.83     MK        0.96     NL        1.01     
!   NY        1.02     OV        1.05     PT        0.94     SC        1.05     
!   TS        1.06     WF        1.01     WZ        1.04     LA        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.81     FD        0.93     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.97     KP        0.89     
!   MA        0.90     MC        1.42     MK        0.98     NL        0.92     
!   NY        0.99     OV        0.94     PT        0.94     SC        1.03     
!   TS        1.00*    WF        1.05     WZ        0.98     LA        0.92     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.01     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        0.96     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.94     NL        0.98     
!   NY        1.01     OV        0.93     PT        0.88     SC        1.00*    
!   TS        0.99     WF        1.11     WZ        1.00*    LA        0.96     
! 
! 
! Correcting IF 4.
!  A total of 159 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.06     GG        1.00*    
!   HH        2.58     HN        1.00     KK        0.99     KP        1.04     
!   MA        1.77     MC        0.88     MK        1.01     NL        1.03     
!   NY        1.00     OV        1.01     PT        0.92     SC        1.06     
!   TS        1.08     WF        1.02     WZ        1.07     LA        1.00     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.86     FD        0.95     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00     KP        0.93     
!   MA        1.48     MC        1.43     MK        1.02     NL        3.87     
!   NY        1.01     OV        0.92     PT        1.21     SC        1.06     
!   TS        1.00*    WF        1.01     WZ        0.98     LA        0.93     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.99     KP        1.00     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.96     
!   NY        1.10     OV        0.92     PT        0.90     SC        1.00*    
!   TS        1.03     WF        1.04     WZ        1.00*    LA        0.96     
! 
! 
! Fit before self-cal, rms=0.378646Jy  sigma=0.001585
! Fit after  self-cal, rms=0.430451Jy  sigma=0.001492
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.096 mas, bmaj=3.987 mas, bpa=-13.77 degrees
! Estimated noise=378.196 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 (-5, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00372648 Jy
! Component: 100  -  total flux cleaned = 0.00494471 Jy
! Component: 150  -  total flux cleaned = 0.00588849 Jy
! Component: 200  -  total flux cleaned = 0.00632037 Jy
! Total flux subtracted in 200 components = 0.00632037 Jy
! Clean residual min=-0.003708 max=0.003942 Jy/beam
! Clean residual mean=0.000269 rms=0.000962 Jy/beam
! Combined flux in latest and established models = 0.663939 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 98 components and 0.663939 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430270Jy  sigma=0.001490
! Fit after  self-cal, rms=0.432028Jy  sigma=0.001489
! 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.432028Jy  sigma=0.001489
! Fit after  self-cal, rms=0.430292Jy  sigma=0.001478
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.105 mas, bmaj=3.986 mas, bpa=-13.86 degrees
! Estimated noise=378.966 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.14281e-05 Jy
! Component: 100  -  total flux cleaned = 0.000682364 Jy
! Component: 150  -  total flux cleaned = 0.00108927 Jy
! Component: 200  -  total flux cleaned = 0.00134847 Jy
! Total flux subtracted in 200 components = 0.00134847 Jy
! Clean residual min=-0.002703 max=0.003737 Jy/beam
! Clean residual mean=0.000225 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.665288 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 105 components and 0.665288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430204Jy  sigma=0.001478
! Fit after  self-cal, rms=0.430346Jy  sigma=0.001477
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 (28, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00185601 Jy
! Component: 100  -  total flux cleaned = 0.00247869 Jy
! Component: 150  -  total flux cleaned = 0.00279021 Jy
! Component: 200  -  total flux cleaned = 0.00293224 Jy
! Total flux subtracted in 200 components = 0.00293224 Jy
! Clean residual min=-0.002663 max=0.003237 Jy/beam
! Clean residual mean=0.000204 rms=0.000788 Jy/beam
! Combined flux in latest and established models = 0.66822 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 114 components and 0.66822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430272Jy  sigma=0.001477
! Fit after  self-cal, rms=0.430276Jy  sigma=0.001477
! 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.430276Jy  sigma=0.001477
! Fit after  self-cal, rms=0.424589Jy  sigma=0.001474
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.109 mas, bmaj=3.984 mas, bpa=-13.7 degrees
! Estimated noise=378.36 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000331873 Jy
! Component: 100  -  total flux cleaned = 0.000261868 Jy
! Component: 150  -  total flux cleaned = 0.000485042 Jy
! Component: 200  -  total flux cleaned = 0.000554322 Jy
! Total flux subtracted in 200 components = 0.000554322 Jy
! Clean residual min=-0.002133 max=0.003003 Jy/beam
! Clean residual mean=0.000217 rms=0.000736 Jy/beam
! Combined flux in latest and established models = 0.668774 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 124 components and 0.668774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424540Jy  sigma=0.001474
! Fit after  self-cal, rms=0.424537Jy  sigma=0.001474
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.00048121 Jy
! Component: 100  -  total flux cleaned = 0.00060011 Jy
! Component: 150  -  total flux cleaned = 0.000710226 Jy
! Component: 200  -  total flux cleaned = 0.000761867 Jy
! Total flux subtracted in 200 components = 0.000761867 Jy
! Clean residual min=-0.002171 max=0.002999 Jy/beam
! Clean residual mean=0.000210 rms=0.000729 Jy/beam
! Combined flux in latest and established models = 0.669536 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 136 components and 0.669536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424507Jy  sigma=0.001474
! Fit after  self-cal, rms=0.424533Jy  sigma=0.001474
! 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.424533Jy  sigma=0.001474
! Fit after  self-cal, rms=0.426413Jy  sigma=0.001474
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.421 mas, bmaj=9.156 mas, bpa=-32.33 degrees
! Estimated noise=562.086 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00129282 Jy
! Component: 100  -  total flux cleaned = 0.00197771 Jy
! Component: 150  -  total flux cleaned = 0.0024265 Jy
! Component: 200  -  total flux cleaned = 0.00260554 Jy
! Total flux subtracted in 200 components = 0.00260554 Jy
! Clean residual min=-0.002713 max=0.005731 Jy/beam
! Clean residual mean=0.000657 rms=0.001282 Jy/beam
! Combined flux in latest and established models = 0.672142 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 145 components and 0.672142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426406Jy  sigma=0.001474
! Fit after  self-cal, rms=0.426456Jy  sigma=0.001474
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 (-55, -48.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00522046 Jy
! Component: 100  -  total flux cleaned = 0.00799663 Jy
! Component: 150  -  total flux cleaned = 0.00979192 Jy
! Component: 200  -  total flux cleaned = 0.0111987 Jy
! Total flux subtracted in 200 components = 0.0111987 Jy
! Clean residual min=-0.002998 max=0.004098 Jy/beam
! Clean residual mean=0.000471 rms=0.001125 Jy/beam
! Combined flux in latest and established models = 0.68334 Jy
! Performing phase self-cal
! Adding 57 model components to the UV plane model.
! The established model now contains 201 components and 0.68334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426443Jy  sigma=0.001473
! Fit after  self-cal, rms=0.426473Jy  sigma=0.001473
! 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.112 mas, bmaj=3.985 mas, bpa=-13.65 degrees
! Estimated noise=378.052 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.112 x 3.985 at -13.65 degrees (North through East)
! Clean map  min=-0.0019542  max=0.46269 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.885 mas, bmaj=3.211 mas, bpa=-8.399 degrees
! Estimated noise=718.232 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.351351 Jy
! Component: 100  -  total flux cleaned = 0.438142 Jy
! Component: 150  -  total flux cleaned = 0.482307 Jy
! Component: 200  -  total flux cleaned = 0.510268 Jy
! Total flux subtracted in 200 components = 0.510268 Jy
! Clean residual min=-0.006190 max=0.014998 Jy/beam
! Clean residual mean=0.000124 rms=0.001754 Jy/beam
! Combined flux in latest and established models = 0.510267 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.510267 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.112 mas, bmaj=3.985 mas, bpa=-13.65 degrees
! Estimated noise=378.052 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.0364388 Jy
! Component: 100  -  total flux cleaned = 0.0619859 Jy
! Component: 150  -  total flux cleaned = 0.0812986 Jy
! Component: 200  -  total flux cleaned = 0.0961978 Jy
! Total flux subtracted in 200 components = 0.0961978 Jy
! Clean residual min=-0.003257 max=0.008702 Jy/beam
! Clean residual mean=0.000631 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 0.606465 Jy
! Adding 67 model components to the UV plane model.
! The established model now contains 74 components and 0.606465 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.011643 Jy
! Component: 100  -  total flux cleaned = 0.0208652 Jy
! Component: 150  -  total flux cleaned = 0.0282022 Jy
! Component: 200  -  total flux cleaned = 0.0340863 Jy
! Total flux subtracted in 200 components = 0.0340863 Jy
! Clean residual min=-0.002337 max=0.004116 Jy/beam
! Clean residual mean=0.000398 rms=0.000911 Jy/beam
! Combined flux in latest and established models = 0.640552 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 100 components and 0.640551 Jy
! Inverting map 
! Added new window around map position (-5.5, 15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00495901 Jy
! Component: 100  -  total flux cleaned = 0.00909335 Jy
! Component: 150  -  total flux cleaned = 0.0127312 Jy
! Component: 200  -  total flux cleaned = 0.016017 Jy
! Total flux subtracted in 200 components = 0.016017 Jy
! Clean residual min=-0.002145 max=0.003221 Jy/beam
! Clean residual mean=0.000296 rms=0.000771 Jy/beam
! Combined flux in latest and established models = 0.656568 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 131 components and 0.656568 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.421 mas, bmaj=9.156 mas, bpa=-32.33 degrees
! Estimated noise=562.086 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00664743 Jy
! Component: 100  -  total flux cleaned = 0.0112673 Jy
! Component: 150  -  total flux cleaned = 0.0148456 Jy
! Component: 200  -  total flux cleaned = 0.0178083 Jy
! Total flux subtracted in 200 components = 0.0178083 Jy
! Clean residual min=-0.003288 max=0.003929 Jy/beam
! Clean residual mean=0.000651 rms=0.001180 Jy/beam
! Combined flux in latest and established models = 0.674377 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.00253546 Jy
! Component: 100  -  total flux cleaned = 0.00470918 Jy
! Component: 150  -  total flux cleaned = 0.00658456 Jy
! Component: 200  -  total flux cleaned = 0.00821262 Jy
! Total flux subtracted in 200 components = 0.00821262 Jy
! Clean residual min=-0.003480 max=0.004046 Jy/beam
! Clean residual mean=0.000495 rms=0.001138 Jy/beam
! Combined flux in latest and established models = 0.682589 Jy
! Adding 101 model components to the UV plane model.
! The established model now contains 217 components and 0.682589 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.112 mas, bmaj=3.985 mas, bpa=-13.65 degrees
! Estimated noise=378.052 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00151442 Jy
! Component: 100  -  total flux cleaned = 0.00191847 Jy
! Component: 150  -  total flux cleaned = 0.00244559 Jy
! Component: 200  -  total flux cleaned = 0.00294047 Jy
! Total flux subtracted in 200 components = 0.00294047 Jy
! Clean residual min=-0.002305 max=0.003029 Jy/beam
! Clean residual mean=0.000136 rms=0.000686 Jy/beam
! Combined flux in latest and established models = 0.68553 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 248 components and 0.68553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426504Jy  sigma=0.001473
! Fit after  self-cal, rms=0.426803Jy  sigma=0.001473
wmodel J1023+3948_S_2000_05_22_pus_map.mod
! Writing 248 model components to file: J1023+3948_S_2000_05_22_pus_map.mod
wobs J1023+3948_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1023+3948_S_2000_05_22_pus_uvs.fits
wwins J1023+3948_S_2000_05_22_pus_map.win
! wwins: Wrote 8 windows to J1023+3948_S_2000_05_22_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00133176 Jy
! Component: 100  -  total flux cleaned = 0.00253494 Jy
! Component: 150  -  total flux cleaned = 0.0036301 Jy
! Component: 200  -  total flux cleaned = 0.00450746 Jy
! Component: 250  -  total flux cleaned = 0.00527215 Jy
! Component: 300  -  total flux cleaned = 0.00580991 Jy
! Component: 350  -  total flux cleaned = 0.00633589 Jy
! Component: 400  -  total flux cleaned = 0.00685145 Jy
! Component: 450  -  total flux cleaned = 0.00728048 Jy
! Component: 500  -  total flux cleaned = 0.00777927 Jy
! Component: 550  -  total flux cleaned = 0.00819427 Jy
! Component: 600  -  total flux cleaned = 0.00856548 Jy
! Component: 650  -  total flux cleaned = 0.00882199 Jy
! Component: 700  -  total flux cleaned = 0.00907539 Jy
! Component: 750  -  total flux cleaned = 0.00932595 Jy
! Component: 800  -  total flux cleaned = 0.00953813 Jy
! Component: 850  -  total flux cleaned = 0.00974819 Jy
! Component: 900  -  total flux cleaned = 0.0100595 Jy
! Component: 950  -  total flux cleaned = 0.0101625 Jy
! Component: 1000  -  total flux cleaned = 0.0104679 Jy
! Component: 1050  -  total flux cleaned = 0.0106691 Jy
! Component: 1100  -  total flux cleaned = 0.0108023 Jy
! Component: 1150  -  total flux cleaned = 0.0109345 Jy
! Component: 1200  -  total flux cleaned = 0.0111639 Jy
! Component: 1250  -  total flux cleaned = 0.0112611 Jy
! Component: 1300  -  total flux cleaned = 0.0114221 Jy
! Component: 1350  -  total flux cleaned = 0.0116456 Jy
! Component: 1400  -  total flux cleaned = 0.0116449 Jy
! Component: 1450  -  total flux cleaned = 0.0118023 Jy
! Component: 1500  -  total flux cleaned = 0.011865 Jy
! Component: 1550  -  total flux cleaned = 0.0119583 Jy
! Component: 1600  -  total flux cleaned = 0.012113 Jy
! Component: 1650  -  total flux cleaned = 0.0121744 Jy
! Component: 1700  -  total flux cleaned = 0.0123273 Jy
! Component: 1750  -  total flux cleaned = 0.012388 Jy
! Component: 1800  -  total flux cleaned = 0.012539 Jy
! Component: 1850  -  total flux cleaned = 0.0126589 Jy
! Component: 1900  -  total flux cleaned = 0.0126588 Jy
! Component: 1950  -  total flux cleaned = 0.0127774 Jy
! Component: 2000  -  total flux cleaned = 0.0128364 Jy
! Total flux subtracted in 2048 components = 0.0129245 Jy
! Clean residual min=-0.001474 max=0.001689 Jy/beam
! Clean residual mean=0.000057 rms=0.000556 Jy/beam
! Combined flux in latest and established models = 0.698454 Jy
keep
! Adding 162 model components to the UV plane model.
! The established model now contains 410 components and 0.698454 Jy
![Exited script file: muppet]
wmap "J1023+3948_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.112 x 3.985 at -13.65 degrees (North through East)
! Clean map  min=-0.0018776  max=0.46384 Jy/beam
! Writing clean map to FITS file: J1023+3948_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.463836 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000555765 
device "J1023+3948_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1023+3948_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.359458 0.359458 0.718916 1.43783 2.87566 5.75132 11.5026 23.0053 46.0106 92.0212
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.463 
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.112 x 3.985 at -13.65 degrees (North through East)
! Clean map  min=-0.0018776  max=0.46384 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1023+3948_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1023+3948_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1023+3948_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:44:12 2007