! Started logfile: J0205+7522_S_2006_02_16_yyk_uvs.log on Wed Jul  5 11:06:09 2006
obs J0205+7522_S_2006_02_16_yyk_uva.fits
! Reading UV FITS file: J0205+7522_S_2006_02_16_yyk_uva.fits
! AN table 1: 884 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.98816 visibilities/baseline/integration-bin.
! Found source: J0205+7522
! 
! 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 2421 lines of history.
! 
! Reading 157236 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 J0205+7522_S_2006_02_16_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.
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.453056 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.431 mas, bmaj=10.52 mas, bpa=-2.093 degrees
! Estimated noise=1.19044 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.273964 Jy
! Component: 100  -  total flux cleaned = 0.362049 Jy
! Total flux subtracted in 100 components = 0.362049 Jy
! Clean residual min=-0.053058 max=0.148152 Jy/beam
! Clean residual mean=-0.000224 rms=0.017763 Jy/beam
! Combined flux in latest and established models = 0.362049 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.362049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258893Jy  sigma=4.933494
! Fit after  self-cal, rms=0.258274Jy  sigma=4.910532
! Inverting map 
! Added new window around map position (-44.5, 3).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.14109 Jy
! Component: 100  -  total flux cleaned = 0.199194 Jy
! Total flux subtracted in 100 components = 0.199194 Jy
! Clean residual min=-0.033746 max=0.056393 Jy/beam
! Clean residual mean=-0.000306 rms=0.010772 Jy/beam
! Combined flux in latest and established models = 0.561243 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 17 components and 0.561243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171325Jy  sigma=3.172102
! Fit after  self-cal, rms=0.164461Jy  sigma=3.040679
! 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.119 mas, bmaj=10.58 mas, bpa=-1.974 degrees
! Estimated noise=0.681287 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.0798925 Jy
! Component: 100  -  total flux cleaned = 0.127036 Jy
! Component: 150  -  total flux cleaned = 0.157189 Jy
! Component: 200  -  total flux cleaned = 0.174188 Jy
! Total flux subtracted in 200 components = 0.174188 Jy
! Clean residual min=-0.025033 max=0.051453 Jy/beam
! Clean residual mean=-0.000130 rms=0.009646 Jy/beam
! Combined flux in latest and established models = 0.735432 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 41 model components to the UV plane model.
! The established model now contains 55 components and 0.735431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127214Jy  sigma=2.343828
! Fit after  self-cal, rms=0.126260Jy  sigma=2.326514
! 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.119 x 10.58 at -1.974 degrees (North through East)
! Clean map  min=-0.022233  max=0.35461 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.01721
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.87     HN        0.96     KP        0.85     
!   LA        1.19     MK        0.96     NL        1.14     OV        0.90     
!   PT        0.96     SC        0.99     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.99003
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.94     HN        0.97     KP        0.88     
!   LA        1.16     MK        1.04     NL        1.25     OV        0.91     
!   PT        0.91     SC        1.05     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.954177
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.97     HN        1.02     KP        0.90     
!   LA        0.91     MK        1.20     NL        1.37     OV        0.99     
!   PT        0.97     SC        1.14     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.00302
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     HN        0.99     KP        0.84     
!   LA        0.77     MK        1.21     NL        1.36     OV        0.82     
!   PT        0.87     SC        1.17     
! 
! 
! Fit before self-cal, rms=0.126260Jy  sigma=2.326514
! Fit after  self-cal, rms=0.094679Jy  sigma=1.758808
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.094679Jy  sigma=1.758808
! Fit after  self-cal, rms=0.094753Jy  sigma=1.757910
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.378 mas, bmaj=10.36 mas, bpa=-2.26 degrees
! Estimated noise=0.659068 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.00425936 Jy
! Component: 100  -  total flux cleaned = -0.00636395 Jy
! Component: 150  -  total flux cleaned = -0.00770694 Jy
! Component: 200  -  total flux cleaned = -0.00946002 Jy
! Total flux subtracted in 200 components = -0.00946002 Jy
! Clean residual min=-0.014913 max=0.029215 Jy/beam
! Clean residual mean=0.000178 rms=0.005772 Jy/beam
! Combined flux in latest and established models = 0.725971 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 74 components and 0.725972 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.091182Jy  sigma=1.692379
! Fit after  self-cal, rms=0.090891Jy  sigma=1.687779
! Inverting map 
! Added new window around map position (-4.5, 1.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0287892 Jy
! Component: 100  -  total flux cleaned = 0.0276139 Jy
! Component: 150  -  total flux cleaned = 0.027117 Jy
! Component: 200  -  total flux cleaned = 0.0274748 Jy
! Total flux subtracted in 200 components = 0.0274748 Jy
! Clean residual min=-0.012118 max=0.025181 Jy/beam
! Clean residual mean=0.000117 rms=0.004044 Jy/beam
! Combined flux in latest and established models = 0.753446 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 95 components and 0.753446 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.080569Jy  sigma=1.493266
! Fit after  self-cal, rms=0.078864Jy  sigma=1.461650
! Inverting map 
! Added new window around map position (-39.5, 3).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0227773 Jy
! Component: 100  -  total flux cleaned = 0.0282212 Jy
! Component: 150  -  total flux cleaned = 0.0297863 Jy
! Component: 200  -  total flux cleaned = 0.0301217 Jy
! Total flux subtracted in 200 components = 0.0301217 Jy
! Clean residual min=-0.007624 max=0.010195 Jy/beam
! Clean residual mean=0.000124 rms=0.002559 Jy/beam
! Combined flux in latest and established models = 0.783568 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 122 components and 0.783568 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.072551Jy  sigma=1.338298
! Fit after  self-cal, rms=0.072402Jy  sigma=1.334381
! 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.072402Jy  sigma=1.334381
! Fit after  self-cal, rms=0.066183Jy  sigma=1.215315
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.00111725 Jy
! Component: 100  -  total flux cleaned = 0.000836911 Jy
! Component: 150  -  total flux cleaned = 0.000837656 Jy
! Component: 200  -  total flux cleaned = 0.000830906 Jy
! Total flux subtracted in 200 components = 0.000830906 Jy
! Clean residual min=-0.006493 max=0.009199 Jy/beam
! Clean residual mean=0.000147 rms=0.002174 Jy/beam
! Combined flux in latest and established models = 0.784399 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 39 model components to the UV plane model.
! The established model now contains 148 components and 0.784399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.064485Jy  sigma=1.185953
! Fit after  self-cal, rms=0.064333Jy  sigma=1.182867
! 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.378 x 10.36 at -2.26 degrees (North through East)
! Clean map  min=-0.0064997  max=0.34688 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.064333Jy  sigma=1.182867
! Fit after  self-cal, rms=0.059399Jy  sigma=1.076861
! 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.059399Jy  sigma=1.076861
! Fit after  self-cal, rms=0.059387Jy  sigma=1.076652
! Inverting map and beam 
! Estimated beam: bmin=3.332 mas, bmaj=10.31 mas, bpa=-2.318 degrees
! Estimated noise=0.654815 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00602379 Jy
! Component: 100  -  total flux cleaned = 0.00700495 Jy
! Component: 150  -  total flux cleaned = 0.00734865 Jy
! Component: 200  -  total flux cleaned = 0.00750873 Jy
! Total flux subtracted in 200 components = 0.00750873 Jy
! Clean residual min=-0.004990 max=0.007087 Jy/beam
! Clean residual mean=0.000035 rms=0.001626 Jy/beam
! Combined flux in latest and established models = 0.791908 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 173 components and 0.791908 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.058241Jy  sigma=1.056746
! Fit after  self-cal, rms=0.058210Jy  sigma=1.056115
! Inverting map 
! Added new window around map position (-13, 0.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00789357 Jy
! Component: 100  -  total flux cleaned = 0.00986277 Jy
! Component: 150  -  total flux cleaned = 0.0103164 Jy
! Component: 200  -  total flux cleaned = 0.0105823 Jy
! Total flux subtracted in 200 components = 0.0105823 Jy
! Clean residual min=-0.004280 max=0.003371 Jy/beam
! Clean residual mean=-0.000018 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 0.80249 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 52 model components to the UV plane model.
! The established model now contains 218 components and 0.80249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.057157Jy  sigma=1.034734
! Fit after  self-cal, rms=0.057128Jy  sigma=1.034221
! 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.057128Jy  sigma=1.034221
! Fit after  self-cal, rms=0.052716Jy  sigma=0.955259
! 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.052716Jy  sigma=0.955259
! Fit after  self-cal, rms=0.052712Jy  sigma=0.955240
! Inverting map and beam 
! Estimated beam: bmin=3.306 mas, bmaj=10.3 mas, bpa=-2.271 degrees
! Estimated noise=0.652459 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00196336 Jy
! Component: 100  -  total flux cleaned = 0.00257928 Jy
! Component: 150  -  total flux cleaned = 0.0027926 Jy
! Component: 200  -  total flux cleaned = 0.00299842 Jy
! Total flux subtracted in 200 components = 0.00299842 Jy
! Clean residual min=-0.003336 max=0.002969 Jy/beam
! Clean residual mean=-0.000011 rms=0.000947 Jy/beam
! Combined flux in latest and established models = 0.805489 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 52 model components to the UV plane model.
! The established model now contains 245 components and 0.805489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.052213Jy  sigma=0.947244
! Fit after  self-cal, rms=0.052203Jy  sigma=0.947007
! 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.891 mas, bmaj=11.65 mas, bpa=4.098 degrees
! Estimated noise=0.816368 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 = 1.80327e-05 Jy
! Component: 100  -  total flux cleaned = -0.000252291 Jy
! Component: 150  -  total flux cleaned = -0.000179763 Jy
! Component: 200  -  total flux cleaned = -0.000181935 Jy
! Total flux subtracted in 200 components = -0.000181935 Jy
! Clean residual min=-0.003605 max=0.002849 Jy/beam
! Clean residual mean=-0.000029 rms=0.001050 Jy/beam
! Combined flux in latest and established models = 0.805307 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 269 components and 0.805307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.052100Jy  sigma=0.944583
! Fit after  self-cal, rms=0.052093Jy  sigma=0.944445
! 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.471 mas, bmaj=10.26 mas, bpa=-2.315 degrees
! Estimated noise=1.16486 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.297324 Jy
! Component: 100  -  total flux cleaned = 0.432468 Jy
! Component: 150  -  total flux cleaned = 0.518399 Jy
! Component: 200  -  total flux cleaned = 0.575035 Jy
! Total flux subtracted in 200 components = 0.575035 Jy
! Clean residual min=-0.020836 max=0.024171 Jy/beam
! Clean residual mean=-0.000098 rms=0.006140 Jy/beam
! Combined flux in latest and established models = 0.575035 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 20 model components to the UV plane model.
! The established model now contains 20 components and 0.575035 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.306 mas, bmaj=10.3 mas, bpa=-2.271 degrees
! Estimated noise=0.652459 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.0674406 Jy
! Component: 100  -  total flux cleaned = 0.108665 Jy
! Component: 150  -  total flux cleaned = 0.136407 Jy
! Component: 200  -  total flux cleaned = 0.156228 Jy
! Total flux subtracted in 200 components = 0.156228 Jy
! Clean residual min=-0.008046 max=0.008675 Jy/beam
! Clean residual mean=0.000059 rms=0.003047 Jy/beam
! Combined flux in latest and established models = 0.731263 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 74 components and 0.731263 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.891 mas, bmaj=11.65 mas, bpa=4.098 degrees
! Estimated noise=0.816368 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.0232619 Jy
! Component: 100  -  total flux cleaned = 0.0380446 Jy
! Component: 150  -  total flux cleaned = 0.0481302 Jy
! Component: 200  -  total flux cleaned = 0.0554 Jy
! Total flux subtracted in 200 components = 0.0554 Jy
! Clean residual min=-0.005714 max=0.005330 Jy/beam
! Clean residual mean=0.000004 rms=0.001759 Jy/beam
! Combined flux in latest and established models = 0.786663 Jy
! Adding 77 model components to the UV plane model.
! The established model now contains 138 components and 0.786663 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.306 mas, bmaj=10.3 mas, bpa=-2.271 degrees
! Estimated noise=0.652459 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.003557 Jy
! Component: 100  -  total flux cleaned = 0.0062635 Jy
! Component: 150  -  total flux cleaned = 0.00763209 Jy
! Component: 200  -  total flux cleaned = 0.00844892 Jy
! Total flux subtracted in 200 components = 0.00844892 Jy
! Clean residual min=-0.004640 max=0.003709 Jy/beam
! Clean residual mean=-0.000003 rms=0.001023 Jy/beam
! Combined flux in latest and established models = 0.795111 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 42 model components to the UV plane model.
! The established model now contains 177 components and 0.795112 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.051874Jy  sigma=0.947053
! Fit after  self-cal, rms=0.051721Jy  sigma=0.944312
wmodel J0205+7522_S_2006_02_16_yyk\_map.mod
! Writing 177 model components to file: J0205+7522_S_2006_02_16_yyk_map.mod
wobs J0205+7522_S_2006_02_16_yyk\_uvs.fits
! Writing UV FITS file: J0205+7522_S_2006_02_16_yyk_uvs.fits
wwins J0205+7522_S_2006_02_16_yyk\_map.win
! wwins: Wrote 5 windows to J0205+7522_S_2006_02_16_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.000619215 Jy
! Component: 100  -  total flux cleaned = -0.0011002 Jy
! Component: 150  -  total flux cleaned = -0.00126286 Jy
! Component: 200  -  total flux cleaned = -0.00131322 Jy
! Component: 250  -  total flux cleaned = -0.00140567 Jy
! Component: 300  -  total flux cleaned = -0.00170587 Jy
! Component: 350  -  total flux cleaned = -0.00203239 Jy
! Component: 400  -  total flux cleaned = -0.00242234 Jy
! Component: 450  -  total flux cleaned = -0.00275843 Jy
! Component: 500  -  total flux cleaned = -0.00293749 Jy
! Component: 550  -  total flux cleaned = -0.0031804 Jy
! Component: 600  -  total flux cleaned = -0.00331479 Jy
! Component: 650  -  total flux cleaned = -0.00344532 Jy
! Component: 700  -  total flux cleaned = -0.00363366 Jy
! Component: 750  -  total flux cleaned = -0.00375573 Jy
! Component: 800  -  total flux cleaned = -0.00390461 Jy
! Component: 850  -  total flux cleaned = -0.0040206 Jy
! Component: 900  -  total flux cleaned = -0.00410605 Jy
! Component: 950  -  total flux cleaned = -0.00424455 Jy
! Component: 1000  -  total flux cleaned = -0.00429832 Jy
! Component: 1050  -  total flux cleaned = -0.00437735 Jy
! Component: 1100  -  total flux cleaned = -0.00432577 Jy
! Component: 1150  -  total flux cleaned = -0.00437711 Jy
! Component: 1200  -  total flux cleaned = -0.00442728 Jy
! Component: 1250  -  total flux cleaned = -0.00452464 Jy
! Component: 1300  -  total flux cleaned = -0.00447699 Jy
! Component: 1350  -  total flux cleaned = -0.00452482 Jy
! Component: 1400  -  total flux cleaned = -0.00452538 Jy
! Component: 1450  -  total flux cleaned = -0.00457085 Jy
! Component: 1500  -  total flux cleaned = -0.00461603 Jy
! Component: 1550  -  total flux cleaned = -0.00465985 Jy
! Component: 1600  -  total flux cleaned = -0.0046819 Jy
! Component: 1650  -  total flux cleaned = -0.00476755 Jy
! Component: 1700  -  total flux cleaned = -0.00480944 Jy
! Component: 1750  -  total flux cleaned = -0.00489258 Jy
! Component: 1800  -  total flux cleaned = -0.00499501 Jy
! Component: 1850  -  total flux cleaned = -0.00511654 Jy
! Component: 1900  -  total flux cleaned = -0.00519606 Jy
! Component: 1950  -  total flux cleaned = -0.00513672 Jy
! Component: 2000  -  total flux cleaned = -0.00523461 Jy
! Total flux subtracted in 2048 components = -0.00531197 Jy
! Clean residual min=-0.000958 max=0.001098 Jy/beam
! Clean residual mean=0.000013 rms=0.000409 Jy/beam
! Combined flux in latest and established models = 0.7898 Jy
keep
! Adding 157 model components to the UV plane model.
! The established model now contains 334 components and 0.7898 Jy
![Exited script file: muppet]
wmap "J0205+7522_S_2006_02_16_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.306 x 10.3 at -2.271 degrees (North through East)
! Clean map  min=-0.0028469  max=0.3441 Jy/beam
! Writing clean map to FITS file: J0205+7522_S_2006_02_16_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.344105 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000408591 
device "J0205+7522_S_2006_02_16_yyk\_map.eps/VPS"
! Attempting to open device: 'J0205+7522_S_2006_02_16_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.356221 0.356221 0.712442 1.42488 2.84977 5.69954 11.3991 22.7982 45.5963 91.1926
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.344 
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.306 x 10.3 at -2.271 degrees (North through East)
! Clean map  min=-0.0028469  max=0.3441 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0205+7522_S_2006_02_16_yyk\_map.gif/gif"
! Attempting to open device: 'J0205+7522_S_2006_02_16_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0205+7522_S_2006_02_16_yyk_uvs.log closed on Wed Jul  5 11:06:49 2006