! Started logfile: J1037-2823_X_1997_08_27_yyk_uvs.log on Mon Jan  8 04:55:04 2007
obs J1037-2823_X_1997_08_27_yyk_uva.fits
! Reading UV FITS file: J1037-2823_X_1997_08_27_yyk_uva.fits
! AN table 1: 137 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.838118 visibilities/baseline/integration-bin.
! Found source: J1037-2823
! 
! 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 702 lines of history.
! 
! Reading 20668 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 J1037-2823_X_1997_08_27_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.342279 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.7172 mas, bmaj=1.553 mas, bpa=-17.53 degrees
! Estimated noise=2174.83 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.2).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0888304 Jy
! Component: 100  -  total flux cleaned = 0.11431 Jy
! Total flux subtracted in 100 components = 0.11431 Jy
! Clean residual min=-0.017690 max=0.022669 Jy/beam
! Clean residual mean=0.000057 rms=0.004971 Jy/beam
! Combined flux in latest and established models = 0.11431 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.11431 Jy
! 
! Correcting IF 1.
!  A total of 121 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 121 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 121 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 121 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.322456Jy  sigma=0.001567
! Fit after  self-cal, rms=0.321607Jy  sigma=0.001563
! Inverting map and beam 
! Estimated beam: bmin=0.7172 mas, bmaj=1.553 mas, bpa=-17.53 degrees
! Estimated noise=2174.83 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=0.9175 mas, bmaj=2.117 mas, bpa=-13.86 degrees
! Estimated noise=948.991 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.6, 0.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0355819 Jy
! Component: 100  -  total flux cleaned = 0.0529358 Jy
! Component: 150  -  total flux cleaned = 0.0625544 Jy
! Component: 200  -  total flux cleaned = 0.0651227 Jy
! Total flux subtracted in 200 components = 0.0651227 Jy
! Clean residual min=-0.010981 max=0.012144 Jy/beam
! Clean residual mean=-0.000265 rms=0.003008 Jy/beam
! Combined flux in latest and established models = 0.179432 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 37 components and 0.179432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319366Jy  sigma=0.001548
! Fit after  self-cal, rms=0.319079Jy  sigma=0.001547
! 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.9175 x 2.117 at -13.86 degrees (North through East)
! Clean map  min=-0.0094412  max=0.10408 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
! Selfcal amplitude corrections will be limited to 0.833333 -> 1.2.
! Selfcal phase corrections will not be limited.
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    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: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.319079Jy  sigma=0.001547
! Fit after  self-cal, rms=0.319054Jy  sigma=0.001547
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.319054Jy  sigma=0.001547
! Fit after  self-cal, rms=0.319052Jy  sigma=0.001547
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9186 mas, bmaj=2.117 mas, bpa=-13.88 degrees
! Estimated noise=949.195 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.00573508 Jy
! Component: 100  -  total flux cleaned = 0.00730008 Jy
! Component: 150  -  total flux cleaned = 0.00847055 Jy
! Component: 200  -  total flux cleaned = 0.00893994 Jy
! Total flux subtracted in 200 components = 0.00893994 Jy
! Clean residual min=-0.010398 max=0.010207 Jy/beam
! Clean residual mean=-0.000317 rms=0.002793 Jy/beam
! Combined flux in latest and established models = 0.188372 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 47 components and 0.188372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318805Jy  sigma=0.001545
! Fit after  self-cal, rms=0.318762Jy  sigma=0.001545
! 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.318762Jy  sigma=0.001545
! Fit after  self-cal, rms=0.316573Jy  sigma=0.001534
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.00806598 Jy
! Component: 100  -  total flux cleaned = 0.00890173 Jy
! Component: 150  -  total flux cleaned = 0.00915828 Jy
! Component: 200  -  total flux cleaned = 0.00949218 Jy
! Total flux subtracted in 200 components = 0.00949218 Jy
! Clean residual min=-0.010908 max=0.008484 Jy/beam
! Clean residual mean=-0.000239 rms=0.002592 Jy/beam
! Combined flux in latest and established models = 0.197864 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 60 components and 0.197864 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316449Jy  sigma=0.001533
! Fit after  self-cal, rms=0.316066Jy  sigma=0.001531
! 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.9186 x 2.117 at -13.88 degrees (North through East)
! Clean map  min=-0.010339  max=0.10733 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.316066Jy  sigma=0.001531
! Fit after  self-cal, rms=0.313109Jy  sigma=0.001530
! 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.313109Jy  sigma=0.001530
! Fit after  self-cal, rms=0.312999Jy  sigma=0.001530
! Inverting map and beam 
! Estimated beam: bmin=0.9119 mas, bmaj=2.124 mas, bpa=-13.82 degrees
! Estimated noise=921.943 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00207317 Jy
! Component: 100  -  total flux cleaned = -0.00239308 Jy
! Component: 150  -  total flux cleaned = -0.00268486 Jy
! Component: 200  -  total flux cleaned = -0.00294963 Jy
! Total flux subtracted in 200 components = -0.00294963 Jy
! Clean residual min=-0.009734 max=0.007407 Jy/beam
! Clean residual mean=-0.000176 rms=0.002331 Jy/beam
! Combined flux in latest and established models = 0.194915 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 73 components and 0.194915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312930Jy  sigma=0.001530
! Fit after  self-cal, rms=0.312905Jy  sigma=0.001529
! 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.312905Jy  sigma=0.001529
! Fit after  self-cal, rms=0.312756Jy  sigma=0.001529
! 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.312756Jy  sigma=0.001529
! Fit after  self-cal, rms=0.312738Jy  sigma=0.001529
! Inverting map and beam 
! Estimated beam: bmin=0.9125 mas, bmaj=2.127 mas, bpa=-13.83 degrees
! Estimated noise=918.791 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000435379 Jy
! Component: 100  -  total flux cleaned = -0.000603017 Jy
! Component: 150  -  total flux cleaned = -0.000829801 Jy
! Component: 200  -  total flux cleaned = -0.00103276 Jy
! Total flux subtracted in 200 components = -0.00103276 Jy
! Clean residual min=-0.009543 max=0.007095 Jy/beam
! Clean residual mean=-0.000171 rms=0.002282 Jy/beam
! Combined flux in latest and established models = 0.193882 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 79 components and 0.193882 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312704Jy  sigma=0.001529
! Fit after  self-cal, rms=0.312699Jy  sigma=0.001529
! 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.292 mas, bmaj=5.016 mas, bpa=-11.05 degrees
! Estimated noise=1188.04 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.0016077 Jy
! Component: 100  -  total flux cleaned = -0.00183099 Jy
! Component: 150  -  total flux cleaned = -0.00189167 Jy
! Component: 200  -  total flux cleaned = -0.0019979 Jy
! Total flux subtracted in 200 components = -0.0019979 Jy
! Clean residual min=-0.012151 max=0.011374 Jy/beam
! Clean residual mean=-0.000325 rms=0.003788 Jy/beam
! Combined flux in latest and established models = 0.191884 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 90 components and 0.191884 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312687Jy  sigma=0.001529
! Fit after  self-cal, rms=0.312683Jy  sigma=0.001529
! 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.7137 mas, bmaj=1.56 mas, bpa=-17.48 degrees
! Estimated noise=2128.41 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0942561 Jy
! Component: 100  -  total flux cleaned = 0.131173 Jy
! Component: 150  -  total flux cleaned = 0.153302 Jy
! Component: 200  -  total flux cleaned = 0.163394 Jy
! Total flux subtracted in 200 components = 0.163394 Jy
! Clean residual min=-0.014225 max=0.018227 Jy/beam
! Clean residual mean=0.000030 rms=0.003922 Jy/beam
! Combined flux in latest and established models = 0.163394 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.163394 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9125 mas, bmaj=2.127 mas, bpa=-13.83 degrees
! Estimated noise=918.791 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.0210623 Jy
! Component: 100  -  total flux cleaned = 0.028693 Jy
! Component: 150  -  total flux cleaned = 0.0296512 Jy
! Component: 200  -  total flux cleaned = 0.0298437 Jy
! Total flux subtracted in 200 components = 0.0298437 Jy
! Clean residual min=-0.009309 max=0.007405 Jy/beam
! Clean residual mean=-0.000163 rms=0.002380 Jy/beam
! Combined flux in latest and established models = 0.193237 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 52 components and 0.193237 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.292 mas, bmaj=5.016 mas, bpa=-11.05 degrees
! Estimated noise=1188.04 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 = 6.34497e-06 Jy
! Component: 100  -  total flux cleaned = 1.92805e-05 Jy
! Component: 150  -  total flux cleaned = -0.000199154 Jy
! Component: 200  -  total flux cleaned = -0.000401272 Jy
! Total flux subtracted in 200 components = -0.000401272 Jy
! Clean residual min=-0.012039 max=0.011626 Jy/beam
! Clean residual mean=-0.000331 rms=0.003810 Jy/beam
! Combined flux in latest and established models = 0.192836 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 64 components and 0.192836 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9125 mas, bmaj=2.127 mas, bpa=-13.83 degrees
! Estimated noise=918.791 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000607408 Jy
! Component: 100  -  total flux cleaned = -0.000462522 Jy
! Component: 150  -  total flux cleaned = -0.000223364 Jy
! Component: 200  -  total flux cleaned = -0.000120735 Jy
! Total flux subtracted in 200 components = -0.000120735 Jy
! Clean residual min=-0.009424 max=0.006950 Jy/beam
! Clean residual mean=-0.000163 rms=0.002301 Jy/beam
! Combined flux in latest and established models = 0.192715 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 76 components and 0.192715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312789Jy  sigma=0.001530
! Fit after  self-cal, rms=0.312801Jy  sigma=0.001529
wmodel J1037-2823_X_1997_08_27_yyk\_map.mod
! Writing 76 model components to file: J1037-2823_X_1997_08_27_yyk_map.mod
wobs J1037-2823_X_1997_08_27_yyk\_uvs.fits
! Writing UV FITS file: J1037-2823_X_1997_08_27_yyk_uvs.fits
wwins J1037-2823_X_1997_08_27_yyk\_map.win
! wwins: Wrote 2 windows to J1037-2823_X_1997_08_27_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.00371453 Jy
! Component: 100  -  total flux cleaned = -0.00586969 Jy
! Component: 150  -  total flux cleaned = -0.0071648 Jy
! Component: 200  -  total flux cleaned = -0.00829271 Jy
! Component: 250  -  total flux cleaned = -0.00915777 Jy
! Component: 300  -  total flux cleaned = -0.00978066 Jy
! Component: 350  -  total flux cleaned = -0.0105845 Jy
! Component: 400  -  total flux cleaned = -0.0112671 Jy
! Component: 450  -  total flux cleaned = -0.0119315 Jy
! Component: 500  -  total flux cleaned = -0.0123022 Jy
! Component: 550  -  total flux cleaned = -0.0125735 Jy
! Component: 600  -  total flux cleaned = -0.0125755 Jy
! Component: 650  -  total flux cleaned = -0.013003 Jy
! Component: 700  -  total flux cleaned = -0.013001 Jy
! Component: 750  -  total flux cleaned = -0.0132486 Jy
! Component: 800  -  total flux cleaned = -0.0135703 Jy
! Component: 850  -  total flux cleaned = -0.0138858 Jy
! Component: 900  -  total flux cleaned = -0.0142726 Jy
! Component: 950  -  total flux cleaned = -0.0148045 Jy
! Component: 1000  -  total flux cleaned = -0.0148803 Jy
! Component: 1050  -  total flux cleaned = -0.0155421 Jy
! Component: 1100  -  total flux cleaned = -0.0161217 Jy
! Component: 1150  -  total flux cleaned = -0.0166201 Jy
! Component: 1200  -  total flux cleaned = -0.0172521 Jy
! Component: 1250  -  total flux cleaned = -0.0173222 Jy
! Component: 1300  -  total flux cleaned = -0.017665 Jy
! Component: 1350  -  total flux cleaned = -0.0180035 Jy
! Component: 1400  -  total flux cleaned = -0.0181376 Jy
! Component: 1450  -  total flux cleaned = -0.0185983 Jy
! Component: 1500  -  total flux cleaned = -0.0190535 Jy
! Component: 1550  -  total flux cleaned = -0.0192461 Jy
! Component: 1600  -  total flux cleaned = -0.0195625 Jy
! Component: 1650  -  total flux cleaned = -0.019688 Jy
! Component: 1700  -  total flux cleaned = -0.0200603 Jy
! Component: 1750  -  total flux cleaned = -0.0201833 Jy
! Component: 1800  -  total flux cleaned = -0.0204259 Jy
! Component: 1850  -  total flux cleaned = -0.0207257 Jy
! Component: 1900  -  total flux cleaned = -0.0207864 Jy
! Component: 1950  -  total flux cleaned = -0.0210801 Jy
! Component: 2000  -  total flux cleaned = -0.0213711 Jy
! Total flux subtracted in 2048 components = -0.0216006 Jy
! Clean residual min=-0.003583 max=0.005257 Jy/beam
! Clean residual mean=-0.000137 rms=0.001190 Jy/beam
! Combined flux in latest and established models = 0.171115 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 234 components and 0.171115 Jy
![Exited script file: muppet]
wmap "J1037-2823_X_1997_08_27_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9125 x 2.127 at -13.83 degrees (North through East)
! Clean map  min=-0.0059265  max=0.1039 Jy/beam
! Writing clean map to FITS file: J1037-2823_X_1997_08_27_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.103903 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0011871 
device "J1037-2823_X_1997_08_27_yyk\_map.eps/VPS"
! Attempting to open device: 'J1037-2823_X_1997_08_27_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -3.42754 3.42754 6.85509 13.7102 27.4203 54.8407
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0035 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.103 
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.9125 x 2.127 at -13.83 degrees (North through East)
! Clean map  min=-0.0059265  max=0.1039 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1037-2823_X_1997_08_27_yyk\_map.gif/gif"
! Attempting to open device: 'J1037-2823_X_1997_08_27_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1037-2823_X_1997_08_27_yyk_uvs.log closed on Mon Jan  8 04:55:14 2007