! Started logfile: J2354+4553_X_2006_02_14_yyk_uvs.log on Wed Jul  5 14:12:45 2006
obs J2354+4553_X_2006_02_14_yyk_uva.fits
! Reading UV FITS file: J2354+4553_X_2006_02_14_yyk_uva.fits
! AN table 1: 461 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.849843 visibilities/baseline/integration-bin.
! Found source: J2354+4553
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2304 lines of history.
! 
! Reading 70520 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 J2354+4553_X_2006_02_14_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.200x0.200 milli-arcsec cellsize.
uvav time_av, true
! Averaging into 30 second bins.
! 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
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 1.1158 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=0.792 mas, bmaj=1.319 mas, bpa=-13.51 degrees
! Estimated noise=1.4245 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.880447 Jy
! Component: 100  -  total flux cleaned = 1.12895 Jy
! Total flux subtracted in 100 components = 1.12895 Jy
! Clean residual min=-0.036339 max=0.073946 Jy/beam
! Clean residual mean=-0.000506 rms=0.010047 Jy/beam
! Combined flux in latest and established models = 1.12895 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.12895 Jy
! 
! Correcting IF 1.
!  A total of 32 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 32 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 32 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 32 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.238898Jy  sigma=3.946063
! Fit after  self-cal, rms=0.237773Jy  sigma=3.927733
! Inverting map and beam 
! Estimated beam: bmin=0.7922 mas, bmaj=1.32 mas, bpa=-13.45 degrees
! Estimated noise=1.42468 mJy/beam.
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.100081 Jy
! Component: 100  -  total flux cleaned = 0.146526 Jy
! Total flux subtracted in 100 components = 0.146526 Jy
! Clean residual min=-0.026712 max=0.031236 Jy/beam
! Clean residual mean=-0.000303 rms=0.006573 Jy/beam
! Combined flux in latest and established models = 1.27548 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 20 components and 1.27548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197586Jy  sigma=2.925517
! Fit after  self-cal, rms=0.197668Jy  sigma=2.918215
! 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=1.033 mas, bmaj=1.604 mas, bpa=-10.44 degrees
! Estimated noise=0.991423 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.0456402 Jy
! Component: 100  -  total flux cleaned = 0.0652096 Jy
! Component: 150  -  total flux cleaned = 0.0745476 Jy
! Component: 200  -  total flux cleaned = 0.077975 Jy
! Total flux subtracted in 200 components = 0.077975 Jy
! Clean residual min=-0.025650 max=0.036990 Jy/beam
! Clean residual mean=-0.000563 rms=0.007886 Jy/beam
! Combined flux in latest and established models = 1.35346 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 34 components and 1.35346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192731Jy  sigma=2.762485
! Fit after  self-cal, rms=0.192850Jy  sigma=2.760187
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.033 x 1.604 at -10.44 degrees (North through East)
! Clean map  min=-0.02529  max=1.0663 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: 0.991487
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.05     HN        1.04     KP        0.97     
!   LA        0.98     MK        1.00     NL        0.98     OV        0.99     
!   PT        0.99     SC        1.11     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00866
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.05     HN        1.03     KP        0.92     
!   LA        0.93     MK        0.97     NL        0.96     OV        0.97     
!   PT        1.03     SC        1.08     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.995749
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        1.08     HN        0.94     KP        0.86     
!   LA        0.95     MK        1.02     NL        0.97     OV        1.00     
!   PT        1.05     SC        1.08     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.97105
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.13     HN        0.98     KP        0.89     
!   LA        0.94     MK        1.04     NL        0.97     OV        1.05     
!   PT        1.11     SC        1.14     
! 
! 
! Fit before self-cal, rms=0.192850Jy  sigma=2.760187
! Fit after  self-cal, rms=0.175682Jy  sigma=2.266246
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.175682Jy  sigma=2.266246
! Fit after  self-cal, rms=0.175684Jy  sigma=2.266164
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.053 mas, bmaj=1.641 mas, bpa=-12.74 degrees
! Estimated noise=0.980767 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 (-6.6, 1).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0286949 Jy
! Component: 100  -  total flux cleaned = 0.0381837 Jy
! Component: 150  -  total flux cleaned = 0.045672 Jy
! Component: 200  -  total flux cleaned = 0.052006 Jy
! Total flux subtracted in 200 components = 0.052006 Jy
! Clean residual min=-0.011317 max=0.020601 Jy/beam
! Clean residual mean=-0.000203 rms=0.003619 Jy/beam
! Combined flux in latest and established models = 1.40546 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 65 components and 1.40546 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168006Jy  sigma=2.072080
! Fit after  self-cal, rms=0.167682Jy  sigma=2.059308
! 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.167682Jy  sigma=2.059308
! Fit after  self-cal, rms=0.102771Jy  sigma=1.447932
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)
! Added new window around map position (-9.6, 4).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0202666 Jy
! Component: 100  -  total flux cleaned = 0.031066 Jy
! Component: 150  -  total flux cleaned = 0.036803 Jy
! Component: 200  -  total flux cleaned = 0.0410112 Jy
! Total flux subtracted in 200 components = 0.0410112 Jy
! Clean residual min=-0.008995 max=0.014499 Jy/beam
! Clean residual mean=-0.000072 rms=0.002720 Jy/beam
! Combined flux in latest and established models = 1.44647 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 44 model components to the UV plane model.
! The established model now contains 103 components and 1.44647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099194Jy  sigma=1.365616
! Fit after  self-cal, rms=0.093160Jy  sigma=1.311089
! Inverting map 
! Added new window around map position (-3.2, 1).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0153455 Jy
! Component: 100  -  total flux cleaned = 0.0216718 Jy
! Component: 150  -  total flux cleaned = 0.0250042 Jy
! Component: 200  -  total flux cleaned = 0.0275152 Jy
! Total flux subtracted in 200 components = 0.0275152 Jy
! Clean residual min=-0.009426 max=0.011199 Jy/beam
! Clean residual mean=0.000033 rms=0.002299 Jy/beam
! Combined flux in latest and established models = 1.47399 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 119 components and 1.47399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.091035Jy  sigma=1.261668
! Fit after  self-cal, rms=0.090285Jy  sigma=1.254941
! Inverting map 
! Added new window around map position (-16.6, 12).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0115135 Jy
! Component: 100  -  total flux cleaned = 0.0179005 Jy
! Component: 150  -  total flux cleaned = 0.0205101 Jy
! Component: 200  -  total flux cleaned = 0.022592 Jy
! Total flux subtracted in 200 components = 0.022592 Jy
! Clean residual min=-0.007885 max=0.009130 Jy/beam
! Clean residual mean=0.000049 rms=0.001958 Jy/beam
! Combined flux in latest and established models = 1.49658 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 151 components and 1.49658 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088787Jy  sigma=1.224173
! Fit after  self-cal, rms=0.088615Jy  sigma=1.222077
! 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: 1.053 x 1.641 at -12.74 degrees (North through East)
! Clean map  min=-0.0075045  max=1.0648 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.088615Jy  sigma=1.222077
! Fit after  self-cal, rms=0.080599Jy  sigma=1.049701
! 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.080599Jy  sigma=1.049701
! Fit after  self-cal, rms=0.080576Jy  sigma=1.049485
! Inverting map and beam 
! Estimated beam: bmin=1.052 mas, bmaj=1.626 mas, bpa=-11.93 degrees
! Estimated noise=0.979254 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00571477 Jy
! Component: 100  -  total flux cleaned = 0.00842558 Jy
! Component: 150  -  total flux cleaned = 0.0101064 Jy
! Component: 200  -  total flux cleaned = 0.0115745 Jy
! Total flux subtracted in 200 components = 0.0115745 Jy
! Clean residual min=-0.005804 max=0.005569 Jy/beam
! Clean residual mean=0.000001 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 1.50815 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 171 components and 1.50815 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.079922Jy  sigma=1.034521
! Fit after  self-cal, rms=0.079869Jy  sigma=1.033761
! 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.079869Jy  sigma=1.033761
! Fit after  self-cal, rms=0.077884Jy  sigma=0.996135
! 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.077884Jy  sigma=0.996135
! Fit after  self-cal, rms=0.077911Jy  sigma=0.996087
! Inverting map and beam 
! Estimated beam: bmin=1.053 mas, bmaj=1.626 mas, bpa=-11.76 degrees
! Estimated noise=0.9793 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00241871 Jy
! Component: 100  -  total flux cleaned = 0.00400594 Jy
! Component: 150  -  total flux cleaned = 0.00491645 Jy
! Component: 200  -  total flux cleaned = 0.00534309 Jy
! Total flux subtracted in 200 components = 0.00534309 Jy
! Clean residual min=-0.005554 max=0.004929 Jy/beam
! Clean residual mean=-0.000004 rms=0.001349 Jy/beam
! Combined flux in latest and established models = 1.5135 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 43 model components to the UV plane model.
! The established model now contains 192 components and 1.5135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.077560Jy  sigma=0.988412
! Fit after  self-cal, rms=0.077544Jy  sigma=0.988007
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.394 mas, bmaj=2.676 mas, bpa=-31.39 degrees
! Estimated noise=1.21786 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.00390461 Jy
! Component: 100  -  total flux cleaned = 0.00588004 Jy
! Component: 150  -  total flux cleaned = 0.00662311 Jy
! Component: 200  -  total flux cleaned = 0.0072183 Jy
! Total flux subtracted in 200 components = 0.0072183 Jy
! Clean residual min=-0.007001 max=0.006278 Jy/beam
! Clean residual mean=0.000022 rms=0.001843 Jy/beam
! Combined flux in latest and established models = 1.52072 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 205 components and 1.52072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.077466Jy  sigma=0.986019
! Fit after  self-cal, rms=0.077451Jy  sigma=0.985681
! 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=0.7976 mas, bmaj=1.328 mas, bpa=-13.89 degrees
! Estimated noise=1.42184 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.881066 Jy
! Component: 100  -  total flux cleaned = 1.1257 Jy
! Component: 150  -  total flux cleaned = 1.22332 Jy
! Component: 200  -  total flux cleaned = 1.2704 Jy
! Total flux subtracted in 200 components = 1.2704 Jy
! Clean residual min=-0.012605 max=0.025705 Jy/beam
! Clean residual mean=-0.000256 rms=0.004017 Jy/beam
! Combined flux in latest and established models = 1.2704 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 21 model components to the UV plane model.
! The established model now contains 21 components and 1.2704 Jy
! Inverting map and beam 
! Estimated beam: bmin=1.053 mas, bmaj=1.626 mas, bpa=-11.76 degrees
! Estimated noise=0.9793 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)
! Added new window around map position (-0.8, 0.4).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0513824 Jy
! Component: 100  -  total flux cleaned = 0.0861082 Jy
! Component: 150  -  total flux cleaned = 0.111705 Jy
! Component: 200  -  total flux cleaned = 0.131509 Jy
! Total flux subtracted in 200 components = 0.131509 Jy
! Clean residual min=-0.010050 max=0.009466 Jy/beam
! Clean residual mean=-0.000309 rms=0.002794 Jy/beam
! Combined flux in latest and established models = 1.40191 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 77 components and 1.40191 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.394 mas, bmaj=2.676 mas, bpa=-31.39 degrees
! Estimated noise=1.21786 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.0262036 Jy
! Component: 100  -  total flux cleaned = 0.0449329 Jy
! Component: 150  -  total flux cleaned = 0.0593133 Jy
! Component: 200  -  total flux cleaned = 0.0706874 Jy
! Total flux subtracted in 200 components = 0.0706874 Jy
! Clean residual min=-0.008862 max=0.007352 Jy/beam
! Clean residual mean=-0.000214 rms=0.002683 Jy/beam
! Combined flux in latest and established models = 1.4726 Jy
! Adding 101 model components to the UV plane model.
! The established model now contains 163 components and 1.4726 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=1.053 mas, bmaj=1.626 mas, bpa=-11.76 degrees
! Estimated noise=0.9793 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00808781 Jy
! Component: 100  -  total flux cleaned = 0.0145945 Jy
! Component: 150  -  total flux cleaned = 0.0201437 Jy
! Component: 200  -  total flux cleaned = 0.0249862 Jy
! Total flux subtracted in 200 components = 0.0249862 Jy
! Clean residual min=-0.005823 max=0.004776 Jy/beam
! Clean residual mean=-0.000043 rms=0.001416 Jy/beam
! Combined flux in latest and established models = 1.49758 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 191 components and 1.49758 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.077748Jy  sigma=0.994143
! Fit after  self-cal, rms=0.077417Jy  sigma=0.989981
wmodel J2354+4553_X_2006_02_14_yyk\_map.mod
! Writing 191 model components to file: J2354+4553_X_2006_02_14_yyk_map.mod
wobs J2354+4553_X_2006_02_14_yyk\_uvs.fits
! Writing UV FITS file: J2354+4553_X_2006_02_14_yyk_uvs.fits
wwins J2354+4553_X_2006_02_14_yyk\_map.win
! wwins: Wrote 6 windows to J2354+4553_X_2006_02_14_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.00197764 Jy
! Component: 100  -  total flux cleaned = -0.00294255 Jy
! Component: 150  -  total flux cleaned = -0.00391856 Jy
! Component: 200  -  total flux cleaned = -0.00468771 Jy
! Component: 250  -  total flux cleaned = -0.00542452 Jy
! Component: 300  -  total flux cleaned = -0.00628121 Jy
! Component: 350  -  total flux cleaned = -0.00704579 Jy
! Component: 400  -  total flux cleaned = -0.00785527 Jy
! Component: 450  -  total flux cleaned = -0.00851044 Jy
! Component: 500  -  total flux cleaned = -0.00914916 Jy
! Component: 550  -  total flux cleaned = -0.00971043 Jy
! Component: 600  -  total flux cleaned = -0.0101997 Jy
! Component: 650  -  total flux cleaned = -0.0107967 Jy
! Component: 700  -  total flux cleaned = -0.0113778 Jy
! Component: 750  -  total flux cleaned = -0.011605 Jy
! Component: 800  -  total flux cleaned = -0.0119953 Jy
! Component: 850  -  total flux cleaned = -0.0123213 Jy
! Component: 900  -  total flux cleaned = -0.0125342 Jy
! Component: 950  -  total flux cleaned = -0.012745 Jy
! Component: 1000  -  total flux cleaned = -0.0132084 Jy
! Component: 1050  -  total flux cleaned = -0.0134618 Jy
! Component: 1100  -  total flux cleaned = -0.0136113 Jy
! Component: 1150  -  total flux cleaned = -0.0139527 Jy
! Component: 1200  -  total flux cleaned = -0.0141443 Jy
! Component: 1250  -  total flux cleaned = -0.0143333 Jy
! Component: 1300  -  total flux cleaned = -0.0144731 Jy
! Component: 1350  -  total flux cleaned = -0.0145639 Jy
! Component: 1400  -  total flux cleaned = -0.0147446 Jy
! Component: 1450  -  total flux cleaned = -0.0146995 Jy
! Component: 1500  -  total flux cleaned = -0.0147871 Jy
! Component: 1550  -  total flux cleaned = -0.0149592 Jy
! Component: 1600  -  total flux cleaned = -0.0149591 Jy
! Component: 1650  -  total flux cleaned = -0.015043 Jy
! Component: 1700  -  total flux cleaned = -0.015208 Jy
! Component: 1750  -  total flux cleaned = -0.0152074 Jy
! Component: 1800  -  total flux cleaned = -0.0152883 Jy
! Component: 1850  -  total flux cleaned = -0.0152877 Jy
! Component: 1900  -  total flux cleaned = -0.015484 Jy
! Component: 1950  -  total flux cleaned = -0.0154839 Jy
! Component: 2000  -  total flux cleaned = -0.0156366 Jy
! Total flux subtracted in 2048 components = -0.0155978 Jy
! Clean residual min=-0.002175 max=0.002315 Jy/beam
! Clean residual mean=-0.000017 rms=0.000716 Jy/beam
! Combined flux in latest and established models = 1.48198 Jy
keep
! Adding 145 model components to the UV plane model.
! The established model now contains 336 components and 1.48198 Jy
![Exited script file: muppet]
wmap "J2354+4553_X_2006_02_14_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.053 x 1.626 at -11.76 degrees (North through East)
! Clean map  min=-0.0034384  max=1.0637 Jy/beam
! Writing clean map to FITS file: J2354+4553_X_2006_02_14_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.06369 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000715577 
device "J2354+4553_X_2006_02_14_yyk\_map.eps/VPS"
! Attempting to open device: 'J2354+4553_X_2006_02_14_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.201819 0.201819 0.403637 0.807274 1.61455 3.2291 6.45819 12.9164 25.8328 51.6656
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(peak_flux*1000)/1000
! peak= 1.063 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.053 x 1.626 at -11.76 degrees (North through East)
! Clean map  min=-0.0034384  max=1.0637 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2354+4553_X_2006_02_14_yyk\_map.gif/gif"
! Attempting to open device: 'J2354+4553_X_2006_02_14_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2354+4553_X_2006_02_14_yyk_uvs.log closed on Wed Jul  5 14:13:17 2006