! Started logfile: J2243-2544_X_1997_07_02_yyk_uvs.log on Mon Jan  8 10:41:52 2007
obs J2243-2544_X_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J2243-2544_X_1997_07_02_yyk_uva.fits
! AN table 1: 135 integrations on 45 of 45 possible baselines.
! Apparent sampling: 1.19226 visibilities/baseline/integration-bin.
! Found source: J2243-2544
! 
! 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.15447e+09        8e+06          1        8e+06
!  02        2  8.23447e+09        8e+06          1        8e+06
!  03        3  8.41447e+09        8e+06          1        8e+06
!  04        4  8.55447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 753 lines of history.
! 
! Reading 28972 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 J2243-2544_X_1997_07_02_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.407487 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.6959 mas, bmaj=1.997 mas, bpa=-8.063 degrees
! Estimated noise=995.994 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.250173 Jy
! Component: 100  -  total flux cleaned = 0.320204 Jy
! Total flux subtracted in 100 components = 0.320204 Jy
! Clean residual min=-0.021800 max=0.033662 Jy/beam
! Clean residual mean=-0.000048 rms=0.005486 Jy/beam
! Combined flux in latest and established models = 0.320204 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.320204 Jy
! 
! Correcting IF 1.
!  A total of 228 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 228 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 228 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 228 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.248423Jy  sigma=0.001923
! Fit after  self-cal, rms=0.247493Jy  sigma=0.001916
! Inverting map and beam 
! Estimated beam: bmin=0.6959 mas, bmaj=1.997 mas, bpa=-8.062 degrees
! Estimated noise=996.74 mJy/beam.
! Added new window around map position (1.8, -2.4).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0451245 Jy
! Component: 100  -  total flux cleaned = 0.0689044 Jy
! Total flux subtracted in 100 components = 0.0689044 Jy
! Clean residual min=-0.016884 max=0.021098 Jy/beam
! Clean residual mean=-0.000080 rms=0.003525 Jy/beam
! Combined flux in latest and established models = 0.389108 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 0.389108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238801Jy  sigma=0.001824
! Fit after  self-cal, rms=0.238168Jy  sigma=0.001819
! 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.8743 mas, bmaj=2.4 mas, bpa=-9.021 degrees
! Estimated noise=663.011 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.0386448 Jy
! Component: 100  -  total flux cleaned = 0.0596329 Jy
! Component: 150  -  total flux cleaned = 0.0722288 Jy
! Component: 200  -  total flux cleaned = 0.0798565 Jy
! Total flux subtracted in 200 components = 0.0798565 Jy
! Clean residual min=-0.013186 max=0.016941 Jy/beam
! Clean residual mean=-0.000399 rms=0.003987 Jy/beam
! Combined flux in latest and established models = 0.468965 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 41 components and 0.468965 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235218Jy  sigma=0.001779
! Fit after  self-cal, rms=0.234921Jy  sigma=0.001776
! 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.8743 x 2.4 at -9.021 degrees (North through East)
! Clean map  min=-0.010634  max=0.28919 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: 0.988984
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.06     HN        0.99     KP        0.97     
!   LA        0.99     MK        1.06     NL        1.15     OV        0.99     
!   PT        0.89     SC        0.95     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.99655
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.06     HN        0.99     KP        0.97     
!   LA        0.97     MK        0.97     NL        1.12     OV        1.06     
!   PT        0.86     SC        0.99     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.972262
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.09     HN        1.10     KP        0.96     
!   LA        0.97     MK        0.99     NL        1.17     OV        0.96     
!   PT        0.93     SC        1.04     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.979405
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.06     HN        1.03     KP        0.95     
!   LA        0.98     MK        0.98     NL        1.19     OV        1.01     
!   PT        0.91     SC        1.02     
! 
! 
! Fit before self-cal, rms=0.234921Jy  sigma=0.001776
! Fit after  self-cal, rms=0.238906Jy  sigma=0.001759
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.238906Jy  sigma=0.001759
! Fit after  self-cal, rms=0.238911Jy  sigma=0.001759
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8794 mas, bmaj=2.415 mas, bpa=-8.812 degrees
! Estimated noise=645.674 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.0114597 Jy
! Component: 100  -  total flux cleaned = -0.0163816 Jy
! Component: 150  -  total flux cleaned = -0.0172139 Jy
! Component: 200  -  total flux cleaned = -0.0175839 Jy
! Total flux subtracted in 200 components = -0.0175839 Jy
! Clean residual min=-0.005732 max=0.008307 Jy/beam
! Clean residual mean=-0.000181 rms=0.002064 Jy/beam
! Combined flux in latest and established models = 0.451381 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 49 components and 0.451381 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238378Jy  sigma=0.001755
! Fit after  self-cal, rms=0.238363Jy  sigma=0.001755
! 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.238363Jy  sigma=0.001755
! Fit after  self-cal, rms=0.225413Jy  sigma=0.001656
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.0051244 Jy
! Component: 100  -  total flux cleaned = 0.00618756 Jy
! Component: 150  -  total flux cleaned = 0.0064505 Jy
! Component: 200  -  total flux cleaned = 0.00656618 Jy
! Total flux subtracted in 200 components = 0.00656618 Jy
! Clean residual min=-0.006662 max=0.009522 Jy/beam
! Clean residual mean=-0.000141 rms=0.002118 Jy/beam
! Combined flux in latest and established models = 0.457947 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 54 components and 0.457947 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225229Jy  sigma=0.001654
! Fit after  self-cal, rms=0.222551Jy  sigma=0.001633
! Inverting map 
! Added new window around map position (-2.6, 16.6).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0106653 Jy
! Component: 100  -  total flux cleaned = 0.0158132 Jy
! Component: 150  -  total flux cleaned = 0.0179398 Jy
! Component: 200  -  total flux cleaned = 0.0187056 Jy
! Total flux subtracted in 200 components = 0.0187056 Jy
! Clean residual min=-0.006007 max=0.006121 Jy/beam
! Clean residual mean=-0.000115 rms=0.001672 Jy/beam
! Combined flux in latest and established models = 0.476653 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 80 components and 0.476653 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222211Jy  sigma=0.001629
! Fit after  self-cal, rms=0.221366Jy  sigma=0.001623
! 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.8794 x 2.415 at -8.812 degrees (North through East)
! Clean map  min=-0.0054172  max=0.29471 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.221366Jy  sigma=0.001623
! Fit after  self-cal, rms=0.220803Jy  sigma=0.001618
! 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.220803Jy  sigma=0.001618
! Fit after  self-cal, rms=0.220441Jy  sigma=0.001615
! Inverting map and beam 
! Estimated beam: bmin=0.8783 mas, bmaj=2.403 mas, bpa=-8.57 degrees
! Estimated noise=639.682 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000652321 Jy
! Component: 100  -  total flux cleaned = 0.00126092 Jy
! Component: 150  -  total flux cleaned = 0.00150929 Jy
! Component: 200  -  total flux cleaned = 0.00173294 Jy
! Total flux subtracted in 200 components = 0.00173294 Jy
! Clean residual min=-0.004892 max=0.005130 Jy/beam
! Clean residual mean=-0.000081 rms=0.001394 Jy/beam
! Combined flux in latest and established models = 0.478386 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 92 components and 0.478386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220365Jy  sigma=0.001614
! Fit after  self-cal, rms=0.220133Jy  sigma=0.001612
! 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.220133Jy  sigma=0.001612
! Fit after  self-cal, rms=0.220086Jy  sigma=0.001609
! 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.220086Jy  sigma=0.001609
! Fit after  self-cal, rms=0.219953Jy  sigma=0.001607
! Inverting map and beam 
! Estimated beam: bmin=0.8777 mas, bmaj=2.397 mas, bpa=-8.425 degrees
! Estimated noise=637.836 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -5.51804e-05 Jy
! Component: 100  -  total flux cleaned = -0.000116911 Jy
! Component: 150  -  total flux cleaned = -5.48999e-05 Jy
! Component: 200  -  total flux cleaned = 5.63972e-05 Jy
! Total flux subtracted in 200 components = 5.63972e-05 Jy
! Clean residual min=-0.004753 max=0.005229 Jy/beam
! Clean residual mean=-0.000074 rms=0.001351 Jy/beam
! Combined flux in latest and established models = 0.478442 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 97 components and 0.478442 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219916Jy  sigma=0.001607
! Fit after  self-cal, rms=0.219800Jy  sigma=0.001606
! 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.312 mas, bmaj=5.681 mas, bpa=-5.693 degrees
! Estimated noise=826.185 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.000543128 Jy
! Component: 100  -  total flux cleaned = 0.000486866 Jy
! Component: 150  -  total flux cleaned = 0.000483879 Jy
! Component: 200  -  total flux cleaned = 0.000398971 Jy
! Total flux subtracted in 200 components = 0.000398971 Jy
! Clean residual min=-0.005587 max=0.006371 Jy/beam
! Clean residual mean=-0.000149 rms=0.002059 Jy/beam
! Combined flux in latest and established models = 0.478841 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 101 components and 0.478841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219790Jy  sigma=0.001606
! Fit after  self-cal, rms=0.219691Jy  sigma=0.001605
! 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.6933 mas, bmaj=1.988 mas, bpa=-7.824 degrees
! Estimated noise=980.898 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.257633 Jy
! Component: 100  -  total flux cleaned = 0.3358 Jy
! Component: 150  -  total flux cleaned = 0.377632 Jy
! Component: 200  -  total flux cleaned = 0.402955 Jy
! Total flux subtracted in 200 components = 0.402955 Jy
! Clean residual min=-0.008700 max=0.011103 Jy/beam
! Clean residual mean=-0.000001 rms=0.002435 Jy/beam
! Combined flux in latest and established models = 0.402955 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 25 model components to the UV plane model.
! The established model now contains 25 components and 0.402955 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8777 mas, bmaj=2.397 mas, bpa=-8.425 degrees
! Estimated noise=637.836 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.0260366 Jy
! Component: 100  -  total flux cleaned = 0.0398013 Jy
! Component: 150  -  total flux cleaned = 0.0489691 Jy
! Component: 200  -  total flux cleaned = 0.0554147 Jy
! Total flux subtracted in 200 components = 0.0554147 Jy
! Clean residual min=-0.005112 max=0.005906 Jy/beam
! Clean residual mean=-0.000108 rms=0.001707 Jy/beam
! Combined flux in latest and established models = 0.45837 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 53 components and 0.45837 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.312 mas, bmaj=5.681 mas, bpa=-5.693 degrees
! Estimated noise=826.185 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.00736844 Jy
! Component: 100  -  total flux cleaned = 0.0115534 Jy
! Component: 150  -  total flux cleaned = 0.0135108 Jy
! Component: 200  -  total flux cleaned = 0.0143083 Jy
! Total flux subtracted in 200 components = 0.0143083 Jy
! Clean residual min=-0.005337 max=0.007104 Jy/beam
! Clean residual mean=-0.000168 rms=0.002191 Jy/beam
! Combined flux in latest and established models = 0.472678 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 75 components and 0.472678 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8777 mas, bmaj=2.397 mas, bpa=-8.425 degrees
! Estimated noise=637.836 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00127664 Jy
! Component: 100  -  total flux cleaned = -0.000854184 Jy
! Component: 150  -  total flux cleaned = -0.000487679 Jy
! Component: 200  -  total flux cleaned = -0.000240918 Jy
! Total flux subtracted in 200 components = -0.000240918 Jy
! Clean residual min=-0.004759 max=0.004881 Jy/beam
! Clean residual mean=-0.000086 rms=0.001435 Jy/beam
! Combined flux in latest and established models = 0.472437 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 92 components and 0.472437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219831Jy  sigma=0.001606
! Fit after  self-cal, rms=0.219733Jy  sigma=0.001605
wmodel J2243-2544_X_1997_07_02_yyk\_map.mod
! Writing 92 model components to file: J2243-2544_X_1997_07_02_yyk_map.mod
wobs J2243-2544_X_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J2243-2544_X_1997_07_02_yyk_uvs.fits
wwins J2243-2544_X_1997_07_02_yyk\_map.win
! wwins: Wrote 3 windows to J2243-2544_X_1997_07_02_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.00129111 Jy
! Component: 100  -  total flux cleaned = 0.00195488 Jy
! Component: 150  -  total flux cleaned = 0.00312374 Jy
! Component: 200  -  total flux cleaned = 0.00400356 Jy
! Component: 250  -  total flux cleaned = 0.00463081 Jy
! Component: 300  -  total flux cleaned = 0.00489772 Jy
! Component: 350  -  total flux cleaned = 0.00547152 Jy
! Component: 400  -  total flux cleaned = 0.00596063 Jy
! Component: 450  -  total flux cleaned = 0.0063156 Jy
! Component: 500  -  total flux cleaned = 0.00665857 Jy
! Component: 550  -  total flux cleaned = 0.00693329 Jy
! Component: 600  -  total flux cleaned = 0.00698496 Jy
! Component: 650  -  total flux cleaned = 0.00708817 Jy
! Component: 700  -  total flux cleaned = 0.0070877 Jy
! Component: 750  -  total flux cleaned = 0.00713689 Jy
! Component: 800  -  total flux cleaned = 0.00708892 Jy
! Component: 850  -  total flux cleaned = 0.00708905 Jy
! Component: 900  -  total flux cleaned = 0.00708891 Jy
! Component: 950  -  total flux cleaned = 0.00704367 Jy
! Component: 1000  -  total flux cleaned = 0.00708497 Jy
! Component: 1050  -  total flux cleaned = 0.00712717 Jy
! Component: 1100  -  total flux cleaned = 0.00720937 Jy
! Component: 1150  -  total flux cleaned = 0.00733106 Jy
! Component: 1200  -  total flux cleaned = 0.00748946 Jy
! Component: 1250  -  total flux cleaned = 0.00768292 Jy
! Component: 1300  -  total flux cleaned = 0.0077214 Jy
! Component: 1350  -  total flux cleaned = 0.00786952 Jy
! Component: 1400  -  total flux cleaned = 0.00797774 Jy
! Component: 1450  -  total flux cleaned = 0.00801269 Jy
! Component: 1500  -  total flux cleaned = 0.00790835 Jy
! Component: 1550  -  total flux cleaned = 0.0079091 Jy
! Component: 1600  -  total flux cleaned = 0.00787515 Jy
! Component: 1650  -  total flux cleaned = 0.0078101 Jy
! Component: 1700  -  total flux cleaned = 0.00768113 Jy
! Component: 1750  -  total flux cleaned = 0.00768196 Jy
! Component: 1800  -  total flux cleaned = 0.00761957 Jy
! Component: 1850  -  total flux cleaned = 0.00758811 Jy
! Component: 1900  -  total flux cleaned = 0.00755772 Jy
! Component: 1950  -  total flux cleaned = 0.00758745 Jy
! Component: 2000  -  total flux cleaned = 0.00758739 Jy
! Total flux subtracted in 2048 components = 0.0075582 Jy
! Clean residual min=-0.001595 max=0.001710 Jy/beam
! Clean residual mean=-0.000013 rms=0.000553 Jy/beam
! Combined flux in latest and established models = 0.479996 Jy
keep
! Adding 137 model components to the UV plane model.
! The established model now contains 229 components and 0.479995 Jy
![Exited script file: muppet]
wmap "J2243-2544_X_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8777 x 2.397 at -8.425 degrees (North through East)
! Clean map  min=-0.0028431  max=0.29582 Jy/beam
! Writing clean map to FITS file: J2243-2544_X_1997_07_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.295823 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000547687 
device "J2243-2544_X_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J2243-2544_X_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.55542 0.55542 1.11084 2.22168 4.44336 8.88671 17.7734 35.5469 71.0937
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.295 
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.8777 x 2.397 at -8.425 degrees (North through East)
! Clean map  min=-0.0028431  max=0.29582 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2243-2544_X_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J2243-2544_X_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2243-2544_X_1997_07_02_yyk_uvs.log closed on Mon Jan  8 10:41:59 2007