! Started logfile: J1545+5135_S_1996_08_10_yyk_uvs.log on Sun Jan  7 18:48:34 2007
obs J1545+5135_S_1996_08_10_yyk_uva.fits
! Reading UV FITS file: J1545+5135_S_1996_08_10_yyk_uva.fits
! AN table 1: 149 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.767636 visibilities/baseline/integration-bin.
! Found source: J1545+5135
! 
! 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.22049e+09        8e+06          1        8e+06
!  02        2  2.23424e+09        8e+06          1        8e+06
!  03        3  2.29424e+09        8e+06          1        8e+06
!  04        4  2.32424e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 629 lines of history.
! 
! Reading 20588 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
![@muppet J1545+5135_S_1996_08_10_yyk]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.04
float dynam
dynam = 6.0
float amp_soltime1
amp_soltime1 = 10
float amp_soltime2
amp_soltime2 = 1
float phase_soltime1
phase_soltime1=10
float phase_soltime2
phase_soltime2=0.5
float phase_soltime
phase_soltime=phase_soltime1
float ampcor_selflim
ampcor_selflim=1.20
float thresh
thresh = 0.10
float win_mult
win_mult = 1.8
float time_av
time_av = 30
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.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.637929 Jy 
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.57 mas, bmaj=6.878 mas, bpa=-28.16 degrees
! Estimated noise=1343.34 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.435267 Jy
! Component: 100  -  total flux cleaned = 0.532721 Jy
! Total flux subtracted in 100 components = 0.532721 Jy
! Clean residual min=-0.020458 max=0.038561 Jy/beam
! Clean residual mean=-0.000083 rms=0.006487 Jy/beam
! Combined flux in latest and established models = 0.532721 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.532721 Jy
! 
! Correcting IF 1.
!  A total of 182 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 182 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 182 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 182 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.353655Jy  sigma=0.001703
! Fit after  self-cal, rms=0.353399Jy  sigma=0.001702
! Inverting map and beam 
! Estimated beam: bmin=2.57 mas, bmaj=6.878 mas, bpa=-28.16 degrees
! Estimated noise=1343.36 mJy/beam.
! Added new window around map position (4, -23).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0507278 Jy
! Component: 100  -  total flux cleaned = 0.0799047 Jy
! Total flux subtracted in 100 components = 0.0799047 Jy
! Clean residual min=-0.018015 max=0.018142 Jy/beam
! Clean residual mean=-0.000019 rms=0.004757 Jy/beam
! Combined flux in latest and established models = 0.612625 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 25 components and 0.612625 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346130Jy  sigma=0.001671
! Fit after  self-cal, rms=0.345707Jy  sigma=0.001669
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! 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=3.163 mas, bmaj=7.493 mas, bpa=-27.04 degrees
! Estimated noise=953.619 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.026825 Jy
! Component: 100  -  total flux cleaned = 0.0380925 Jy
! Component: 150  -  total flux cleaned = 0.0436606 Jy
! Component: 200  -  total flux cleaned = 0.0467831 Jy
! Total flux subtracted in 200 components = 0.0467831 Jy
! Clean residual min=-0.013744 max=0.017631 Jy/beam
! Clean residual mean=0.000025 rms=0.004243 Jy/beam
! Combined flux in latest and established models = 0.659408 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 49 components and 0.659409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343473Jy  sigma=0.001660
! Fit after  self-cal, rms=0.343260Jy  sigma=0.001659
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.163 x 7.493 at -27.04 degrees (North through East)
! Clean map  min=-0.013346  max=0.49024 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.02513
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.13     HN        0.99     KP        1.00*    
!   LA        0.92     MK        1.03     NL        0.95     OV        1.07     
!   PT        0.95     SC        0.74     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.981257
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.18     HN        1.09     KP        1.00*    
!   LA        1.01     MK        1.06     NL        1.01     OV        1.02     
!   PT        0.93     SC        0.85     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.04062
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.06     HN        0.97     KP        1.00*    
!   LA        0.75     MK        0.90     NL        0.95     OV        0.96     
!   PT        1.09     SC        0.96     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.99283
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.13     HN        1.09     KP        1.00*    
!   LA        0.86     MK        1.05     NL        1.11     OV        0.92     
!   PT        0.97     SC        0.93     
! 
! 
! Fit before self-cal, rms=0.343260Jy  sigma=0.001659
! Fit after  self-cal, rms=0.344026Jy  sigma=0.001626
selfcal false, false, phase_soltime
! Performing phase self-cal over 10 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344026Jy  sigma=0.001626
! Fit after  self-cal, rms=0.344024Jy  sigma=0.001626
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.152 mas, bmaj=7.515 mas, bpa=-25.71 degrees
! Estimated noise=964.781 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0106852 Jy
! Component: 100  -  total flux cleaned = 0.0137327 Jy
! Component: 150  -  total flux cleaned = 0.0154255 Jy
! Component: 200  -  total flux cleaned = 0.0166428 Jy
! Total flux subtracted in 200 components = 0.0166428 Jy
! Clean residual min=-0.006137 max=0.009821 Jy/beam
! Clean residual mean=0.000010 rms=0.001953 Jy/beam
! Combined flux in latest and established models = 0.676051 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 68 components and 0.676051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343654Jy  sigma=0.001625
! Fit after  self-cal, rms=0.343633Jy  sigma=0.001625
! Inverting map 
! Added new window around map position (2, -11.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0069712 Jy
! Component: 100  -  total flux cleaned = 0.00699346 Jy
! Component: 150  -  total flux cleaned = 0.00718223 Jy
! Component: 200  -  total flux cleaned = 0.00734114 Jy
! Total flux subtracted in 200 components = 0.00734114 Jy
! Clean residual min=-0.004931 max=0.005837 Jy/beam
! Clean residual mean=0.000014 rms=0.001579 Jy/beam
! Combined flux in latest and established models = 0.683393 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 100 components and 0.683392 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343336Jy  sigma=0.001623
! Fit after  self-cal, rms=0.343330Jy  sigma=0.001623
! Inverting map 
print "************** FINISHED AMPLITUDE GSCALE SELF-CAL **************"
! ************** FINISHED AMPLITUDE GSCALE SELF-CAL ************** 
! 
phase_soltime=phase_soltime2
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343330Jy  sigma=0.001623
! Fit after  self-cal, rms=0.341164Jy  sigma=0.001614
dynam = dynam - 0.5
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 false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.001996 Jy
! Component: 100  -  total flux cleaned = 0.00229697 Jy
! Component: 150  -  total flux cleaned = 0.00242868 Jy
! Component: 200  -  total flux cleaned = 0.00254438 Jy
! Total flux subtracted in 200 components = 0.00254438 Jy
! Clean residual min=-0.004618 max=0.005520 Jy/beam
! Clean residual mean=0.000008 rms=0.001422 Jy/beam
! Combined flux in latest and established models = 0.685937 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 116 components and 0.685937 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341068Jy  sigma=0.001614
! Fit after  self-cal, rms=0.340948Jy  sigma=0.001613
! Inverting map 
print "*** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime ***"
! *** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime *** 
! 
dynam = dynam - 0.25
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.152 x 7.515 at -25.71 degrees (North through East)
! Clean map  min=-0.0044479  max=0.50005 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true, amp_soltime1
  selfcal false, false, phase_soltime
  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 false,false,phase_soltime
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true, amp_soltime2
  selfcal false, false, phase_soltime
  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 false,false,phase_soltime
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  print "************** FINISHED AMPLITUDE SELF-CAL **************"
  end if
! Performing amp+phase self-cal over 10 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340948Jy  sigma=0.001613
! Fit after  self-cal, rms=0.336866Jy  sigma=0.001607
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336866Jy  sigma=0.001607
! Fit after  self-cal, rms=0.336887Jy  sigma=0.001607
! Inverting map and beam 
! Estimated beam: bmin=3.146 mas, bmaj=7.476 mas, bpa=-25.93 degrees
! Estimated noise=960.016 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00268635 Jy
! Component: 100  -  total flux cleaned = 0.00321015 Jy
! Component: 150  -  total flux cleaned = 0.00329781 Jy
! Component: 200  -  total flux cleaned = 0.00337522 Jy
! Total flux subtracted in 200 components = 0.00337522 Jy
! Clean residual min=-0.003716 max=0.004340 Jy/beam
! Clean residual mean=0.000020 rms=0.001193 Jy/beam
! Combined flux in latest and established models = 0.689312 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 139 components and 0.689312 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336838Jy  sigma=0.001607
! Fit after  self-cal, rms=0.336871Jy  sigma=0.001607
! Inverting map 
! Performing amp+phase self-cal over 1 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336871Jy  sigma=0.001607
! Fit after  self-cal, rms=0.344257Jy  sigma=0.001605
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344257Jy  sigma=0.001605
! Fit after  self-cal, rms=0.344284Jy  sigma=0.001605
! Inverting map and beam 
! Estimated beam: bmin=3.146 mas, bmaj=7.47 mas, bpa=-25.98 degrees
! Estimated noise=960.663 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00166927 Jy
! Component: 100  -  total flux cleaned = 0.00205913 Jy
! Component: 150  -  total flux cleaned = 0.00226654 Jy
! Component: 200  -  total flux cleaned = 0.00239252 Jy
! Total flux subtracted in 200 components = 0.00239252 Jy
! Clean residual min=-0.003782 max=0.004431 Jy/beam
! Clean residual mean=0.000015 rms=0.001166 Jy/beam
! Combined flux in latest and established models = 0.691705 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 151 components and 0.691705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344264Jy  sigma=0.001605
! Fit after  self-cal, rms=0.344288Jy  sigma=0.001605
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.161 mas, bmaj=9.552 mas, bpa=-27.74 degrees
! Estimated noise=1232.18 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000332438 Jy
! Component: 100  -  total flux cleaned = -0.000446943 Jy
! Component: 150  -  total flux cleaned = -0.000447178 Jy
! Component: 200  -  total flux cleaned = -0.000446595 Jy
! Total flux subtracted in 200 components = -0.000446595 Jy
! Clean residual min=-0.004432 max=0.006210 Jy/beam
! Clean residual mean=0.000023 rms=0.001632 Jy/beam
! Combined flux in latest and established models = 0.691258 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 176 components and 0.691258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344287Jy  sigma=0.001605
! Fit after  self-cal, rms=0.344307Jy  sigma=0.001605
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
win_mult = win_mult / 1.4
print "************** FINISHED TAPERING SELF-CAL CLEAN **************"
! ************** FINISHED TAPERING SELF-CAL CLEAN ************** 
! 
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true,true,true
! clrmod: Cleared the established, tentative and continuum 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.555 mas, bmaj=6.828 mas, bpa=-27.95 degrees
! Estimated noise=1336.36 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.434156 Jy
! Component: 100  -  total flux cleaned = 0.538703 Jy
! Component: 150  -  total flux cleaned = 0.590338 Jy
! Component: 200  -  total flux cleaned = 0.620683 Jy
! Total flux subtracted in 200 components = 0.620683 Jy
! Clean residual min=-0.009707 max=0.011895 Jy/beam
! Clean residual mean=-0.000028 rms=0.002798 Jy/beam
! Combined flux in latest and established models = 0.620683 Jy
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 24 model components to the UV plane model.
! The established model now contains 24 components and 0.620683 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.146 mas, bmaj=7.47 mas, bpa=-25.98 degrees
! Estimated noise=960.663 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.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0239217 Jy
! Component: 100  -  total flux cleaned = 0.0396806 Jy
! Component: 150  -  total flux cleaned = 0.050584 Jy
! Component: 200  -  total flux cleaned = 0.058375 Jy
! Total flux subtracted in 200 components = 0.058375 Jy
! Clean residual min=-0.005301 max=0.005530 Jy/beam
! Clean residual mean=0.000011 rms=0.001505 Jy/beam
! Combined flux in latest and established models = 0.679058 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 70 components and 0.679058 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.161 mas, bmaj=9.552 mas, bpa=-27.74 degrees
! Estimated noise=1232.18 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.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0078504 Jy
! Component: 100  -  total flux cleaned = 0.00975625 Jy
! Component: 150  -  total flux cleaned = 0.0104924 Jy
! Component: 200  -  total flux cleaned = 0.0112215 Jy
! Total flux subtracted in 200 components = 0.0112215 Jy
! Clean residual min=-0.004904 max=0.006372 Jy/beam
! Clean residual mean=0.000023 rms=0.001765 Jy/beam
! Combined flux in latest and established models = 0.690279 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 119 components and 0.690279 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.146 mas, bmaj=7.47 mas, bpa=-25.98 degrees
! Estimated noise=960.663 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000428966 Jy
! Component: 100  -  total flux cleaned = 0.000803304 Jy
! Component: 150  -  total flux cleaned = 0.00103205 Jy
! Component: 200  -  total flux cleaned = 0.00124636 Jy
! Total flux subtracted in 200 components = 0.00124636 Jy
! Clean residual min=-0.003976 max=0.005053 Jy/beam
! Clean residual mean=0.000015 rms=0.001235 Jy/beam
! Combined flux in latest and established models = 0.691526 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 149 components and 0.691526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344381Jy  sigma=0.001605
! Fit after  self-cal, rms=0.344392Jy  sigma=0.001606
wmodel J1545+5135_S_1996_08_10_yyk\_map.mod
! Writing 149 model components to file: J1545+5135_S_1996_08_10_yyk_map.mod
wobs J1545+5135_S_1996_08_10_yyk\_uvs.fits
! Writing UV FITS file: J1545+5135_S_1996_08_10_yyk_uvs.fits
wwins J1545+5135_S_1996_08_10_yyk\_map.win
! wwins: Wrote 3 windows to J1545+5135_S_1996_08_10_yyk_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.00127752 Jy
! Component: 100  -  total flux cleaned = 0.00199785 Jy
! Component: 150  -  total flux cleaned = 0.0022644 Jy
! Component: 200  -  total flux cleaned = 0.0026418 Jy
! Component: 250  -  total flux cleaned = 0.00282333 Jy
! Component: 300  -  total flux cleaned = 0.00299727 Jy
! Component: 350  -  total flux cleaned = 0.0029415 Jy
! Component: 400  -  total flux cleaned = 0.00304938 Jy
! Component: 450  -  total flux cleaned = 0.00310089 Jy
! Component: 500  -  total flux cleaned = 0.00325408 Jy
! Component: 550  -  total flux cleaned = 0.00330361 Jy
! Component: 600  -  total flux cleaned = 0.00349871 Jy
! Component: 650  -  total flux cleaned = 0.00378576 Jy
! Component: 700  -  total flux cleaned = 0.00397276 Jy
! Component: 750  -  total flux cleaned = 0.00420115 Jy
! Component: 800  -  total flux cleaned = 0.00451437 Jy
! Component: 850  -  total flux cleaned = 0.00490953 Jy
! Component: 900  -  total flux cleaned = 0.00512503 Jy
! Component: 950  -  total flux cleaned = 0.00537992 Jy
! Component: 1000  -  total flux cleaned = 0.00554731 Jy
! Component: 1050  -  total flux cleaned = 0.0057531 Jy
! Component: 1100  -  total flux cleaned = 0.00603618 Jy
! Component: 1150  -  total flux cleaned = 0.00615543 Jy
! Component: 1200  -  total flux cleaned = 0.00627342 Jy
! Component: 1250  -  total flux cleaned = 0.00669783 Jy
! Component: 1300  -  total flux cleaned = 0.00669753 Jy
! Component: 1350  -  total flux cleaned = 0.00696024 Jy
! Component: 1400  -  total flux cleaned = 0.00714397 Jy
! Component: 1450  -  total flux cleaned = 0.00732499 Jy
! Component: 1500  -  total flux cleaned = 0.00736159 Jy
! Component: 1550  -  total flux cleaned = 0.00764406 Jy
! Component: 1600  -  total flux cleaned = 0.00767805 Jy
! Component: 1650  -  total flux cleaned = 0.00771167 Jy
! Component: 1700  -  total flux cleaned = 0.00777968 Jy
! Component: 1750  -  total flux cleaned = 0.00781296 Jy
! Component: 1800  -  total flux cleaned = 0.0078464 Jy
! Component: 1850  -  total flux cleaned = 0.00778113 Jy
! Component: 1900  -  total flux cleaned = 0.00787802 Jy
! Component: 1950  -  total flux cleaned = 0.00787808 Jy
! Component: 2000  -  total flux cleaned = 0.00781531 Jy
! Total flux subtracted in 2048 components = 0.00784695 Jy
! Clean residual min=-0.001897 max=0.001695 Jy/beam
! Clean residual mean=0.000008 rms=0.000631 Jy/beam
! Combined flux in latest and established models = 0.699373 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 287 components and 0.699373 Jy
![Exited script file: muppet]
wmap "J1545+5135_S_1996_08_10_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.146 x 7.47 at -25.98 degrees (North through East)
! Clean map  min=-0.003894  max=0.49857 Jy/beam
! Writing clean map to FITS file: J1545+5135_S_1996_08_10_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.498571 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00063189 
device "J1545+5135_S_1996_08_10_yyk\_map.eps/VPS"
! Attempting to open device: 'J1545+5135_S_1996_08_10_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.380221 0.380221 0.760441 1.52088 3.04177 6.08353 12.1671 24.3341 48.6682 97.3365
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.498 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.146 x 7.47 at -25.98 degrees (North through East)
! Clean map  min=-0.003894  max=0.49857 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1545+5135_S_1996_08_10_yyk\_map.gif/gif"
! Attempting to open device: 'J1545+5135_S_1996_08_10_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1545+5135_S_1996_08_10_yyk_uvs.log closed on Sun Jan  7 18:48:42 2007