! Started logfile: J0505+6406_X_1995_04_19_yyk_uvs.log on Mon Jan  8 03:12:44 2007
obs J0505+6406_X_1995_04_19_yyk_uva.fits
! Reading UV FITS file: J0505+6406_X_1995_04_19_yyk_uva.fits
! AN table 1: 43 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.0645995 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0505+6406
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.15049e+09        4e+06          1        4e+06
!  02        2  8.23236e+09        4e+06          1        4e+06
!  03        3  8.41236e+09        4e+06          1        4e+06
!  04        4  8.55236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 725 lines of history.
! 
! Reading 500 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 J0505+6406_X_1995_04_19_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.248888 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.5527 mas, bmaj=1.151 mas, bpa=9.625 degrees
! Estimated noise=4355.47 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.0198318 Jy
! Component: 100  -  total flux cleaned = -0.00779432 Jy
! Total flux subtracted in 100 components = -0.00779432 Jy
! Clean residual min=-0.017941 max=0.018085 Jy/beam
! Clean residual mean=-0.000001 rms=0.006196 Jy/beam
! Combined flux in latest and established models = -0.00779432 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 34 components and -0.00779432 Jy
! 
! Correcting IF 1.
!  A total of 307 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 331 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 331 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 331 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.239461Jy  sigma=0.002442
! Fit after  self-cal, rms=0.239345Jy  sigma=0.002436
! Inverting map and beam 
! Estimated beam: bmin=0.5528 mas, bmaj=1.152 mas, bpa=9.626 degrees
! Estimated noise=4381.79 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.5593 mas, bmaj=1.3 mas, bpa=5.269 degrees
! Estimated noise=3336.5 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.00259163 Jy
! Component: 100  -  total flux cleaned = 0.00437199 Jy
! Component: 150  -  total flux cleaned = 0.00740704 Jy
! Component: 200  -  total flux cleaned = 0.00742696 Jy
! Total flux subtracted in 200 components = 0.00742696 Jy
! Clean residual min=-0.007868 max=0.007886 Jy/beam
! Clean residual mean=-0.000002 rms=0.002625 Jy/beam
! Combined flux in latest and established models = -0.000367356 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 53 model components to the UV plane model.
! The established model now contains 84 components and -0.000367354 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235400Jy  sigma=0.002395
! Fit after  self-cal, rms=0.235294Jy  sigma=0.002394
! 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.5593 x 1.3 at 5.269 degrees (North through East)
! Clean map  min=-0.016523  max=0.020732 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 123 telescope corrections were flagged in sub-array 1.
!  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*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  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*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  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*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  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*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Fit before self-cal, rms=0.235294Jy  sigma=0.002394
! Fit after  self-cal, rms=0.000000Jy  sigma=nan
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.000000Jy  sigma=nan
! Fit after  self-cal, rms=0.000000Jy  sigma=nan
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! There are no unflagged visibilities to be inverted.
! Error occurred in function: imstat().
![Exited script file: muppet]
! 
wmap "J0505+6406_X_1995_04_19_yyk\_map.fits"
! Inverting map and beam 
! There are no unflagged visibilities to be inverted.
! Error occured in command: wmap
! 
float peak_flux
peak_flux = peak(flux,max)
! Inverting map and beam 
! There are no unflagged visibilities to be inverted.
! Error occurred in function: peak().
! 
print "The peak flux is",peak_flux
! The peak flux is 0 
invert
! Inverting map and beam 
! There are no unflagged visibilities to be inverted.
! Error occured in command: invert
! 
float image_rms
image_rms = imstat(rms)
! Inverting map and beam 
! There are no unflagged visibilities to be inverted.
! Error occurred in function: imstat().
! 
print "The final image rms is",image_rms
! The final image rms is 0 
device "J0505+6406_X_1995_04_19_yyk\_map.eps/VPS"
! Attempting to open device: 'J0505+6406_X_1995_04_19_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! Division by zero error.
! 
print "clev=",int(3*image_rms*10000)/10000
! clev= 0 
print "peak=",int(peak_flux*1000)/1000
! peak= 0 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! Inverting map and beam 
! There are no unflagged visibilities to be inverted.
! Error occured in command: mapplot
! 
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0505+6406_X_1995_04_19_yyk\_map.gif/gif"
! Attempting to open device: 'J0505+6406_X_1995_04_19_yyk_map.gif/gif'
mapplot cln
! Inverting map and beam 
! There are no unflagged visibilities to be inverted.
! Error occured in command: mapplot
! 
quit
! Quitting program
! Log file J0505+6406_X_1995_04_19_yyk_uvs.log closed on Mon Jan  8 03:12:46 2007