! Started logfile: J1822+1600_S_1996_03_13_yyk_uvs.log on Sun Jan  7 19:29:13 2007
obs J1822+1600_S_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J1822+1600_S_1996_03_13_yyk_uva.fits
! AN table 1: 121 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.81506 visibilities/baseline/integration-bin.
! Found source: J1822+1600
! 
! 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.22049e+09        4e+06          1        4e+06
!  02        2  2.23236e+09        4e+06          1        4e+06
!  03        3  2.29236e+09        4e+06          1        4e+06
!  04        4  2.32236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 655 lines of history.
! 
! Reading 17752 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 J1822+1600_S_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.500x0.500 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.488834 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.872 mas, bmaj=7.124 mas, bpa=-3.098 degrees
! Estimated noise=1446.99 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.255105 Jy
! Component: 100  -  total flux cleaned = 0.311248 Jy
! Total flux subtracted in 100 components = 0.311248 Jy
! Clean residual min=-0.018892 max=0.022853 Jy/beam
! Clean residual mean=0.000020 rms=0.005057 Jy/beam
! Combined flux in latest and established models = 0.311248 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.311248 Jy
! 
! Correcting IF 1.
!  A total of 144 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 144 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 144 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 160 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.378762Jy  sigma=0.001795
! Fit after  self-cal, rms=0.376257Jy  sigma=0.001787
! Inverting map and beam 
! Estimated beam: bmin=2.872 mas, bmaj=7.124 mas, bpa=-3.098 degrees
! Estimated noise=1447.08 mJy/beam.
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.705 mas, bmaj=8.375 mas, bpa=-4.681 degrees
! Estimated noise=1006.71 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.0293157 Jy
! Component: 100  -  total flux cleaned = 0.0369404 Jy
! Component: 150  -  total flux cleaned = 0.0372298 Jy
! Component: 200  -  total flux cleaned = 0.0376927 Jy
! Total flux subtracted in 200 components = 0.0376927 Jy
! Clean residual min=-0.013070 max=0.020431 Jy/beam
! Clean residual mean=0.000068 rms=0.005255 Jy/beam
! Combined flux in latest and established models = 0.34894 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 33 components and 0.34894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374563Jy  sigma=0.001778
! Fit after  self-cal, rms=0.374431Jy  sigma=0.001778
! 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.705 x 8.375 at -4.681 degrees (North through East)
! Clean map  min=-0.012636  max=0.2961 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01154
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.03     HN        1.04     KP        0.90     
!   LA        0.86     MK        0.91     NL        0.87     OV        1.66     
!   PT        0.90     SC        0.79     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.968068
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.11     HN        1.07     KP        0.98     
!   LA        0.95     MK        1.00     NL        0.95     OV        1.47     
!   PT        0.90     SC        0.90     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01193
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.06     HN        0.97     KP        0.91     
!   LA        0.76     MK        0.85     NL        0.94     OV        1.37     
!   PT        1.02     SC        1.06     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.983927
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.09     HN        1.03     KP        1.03     
!   LA        0.84     MK        1.10     NL        1.07     OV        1.14     
!   PT        0.92     SC        1.00     
! 
! 
! Fit before self-cal, rms=0.374431Jy  sigma=0.001778
! Fit after  self-cal, rms=0.384351Jy  sigma=0.001754
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.384351Jy  sigma=0.001754
! Fit after  self-cal, rms=0.384387Jy  sigma=0.001754
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.656 mas, bmaj=8.241 mas, bpa=-3.921 degrees
! Estimated noise=970.01 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.00129139 Jy
! Component: 100  -  total flux cleaned = -0.00183489 Jy
! Component: 150  -  total flux cleaned = -0.00182369 Jy
! Component: 200  -  total flux cleaned = -0.00182446 Jy
! Total flux subtracted in 200 components = -0.00182446 Jy
! Clean residual min=-0.009043 max=0.013463 Jy/beam
! Clean residual mean=-0.000136 rms=0.002948 Jy/beam
! Combined flux in latest and established models = 0.347116 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 45 components and 0.347116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384289Jy  sigma=0.001753
! Fit after  self-cal, rms=0.384260Jy  sigma=0.001753
! 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.384260Jy  sigma=0.001753
! Fit after  self-cal, rms=0.383763Jy  sigma=0.001750
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 (-17.5, -22).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0148483 Jy
! Component: 100  -  total flux cleaned = 0.0182449 Jy
! Component: 150  -  total flux cleaned = 0.0188899 Jy
! Component: 200  -  total flux cleaned = 0.0190753 Jy
! Total flux subtracted in 200 components = 0.0190753 Jy
! Clean residual min=-0.008703 max=0.010243 Jy/beam
! Clean residual mean=-0.000136 rms=0.002650 Jy/beam
! Combined flux in latest and established models = 0.366191 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 73 components and 0.366191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383056Jy  sigma=0.001747
! Fit after  self-cal, rms=0.382924Jy  sigma=0.001746
! 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.656 x 8.241 at -3.921 degrees (North through East)
! Clean map  min=-0.0083293  max=0.29113 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.382924Jy  sigma=0.001746
! Fit after  self-cal, rms=2.849225Jy  sigma=0.001720
! 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=2.849225Jy  sigma=0.001720
! Fit after  self-cal, rms=2.848612Jy  sigma=0.001720
! Inverting map and beam 
! Estimated beam: bmin=3.655 mas, bmaj=8.268 mas, bpa=-3.935 degrees
! Estimated noise=952.759 mJy/beam.
! Added new window around map position (-4.5, -4.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00693578 Jy
! Component: 100  -  total flux cleaned = 0.0081362 Jy
! Component: 150  -  total flux cleaned = 0.00880309 Jy
! Component: 200  -  total flux cleaned = 0.00924907 Jy
! Total flux subtracted in 200 components = 0.00924907 Jy
! Clean residual min=-0.005716 max=0.006036 Jy/beam
! Clean residual mean=-0.000073 rms=0.001485 Jy/beam
! Combined flux in latest and established models = 0.37544 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 95 components and 0.37544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.848605Jy  sigma=0.001719
! Fit after  self-cal, rms=2.848276Jy  sigma=0.001719
! 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=2.848276Jy  sigma=0.001719
! Fit after  self-cal, rms=1.979205Jy  sigma=0.001717
! 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=1.979205Jy  sigma=0.001717
! Fit after  self-cal, rms=1.978662Jy  sigma=0.001717
! Inverting map and beam 
! Estimated beam: bmin=3.652 mas, bmaj=8.225 mas, bpa=-3.659 degrees
! Estimated noise=957.71 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00323532 Jy
! Component: 100  -  total flux cleaned = 0.00348377 Jy
! Component: 150  -  total flux cleaned = 0.00381904 Jy
! Component: 200  -  total flux cleaned = 0.00401897 Jy
! Total flux subtracted in 200 components = 0.00401897 Jy
! Clean residual min=-0.005305 max=0.005837 Jy/beam
! Clean residual mean=-0.000067 rms=0.001409 Jy/beam
! Combined flux in latest and established models = 0.379459 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 111 components and 0.379459 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.978649Jy  sigma=0.001716
! Fit after  self-cal, rms=1.977303Jy  sigma=0.001716
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=8.129 mas, bmaj=10.73 mas, bpa=-2.864 degrees
! Estimated noise=1157.58 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.00189365 Jy
! Component: 100  -  total flux cleaned = -0.00189233 Jy
! Component: 150  -  total flux cleaned = -0.00197481 Jy
! Component: 200  -  total flux cleaned = -0.00204472 Jy
! Total flux subtracted in 200 components = -0.00204472 Jy
! Clean residual min=-0.006064 max=0.005404 Jy/beam
! Clean residual mean=-0.000110 rms=0.001621 Jy/beam
! Combined flux in latest and established models = 0.377414 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 124 components and 0.377414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.977320Jy  sigma=0.001716
! Fit after  self-cal, rms=1.976580Jy  sigma=0.001716
! 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.837 mas, bmaj=7.02 mas, bpa=-2.338 degrees
! Estimated noise=1389.29 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.249274 Jy
! Component: 100  -  total flux cleaned = 0.309425 Jy
! Component: 150  -  total flux cleaned = 0.337172 Jy
! Component: 200  -  total flux cleaned = 0.352393 Jy
! Total flux subtracted in 200 components = 0.352393 Jy
! Clean residual min=-0.007868 max=0.008206 Jy/beam
! Clean residual mean=-0.000008 rms=0.002270 Jy/beam
! Combined flux in latest and established models = 0.352393 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 30 model components to the UV plane model.
! The established model now contains 30 components and 0.352393 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.652 mas, bmaj=8.225 mas, bpa=-3.659 degrees
! Estimated noise=957.71 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.0120073 Jy
! Component: 100  -  total flux cleaned = 0.0194593 Jy
! Component: 150  -  total flux cleaned = 0.0217644 Jy
! Component: 200  -  total flux cleaned = 0.0223458 Jy
! Total flux subtracted in 200 components = 0.0223458 Jy
! Clean residual min=-0.005816 max=0.005648 Jy/beam
! Clean residual mean=-0.000070 rms=0.001512 Jy/beam
! Combined flux in latest and established models = 0.374739 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 62 components and 0.374739 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=8.129 mas, bmaj=10.73 mas, bpa=-2.864 degrees
! Estimated noise=1157.58 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.00228243 Jy
! Component: 100  -  total flux cleaned = 0.00239772 Jy
! Component: 150  -  total flux cleaned = 0.00251213 Jy
! Component: 200  -  total flux cleaned = 0.00251332 Jy
! Total flux subtracted in 200 components = 0.00251332 Jy
! Clean residual min=-0.006407 max=0.005249 Jy/beam
! Clean residual mean=-0.000120 rms=0.001629 Jy/beam
! Combined flux in latest and established models = 0.377252 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 93 components and 0.377252 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.652 mas, bmaj=8.225 mas, bpa=-3.659 degrees
! Estimated noise=957.71 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 7.72572e-05 Jy
! Component: 100  -  total flux cleaned = 6.71284e-05 Jy
! Component: 150  -  total flux cleaned = 0.00019285 Jy
! Component: 200  -  total flux cleaned = 0.000535561 Jy
! Total flux subtracted in 200 components = 0.000535561 Jy
! Clean residual min=-0.005241 max=0.005242 Jy/beam
! Clean residual mean=-0.000065 rms=0.001391 Jy/beam
! Combined flux in latest and established models = 0.377788 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 111 components and 0.377788 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.976599Jy  sigma=0.001716
! Fit after  self-cal, rms=1.976259Jy  sigma=0.001716
wmodel J1822+1600_S_1996_03_13_yyk\_map.mod
! Writing 111 model components to file: J1822+1600_S_1996_03_13_yyk_map.mod
wobs J1822+1600_S_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J1822+1600_S_1996_03_13_yyk_uvs.fits
wwins J1822+1600_S_1996_03_13_yyk\_map.win
! wwins: Wrote 3 windows to J1822+1600_S_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.000817102 Jy
! Component: 100  -  total flux cleaned = -0.000730303 Jy
! Component: 150  -  total flux cleaned = -0.00106474 Jy
! Component: 200  -  total flux cleaned = -0.00114383 Jy
! Component: 250  -  total flux cleaned = -0.00129661 Jy
! Component: 300  -  total flux cleaned = -0.00158981 Jy
! Component: 350  -  total flux cleaned = -0.00187518 Jy
! Component: 400  -  total flux cleaned = -0.00250139 Jy
! Component: 450  -  total flux cleaned = -0.00297526 Jy
! Component: 500  -  total flux cleaned = -0.00337185 Jy
! Component: 550  -  total flux cleaned = -0.00376034 Jy
! Component: 600  -  total flux cleaned = -0.00407752 Jy
! Component: 650  -  total flux cleaned = -0.00438843 Jy
! Component: 700  -  total flux cleaned = -0.00463172 Jy
! Component: 750  -  total flux cleaned = -0.00492985 Jy
! Component: 800  -  total flux cleaned = -0.00498883 Jy
! Component: 850  -  total flux cleaned = -0.00527727 Jy
! Component: 900  -  total flux cleaned = -0.00550334 Jy
! Component: 950  -  total flux cleaned = -0.00578084 Jy
! Component: 1000  -  total flux cleaned = -0.00605392 Jy
! Component: 1050  -  total flux cleaned = -0.00621558 Jy
! Component: 1100  -  total flux cleaned = -0.00648078 Jy
! Component: 1150  -  total flux cleaned = -0.00669038 Jy
! Component: 1200  -  total flux cleaned = -0.00694805 Jy
! Component: 1250  -  total flux cleaned = -0.00715141 Jy
! Component: 1300  -  total flux cleaned = -0.00745169 Jy
! Component: 1350  -  total flux cleaned = -0.00760024 Jy
! Component: 1400  -  total flux cleaned = -0.00784449 Jy
! Component: 1450  -  total flux cleaned = -0.00803751 Jy
! Component: 1500  -  total flux cleaned = -0.00818084 Jy
! Component: 1550  -  total flux cleaned = -0.00850985 Jy
! Component: 1600  -  total flux cleaned = -0.00860274 Jy
! Component: 1650  -  total flux cleaned = -0.00874135 Jy
! Component: 1700  -  total flux cleaned = -0.00901396 Jy
! Component: 1750  -  total flux cleaned = -0.00914881 Jy
! Component: 1800  -  total flux cleaned = -0.00923728 Jy
! Component: 1850  -  total flux cleaned = -0.0093692 Jy
! Component: 1900  -  total flux cleaned = -0.00954436 Jy
! Component: 1950  -  total flux cleaned = -0.00976096 Jy
! Component: 2000  -  total flux cleaned = -0.0100177 Jy
! Total flux subtracted in 2048 components = -0.010187 Jy
! Clean residual min=-0.002110 max=0.002943 Jy/beam
! Clean residual mean=-0.000042 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 0.367601 Jy
keep
! Adding 133 model components to the UV plane model.
! The established model now contains 244 components and 0.367601 Jy
![Exited script file: muppet]
wmap "J1822+1600_S_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.652 x 8.225 at -3.659 degrees (North through East)
! Clean map  min=-0.0046117  max=0.2892 Jy/beam
! Writing clean map to FITS file: J1822+1600_S_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.289199 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000879877 
device "J1822+1600_S_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J1822+1600_S_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.912737 0.912737 1.82547 3.65095 7.3019 14.6038 29.2076 58.4152
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.289 
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.652 x 8.225 at -3.659 degrees (North through East)
! Clean map  min=-0.0046117  max=0.2892 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1822+1600_S_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J1822+1600_S_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1822+1600_S_1996_03_13_yyk_uvs.log closed on Sun Jan  7 19:29:20 2007