! Started logfile: J0521+2112_X_1996_03_13_yyk_uvs.log on Mon Jan  8 03:16:50 2007
obs J0521+2112_X_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J0521+2112_X_1996_03_13_yyk_uva.fits
! AN table 1: 133 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.909774 visibilities/baseline/integration-bin.
! Found source: J0521+2112
! 
! 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.15049e+09        4e+06          1        4e+06
!  02        2  8.23236e+09        4e+06          1        4e+06
!  03        3  8.41236e+09        4e+06          1        4e+06
!  04        4  8.55236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 655 lines of history.
! 
! Reading 21780 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 J0521+2112_X_1996_03_13_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.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.314114 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.7661 mas, bmaj=1.788 mas, bpa=-12.76 degrees
! Estimated noise=1075.18 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.161062 Jy
! Component: 100  -  total flux cleaned = 0.197771 Jy
! Total flux subtracted in 100 components = 0.197771 Jy
! Clean residual min=-0.009943 max=0.017294 Jy/beam
! Clean residual mean=-0.000102 rms=0.002889 Jy/beam
! Combined flux in latest and established models = 0.197771 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.197771 Jy
! 
! Correcting IF 1.
!  A total of 68 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 68 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 68 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 68 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.241940Jy  sigma=0.001690
! Fit after  self-cal, rms=0.241699Jy  sigma=0.001689
! Inverting map and beam 
! Estimated beam: bmin=0.7661 mas, bmaj=1.788 mas, bpa=-12.76 degrees
! Estimated noise=1075.22 mJy/beam.
! Added new window around map position (-2.2, 0.4).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0223181 Jy
! Component: 100  -  total flux cleaned = 0.0354389 Jy
! Total flux subtracted in 100 components = 0.0354389 Jy
! Clean residual min=-0.009179 max=0.010780 Jy/beam
! Clean residual mean=-0.000068 rms=0.002458 Jy/beam
! Combined flux in latest and established models = 0.23321 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 24 components and 0.23321 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239716Jy  sigma=0.001672
! Fit after  self-cal, rms=0.239582Jy  sigma=0.001671
! 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=0.9634 mas, bmaj=2.095 mas, bpa=-12.79 degrees
! Estimated noise=669.144 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 (-1.2, 0.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0177905 Jy
! Component: 100  -  total flux cleaned = 0.0264877 Jy
! Component: 150  -  total flux cleaned = 0.0321742 Jy
! Component: 200  -  total flux cleaned = 0.0358914 Jy
! Total flux subtracted in 200 components = 0.0358914 Jy
! Clean residual min=-0.004646 max=0.005719 Jy/beam
! Clean residual mean=-0.000062 rms=0.001341 Jy/beam
! Combined flux in latest and established models = 0.269102 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 55 components and 0.269102 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238741Jy  sigma=0.001664
! Fit after  self-cal, rms=0.238683Jy  sigma=0.001664
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9634 x 2.095 at -12.79 degrees (North through East)
! Clean map  min=-0.0044434  max=0.19322 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.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00504
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.95     HN        1.02     KP        1.01     
!   LA        1.00     MK        0.99     NL        1.00     OV        1.00     
!   PT        1.03     SC        0.92     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01114
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.94     HN        0.97     KP        0.99     
!   LA        0.99     MK        1.00     NL        0.99     OV        1.10     
!   PT        0.94     SC        1.01     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.995071
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     HN        0.98     KP        1.01     
!   LA        0.97     MK        1.05     NL        1.00     OV        1.06     
!   PT        0.95     SC        1.06     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.981535
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        0.93     HN        0.99     KP        0.99     
!   LA        0.96     MK        0.99     NL        1.06     OV        1.09     
!   PT        1.00     SC        1.09     
! 
! 
! Fit before self-cal, rms=0.238683Jy  sigma=0.001664
! Fit after  self-cal, rms=0.238827Jy  sigma=0.001662
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.238827Jy  sigma=0.001662
! Fit after  self-cal, rms=0.238829Jy  sigma=0.001662
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9723 mas, bmaj=2.121 mas, bpa=-13.15 degrees
! Estimated noise=663.363 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.00130912 Jy
! Component: 100  -  total flux cleaned = -0.00184437 Jy
! Component: 150  -  total flux cleaned = -0.00227409 Jy
! Component: 200  -  total flux cleaned = -0.00258627 Jy
! Total flux subtracted in 200 components = -0.00258627 Jy
! Clean residual min=-0.003951 max=0.004388 Jy/beam
! Clean residual mean=-0.000044 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 0.266515 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 76 components and 0.266515 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238794Jy  sigma=0.001662
! Fit after  self-cal, rms=0.238790Jy  sigma=0.001662
! 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.238790Jy  sigma=0.001662
! Fit after  self-cal, rms=0.238246Jy  sigma=0.001657
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.000232198 Jy
! Component: 100  -  total flux cleaned = 9.19854e-05 Jy
! Component: 150  -  total flux cleaned = 9.33765e-05 Jy
! Component: 200  -  total flux cleaned = 9.31063e-05 Jy
! Total flux subtracted in 200 components = 9.31063e-05 Jy
! Clean residual min=-0.003931 max=0.004245 Jy/beam
! Clean residual mean=-0.000043 rms=0.001099 Jy/beam
! Combined flux in latest and established models = 0.266609 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 83 components and 0.266609 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238231Jy  sigma=0.001657
! Fit after  self-cal, rms=0.238144Jy  sigma=0.001657
! 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: 0.9723 x 2.121 at -13.15 degrees (North through East)
! Clean map  min=-0.0037523  max=0.19183 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.238144Jy  sigma=0.001657
! Fit after  self-cal, rms=0.239256Jy  sigma=0.001655
! 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.239256Jy  sigma=0.001655
! Fit after  self-cal, rms=0.239238Jy  sigma=0.001655
! Inverting map and beam 
! Estimated beam: bmin=0.9729 mas, bmaj=2.119 mas, bpa=-13.13 degrees
! Estimated noise=660.756 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 4.9088e-05 Jy
! Component: 100  -  total flux cleaned = -7.9264e-05 Jy
! Component: 150  -  total flux cleaned = -0.000116445 Jy
! Component: 200  -  total flux cleaned = -0.000115852 Jy
! Total flux subtracted in 200 components = -0.000115852 Jy
! Clean residual min=-0.003735 max=0.003922 Jy/beam
! Clean residual mean=-0.000048 rms=0.001042 Jy/beam
! Combined flux in latest and established models = 0.266493 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 91 components and 0.266493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239225Jy  sigma=0.001655
! Fit after  self-cal, rms=0.239218Jy  sigma=0.001655
! 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.239218Jy  sigma=0.001655
! Fit after  self-cal, rms=0.240191Jy  sigma=0.001653
! 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.240191Jy  sigma=0.001653
! Fit after  self-cal, rms=0.240193Jy  sigma=0.001653
! Inverting map and beam 
! Estimated beam: bmin=0.9743 mas, bmaj=2.122 mas, bpa=-13.14 degrees
! Estimated noise=661.697 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000492038 Jy
! Component: 100  -  total flux cleaned = 0.000458644 Jy
! Component: 150  -  total flux cleaned = 0.000489904 Jy
! Component: 200  -  total flux cleaned = 0.000489592 Jy
! Total flux subtracted in 200 components = 0.000489592 Jy
! Clean residual min=-0.003746 max=0.003920 Jy/beam
! Clean residual mean=-0.000049 rms=0.001041 Jy/beam
! Combined flux in latest and established models = 0.266982 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 98 components and 0.266982 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240185Jy  sigma=0.001653
! Fit after  self-cal, rms=0.240185Jy  sigma=0.001653
! 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.388 mas, bmaj=2.967 mas, bpa=-10.95 degrees
! Estimated noise=823.07 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.000779132 Jy
! Component: 100  -  total flux cleaned = 0.000871007 Jy
! Component: 150  -  total flux cleaned = 0.000892134 Jy
! Component: 200  -  total flux cleaned = 0.0009115 Jy
! Total flux subtracted in 200 components = 0.0009115 Jy
! Clean residual min=-0.004954 max=0.005539 Jy/beam
! Clean residual mean=-0.000097 rms=0.001462 Jy/beam
! Combined flux in latest and established models = 0.267894 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 111 components and 0.267894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240187Jy  sigma=0.001653
! Fit after  self-cal, rms=0.240188Jy  sigma=0.001653
! 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.7688 mas, bmaj=1.797 mas, bpa=-12.98 degrees
! Estimated noise=1073.19 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.161932 Jy
! Component: 100  -  total flux cleaned = 0.202303 Jy
! Component: 150  -  total flux cleaned = 0.224365 Jy
! Component: 200  -  total flux cleaned = 0.23762 Jy
! Total flux subtracted in 200 components = 0.23762 Jy
! Clean residual min=-0.008256 max=0.007198 Jy/beam
! Clean residual mean=-0.000057 rms=0.002162 Jy/beam
! Combined flux in latest and established models = 0.23762 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.23762 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9743 mas, bmaj=2.122 mas, bpa=-13.14 degrees
! Estimated noise=661.697 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.0137849 Jy
! Component: 100  -  total flux cleaned = 0.0207124 Jy
! Component: 150  -  total flux cleaned = 0.0249938 Jy
! Component: 200  -  total flux cleaned = 0.0270632 Jy
! Total flux subtracted in 200 components = 0.0270632 Jy
! Clean residual min=-0.003787 max=0.003957 Jy/beam
! Clean residual mean=-0.000055 rms=0.001078 Jy/beam
! Combined flux in latest and established models = 0.264683 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 53 components and 0.264683 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.388 mas, bmaj=2.967 mas, bpa=-10.95 degrees
! Estimated noise=823.07 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.00257353 Jy
! Component: 100  -  total flux cleaned = 0.00310266 Jy
! Component: 150  -  total flux cleaned = 0.00324098 Jy
! Component: 200  -  total flux cleaned = 0.00327646 Jy
! Total flux subtracted in 200 components = 0.00327646 Jy
! Clean residual min=-0.004941 max=0.005597 Jy/beam
! Clean residual mean=-0.000098 rms=0.001462 Jy/beam
! Combined flux in latest and established models = 0.267959 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 71 components and 0.26796 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9743 mas, bmaj=2.122 mas, bpa=-13.14 degrees
! Estimated noise=661.697 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000925109 Jy
! Component: 100  -  total flux cleaned = -0.00098652 Jy
! Component: 150  -  total flux cleaned = -0.000985555 Jy
! Component: 200  -  total flux cleaned = -0.000933736 Jy
! Total flux subtracted in 200 components = -0.000933736 Jy
! Clean residual min=-0.003712 max=0.003820 Jy/beam
! Clean residual mean=-0.000049 rms=0.001047 Jy/beam
! Combined flux in latest and established models = 0.267026 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 85 components and 0.267026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240214Jy  sigma=0.001653
! Fit after  self-cal, rms=0.240212Jy  sigma=0.001653
wmodel J0521+2112_X_1996_03_13_yyk\_map.mod
! Writing 85 model components to file: J0521+2112_X_1996_03_13_yyk_map.mod
wobs J0521+2112_X_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J0521+2112_X_1996_03_13_yyk_uvs.fits
wwins J0521+2112_X_1996_03_13_yyk\_map.win
! wwins: Wrote 3 windows to J0521+2112_X_1996_03_13_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 = 1.73371e-05 Jy
! Component: 100  -  total flux cleaned = 1.9065e-05 Jy
! Component: 150  -  total flux cleaned = -0.000231522 Jy
! Component: 200  -  total flux cleaned = -0.000412386 Jy
! Component: 250  -  total flux cleaned = -0.000703676 Jy
! Component: 300  -  total flux cleaned = -0.000931371 Jy
! Component: 350  -  total flux cleaned = -0.0012624 Jy
! Component: 400  -  total flux cleaned = -0.00153066 Jy
! Component: 450  -  total flux cleaned = -0.00168771 Jy
! Component: 500  -  total flux cleaned = -0.0019429 Jy
! Component: 550  -  total flux cleaned = -0.00214246 Jy
! Component: 600  -  total flux cleaned = -0.00243452 Jy
! Component: 650  -  total flux cleaned = -0.00257608 Jy
! Component: 700  -  total flux cleaned = -0.00257604 Jy
! Component: 750  -  total flux cleaned = -0.002853 Jy
! Component: 800  -  total flux cleaned = -0.00307924 Jy
! Component: 850  -  total flux cleaned = -0.0035225 Jy
! Component: 900  -  total flux cleaned = -0.00369757 Jy
! Component: 950  -  total flux cleaned = -0.00408469 Jy
! Component: 1000  -  total flux cleaned = -0.00442344 Jy
! Component: 1050  -  total flux cleaned = -0.00471519 Jy
! Component: 1100  -  total flux cleaned = -0.00496195 Jy
! Component: 1150  -  total flux cleaned = -0.00528635 Jy
! Component: 1200  -  total flux cleaned = -0.00560731 Jy
! Component: 1250  -  total flux cleaned = -0.005766 Jy
! Component: 1300  -  total flux cleaned = -0.00623466 Jy
! Component: 1350  -  total flux cleaned = -0.00638898 Jy
! Component: 1400  -  total flux cleaned = -0.00673222 Jy
! Component: 1450  -  total flux cleaned = -0.00699636 Jy
! Component: 1500  -  total flux cleaned = -0.00725763 Jy
! Component: 1550  -  total flux cleaned = -0.00766292 Jy
! Component: 1600  -  total flux cleaned = -0.00791777 Jy
! Component: 1650  -  total flux cleaned = -0.00831407 Jy
! Component: 1700  -  total flux cleaned = -0.00867029 Jy
! Component: 1750  -  total flux cleaned = -0.00902299 Jy
! Component: 1800  -  total flux cleaned = -0.00926739 Jy
! Component: 1850  -  total flux cleaned = -0.00961239 Jy
! Component: 1900  -  total flux cleaned = -0.00988566 Jy
! Component: 1950  -  total flux cleaned = -0.0102577 Jy
! Component: 2000  -  total flux cleaned = -0.0104925 Jy
! Total flux subtracted in 2048 components = -0.0107917 Jy
! Clean residual min=-0.001925 max=0.002207 Jy/beam
! Clean residual mean=-0.000018 rms=0.000658 Jy/beam
! Combined flux in latest and established models = 0.256234 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 243 components and 0.256234 Jy
![Exited script file: muppet]
wmap "J0521+2112_X_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9743 x 2.122 at -13.14 degrees (North through East)
! Clean map  min=-0.0030779  max=0.19271 Jy/beam
! Writing clean map to FITS file: J0521+2112_X_1996_03_13_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.192707 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000658687 
device "J0521+2112_X_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J0521+2112_X_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.02542 1.02542 2.05085 4.10169 8.20339 16.4068 32.8135 65.6271
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.192 
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.9743 x 2.122 at -13.14 degrees (North through East)
! Clean map  min=-0.0030779  max=0.19271 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0521+2112_X_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J0521+2112_X_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0521+2112_X_1996_03_13_yyk_uvs.log closed on Mon Jan  8 03:17:00 2007