! Started logfile: J0543+8238_X_2006_02_23_yyk_uvs.log on Wed Jul  5 11:29:19 2006
obs J0543+8238_X_2006_02_23_yyk_uva.fits
! Reading UV FITS file: J0543+8238_X_2006_02_23_yyk_uva.fits
! AN table 1: 879 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.989205 visibilities/baseline/integration-bin.
! Found source: J0543+8238
! 
! 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 2401 lines of history.
! 
! Reading 156512 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 J0543+8238_X_2006_02_23_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)= 0.165073 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 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=0.6406 mas, bmaj=2.69 mas, bpa=2.672 degrees
! Estimated noise=1.1918 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.126402 Jy
! Component: 100  -  total flux cleaned = 0.148319 Jy
! Total flux subtracted in 100 components = 0.148319 Jy
! Clean residual min=-0.005489 max=0.007968 Jy/beam
! Clean residual mean=-0.000008 rms=0.001688 Jy/beam
! Combined flux in latest and established models = 0.148319 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.148319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.063851Jy  sigma=1.215262
! Fit after  self-cal, rms=0.063805Jy  sigma=1.213545
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
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 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=0.8554 mas, bmaj=2.933 mas, bpa=1.884 degrees
! Estimated noise=0.654996 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.6, -1.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0166169 Jy
! Component: 100  -  total flux cleaned = 0.0255586 Jy
! Component: 150  -  total flux cleaned = 0.0307248 Jy
! Component: 200  -  total flux cleaned = 0.0329885 Jy
! Total flux subtracted in 200 components = 0.0329885 Jy
! Clean residual min=-0.004066 max=0.004028 Jy/beam
! Clean residual mean=0.000022 rms=0.001036 Jy/beam
! Combined flux in latest and established models = 0.181308 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 62 model components to the UV plane model.
! The established model now contains 66 components and 0.181308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.060739Jy  sigma=1.144630
! Fit after  self-cal, rms=0.060739Jy  sigma=1.144187
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8554 x 2.933 at 1.884 degrees (North through East)
! Clean map  min=-0.0035196  max=0.15218 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
! Selfcal amplitude corrections will be limited to 0.833333 -> 1.2.
! Selfcal phase corrections will not be limited.
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.00517
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.98     HN        1.01     KP        1.00     
!   LA        1.00     MK        0.98     NL        1.04     OV        0.92     
!   PT        1.01     SC        1.05     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.01455
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     HN        1.03     KP        0.92     
!   LA        0.96     MK        0.97     NL        1.00     OV        0.96     
!   PT        1.02     SC        1.04     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00755
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.04     HN        0.93     KP        0.85     
!   LA        0.95     MK        1.03     NL        1.00     OV        0.98     
!   PT        1.05     SC        1.01     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.985201
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.06     HN        0.99     KP        0.85     
!   LA        1.00     MK        1.07     NL        0.99     OV        0.99     
!   PT        1.16     SC        1.00     
! 
! 
! Fit before self-cal, rms=0.060739Jy  sigma=1.144187
! Fit after  self-cal, rms=0.059539Jy  sigma=1.119982
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.059539Jy  sigma=1.119982
! Fit after  self-cal, rms=0.059610Jy  sigma=1.120697
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=0.8677 mas, bmaj=2.933 mas, bpa=1.666 degrees
! Estimated noise=0.653927 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.00171049 Jy
! Component: 100  -  total flux cleaned = 0.00251895 Jy
! Component: 150  -  total flux cleaned = 0.00313101 Jy
! Component: 200  -  total flux cleaned = 0.00354591 Jy
! Total flux subtracted in 200 components = 0.00354591 Jy
! Clean residual min=-0.002158 max=0.002484 Jy/beam
! Clean residual mean=0.000011 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 0.184853 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 87 components and 0.184853 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.059537Jy  sigma=1.119065
! Fit after  self-cal, rms=0.059609Jy  sigma=1.119785
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
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.059609Jy  sigma=1.119785
! Fit after  self-cal, rms=0.050456Jy  sigma=0.957516
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
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.0013691 Jy
! Component: 100  -  total flux cleaned = 0.00120783 Jy
! Component: 150  -  total flux cleaned = 0.00126525 Jy
! Component: 200  -  total flux cleaned = 0.00131236 Jy
! Total flux subtracted in 200 components = 0.00131236 Jy
! Clean residual min=-0.002255 max=0.002210 Jy/beam
! Clean residual mean=0.000009 rms=0.000625 Jy/beam
! Combined flux in latest and established models = 0.186166 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 117 components and 0.186166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.050223Jy  sigma=0.953323
! Fit after  self-cal, rms=0.050023Jy  sigma=0.949354
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
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: 0.8677 x 2.933 at 1.666 degrees (North through East)
! Clean map  min=-0.0021697  max=0.15491 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.050023Jy  sigma=0.949354
! Fit after  self-cal, rms=0.049503Jy  sigma=0.944394
! 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.049503Jy  sigma=0.944394
! Fit after  self-cal, rms=0.049489Jy  sigma=0.944080
! Inverting map and beam 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=0.8578 mas, bmaj=2.948 mas, bpa=1.592 degrees
! Estimated noise=0.650337 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0012068 Jy
! Component: 100  -  total flux cleaned = 0.00153054 Jy
! Component: 150  -  total flux cleaned = 0.00172102 Jy
! Component: 200  -  total flux cleaned = 0.00182356 Jy
! Total flux subtracted in 200 components = 0.00182356 Jy
! Clean residual min=-0.002065 max=0.002295 Jy/beam
! Clean residual mean=0.000010 rms=0.000575 Jy/beam
! Combined flux in latest and established models = 0.187989 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 141 components and 0.187989 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.049459Jy  sigma=0.943505
! Fit after  self-cal, rms=0.049457Jy  sigma=0.943444
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! 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.049457Jy  sigma=0.943444
! Fit after  self-cal, rms=0.048865Jy  sigma=0.924030
! 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.048865Jy  sigma=0.924030
! Fit after  self-cal, rms=0.048872Jy  sigma=0.923955
! Inverting map and beam 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=0.852 mas, bmaj=2.939 mas, bpa=1.647 degrees
! Estimated noise=0.649715 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0011289 Jy
! Component: 100  -  total flux cleaned = 0.0017982 Jy
! Component: 150  -  total flux cleaned = 0.00219663 Jy
! Component: 200  -  total flux cleaned = 0.00231767 Jy
! Total flux subtracted in 200 components = 0.00231767 Jy
! Clean residual min=-0.002109 max=0.002316 Jy/beam
! Clean residual mean=0.000012 rms=0.000569 Jy/beam
! Combined flux in latest and established models = 0.190307 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 151 components and 0.190307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.048845Jy  sigma=0.923482
! Fit after  self-cal, rms=0.048847Jy  sigma=0.923450
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! ************** 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 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=2.089 mas, bmaj=3.523 mas, bpa=-1.96 degrees
! Estimated noise=0.840051 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.000326836 Jy
! Component: 100  -  total flux cleaned = -0.000378555 Jy
! Component: 150  -  total flux cleaned = -0.000399662 Jy
! Component: 200  -  total flux cleaned = -0.00039971 Jy
! Total flux subtracted in 200 components = -0.00039971 Jy
! Clean residual min=-0.002440 max=0.002154 Jy/beam
! Clean residual mean=0.000026 rms=0.000763 Jy/beam
! Combined flux in latest and established models = 0.189907 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 158 components and 0.189907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.048842Jy  sigma=0.923481
! Fit after  self-cal, rms=0.048843Jy  sigma=0.923429
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
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 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=0.6393 mas, bmaj=2.692 mas, bpa=2.454 degrees
! Estimated noise=1.17999 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.128305 Jy
! Component: 100  -  total flux cleaned = 0.15084 Jy
! Component: 150  -  total flux cleaned = 0.16104 Jy
! Component: 200  -  total flux cleaned = 0.167276 Jy
! Total flux subtracted in 200 components = 0.167276 Jy
! Clean residual min=-0.003982 max=0.003686 Jy/beam
! Clean residual mean=-0.000008 rms=0.001114 Jy/beam
! Combined flux in latest and established models = 0.167276 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 22 model components to the UV plane model.
! The established model now contains 22 components and 0.167276 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=0.852 mas, bmaj=2.939 mas, bpa=1.647 degrees
! Estimated noise=0.649715 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.00916295 Jy
! Component: 100  -  total flux cleaned = 0.0141165 Jy
! Component: 150  -  total flux cleaned = 0.0172811 Jy
! Component: 200  -  total flux cleaned = 0.019386 Jy
! Total flux subtracted in 200 components = 0.019386 Jy
! Clean residual min=-0.002308 max=0.002258 Jy/beam
! Clean residual mean=0.000007 rms=0.000628 Jy/beam
! Combined flux in latest and established models = 0.186662 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 80 components and 0.186662 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
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 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=2.089 mas, bmaj=3.523 mas, bpa=-1.96 degrees
! Estimated noise=0.840051 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.00218795 Jy
! Component: 100  -  total flux cleaned = 0.00269481 Jy
! Component: 150  -  total flux cleaned = 0.0029602 Jy
! Component: 200  -  total flux cleaned = 0.00306221 Jy
! Total flux subtracted in 200 components = 0.00306221 Jy
! Clean residual min=-0.002520 max=0.002277 Jy/beam
! Clean residual mean=0.000026 rms=0.000779 Jy/beam
! Combined flux in latest and established models = 0.189724 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 125 components and 0.189724 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! Estimated beam: bmin=0.852 mas, bmaj=2.939 mas, bpa=1.647 degrees
! Estimated noise=0.649715 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000457794 Jy
! Component: 100  -  total flux cleaned = 0.000674806 Jy
! Component: 150  -  total flux cleaned = 0.000778533 Jy
! Component: 200  -  total flux cleaned = 0.000824614 Jy
! Total flux subtracted in 200 components = 0.000824614 Jy
! Clean residual min=-0.002137 max=0.002346 Jy/beam
! Clean residual mean=0.000013 rms=0.000573 Jy/beam
! Combined flux in latest and established models = 0.190549 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 144 components and 0.190549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.048848Jy  sigma=0.923721
! Fit after  self-cal, rms=0.048849Jy  sigma=0.923675
wmodel J0543+8238_X_2006_02_23_yyk\_map.mod
! Writing 144 model components to file: J0543+8238_X_2006_02_23_yyk_map.mod
wobs J0543+8238_X_2006_02_23_yyk\_uvs.fits
! Writing UV FITS file: J0543+8238_X_2006_02_23_yyk_uvs.fits
wwins J0543+8238_X_2006_02_23_yyk\_map.win
! wwins: Wrote 2 windows to J0543+8238_X_2006_02_23_yyk_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -4.8174e-05 Jy
! Component: 100  -  total flux cleaned = -0.000119672 Jy
! Component: 150  -  total flux cleaned = 0.000138752 Jy
! Component: 200  -  total flux cleaned = 0.000447447 Jy
! Component: 250  -  total flux cleaned = 0.000744371 Jy
! Component: 300  -  total flux cleaned = 0.000946426 Jy
! Component: 350  -  total flux cleaned = 0.00114097 Jy
! Component: 400  -  total flux cleaned = 0.00130183 Jy
! Component: 450  -  total flux cleaned = 0.00145683 Jy
! Component: 500  -  total flux cleaned = 0.00158276 Jy
! Component: 550  -  total flux cleaned = 0.00177873 Jy
! Component: 600  -  total flux cleaned = 0.00199232 Jy
! Component: 650  -  total flux cleaned = 0.0021548 Jy
! Component: 700  -  total flux cleaned = 0.00231314 Jy
! Component: 750  -  total flux cleaned = 0.00235744 Jy
! Component: 800  -  total flux cleaned = 0.00248778 Jy
! Component: 850  -  total flux cleaned = 0.00255127 Jy
! Component: 900  -  total flux cleaned = 0.00261356 Jy
! Component: 950  -  total flux cleaned = 0.00265391 Jy
! Component: 1000  -  total flux cleaned = 0.00273295 Jy
! Component: 1050  -  total flux cleaned = 0.00277191 Jy
! Component: 1100  -  total flux cleaned = 0.00281065 Jy
! Component: 1150  -  total flux cleaned = 0.00288637 Jy
! Component: 1200  -  total flux cleaned = 0.0029793 Jy
! Component: 1250  -  total flux cleaned = 0.00301594 Jy
! Component: 1300  -  total flux cleaned = 0.00314254 Jy
! Component: 1350  -  total flux cleaned = 0.00323124 Jy
! Component: 1400  -  total flux cleaned = 0.00324873 Jy
! Component: 1450  -  total flux cleaned = 0.00330101 Jy
! Component: 1500  -  total flux cleaned = 0.00343816 Jy
! Component: 1550  -  total flux cleaned = 0.00357347 Jy
! Component: 1600  -  total flux cleaned = 0.00367367 Jy
! Component: 1650  -  total flux cleaned = 0.00378951 Jy
! Component: 1700  -  total flux cleaned = 0.00385499 Jy
! Component: 1750  -  total flux cleaned = 0.00388751 Jy
! Component: 1800  -  total flux cleaned = 0.00398414 Jy
! Component: 1850  -  total flux cleaned = 0.00403198 Jy
! Component: 1900  -  total flux cleaned = 0.00406359 Jy
! Component: 1950  -  total flux cleaned = 0.00415776 Jy
! Component: 2000  -  total flux cleaned = 0.00415766 Jy
! Total flux subtracted in 2048 components = 0.00423515 Jy
! Clean residual min=-0.001232 max=0.000908 Jy/beam
! Clean residual mean=0.000003 rms=0.000306 Jy/beam
! Combined flux in latest and established models = 0.194784 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 285 components and 0.194784 Jy
![Exited script file: muppet]
wmap "J0543+8238_X_2006_02_23_yyk\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.852 x 2.939 at 1.647 degrees (North through East)
! Clean map  min=-0.0013976  max=0.15377 Jy/beam
! Writing clean map to FITS file: J0543+8238_X_2006_02_23_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.153766 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.486% of the data.
!  The x-axis pixel size should ideally be below 0.1994 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000300904 
device "J0543+8238_X_2006_02_23_yyk\_map.eps/VPS"
! Attempting to open device: 'J0543+8238_X_2006_02_23_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.587071 0.587071 1.17414 2.34828 4.69657 9.39314 18.7863 37.5725 75.1451
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.153 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.852 x 2.939 at 1.647 degrees (North through East)
! Clean map  min=-0.0013976  max=0.15377 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0543+8238_X_2006_02_23_yyk\_map.gif/gif"
! Attempting to open device: 'J0543+8238_X_2006_02_23_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0543+8238_X_2006_02_23_yyk_uvs.log closed on Wed Jul  5 11:29:45 2006