! Started logfile: J2157+1014_X_1995_07_15_yyk_uvs.log on Mon Jan  8 10:30:59 2007
obs J2157+1014_X_1995_07_15_yyk_uva.fits
! Reading UV FITS file: J2157+1014_X_1995_07_15_yyk_uva.fits
! AN table 1: 117 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.775119 visibilities/baseline/integration-bin.
! Found source: J2157+1014
! 
! 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 788 lines of history.
! 
! Reading 16324 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 J2157+1014_X_1995_07_15_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.356192 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.7181 mas, bmaj=1.813 mas, bpa=-0.2444 degrees
! Estimated noise=1281.61 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.183344 Jy
! Component: 100  -  total flux cleaned = 0.224962 Jy
! Total flux subtracted in 100 components = 0.224962 Jy
! Clean residual min=-0.014659 max=0.025778 Jy/beam
! Clean residual mean=-0.000032 rms=0.003895 Jy/beam
! Combined flux in latest and established models = 0.224962 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.224962 Jy
! 
! Correcting IF 1.
!  A total of 203 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 203 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 204 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 205 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.270611Jy  sigma=0.001731
! Fit after  self-cal, rms=0.266658Jy  sigma=0.001719
! Inverting map and beam 
! Estimated beam: bmin=0.7181 mas, bmaj=1.813 mas, bpa=-0.2445 degrees
! Estimated noise=1281.73 mJy/beam.
! Added new window around map position (1, 0.8).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0345328 Jy
! Component: 100  -  total flux cleaned = 0.0519681 Jy
! Total flux subtracted in 100 components = 0.0519681 Jy
! Clean residual min=-0.010931 max=0.010178 Jy/beam
! Clean residual mean=-0.000002 rms=0.002565 Jy/beam
! Combined flux in latest and established models = 0.27693 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 0.27693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262738Jy  sigma=0.001689
! Fit after  self-cal, rms=0.262554Jy  sigma=0.001688
! 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.8573 mas, bmaj=2.115 mas, bpa=-3.614 degrees
! Estimated noise=808.532 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.0147571 Jy
! Component: 100  -  total flux cleaned = 0.0211795 Jy
! Component: 150  -  total flux cleaned = 0.0246929 Jy
! Component: 200  -  total flux cleaned = 0.0256796 Jy
! Total flux subtracted in 200 components = 0.0256796 Jy
! Clean residual min=-0.005969 max=0.006052 Jy/beam
! Clean residual mean=0.000002 rms=0.001543 Jy/beam
! Combined flux in latest and established models = 0.302609 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 29 components and 0.302609 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262013Jy  sigma=0.001684
! Fit after  self-cal, rms=0.261974Jy  sigma=0.001684
! 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.8573 x 2.115 at -3.614 degrees (North through East)
! Clean map  min=-0.0052388  max=0.22434 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00211
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.01     HN        0.92     KP        1.02     
!   LA        0.97     MK        1.03     NL        1.01     OV        0.99     
!   PT        1.05     SC        0.92     
! 
! 
! Correcting IF 2.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00094
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.96     HN        0.94     KP        1.05     
!   LA        0.95     MK        1.04     NL        0.99     OV        1.02     
!   PT        0.99     SC        1.09     
! 
! 
! Correcting IF 3.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00751
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     HN        1.01     KP        1.00     
!   LA        0.91     MK        0.98     NL        1.00     OV        1.02     
!   PT        1.01     SC        1.01     
! 
! 
! Correcting IF 4.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.998121
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     HN        1.04     KP        1.08     
!   LA        0.91     MK        0.98     NL        1.02     OV        0.99     
!   PT        1.00     SC        0.98     
! 
! 
! Fit before self-cal, rms=0.261974Jy  sigma=0.001684
! Fit after  self-cal, rms=0.261999Jy  sigma=0.001681
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.261999Jy  sigma=0.001681
! Fit after  self-cal, rms=0.261997Jy  sigma=0.001681
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8544 mas, bmaj=2.112 mas, bpa=-3.563 degrees
! Estimated noise=812.052 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.00148775 Jy
! Component: 100  -  total flux cleaned = 0.00156196 Jy
! Component: 150  -  total flux cleaned = 0.00161526 Jy
! Component: 200  -  total flux cleaned = 0.0016147 Jy
! Total flux subtracted in 200 components = 0.0016147 Jy
! Clean residual min=-0.005364 max=0.004717 Jy/beam
! Clean residual mean=0.000004 rms=0.001330 Jy/beam
! Combined flux in latest and established models = 0.304224 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 43 components and 0.304224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261965Jy  sigma=0.001681
! Fit after  self-cal, rms=0.261954Jy  sigma=0.001681
! 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.261954Jy  sigma=0.001681
! Fit after  self-cal, rms=0.261016Jy  sigma=0.001674
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.000924737 Jy
! Component: 100  -  total flux cleaned = 0.00122155 Jy
! Component: 150  -  total flux cleaned = 0.00122463 Jy
! Component: 200  -  total flux cleaned = 0.00126387 Jy
! Total flux subtracted in 200 components = 0.00126387 Jy
! Clean residual min=-0.005177 max=0.004574 Jy/beam
! Clean residual mean=0.000003 rms=0.001319 Jy/beam
! Combined flux in latest and established models = 0.305488 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 46 components and 0.305488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261000Jy  sigma=0.001674
! Fit after  self-cal, rms=0.260715Jy  sigma=0.001672
! 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.8544 x 2.112 at -3.563 degrees (North through East)
! Clean map  min=-0.0047757  max=0.22487 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.260715Jy  sigma=0.001672
! Fit after  self-cal, rms=0.268980Jy  sigma=0.001670
! 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.268980Jy  sigma=0.001670
! Fit after  self-cal, rms=0.268880Jy  sigma=0.001669
! Inverting map and beam 
! Estimated beam: bmin=0.8551 mas, bmaj=2.105 mas, bpa=-3.407 degrees
! Estimated noise=807.428 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000307922 Jy
! Component: 100  -  total flux cleaned = -0.00041632 Jy
! Component: 150  -  total flux cleaned = -0.000374729 Jy
! Component: 200  -  total flux cleaned = -0.000303705 Jy
! Total flux subtracted in 200 components = -0.000303705 Jy
! Clean residual min=-0.005043 max=0.004437 Jy/beam
! Clean residual mean=0.000006 rms=0.001217 Jy/beam
! Combined flux in latest and established models = 0.305184 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 54 components and 0.305184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268863Jy  sigma=0.001669
! Fit after  self-cal, rms=0.268817Jy  sigma=0.001669
! 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.268817Jy  sigma=0.001669
! Fit after  self-cal, rms=0.272780Jy  sigma=0.001667
! 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.272780Jy  sigma=0.001667
! Fit after  self-cal, rms=0.272769Jy  sigma=0.001667
! Inverting map and beam 
! Estimated beam: bmin=0.8563 mas, bmaj=2.108 mas, bpa=-3.474 degrees
! Estimated noise=811.077 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00166605 Jy
! Component: 100  -  total flux cleaned = 0.00171411 Jy
! Component: 150  -  total flux cleaned = 0.00171676 Jy
! Component: 200  -  total flux cleaned = 0.00171777 Jy
! Total flux subtracted in 200 components = 0.00171777 Jy
! Clean residual min=-0.005149 max=0.004445 Jy/beam
! Clean residual mean=0.000004 rms=0.001223 Jy/beam
! Combined flux in latest and established models = 0.306902 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 63 components and 0.306902 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272757Jy  sigma=0.001667
! Fit after  self-cal, rms=0.272753Jy  sigma=0.001667
! 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.118 mas, bmaj=3.183 mas, bpa=-3.096 degrees
! Estimated noise=1065.23 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.000879004 Jy
! Component: 100  -  total flux cleaned = 0.00101811 Jy
! Component: 150  -  total flux cleaned = 0.00109809 Jy
! Component: 200  -  total flux cleaned = 0.0011199 Jy
! Total flux subtracted in 200 components = 0.0011199 Jy
! Clean residual min=-0.005840 max=0.005015 Jy/beam
! Clean residual mean=0.000009 rms=0.001546 Jy/beam
! Combined flux in latest and established models = 0.308022 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 67 components and 0.308022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272753Jy  sigma=0.001667
! Fit after  self-cal, rms=0.272752Jy  sigma=0.001667
! 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.7182 mas, bmaj=1.814 mas, bpa=-0.1694 degrees
! Estimated noise=1279.11 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.195691 Jy
! Component: 100  -  total flux cleaned = 0.248285 Jy
! Component: 150  -  total flux cleaned = 0.274822 Jy
! Component: 200  -  total flux cleaned = 0.288984 Jy
! Total flux subtracted in 200 components = 0.288984 Jy
! Clean residual min=-0.009470 max=0.008048 Jy/beam
! Clean residual mean=-0.000010 rms=0.002189 Jy/beam
! Combined flux in latest and established models = 0.288984 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.288984 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8563 mas, bmaj=2.108 mas, bpa=-3.474 degrees
! Estimated noise=811.077 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.0103743 Jy
! Component: 100  -  total flux cleaned = 0.0149179 Jy
! Component: 150  -  total flux cleaned = 0.016017 Jy
! Component: 200  -  total flux cleaned = 0.016916 Jy
! Total flux subtracted in 200 components = 0.016916 Jy
! Clean residual min=-0.005389 max=0.004408 Jy/beam
! Clean residual mean=0.000004 rms=0.001246 Jy/beam
! Combined flux in latest and established models = 0.3059 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 34 components and 0.3059 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.118 mas, bmaj=3.183 mas, bpa=-3.096 degrees
! Estimated noise=1065.23 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.00218892 Jy
! Component: 100  -  total flux cleaned = 0.00223669 Jy
! Component: 150  -  total flux cleaned = 0.0022791 Jy
! Component: 200  -  total flux cleaned = 0.00231645 Jy
! Total flux subtracted in 200 components = 0.00231645 Jy
! Clean residual min=-0.005924 max=0.005013 Jy/beam
! Clean residual mean=0.000011 rms=0.001562 Jy/beam
! Combined flux in latest and established models = 0.308216 Jy
! Adding 11 model components to the UV plane model.
! The established model now contains 40 components and 0.308216 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8563 mas, bmaj=2.108 mas, bpa=-3.474 degrees
! Estimated noise=811.077 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000904988 Jy
! Component: 100  -  total flux cleaned = -0.00102189 Jy
! Component: 150  -  total flux cleaned = -0.00106993 Jy
! Component: 200  -  total flux cleaned = -0.00111354 Jy
! Total flux subtracted in 200 components = -0.00111354 Jy
! Clean residual min=-0.005382 max=0.004448 Jy/beam
! Clean residual mean=0.000004 rms=0.001229 Jy/beam
! Combined flux in latest and established models = 0.307103 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 49 components and 0.307103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272768Jy  sigma=0.001667
! Fit after  self-cal, rms=0.272767Jy  sigma=0.001667
wmodel J2157+1014_X_1995_07_15_yyk\_map.mod
! Writing 49 model components to file: J2157+1014_X_1995_07_15_yyk_map.mod
wobs J2157+1014_X_1995_07_15_yyk\_uvs.fits
! Writing UV FITS file: J2157+1014_X_1995_07_15_yyk_uvs.fits
wwins J2157+1014_X_1995_07_15_yyk\_map.win
! wwins: Wrote 2 windows to J2157+1014_X_1995_07_15_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.00186797 Jy
! Component: 100  -  total flux cleaned = -0.00285298 Jy
! Component: 150  -  total flux cleaned = -0.00378903 Jy
! Component: 200  -  total flux cleaned = -0.00476483 Jy
! Component: 250  -  total flux cleaned = -0.00570643 Jy
! Component: 300  -  total flux cleaned = -0.00640929 Jy
! Component: 350  -  total flux cleaned = -0.00675031 Jy
! Component: 400  -  total flux cleaned = -0.00728206 Jy
! Component: 450  -  total flux cleaned = -0.00773691 Jy
! Component: 500  -  total flux cleaned = -0.0081171 Jy
! Component: 550  -  total flux cleaned = -0.0083661 Jy
! Component: 600  -  total flux cleaned = -0.00867134 Jy
! Component: 650  -  total flux cleaned = -0.00878976 Jy
! Component: 700  -  total flux cleaned = -0.00890812 Jy
! Component: 750  -  total flux cleaned = -0.00902383 Jy
! Component: 800  -  total flux cleaned = -0.00896809 Jy
! Component: 850  -  total flux cleaned = -0.00913639 Jy
! Component: 900  -  total flux cleaned = -0.00897137 Jy
! Component: 950  -  total flux cleaned = -0.00891799 Jy
! Component: 1000  -  total flux cleaned = -0.00891811 Jy
! Component: 1050  -  total flux cleaned = -0.00891759 Jy
! Component: 1100  -  total flux cleaned = -0.00876171 Jy
! Component: 1150  -  total flux cleaned = -0.00886467 Jy
! Component: 1200  -  total flux cleaned = -0.00871288 Jy
! Component: 1250  -  total flux cleaned = -0.00876287 Jy
! Component: 1300  -  total flux cleaned = -0.00881227 Jy
! Component: 1350  -  total flux cleaned = -0.00905465 Jy
! Component: 1400  -  total flux cleaned = -0.00915048 Jy
! Component: 1450  -  total flux cleaned = -0.00929197 Jy
! Component: 1500  -  total flux cleaned = -0.00933913 Jy
! Component: 1550  -  total flux cleaned = -0.00938525 Jy
! Component: 1600  -  total flux cleaned = -0.00933991 Jy
! Component: 1650  -  total flux cleaned = -0.00938542 Jy
! Component: 1700  -  total flux cleaned = -0.00947471 Jy
! Component: 1750  -  total flux cleaned = -0.00951853 Jy
! Component: 1800  -  total flux cleaned = -0.00938634 Jy
! Component: 1850  -  total flux cleaned = -0.0094296 Jy
! Component: 1900  -  total flux cleaned = -0.00925764 Jy
! Component: 1950  -  total flux cleaned = -0.00934256 Jy
! Component: 2000  -  total flux cleaned = -0.00921729 Jy
! Total flux subtracted in 2048 components = -0.00930024 Jy
! Clean residual min=-0.002326 max=0.002238 Jy/beam
! Clean residual mean=-0.000000 rms=0.000787 Jy/beam
! Combined flux in latest and established models = 0.297802 Jy
keep
! Adding 131 model components to the UV plane model.
! The established model now contains 180 components and 0.297802 Jy
![Exited script file: muppet]
wmap "J2157+1014_X_1995_07_15_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8563 x 2.108 at -3.474 degrees (North through East)
! Clean map  min=-0.0040845  max=0.22411 Jy/beam
! Writing clean map to FITS file: J2157+1014_X_1995_07_15_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.224105 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000787131 
device "J2157+1014_X_1995_07_15_yyk\_map.eps/VPS"
! Attempting to open device: 'J2157+1014_X_1995_07_15_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.0537 1.0537 2.10739 4.21479 8.42958 16.8592 33.7183 67.4366
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.224 
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.8563 x 2.108 at -3.474 degrees (North through East)
! Clean map  min=-0.0040845  max=0.22411 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2157+1014_X_1995_07_15_yyk\_map.gif/gif"
! Attempting to open device: 'J2157+1014_X_1995_07_15_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2157+1014_X_1995_07_15_yyk_uvs.log closed on Mon Jan  8 10:31:06 2007