! Started logfile: J2249+2107_X_1996_03_13_yyk_uvs.log on Mon Jan  8 10:43:47 2007
obs J2249+2107_X_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J2249+2107_X_1996_03_13_yyk_uva.fits
! AN table 1: 118 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.788701 visibilities/baseline/integration-bin.
! Found source: J2249+2107
! 
! 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 16752 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 J2249+2107_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.489723 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.7237 mas, bmaj=1.749 mas, bpa=-2.481 degrees
! Estimated noise=1066.85 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.347591 Jy
! Component: 100  -  total flux cleaned = 0.450834 Jy
! Total flux subtracted in 100 components = 0.450834 Jy
! Clean residual min=-0.012033 max=0.029656 Jy/beam
! Clean residual mean=-0.000025 rms=0.003750 Jy/beam
! Combined flux in latest and established models = 0.450834 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.450834 Jy
! 
! Correcting IF 1.
!  A total of 147 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 147 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 147 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 147 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.265146Jy  sigma=0.001800
! Fit after  self-cal, rms=0.264909Jy  sigma=0.001798
! Inverting map and beam 
! Estimated beam: bmin=0.7237 mas, bmaj=1.749 mas, bpa=-2.481 degrees
! Estimated noise=1067.23 mJy/beam.
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0421219 Jy
! Component: 100  -  total flux cleaned = 0.0636407 Jy
! Total flux subtracted in 100 components = 0.0636407 Jy
! Clean residual min=-0.009317 max=0.010810 Jy/beam
! Clean residual mean=-0.000005 rms=0.002464 Jy/beam
! Combined flux in latest and established models = 0.514474 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 18 components and 0.514474 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260169Jy  sigma=0.001757
! Fit after  self-cal, rms=0.260118Jy  sigma=0.001756
! 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.9001 mas, bmaj=2.051 mas, bpa=-4.05 degrees
! Estimated noise=785.256 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.0155002 Jy
! Component: 100  -  total flux cleaned = 0.0229252 Jy
! Component: 150  -  total flux cleaned = 0.0260561 Jy
! Component: 200  -  total flux cleaned = 0.0269944 Jy
! Total flux subtracted in 200 components = 0.0269944 Jy
! Clean residual min=-0.007395 max=0.008653 Jy/beam
! Clean residual mean=0.000001 rms=0.002064 Jy/beam
! Combined flux in latest and established models = 0.541469 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 22 components and 0.541469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259720Jy  sigma=0.001752
! Fit after  self-cal, rms=0.259697Jy  sigma=0.001752
! 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.9001 x 2.051 at -4.05 degrees (North through East)
! Clean map  min=-0.0067973  max=0.38344 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
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.00331
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.96     HN        0.97     KP        1.03     
!   LA        0.99     MK        1.03     NL        1.00     OV        1.01     
!   PT        0.99     SC        0.94     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00017
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.95     HN        0.98     KP        1.04     
!   LA        0.98     MK        1.05     NL        0.97     OV        1.04     
!   PT        0.99     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.9949
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.97     HN        0.97     KP        1.03     
!   LA        0.98     MK        1.08     NL        0.97     OV        1.01     
!   PT        0.97     SC        1.00     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.978388
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.96     HN        1.03     KP        1.03     
!   LA        0.99     MK        1.08     NL        1.00     OV        1.03     
!   PT        1.00     SC        1.01     
! 
! 
! Fit before self-cal, rms=0.259697Jy  sigma=0.001752
! Fit after  self-cal, rms=0.260167Jy  sigma=0.001748
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.260167Jy  sigma=0.001748
! Fit after  self-cal, rms=0.260168Jy  sigma=0.001748
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9212 mas, bmaj=2.069 mas, bpa=-3.442 degrees
! Estimated noise=781.74 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.00582413 Jy
! Component: 100  -  total flux cleaned = -0.00751168 Jy
! Component: 150  -  total flux cleaned = -0.00788423 Jy
! Component: 200  -  total flux cleaned = -0.00808062 Jy
! Total flux subtracted in 200 components = -0.00808062 Jy
! Clean residual min=-0.006893 max=0.007198 Jy/beam
! Clean residual mean=0.000002 rms=0.001787 Jy/beam
! Combined flux in latest and established models = 0.533388 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 31 components and 0.533388 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260014Jy  sigma=0.001748
! Fit after  self-cal, rms=0.260006Jy  sigma=0.001748
! 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.260006Jy  sigma=0.001748
! Fit after  self-cal, rms=0.252869Jy  sigma=0.001702
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.4, 1).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00512169 Jy
! Component: 100  -  total flux cleaned = 0.00755587 Jy
! Component: 150  -  total flux cleaned = 0.00922768 Jy
! Component: 200  -  total flux cleaned = 0.0101851 Jy
! Total flux subtracted in 200 components = 0.0101851 Jy
! Clean residual min=-0.005748 max=0.005733 Jy/beam
! Clean residual mean=0.000004 rms=0.001478 Jy/beam
! Combined flux in latest and established models = 0.543573 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 57 components and 0.543573 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252576Jy  sigma=0.001699
! Fit after  self-cal, rms=0.250523Jy  sigma=0.001686
! 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.9212 x 2.069 at -3.442 degrees (North through East)
! Clean map  min=-0.0054595  max=0.3884 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.250523Jy  sigma=0.001686
! Fit after  self-cal, rms=0.249495Jy  sigma=0.001681
! 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.249495Jy  sigma=0.001681
! Fit after  self-cal, rms=0.248884Jy  sigma=0.001677
! Inverting map and beam 
! Estimated beam: bmin=0.9088 mas, bmaj=2.06 mas, bpa=-4.548 degrees
! Estimated noise=771.889 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000472968 Jy
! Component: 100  -  total flux cleaned = 0.000660322 Jy
! Component: 150  -  total flux cleaned = 0.000905046 Jy
! Component: 200  -  total flux cleaned = 0.00105137 Jy
! Total flux subtracted in 200 components = 0.00105137 Jy
! Clean residual min=-0.004036 max=0.004156 Jy/beam
! Clean residual mean=-0.000013 rms=0.001071 Jy/beam
! Combined flux in latest and established models = 0.544625 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 71 components and 0.544625 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248829Jy  sigma=0.001677
! Fit after  self-cal, rms=0.248619Jy  sigma=0.001676
! 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.248619Jy  sigma=0.001676
! Fit after  self-cal, rms=0.248386Jy  sigma=0.001674
! 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.248386Jy  sigma=0.001674
! Fit after  self-cal, rms=0.248299Jy  sigma=0.001673
! Inverting map and beam 
! Estimated beam: bmin=0.9084 mas, bmaj=2.062 mas, bpa=-4.695 degrees
! Estimated noise=771.424 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -9.3958e-05 Jy
! Component: 100  -  total flux cleaned = 3.2723e-05 Jy
! Component: 150  -  total flux cleaned = 3.23456e-05 Jy
! Component: 200  -  total flux cleaned = 0.00014926 Jy
! Total flux subtracted in 200 components = 0.00014926 Jy
! Clean residual min=-0.003714 max=0.004094 Jy/beam
! Clean residual mean=-0.000013 rms=0.001058 Jy/beam
! Combined flux in latest and established models = 0.544774 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 79 components and 0.544774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248271Jy  sigma=0.001673
! Fit after  self-cal, rms=0.248229Jy  sigma=0.001673
! 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.097 mas, bmaj=2.926 mas, bpa=-7.459 degrees
! Estimated noise=993.745 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.00199214 Jy
! Component: 100  -  total flux cleaned = 0.00225147 Jy
! Component: 150  -  total flux cleaned = 0.00243309 Jy
! Component: 200  -  total flux cleaned = 0.00249867 Jy
! Total flux subtracted in 200 components = 0.00249867 Jy
! Clean residual min=-0.004194 max=0.004276 Jy/beam
! Clean residual mean=-0.000027 rms=0.001157 Jy/beam
! Combined flux in latest and established models = 0.547272 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 92 components and 0.547272 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248231Jy  sigma=0.001673
! Fit after  self-cal, rms=0.248207Jy  sigma=0.001673
! 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.7273 mas, bmaj=1.751 mas, bpa=-2.744 degrees
! Estimated noise=1057.58 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.348268 Jy
! Component: 100  -  total flux cleaned = 0.451558 Jy
! Component: 150  -  total flux cleaned = 0.493337 Jy
! Component: 200  -  total flux cleaned = 0.514855 Jy
! Total flux subtracted in 200 components = 0.514855 Jy
! Clean residual min=-0.008160 max=0.008590 Jy/beam
! Clean residual mean=-0.000013 rms=0.002016 Jy/beam
! Combined flux in latest and established models = 0.514855 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.514855 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9084 mas, bmaj=2.062 mas, bpa=-4.695 degrees
! Estimated noise=771.424 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.0147203 Jy
! Component: 100  -  total flux cleaned = 0.0229169 Jy
! Component: 150  -  total flux cleaned = 0.0252968 Jy
! Component: 200  -  total flux cleaned = 0.0266325 Jy
! Total flux subtracted in 200 components = 0.0266325 Jy
! Clean residual min=-0.003752 max=0.004705 Jy/beam
! Clean residual mean=-0.000016 rms=0.001134 Jy/beam
! Combined flux in latest and established models = 0.541488 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 42 components and 0.541488 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.097 mas, bmaj=2.926 mas, bpa=-7.459 degrees
! Estimated noise=993.745 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-1.2, 2.8).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00677953 Jy
! Component: 100  -  total flux cleaned = 0.00910866 Jy
! Component: 150  -  total flux cleaned = 0.00994566 Jy
! Component: 200  -  total flux cleaned = 0.0106969 Jy
! Total flux subtracted in 200 components = 0.0106969 Jy
! Clean residual min=-0.003789 max=0.003589 Jy/beam
! Clean residual mean=-0.000011 rms=0.001049 Jy/beam
! Combined flux in latest and established models = 0.552185 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 73 components and 0.552185 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9084 mas, bmaj=2.062 mas, bpa=-4.695 degrees
! Estimated noise=771.424 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00076142 Jy
! Component: 100  -  total flux cleaned = -0.000322194 Jy
! Component: 150  -  total flux cleaned = -0.000322039 Jy
! Component: 200  -  total flux cleaned = -7.78926e-05 Jy
! Total flux subtracted in 200 components = -7.78926e-05 Jy
! Clean residual min=-0.003623 max=0.003497 Jy/beam
! Clean residual mean=-0.000004 rms=0.000990 Jy/beam
! Combined flux in latest and established models = 0.552107 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 100 components and 0.552107 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248151Jy  sigma=0.001672
! Fit after  self-cal, rms=0.248121Jy  sigma=0.001672
wmodel J2249+2107_X_1996_03_13_yyk\_map.mod
! Writing 100 model components to file: J2249+2107_X_1996_03_13_yyk_map.mod
wobs J2249+2107_X_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J2249+2107_X_1996_03_13_yyk_uvs.fits
wwins J2249+2107_X_1996_03_13_yyk\_map.win
! wwins: Wrote 3 windows to J2249+2107_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 = -0.000750018 Jy
! Component: 100  -  total flux cleaned = -0.00100171 Jy
! Component: 150  -  total flux cleaned = -0.00130297 Jy
! Component: 200  -  total flux cleaned = -0.00147558 Jy
! Component: 250  -  total flux cleaned = -0.00170203 Jy
! Component: 300  -  total flux cleaned = -0.00203398 Jy
! Component: 350  -  total flux cleaned = -0.00235948 Jy
! Component: 400  -  total flux cleaned = -0.00283735 Jy
! Component: 450  -  total flux cleaned = -0.0030445 Jy
! Component: 500  -  total flux cleaned = -0.00324885 Jy
! Component: 550  -  total flux cleaned = -0.00340084 Jy
! Component: 600  -  total flux cleaned = -0.00360031 Jy
! Component: 650  -  total flux cleaned = -0.00369887 Jy
! Component: 700  -  total flux cleaned = -0.00393995 Jy
! Component: 750  -  total flux cleaned = -0.00393892 Jy
! Component: 800  -  total flux cleaned = -0.003986 Jy
! Component: 850  -  total flux cleaned = -0.0041268 Jy
! Component: 900  -  total flux cleaned = -0.00421902 Jy
! Component: 950  -  total flux cleaned = -0.00444662 Jy
! Component: 1000  -  total flux cleaned = -0.00444572 Jy
! Component: 1050  -  total flux cleaned = -0.00458007 Jy
! Component: 1100  -  total flux cleaned = -0.00457966 Jy
! Component: 1150  -  total flux cleaned = -0.00484278 Jy
! Component: 1200  -  total flux cleaned = -0.00497276 Jy
! Component: 1250  -  total flux cleaned = -0.0049726 Jy
! Component: 1300  -  total flux cleaned = -0.0050579 Jy
! Component: 1350  -  total flux cleaned = -0.00505778 Jy
! Component: 1400  -  total flux cleaned = -0.00518302 Jy
! Component: 1450  -  total flux cleaned = -0.00514182 Jy
! Component: 1500  -  total flux cleaned = -0.00534715 Jy
! Component: 1550  -  total flux cleaned = -0.00526541 Jy
! Component: 1600  -  total flux cleaned = -0.00530573 Jy
! Component: 1650  -  total flux cleaned = -0.0053053 Jy
! Component: 1700  -  total flux cleaned = -0.00534519 Jy
! Component: 1750  -  total flux cleaned = -0.00538431 Jy
! Component: 1800  -  total flux cleaned = -0.00538435 Jy
! Component: 1850  -  total flux cleaned = -0.00534551 Jy
! Component: 1900  -  total flux cleaned = -0.00530693 Jy
! Component: 1950  -  total flux cleaned = -0.00534505 Jy
! Component: 2000  -  total flux cleaned = -0.00523069 Jy
! Total flux subtracted in 2048 components = -0.00515541 Jy
! Clean residual min=-0.002313 max=0.002550 Jy/beam
! Clean residual mean=-0.000002 rms=0.000725 Jy/beam
! Combined flux in latest and established models = 0.546951 Jy
keep
! Adding 154 model components to the UV plane model.
! The established model now contains 254 components and 0.546951 Jy
![Exited script file: muppet]
wmap "J2249+2107_X_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9084 x 2.062 at -4.695 degrees (North through East)
! Clean map  min=-0.0038643  max=0.38207 Jy/beam
! Writing clean map to FITS file: J2249+2107_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.382066 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000723037 
device "J2249+2107_X_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J2249+2107_X_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.567732 0.567732 1.13546 2.27093 4.54185 9.08371 18.1674 36.3348 72.6696
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.382 
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.9084 x 2.062 at -4.695 degrees (North through East)
! Clean map  min=-0.0038643  max=0.38207 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2249+2107_X_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J2249+2107_X_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2249+2107_X_1996_03_13_yyk_uvs.log closed on Mon Jan  8 10:43:54 2007