! Started logfile: J0534+1927_X_2002_05_14_yyk_uvs.log on Tue Jun 26 22:17:12 2007
obs J0534+1927_X_2002_05_14_yyk_uva.fits
! Reading UV FITS file: J0534+1927_X_2002_05_14_yyk_uva.fits
! AN table 1: 68 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.424837 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0534+1927
! 
! 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.40947e+09        8e+06          1        8e+06
!  02        2  8.47947e+09        8e+06          1        8e+06
!  03        3  8.79447e+09        8e+06          1        8e+06
!  04        4  8.89947e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1077 lines of history.
! 
! Reading 5200 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 J0534+1927_X_2002_05_14_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.47598 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=1.688 mas, bmaj=2.728 mas, bpa=-26.74 degrees
! Estimated noise=1710.22 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=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0150874 Jy
! Component: 100  -  total flux cleaned = 0.0148922 Jy
! Total flux subtracted in 100 components = 0.0148922 Jy
! Clean residual min=-0.008332 max=0.008341 Jy/beam
! Clean residual mean=-0.000136 rms=0.003222 Jy/beam
! Combined flux in latest and established models = 0.0148922 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 31 components and 0.0148922 Jy
! 
! Correcting IF 1.
!  A total of 229 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 229 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 229 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 680 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.474582Jy  sigma=0.004030
! Fit after  self-cal, rms=0.474559Jy  sigma=0.004029
! Inverting map and beam 
! Estimated beam: bmin=1.688 mas, bmaj=2.728 mas, bpa=-26.74 degrees
! Estimated noise=1710.36 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=2.051 mas, bmaj=2.685 mas, bpa=-28.42 degrees
! Estimated noise=1229.14 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.0197726 Jy
! Component: 100  -  total flux cleaned = 0.0279287 Jy
! Component: 150  -  total flux cleaned = 0.034845 Jy
! Component: 200  -  total flux cleaned = 0.0386635 Jy
! Total flux subtracted in 200 components = 0.0386635 Jy
! Clean residual min=-0.006464 max=0.006414 Jy/beam
! Clean residual mean=-0.000120 rms=0.002689 Jy/beam
! Combined flux in latest and established models = 0.0535557 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 67 model components to the UV plane model.
! The established model now contains 98 components and 0.0535557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.473073Jy  sigma=0.004015
! Fit after  self-cal, rms=0.473007Jy  sigma=0.004015
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.051 x 2.685 at -28.42 degrees (North through East)
! Clean map  min=-0.011355  max=0.019107 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.
!  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*    NL        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    MK        1.00*    
! 
! 
! Correcting IF 2.
!  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*    NL        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    MK        1.00*    
! 
! 
! Correcting IF 3.
!  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*    NL        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    MK        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    MK        0.00*    
! 
! 
! Fit before self-cal, rms=0.473007Jy  sigma=0.004015
! Fit after  self-cal, rms=0.473007Jy  sigma=0.004015
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.473007Jy  sigma=0.004015
! Fit after  self-cal, rms=0.473007Jy  sigma=0.004015
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.051 mas, bmaj=2.685 mas, bpa=-28.42 degrees
! Estimated noise=1229.14 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.00164193 Jy
! Component: 100  -  total flux cleaned = 0.00345243 Jy
! Component: 150  -  total flux cleaned = 0.00383498 Jy
! Component: 200  -  total flux cleaned = 0.00271112 Jy
! Total flux subtracted in 200 components = 0.00271112 Jy
! Clean residual min=-0.004488 max=0.004444 Jy/beam
! Clean residual mean=-0.000038 rms=0.001861 Jy/beam
! Combined flux in latest and established models = 0.0562669 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 61 model components to the UV plane model.
! The established model now contains 138 components and 0.0562669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.472397Jy  sigma=0.004009
! Fit after  self-cal, rms=0.472375Jy  sigma=0.004009
! 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.472375Jy  sigma=0.004009
! Fit after  self-cal, rms=0.469327Jy  sigma=0.003982
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.000325596 Jy
! Component: 100  -  total flux cleaned = -0.000316432 Jy
! Component: 150  -  total flux cleaned = -0.000266007 Jy
! Component: 200  -  total flux cleaned = -0.00102722 Jy
! Total flux subtracted in 200 components = -0.00102722 Jy
! Clean residual min=-0.008964 max=0.008901 Jy/beam
! Clean residual mean=0.000040 rms=0.003929 Jy/beam
! Combined flux in latest and established models = 0.0552396 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 70 model components to the UV plane model.
! The established model now contains 201 components and 0.0552396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.466683Jy  sigma=0.003959
! Fit after  self-cal, rms=0.465727Jy  sigma=0.003950
! 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: 2.051 x 2.685 at -28.42 degrees (North through East)
! Clean map  min=-0.01947  max=0.023544 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
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.479 mas, bmaj=2.999 mas, bpa=-32.55 degrees
! Estimated noise=1296.85 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00512336 Jy
! Component: 100  -  total flux cleaned = -0.00809955 Jy
! Component: 150  -  total flux cleaned = -0.00916505 Jy
! Component: 200  -  total flux cleaned = -0.0107121 Jy
! Total flux subtracted in 200 components = -0.0107121 Jy
! Clean residual min=-0.006271 max=0.006165 Jy/beam
! Clean residual mean=0.000067 rms=0.002664 Jy/beam
! Combined flux in latest and established models = 0.0445275 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 57 model components to the UV plane model.
! The established model now contains 244 components and 0.0445275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464406Jy  sigma=0.003939
! Fit after  self-cal, rms=0.463974Jy  sigma=0.003935
! 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=1.688 mas, bmaj=2.728 mas, bpa=-26.74 degrees
! Estimated noise=1710.36 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0435533 Jy
! Component: 100  -  total flux cleaned = 0.0553951 Jy
! Component: 150  -  total flux cleaned = 0.0566715 Jy
! Component: 200  -  total flux cleaned = 0.0567115 Jy
! Total flux subtracted in 200 components = 0.0567115 Jy
! Clean residual min=-0.011981 max=0.011972 Jy/beam
! Clean residual mean=-0.000036 rms=0.004723 Jy/beam
! Combined flux in latest and established models = 0.0567115 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 60 model components to the UV plane model.
! The established model now contains 60 components and 0.0567115 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.051 mas, bmaj=2.685 mas, bpa=-28.42 degrees
! Estimated noise=1229.14 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.00421367 Jy
! Component: 100  -  total flux cleaned = -0.00645428 Jy
! Component: 150  -  total flux cleaned = -0.00850521 Jy
! Component: 200  -  total flux cleaned = -0.00764129 Jy
! Total flux subtracted in 200 components = -0.00764129 Jy
! Clean residual min=-0.011213 max=0.011026 Jy/beam
! Clean residual mean=0.000035 rms=0.004593 Jy/beam
! Combined flux in latest and established models = 0.0490702 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 120 components and 0.0490702 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.479 mas, bmaj=2.999 mas, bpa=-32.55 degrees
! Estimated noise=1296.85 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.00138806 Jy
! Component: 100  -  total flux cleaned = -0.00254675 Jy
! Component: 150  -  total flux cleaned = -0.00410369 Jy
! Component: 200  -  total flux cleaned = -0.00504112 Jy
! Total flux subtracted in 200 components = -0.00504112 Jy
! Clean residual min=-0.005846 max=0.005844 Jy/beam
! Clean residual mean=0.000042 rms=0.002694 Jy/beam
! Combined flux in latest and established models = 0.0440291 Jy
! Adding 74 model components to the UV plane model.
! The established model now contains 182 components and 0.0440291 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.051 mas, bmaj=2.685 mas, bpa=-28.42 degrees
! Estimated noise=1229.14 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00196413 Jy
! Component: 100  -  total flux cleaned = 0.00136656 Jy
! Component: 150  -  total flux cleaned = 0.000847247 Jy
! Component: 200  -  total flux cleaned = 0.000842098 Jy
! Total flux subtracted in 200 components = 0.000842098 Jy
! Clean residual min=-0.005930 max=0.005918 Jy/beam
! Clean residual mean=0.000045 rms=0.002633 Jy/beam
! Combined flux in latest and established models = 0.0448712 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 66 model components to the UV plane model.
! The established model now contains 222 components and 0.0448712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462803Jy  sigma=0.003925
! Fit after  self-cal, rms=0.462273Jy  sigma=0.003921
wmodel J0534+1927_X_2002_05_14_yyk\_map.mod
! Writing 222 model components to file: J0534+1927_X_2002_05_14_yyk_map.mod
wobs J0534+1927_X_2002_05_14_yyk\_uvs.fits
! Writing UV FITS file: J0534+1927_X_2002_05_14_yyk_uvs.fits
wwins J0534+1927_X_2002_05_14_yyk\_map.win
! wwins: No CLEAN windows to write.
! Error occured in command: wwins
![Exited script file: muppet]
! 
wmap "J0534+1927_X_2002_05_14_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.051 x 2.685 at -28.42 degrees (North through East)
! Clean map  min=-0.018364  max=0.023169 Jy/beam
! Writing clean map to FITS file: J0534+1927_X_2002_05_14_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0231695 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00282168 
device "J0534+1927_X_2002_05_14_yyk\_map.eps/VPS"
! Attempting to open device: 'J0534+1927_X_2002_05_14_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -36.5354 36.5354 73.0708
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0084 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.023 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.051 x 2.685 at -28.42 degrees (North through East)
! Clean map  min=-0.018364  max=0.023169 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0534+1927_X_2002_05_14_yyk\_map.gif/gif"
! Attempting to open device: 'J0534+1927_X_2002_05_14_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0534+1927_X_2002_05_14_yyk_uvs.log closed on Tue Jun 26 22:17:16 2007