! Started logfile: J0509+1011_S_2004_04_30_yyk_uvs.log on Wed Dec  7 00:00:18 2005
obs J0509+1011_S_2004_04_30_yyk_uve.fits
! Reading UV FITS file: J0509+1011_S_2004_04_30_yyk_uve.fits
! AN table 1: 24 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.857407 visibilities/baseline/integration-bin.
! Found source: J0509+1011
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1633 lines of history.
! 
! Reading 3704 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 J0509+1011_S_2004_04_30_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.415518 Jy 
startmod ,phase_soltime
! Applying default point source starting model.
! Performing phase self-cal over 10 minute time intervals
! 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 25 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 22 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 22 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 23 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.651465Jy  sigma=12.333260
! Fit after  self-cal, rms=0.628304Jy  sigma=12.040957
! 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.57 mas, bmaj=6.433 mas, bpa=2.536 degrees
! Estimated noise=1.07734 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.332492 Jy
! Component: 100  -  total flux cleaned = 0.385054 Jy
! Total flux subtracted in 100 components = 0.385054 Jy
! Clean residual min=-0.010860 max=0.013206 Jy/beam
! Clean residual mean=0.000013 rms=0.002956 Jy/beam
! Combined flux in latest and established models = 0.385054 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.385054 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144810Jy  sigma=2.101169
! Fit after  self-cal, rms=0.144841Jy  sigma=2.100955
! 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.661 mas, bmaj=8.39 mas, bpa=2.322 degrees
! Estimated noise=0.617127 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.0205906 Jy
! Component: 100  -  total flux cleaned = 0.0281178 Jy
! Component: 150  -  total flux cleaned = 0.0315643 Jy
! Component: 200  -  total flux cleaned = 0.0329111 Jy
! Total flux subtracted in 200 components = 0.0329111 Jy
! Clean residual min=-0.007009 max=0.006537 Jy/beam
! Clean residual mean=-0.000048 rms=0.002092 Jy/beam
! Combined flux in latest and established models = 0.417965 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 42 components and 0.417965 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.143168Jy  sigma=2.050184
! Fit after  self-cal, rms=0.143220Jy  sigma=2.049887
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
selflims ampcor_selflim
! 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: 0.994471
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.04     HN        0.91     KP        0.99     
!   LA        1.15     MK        1.00     NL        1.04     OV        1.00     
!   PT        0.99     SC        0.93     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.973764
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.98     HN        1.01     KP        0.98     
!   LA        1.16     MK        1.07     NL        1.03     OV        1.03     
!   PT        0.94     SC        1.03     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.990211
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.94     HN        0.95     KP        0.99     
!   LA        0.93     MK        1.05     NL        1.11     OV        1.06     
!   PT        1.04     SC        0.95     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.143220Jy  sigma=2.049887
! Fit after  self-cal, rms=0.141844Jy  sigma=1.982972
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.141844Jy  sigma=1.982972
! Fit after  self-cal, rms=0.141769Jy  sigma=1.982535
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.637 mas, bmaj=8.382 mas, bpa=2.878 degrees
! Estimated noise=0.616194 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.00251329 Jy
! Component: 100  -  total flux cleaned = 0.00273636 Jy
! Component: 150  -  total flux cleaned = 0.00296839 Jy
! Component: 200  -  total flux cleaned = 0.00310852 Jy
! Total flux subtracted in 200 components = 0.00310852 Jy
! Clean residual min=-0.005800 max=0.007075 Jy/beam
! Clean residual mean=-0.000001 rms=0.001771 Jy/beam
! Combined flux in latest and established models = 0.421074 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 50 components and 0.421074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141637Jy  sigma=1.980462
! Fit after  self-cal, rms=0.141619Jy  sigma=1.980213
! 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.141619Jy  sigma=1.980213
! Fit after  self-cal, rms=0.090204Jy  sigma=1.318583
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.00662267 Jy
! Component: 100  -  total flux cleaned = 0.00774796 Jy
! Component: 150  -  total flux cleaned = 0.0078695 Jy
! Component: 200  -  total flux cleaned = 0.00792085 Jy
! Total flux subtracted in 200 components = 0.00792085 Jy
! Clean residual min=-0.005601 max=0.005508 Jy/beam
! Clean residual mean=-0.000014 rms=0.001402 Jy/beam
! Combined flux in latest and established models = 0.428994 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 66 components and 0.428994 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.089433Jy  sigma=1.309855
! Fit after  self-cal, rms=0.087718Jy  sigma=1.289511
! 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.637 x 8.382 at 2.878 degrees (North through East)
! Clean map  min=-0.0053896  max=0.39764 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.087718Jy  sigma=1.289511
! Fit after  self-cal, rms=0.086366Jy  sigma=1.218535
! 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.086366Jy  sigma=1.218535
! Fit after  self-cal, rms=0.086235Jy  sigma=1.215437
! Inverting map and beam 
! Estimated beam: bmin=3.601 mas, bmaj=8.292 mas, bpa=3.387 degrees
! Estimated noise=0.62607 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00838765 Jy
! Component: 100  -  total flux cleaned = 0.0111723 Jy
! Component: 150  -  total flux cleaned = 0.0124716 Jy
! Component: 200  -  total flux cleaned = 0.013044 Jy
! Total flux subtracted in 200 components = 0.013044 Jy
! Clean residual min=-0.004123 max=0.004430 Jy/beam
! Clean residual mean=-0.000004 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 0.442038 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 79 components and 0.442039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.085204Jy  sigma=1.201494
! Fit after  self-cal, rms=0.085210Jy  sigma=1.200540
! Inverting map 
! Added new window around map position (-7, 7).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00474098 Jy
! Component: 100  -  total flux cleaned = 0.00648619 Jy
! Component: 150  -  total flux cleaned = 0.00678064 Jy
! Component: 200  -  total flux cleaned = 0.00684558 Jy
! Total flux subtracted in 200 components = 0.00684558 Jy
! Clean residual min=-0.003971 max=0.002903 Jy/beam
! Clean residual mean=-0.000018 rms=0.000885 Jy/beam
! Combined flux in latest and established models = 0.448884 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 104 components and 0.448884 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084913Jy  sigma=1.194974
! Fit after  self-cal, rms=0.084909Jy  sigma=1.194141
! 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.084909Jy  sigma=1.194141
! Fit after  self-cal, rms=0.084400Jy  sigma=1.166241
! 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.084400Jy  sigma=1.166241
! Fit after  self-cal, rms=0.084409Jy  sigma=1.165532
! Inverting map and beam 
! Estimated beam: bmin=3.588 mas, bmaj=8.278 mas, bpa=3.748 degrees
! Estimated noise=0.633588 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00594271 Jy
! Component: 100  -  total flux cleaned = 0.00911704 Jy
! Component: 150  -  total flux cleaned = 0.0102782 Jy
! Component: 200  -  total flux cleaned = 0.0110984 Jy
! Total flux subtracted in 200 components = 0.0110984 Jy
! Clean residual min=-0.005513 max=0.004155 Jy/beam
! Clean residual mean=-0.000027 rms=0.001745 Jy/beam
! Combined flux in latest and established models = 0.459983 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 129 components and 0.459983 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.083875Jy  sigma=1.156773
! Fit after  self-cal, rms=0.083879Jy  sigma=1.156383
! 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=8.475 mas, bmaj=11.98 mas, bpa=5.24 degrees
! Estimated noise=0.772339 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.00142334 Jy
! Component: 100  -  total flux cleaned = 0.00204772 Jy
! Component: 150  -  total flux cleaned = 0.00264881 Jy
! Component: 200  -  total flux cleaned = 0.00306285 Jy
! Total flux subtracted in 200 components = 0.00306285 Jy
! Clean residual min=-0.006682 max=0.006402 Jy/beam
! Clean residual mean=-0.000046 rms=0.002631 Jy/beam
! Combined flux in latest and established models = 0.463045 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 139 components and 0.463045 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.083915Jy  sigma=1.155926
! Fit after  self-cal, rms=0.083905Jy  sigma=1.155628
! Inverting map 
uvtaper 0,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.562 mas, bmaj=6.401 mas, bpa=3.045 degrees
! Estimated noise=1.10318 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.348268 Jy
! Component: 100  -  total flux cleaned = 0.405825 Jy
! Component: 150  -  total flux cleaned = 0.425016 Jy
! Component: 200  -  total flux cleaned = 0.434599 Jy
! Total flux subtracted in 200 components = 0.434599 Jy
! Clean residual min=-0.006294 max=0.005783 Jy/beam
! Clean residual mean=0.000034 rms=0.001411 Jy/beam
! Combined flux in latest and established models = 0.434599 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 38 model components to the UV plane model.
! The established model now contains 38 components and 0.434599 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.588 mas, bmaj=8.278 mas, bpa=3.748 degrees
! Estimated noise=0.633588 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.009002 Jy
! Component: 100  -  total flux cleaned = 0.0145568 Jy
! Component: 150  -  total flux cleaned = 0.0182062 Jy
! Component: 200  -  total flux cleaned = 0.0202225 Jy
! Total flux subtracted in 200 components = 0.0202225 Jy
! Clean residual min=-0.005081 max=0.004151 Jy/beam
! Clean residual mean=-0.000018 rms=0.001688 Jy/beam
! Combined flux in latest and established models = 0.454821 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 83 components and 0.454821 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=8.475 mas, bmaj=11.98 mas, bpa=5.24 degrees
! Estimated noise=0.772339 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.00204874 Jy
! Component: 100  -  total flux cleaned = 0.00361281 Jy
! Component: 150  -  total flux cleaned = 0.00478825 Jy
! Component: 200  -  total flux cleaned = 0.00568807 Jy
! Total flux subtracted in 200 components = 0.00568807 Jy
! Clean residual min=-0.006450 max=0.006230 Jy/beam
! Clean residual mean=-0.000039 rms=0.002580 Jy/beam
! Combined flux in latest and established models = 0.460509 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 107 components and 0.460509 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.588 mas, bmaj=8.278 mas, bpa=3.748 degrees
! Estimated noise=0.633588 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000486677 Jy
! Component: 100  -  total flux cleaned = 0.000693845 Jy
! Component: 150  -  total flux cleaned = 0.000907087 Jy
! Component: 200  -  total flux cleaned = 0.00101265 Jy
! Total flux subtracted in 200 components = 0.00101265 Jy
! Clean residual min=-0.005086 max=0.003939 Jy/beam
! Clean residual mean=-0.000025 rms=0.001582 Jy/beam
! Combined flux in latest and established models = 0.461522 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 123 components and 0.461522 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.083838Jy  sigma=1.154822
! Fit after  self-cal, rms=0.083837Jy  sigma=1.154693
wmodel J0509+1011_S_2004_04_30_yyk\_map.mod
! Writing 123 model components to file: J0509+1011_S_2004_04_30_yyk_map.mod
wobs J0509+1011_S_2004_04_30_yyk\_uvs.fits
! Writing UV FITS file: J0509+1011_S_2004_04_30_yyk_uvs.fits
wwins J0509+1011_S_2004_04_30_yyk\_map.win
! wwins: Wrote 2 windows to J0509+1011_S_2004_04_30_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.00210636 Jy
! Component: 100  -  total flux cleaned = -0.00316944 Jy
! Component: 150  -  total flux cleaned = -0.00405776 Jy
! Component: 200  -  total flux cleaned = -0.00511105 Jy
! Component: 250  -  total flux cleaned = -0.00576601 Jy
! Component: 300  -  total flux cleaned = -0.00607323 Jy
! Component: 350  -  total flux cleaned = -0.00641679 Jy
! Component: 400  -  total flux cleaned = -0.00678983 Jy
! Component: 450  -  total flux cleaned = -0.00696774 Jy
! Component: 500  -  total flux cleaned = -0.00709645 Jy
! Component: 550  -  total flux cleaned = -0.00722176 Jy
! Component: 600  -  total flux cleaned = -0.00734274 Jy
! Component: 650  -  total flux cleaned = -0.00718689 Jy
! Component: 700  -  total flux cleaned = -0.00703423 Jy
! Component: 750  -  total flux cleaned = -0.00673735 Jy
! Component: 800  -  total flux cleaned = -0.00666531 Jy
! Component: 850  -  total flux cleaned = -0.00652437 Jy
! Component: 900  -  total flux cleaned = -0.00645485 Jy
! Component: 950  -  total flux cleaned = -0.00628442 Jy
! Component: 1000  -  total flux cleaned = -0.0062171 Jy
! Component: 1050  -  total flux cleaned = -0.00605238 Jy
! Component: 1100  -  total flux cleaned = -0.00585865 Jy
! Component: 1150  -  total flux cleaned = -0.00573154 Jy
! Component: 1200  -  total flux cleaned = -0.00551294 Jy
! Component: 1250  -  total flux cleaned = -0.00538974 Jy
! Component: 1300  -  total flux cleaned = -0.00508635 Jy
! Component: 1350  -  total flux cleaned = -0.00493722 Jy
! Component: 1400  -  total flux cleaned = -0.00467164 Jy
! Component: 1450  -  total flux cleaned = -0.00443844 Jy
! Component: 1500  -  total flux cleaned = -0.00420926 Jy
! Component: 1550  -  total flux cleaned = -0.00398248 Jy
! Component: 1600  -  total flux cleaned = -0.00378671 Jy
! Component: 1650  -  total flux cleaned = -0.00359278 Jy
! Component: 1700  -  total flux cleaned = -0.00340131 Jy
! Component: 1750  -  total flux cleaned = -0.00334741 Jy
! Component: 1800  -  total flux cleaned = -0.0032135 Jy
! Component: 1850  -  total flux cleaned = -0.00321375 Jy
! Component: 1900  -  total flux cleaned = -0.0031086 Jy
! Component: 1950  -  total flux cleaned = -0.00305617 Jy
! Component: 2000  -  total flux cleaned = -0.00295248 Jy
! Total flux subtracted in 2048 components = -0.00295263 Jy
! Clean residual min=-0.001921 max=0.001767 Jy/beam
! Clean residual mean=0.000000 rms=0.000570 Jy/beam
! Combined flux in latest and established models = 0.458569 Jy
keep
! Adding 156 model components to the UV plane model.
! The established model now contains 279 components and 0.458569 Jy
![Exited script file: muppet]
wmap "J0509+1011_S_2004_04_30_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.588 x 8.278 at 3.748 degrees (North through East)
! Clean map  min=-0.003469  max=0.41106 Jy/beam
! Writing clean map to FITS file: J0509+1011_S_2004_04_30_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.411062 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000567199 
device "J0509+1011_S_2004_04_30_yyk\_map.eps/VPS"
! Attempting to open device: 'J0509+1011_S_2004_04_30_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.413952 0.413952 0.827903 1.65581 3.31161 6.62323 13.2465 26.4929 52.9858
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.411 
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.588 x 8.278 at 3.748 degrees (North through East)
! Clean map  min=-0.003469  max=0.41106 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0509+1011_S_2004_04_30_yyk\_map.gif/gif"
! Attempting to open device: 'J0509+1011_S_2004_04_30_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0509+1011_S_2004_04_30_yyk_uvs.log closed on Wed Dec  7 00:00:22 2005