! Started logfile: J1048+7143_S_2000_05_22_pus_uvs.log on Tue Nov 20 17:35:38 2007
obs J1048+7143_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1048+7143_S_2000_05_22_pus_uva.fits
! AN table 1: 102 integrations on 190 of 190 possible baselines.
! AN table 2: 344 integrations on 190 of 190 possible baselines.
! AN table 3: 274 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.225322 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1048+7143
! 
! 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 2007 lines of history.
! 
! Reading 123296 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 J1048+7143_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 1176 telescope corrections were flagged in sub-array 1.
!  A total of 4564 telescope corrections were flagged in sub-array 2.
!  A total of 2857 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1176 telescope corrections were flagged in sub-array 1.
!  A total of 4543 telescope corrections were flagged in sub-array 2.
!  A total of 2857 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1176 telescope corrections were flagged in sub-array 1.
!  A total of 4543 telescope corrections were flagged in sub-array 2.
!  A total of 2857 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1177 telescope corrections were flagged in sub-array 1.
!  A total of 4552 telescope corrections were flagged in sub-array 2.
!  A total of 2857 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.977865Jy  sigma=0.008414
! Fit after  self-cal, rms=0.326936Jy  sigma=0.002979
! 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=2.046 mas, bmaj=2.105 mas, bpa=19.51 degrees
! Estimated noise=458.415 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.922544 Jy
! Component: 100  -  total flux cleaned = 1.12477 Jy
! Total flux subtracted in 100 components = 1.12477 Jy
! Clean residual min=-0.010484 max=0.063422 Jy/beam
! Clean residual mean=0.000127 rms=0.003109 Jy/beam
! Combined flux in latest and established models = 1.12477 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.12477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252835Jy  sigma=0.002242
! Fit after  self-cal, rms=0.252830Jy  sigma=0.002242
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0727182 Jy
! Component: 100  -  total flux cleaned = 0.120268 Jy
! Total flux subtracted in 100 components = 0.120268 Jy
! Clean residual min=-0.011269 max=0.026101 Jy/beam
! Clean residual mean=0.000085 rms=0.002259 Jy/beam
! Combined flux in latest and established models = 1.24504 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 20 components and 1.24504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217340Jy  sigma=0.001832
! Fit after  self-cal, rms=0.217317Jy  sigma=0.001832
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0329316 Jy
! Component: 100  -  total flux cleaned = 0.0561176 Jy
! Total flux subtracted in 100 components = 0.0561176 Jy
! Clean residual min=-0.011203 max=0.012970 Jy/beam
! Clean residual mean=0.000065 rms=0.002008 Jy/beam
! Combined flux in latest and established models = 1.30116 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 26 components and 1.30116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210237Jy  sigma=0.001732
! Fit after  self-cal, rms=0.210227Jy  sigma=0.001732
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0166143 Jy
! Component: 100  -  total flux cleaned = 0.0285131 Jy
! Total flux subtracted in 100 components = 0.0285131 Jy
! Clean residual min=-0.011064 max=0.009090 Jy/beam
! Clean residual mean=0.000055 rms=0.001932 Jy/beam
! Combined flux in latest and established models = 1.32967 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 28 components and 1.32967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208912Jy  sigma=0.001705
! Fit after  self-cal, rms=0.208907Jy  sigma=0.001705
! 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.665 mas, bmaj=2.732 mas, bpa=-29.16 degrees
! Estimated noise=230.452 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 (-18.5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0121183 Jy
! Component: 100  -  total flux cleaned = 0.0201255 Jy
! Component: 150  -  total flux cleaned = 0.0260077 Jy
! Component: 200  -  total flux cleaned = 0.0294306 Jy
! Total flux subtracted in 200 components = 0.0294306 Jy
! Clean residual min=-0.009390 max=0.009395 Jy/beam
! Clean residual mean=0.000225 rms=0.001929 Jy/beam
! Combined flux in latest and established models = 1.3591 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 45 components and 1.3591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208445Jy  sigma=0.001693
! Fit after  self-cal, rms=0.208416Jy  sigma=0.001692
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.93     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.98     KP        0.97     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        0.96     
!   NY        0.99     OV        0.98     PT        0.92     SC        1.09     
!   TS        0.98     WF        0.97     WZ        1.03     LA        0.94     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.05     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.98     KP        1.15     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.01     
!   NY        1.01     OV        1.04     PT        1.01     SC        1.09     
!   TS        0.98     WF        0.93     WZ        0.96     LA        0.99     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.95     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.94     KP        1.02     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        0.98     
!   NY        0.99     OV        0.99     PT        0.95     SC        1.03     
!   TS        0.99     WF        1.15     WZ        0.97     LA        0.96     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.02     KP        0.94     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.02     
!   NY        1.00     OV        0.97     PT        0.93     SC        1.09     
!   TS        1.02     WF        1.00     WZ        1.03     LA        0.91     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.07     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.07     KP        1.10     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.03     
!   NY        1.01     OV        1.03     PT        1.02     SC        1.12     
!   TS        1.01     WF        1.00     WZ        0.96     LA        0.96     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.04     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.00     
!   NY        0.99     OV        0.99     PT        0.96     SC        1.06     
!   TS        1.02     WF        0.99     WZ        0.95     LA        0.92     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.94     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.98     KP        0.92     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.97     
!   NY        1.00     OV        0.99     PT        0.91     SC        1.10     
!   TS        1.04     WF        1.01     WZ        1.06     LA        0.95     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.06     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.04     KP        1.08     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.00     
!   NY        1.02     OV        1.06     PT        1.00     SC        1.12     
!   TS        1.04     WF        1.01     WZ        0.99     LA        1.01     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.99     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.96     
!   NY        0.99     OV        1.02     PT        0.94     SC        1.06     
!   TS        1.05     WF        0.99     WZ        1.00     LA        0.97     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00     KP        0.93     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        0.99     
!   NY        0.99     OV        0.97     PT        0.94     SC        1.10     
!   TS        1.05     WF        1.03     WZ        1.07     LA        0.96     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.05     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.07     KP        1.09     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.01     
!   NY        1.00     OV        1.03     PT        0.98     SC        1.10     
!   TS        1.05     WF        1.00     WZ        0.99     LA        1.01     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.01     KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        0.98     
!   NY        0.97     OV        0.99     PT        0.96     SC        1.06     
!   TS        1.07     WF        0.99     WZ        0.99     LA        0.98     
! 
! 
! Fit before self-cal, rms=0.208416Jy  sigma=0.001692
! Fit after  self-cal, rms=0.198340Jy  sigma=0.001532
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.68 mas, bmaj=2.753 mas, bpa=-29.8 degrees
! Estimated noise=231.019 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.00634839 Jy
! Component: 100  -  total flux cleaned = -0.00979814 Jy
! Component: 150  -  total flux cleaned = -0.0113797 Jy
! Component: 200  -  total flux cleaned = -0.0126118 Jy
! Total flux subtracted in 200 components = -0.0126118 Jy
! Clean residual min=-0.005353 max=0.004814 Jy/beam
! Clean residual mean=0.000160 rms=0.001318 Jy/beam
! Combined flux in latest and established models = 1.34649 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 57 components and 1.34649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198131Jy  sigma=0.001529
! Fit after  self-cal, rms=0.198168Jy  sigma=0.001529
! 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.198168Jy  sigma=0.001529
! Fit after  self-cal, rms=0.185770Jy  sigma=0.001406
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.68 mas, bmaj=2.757 mas, bpa=-32.41 degrees
! Estimated noise=230.916 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00349609 Jy
! Component: 100  -  total flux cleaned = -0.00505711 Jy
! Component: 150  -  total flux cleaned = -0.00595868 Jy
! Component: 200  -  total flux cleaned = -0.00667452 Jy
! Total flux subtracted in 200 components = -0.00667452 Jy
! Clean residual min=-0.001685 max=0.001622 Jy/beam
! Clean residual mean=0.000035 rms=0.000421 Jy/beam
! Combined flux in latest and established models = 1.33982 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 65 components and 1.33982 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185682Jy  sigma=0.001405
! Fit after  self-cal, rms=0.185701Jy  sigma=0.001405
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.00112368 Jy
! Component: 100  -  total flux cleaned = -0.00164667 Jy
! Component: 150  -  total flux cleaned = -0.00205482 Jy
! Component: 200  -  total flux cleaned = -0.00225821 Jy
! Total flux subtracted in 200 components = -0.00225821 Jy
! Clean residual min=-0.001671 max=0.001557 Jy/beam
! Clean residual mean=0.000048 rms=0.000415 Jy/beam
! Combined flux in latest and established models = 1.33756 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 70 components and 1.33756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185677Jy  sigma=0.001405
! Fit after  self-cal, rms=0.185674Jy  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.185674Jy  sigma=0.001405
! Fit after  self-cal, rms=0.185759Jy  sigma=0.001402
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.682 mas, bmaj=2.76 mas, bpa=-32.57 degrees
! Estimated noise=231.057 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00129946 Jy
! Component: 100  -  total flux cleaned = -0.00197876 Jy
! Component: 150  -  total flux cleaned = -0.00262102 Jy
! Component: 200  -  total flux cleaned = -0.00317457 Jy
! Total flux subtracted in 200 components = -0.00317457 Jy
! Clean residual min=-0.001514 max=0.001481 Jy/beam
! Clean residual mean=0.000073 rms=0.000388 Jy/beam
! Combined flux in latest and established models = 1.33438 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 70 components and 1.33438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185717Jy  sigma=0.001402
! Fit after  self-cal, rms=0.185719Jy  sigma=0.001402
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.000561705 Jy
! Component: 100  -  total flux cleaned = -0.000799431 Jy
! Component: 150  -  total flux cleaned = -0.000905554 Jy
! Component: 200  -  total flux cleaned = -0.000971431 Jy
! Total flux subtracted in 200 components = -0.000971431 Jy
! Clean residual min=-0.001516 max=0.001548 Jy/beam
! Clean residual mean=0.000078 rms=0.000385 Jy/beam
! Combined flux in latest and established models = 1.33341 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 73 components and 1.33341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185705Jy  sigma=0.001402
! Fit after  self-cal, rms=0.185705Jy  sigma=0.001402
! 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.185705Jy  sigma=0.001402
! Fit after  self-cal, rms=0.185808Jy  sigma=0.001401
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.73 mas, bmaj=8.5 mas, bpa=-56.68 degrees
! Estimated noise=349.261 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00119838 Jy
! Component: 100  -  total flux cleaned = -0.00139442 Jy
! Component: 150  -  total flux cleaned = -0.00146562 Jy
! Component: 200  -  total flux cleaned = -0.00150952 Jy
! Total flux subtracted in 200 components = -0.00150952 Jy
! Clean residual min=-0.001601 max=0.002256 Jy/beam
! Clean residual mean=0.000315 rms=0.000609 Jy/beam
! Combined flux in latest and established models = 1.3319 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 83 components and 1.3319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185811Jy  sigma=0.001401
! Fit after  self-cal, rms=0.185810Jy  sigma=0.001401
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.000187506 Jy
! Component: 100  -  total flux cleaned = -0.000200287 Jy
! Component: 150  -  total flux cleaned = -0.000188044 Jy
! Component: 200  -  total flux cleaned = -0.000167153 Jy
! Total flux subtracted in 200 components = -0.000167153 Jy
! Clean residual min=-0.001606 max=0.002232 Jy/beam
! Clean residual mean=0.000318 rms=0.000608 Jy/beam
! Combined flux in latest and established models = 1.33174 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 86 components and 1.33174 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185810Jy  sigma=0.001401
! Fit after  self-cal, rms=0.185811Jy  sigma=0.001401
! 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.684 mas, bmaj=2.762 mas, bpa=-32.55 degrees
! Estimated noise=231.189 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.684 x 2.762 at -32.55 degrees (North through East)
! Clean map  min=-0.0013526  max=1.2327 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.185811Jy  sigma=0.001401
! Fit after  self-cal, rms=0.174651Jy  sigma=0.001293
! Inverting map and beam 
! Estimated beam: bmin=2.685 mas, bmaj=2.762 mas, bpa=-32.17 degrees
! Estimated noise=230.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00158805 Jy
! Component: 100  -  total flux cleaned = -0.00196292 Jy
! Component: 150  -  total flux cleaned = -0.00206929 Jy
! Component: 200  -  total flux cleaned = -0.00213323 Jy
! Total flux subtracted in 200 components = -0.00213323 Jy
! Clean residual min=-0.001145 max=0.001439 Jy/beam
! Clean residual mean=0.000074 rms=0.000321 Jy/beam
! Combined flux in latest and established models = 1.3296 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 92 components and 1.3296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174630Jy  sigma=0.001292
! Fit after  self-cal, rms=0.174630Jy  sigma=0.001292
! Inverting map 
! Added new window around map position (-3.5, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000184438 Jy
! Component: 100  -  total flux cleaned = 0.000183439 Jy
! Component: 150  -  total flux cleaned = 0.000248194 Jy
! Component: 200  -  total flux cleaned = 0.000303384 Jy
! Total flux subtracted in 200 components = 0.000303384 Jy
! Clean residual min=-0.001151 max=0.001286 Jy/beam
! Clean residual mean=0.000073 rms=0.000317 Jy/beam
! Combined flux in latest and established models = 1.32991 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 103 components and 1.32991 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174610Jy  sigma=0.001292
! Fit after  self-cal, rms=0.174610Jy  sigma=0.001292
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174610Jy  sigma=0.001292
! Fit after  self-cal, rms=0.174584Jy  sigma=0.001292
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=2.063 mas, bmaj=2.12 mas, bpa=18.18 degrees
! Estimated noise=462.631 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.932362 Jy
! Component: 100  -  total flux cleaned = 1.13575 Jy
! Component: 150  -  total flux cleaned = 1.19937 Jy
! Component: 200  -  total flux cleaned = 1.23961 Jy
! Total flux subtracted in 200 components = 1.23961 Jy
! Clean residual min=-0.004628 max=0.021967 Jy/beam
! Clean residual mean=0.000038 rms=0.001250 Jy/beam
! Combined flux in latest and established models = 1.23961 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 18 model components to the UV plane model.
! The established model now contains 18 components and 1.23961 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.687 mas, bmaj=2.764 mas, bpa=-32.24 degrees
! Estimated noise=230.857 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.0420807 Jy
! Component: 100  -  total flux cleaned = 0.0633303 Jy
! Component: 150  -  total flux cleaned = 0.0747733 Jy
! Component: 200  -  total flux cleaned = 0.0811208 Jy
! Total flux subtracted in 200 components = 0.0811208 Jy
! Clean residual min=-0.001895 max=0.003965 Jy/beam
! Clean residual mean=0.000117 rms=0.000395 Jy/beam
! Combined flux in latest and established models = 1.32073 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 38 components and 1.32073 Jy
! Inverting map 
! Added new window around map position (2, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00297654 Jy
! Component: 100  -  total flux cleaned = 0.0040173 Jy
! Component: 150  -  total flux cleaned = 0.00489953 Jy
! Component: 200  -  total flux cleaned = 0.00556206 Jy
! Total flux subtracted in 200 components = 0.00556206 Jy
! Clean residual min=-0.001449 max=0.001637 Jy/beam
! Clean residual mean=0.000087 rms=0.000336 Jy/beam
! Combined flux in latest and established models = 1.32629 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 46 components and 1.32629 Jy
! Inverting map 
! Added new window around map position (-2.5, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000759745 Jy
! Component: 100  -  total flux cleaned = 0.00133784 Jy
! Component: 150  -  total flux cleaned = 0.00172806 Jy
! Component: 200  -  total flux cleaned = 0.00202549 Jy
! Total flux subtracted in 200 components = 0.00202549 Jy
! Clean residual min=-0.001273 max=0.001305 Jy/beam
! Clean residual mean=0.000076 rms=0.000326 Jy/beam
! Combined flux in latest and established models = 1.32831 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 51 components and 1.32831 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.731 mas, bmaj=8.498 mas, bpa=-56.74 degrees
! Estimated noise=348.383 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000522279 Jy
! Component: 100  -  total flux cleaned = 0.00077155 Jy
! Component: 150  -  total flux cleaned = 0.000916234 Jy
! Component: 200  -  total flux cleaned = 0.000930675 Jy
! Total flux subtracted in 200 components = 0.000930675 Jy
! Clean residual min=-0.001433 max=0.001861 Jy/beam
! Clean residual mean=0.000255 rms=0.000477 Jy/beam
! Combined flux in latest and established models = 1.32925 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 = 2.11892e-07 Jy
! Component: 100  -  total flux cleaned = -1.12805e-05 Jy
! Component: 150  -  total flux cleaned = 3.81953e-07 Jy
! Component: 200  -  total flux cleaned = 5.44875e-07 Jy
! Total flux subtracted in 200 components = 5.44875e-07 Jy
! Clean residual min=-0.001430 max=0.001863 Jy/beam
! Clean residual mean=0.000255 rms=0.000476 Jy/beam
! Combined flux in latest and established models = 1.32925 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 73 components and 1.32925 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.687 mas, bmaj=2.764 mas, bpa=-32.24 degrees
! Estimated noise=230.857 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000188491 Jy
! Component: 100  -  total flux cleaned = -0.000138417 Jy
! Component: 150  -  total flux cleaned = -9.1274e-05 Jy
! Component: 200  -  total flux cleaned = -4.69427e-05 Jy
! Total flux subtracted in 200 components = -4.69427e-05 Jy
! Clean residual min=-0.001256 max=0.001307 Jy/beam
! Clean residual mean=0.000071 rms=0.000320 Jy/beam
! Combined flux in latest and established models = 1.3292 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 85 components and 1.3292 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174632Jy  sigma=0.001293
! Fit after  self-cal, rms=0.174631Jy  sigma=0.001293
wmodel J1048+7143_S_2000_05_22_pus_map.mod
! Writing 85 model components to file: J1048+7143_S_2000_05_22_pus_map.mod
wobs J1048+7143_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1048+7143_S_2000_05_22_pus_uvs.fits
wwins J1048+7143_S_2000_05_22_pus_map.win
! wwins: Wrote 5 windows to J1048+7143_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.000287925 Jy
! Component: 100  -  total flux cleaned = 0.000580239 Jy
! Component: 150  -  total flux cleaned = 0.000797144 Jy
! Component: 200  -  total flux cleaned = 0.00102855 Jy
! Component: 250  -  total flux cleaned = 0.00125417 Jy
! Component: 300  -  total flux cleaned = 0.00143508 Jy
! Component: 350  -  total flux cleaned = 0.00163276 Jy
! Component: 400  -  total flux cleaned = 0.00180773 Jy
! Component: 450  -  total flux cleaned = 0.00194185 Jy
! Component: 500  -  total flux cleaned = 0.00207451 Jy
! Component: 550  -  total flux cleaned = 0.0022431 Jy
! Component: 600  -  total flux cleaned = 0.00237293 Jy
! Component: 650  -  total flux cleaned = 0.00259281 Jy
! Component: 700  -  total flux cleaned = 0.00271946 Jy
! Component: 750  -  total flux cleaned = 0.00288107 Jy
! Component: 800  -  total flux cleaned = 0.00300571 Jy
! Component: 850  -  total flux cleaned = 0.00316473 Jy
! Component: 900  -  total flux cleaned = 0.00332213 Jy
! Component: 950  -  total flux cleaned = 0.00340908 Jy
! Component: 1000  -  total flux cleaned = 0.00354709 Jy
! Component: 1050  -  total flux cleaned = 0.00371795 Jy
! Component: 1100  -  total flux cleaned = 0.00380288 Jy
! Component: 1150  -  total flux cleaned = 0.00395466 Jy
! Component: 1200  -  total flux cleaned = 0.00407185 Jy
! Component: 1250  -  total flux cleaned = 0.00417177 Jy
! Component: 1300  -  total flux cleaned = 0.00432044 Jy
! Component: 1350  -  total flux cleaned = 0.00440261 Jy
! Component: 1400  -  total flux cleaned = 0.00450071 Jy
! Component: 1450  -  total flux cleaned = 0.00461445 Jy
! Component: 1500  -  total flux cleaned = 0.00466295 Jy
! Component: 1550  -  total flux cleaned = 0.00475948 Jy
! Component: 1600  -  total flux cleaned = 0.00487137 Jy
! Component: 1650  -  total flux cleaned = 0.00496684 Jy
! Component: 1700  -  total flux cleaned = 0.00506175 Jy
! Component: 1750  -  total flux cleaned = 0.00507747 Jy
! Component: 1800  -  total flux cleaned = 0.00523449 Jy
! Component: 1850  -  total flux cleaned = 0.00529685 Jy
! Component: 1900  -  total flux cleaned = 0.00540569 Jy
! Component: 1950  -  total flux cleaned = 0.00546748 Jy
! Component: 2000  -  total flux cleaned = 0.00554448 Jy
! Total flux subtracted in 2048 components = 0.00563661 Jy
! Clean residual min=-0.000879 max=0.000873 Jy/beam
! Clean residual mean=0.000041 rms=0.000285 Jy/beam
! Combined flux in latest and established models = 1.33484 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 249 components and 1.33483 Jy
![Exited script file: muppet]
wmap "J1048+7143_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.687 x 2.764 at -32.24 degrees (North through East)
! Clean map  min=-0.0011672  max=1.2316 Jy/beam
! Writing clean map to FITS file: J1048+7143_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 1.23156 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00028456 
device "J1048+7143_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1048+7143_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0693168 0.0693168 0.138634 0.277267 0.554535 1.10907 2.21814 4.43628 8.87256 17.7451 35.4902 70.9804
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0008 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.231 
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.687 x 2.764 at -32.24 degrees (North through East)
! Clean map  min=-0.0011672  max=1.2316 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1048+7143_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1048+7143_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1048+7143_S_2000_05_22_pus_uvs.log closed on Tue Nov 20 17:36:18 2007