! Started logfile: J0231+1322_X_1999_12_20_pus_uvs.log on Mon Dec 17 12:12:23 2007
obs J0231+1322_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0231+1322_X_1999_12_20_pus_uva.fits
! AN table 1: 30 integrations on 190 of 190 possible baselines.
! AN table 2: 101 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.114584 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0231+1322
! 
! 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.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2430 lines of history.
! 
! Reading 11408 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
print "field_size =",field_size
! field_size = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0231+1322_X_1999_12_20_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 438 telescope corrections were flagged in sub-array 1.
!  A total of 1623 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 438 telescope corrections were flagged in sub-array 1.
!  A total of 1632 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 440 telescope corrections were flagged in sub-array 1.
!  A total of 1635 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 438 telescope corrections were flagged in sub-array 1.
!  A total of 1630 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.388736Jy  sigma=0.004154
! Fit after  self-cal, rms=0.384047Jy  sigma=0.004116
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
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 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.5862 mas, bmaj=1.314 mas, bpa=-0.6725 degrees
! Estimated noise=1250.8 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.503244 Jy
! Component: 100  -  total flux cleaned = 0.672824 Jy
! Total flux subtracted in 100 components = 0.672824 Jy
! Clean residual min=-0.016864 max=0.073085 Jy/beam
! Clean residual mean=0.000347 rms=0.006430 Jy/beam
! Combined flux in latest and established models = 0.672824 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.672824 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207515Jy  sigma=0.001914
! Fit after  self-cal, rms=0.206167Jy  sigma=0.001902
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0793189 Jy
! Component: 100  -  total flux cleaned = 0.117938 Jy
! Total flux subtracted in 100 components = 0.117938 Jy
! Clean residual min=-0.009715 max=0.019343 Jy/beam
! Clean residual mean=0.000188 rms=0.003069 Jy/beam
! Combined flux in latest and established models = 0.790762 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 0.790762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163551Jy  sigma=0.001306
! Fit after  self-cal, rms=0.163262Jy  sigma=0.001304
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Added new window around map position (0.6, 0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0244295 Jy
! Component: 100  -  total flux cleaned = 0.0409598 Jy
! Total flux subtracted in 100 components = 0.0409598 Jy
! Clean residual min=-0.007819 max=0.013821 Jy/beam
! Clean residual mean=0.000128 rms=0.002447 Jy/beam
! Combined flux in latest and established models = 0.831722 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 26 components and 0.831722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157222Jy  sigma=0.001202
! Fit after  self-cal, rms=0.157033Jy  sigma=0.001200
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! 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 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7284 mas, bmaj=1.567 mas, bpa=-2.579 degrees
! Estimated noise=725.843 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.4, 1.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0254029 Jy
! Component: 100  -  total flux cleaned = 0.0404801 Jy
! Component: 150  -  total flux cleaned = 0.050506 Jy
! Component: 200  -  total flux cleaned = 0.0574844 Jy
! Total flux subtracted in 200 components = 0.0574844 Jy
! Clean residual min=-0.004107 max=0.009967 Jy/beam
! Clean residual mean=0.000052 rms=0.001546 Jy/beam
! Combined flux in latest and established models = 0.889206 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 62 components and 0.889206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152945Jy  sigma=0.001132
! Fit after  self-cal, rms=0.152620Jy  sigma=0.001128
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.01     HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.02     WZ        1.00*    GN        1.00     NL        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00     NY        1.04     ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.01     TS        1.00     
!   WF        1.01     WZ        1.00*    GN        1.01     NL        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.01     KK        1.00*    KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00     NY        1.03     ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.02     TS        1.00     
!   WF        1.01     WZ        1.00*    GN        1.01     NL        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.04     HH        1.00*    
!   HN        1.02     KK        1.00*    KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.01     NY        1.04     ON        1.00*    
!   OV        1.00     PT        0.99     SC        1.32     TS        1.01     
!   WF        1.01     WZ        1.00*    GN        1.01     NL        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.04     KK        1.00*    KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.01     NY        1.03     ON        1.00*    
!   OV        1.00     PT        0.99     SC        1.01     TS        1.01     
!   WF        1.01     WZ        1.00*    GN        1.01     NL        1.00     
! 
! 
! Fit before self-cal, rms=0.152620Jy  sigma=0.001128
! Fit after  self-cal, rms=0.154748Jy  sigma=0.001125
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7298 mas, bmaj=1.572 mas, bpa=-2.615 degrees
! Estimated noise=723.827 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00439288 Jy
! Component: 100  -  total flux cleaned = 0.00631374 Jy
! Component: 150  -  total flux cleaned = 0.0069176 Jy
! Component: 200  -  total flux cleaned = 0.0070593 Jy
! Total flux subtracted in 200 components = 0.0070593 Jy
! Clean residual min=-0.003166 max=0.005347 Jy/beam
! Clean residual mean=-0.000069 rms=0.001059 Jy/beam
! Combined flux in latest and established models = 0.896266 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 75 components and 0.896266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154571Jy  sigma=0.001123
! Fit after  self-cal, rms=0.154583Jy  sigma=0.001123
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Added new window around map position (6.4, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00509436 Jy
! Component: 100  -  total flux cleaned = 0.00586505 Jy
! Component: 150  -  total flux cleaned = 0.00629308 Jy
! Component: 200  -  total flux cleaned = 0.00665827 Jy
! Total flux subtracted in 200 components = 0.00665827 Jy
! Clean residual min=-0.003032 max=0.004168 Jy/beam
! Clean residual mean=-0.000121 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 0.902924 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 93 components and 0.902924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154376Jy  sigma=0.001121
! Fit after  self-cal, rms=0.154359Jy  sigma=0.001121
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154359Jy  sigma=0.001121
! Fit after  self-cal, rms=0.154288Jy  sigma=0.001120
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7294 mas, bmaj=1.572 mas, bpa=-2.663 degrees
! Estimated noise=724.267 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00180127 Jy
! Component: 100  -  total flux cleaned = 0.00231896 Jy
! Component: 150  -  total flux cleaned = 0.00260711 Jy
! Component: 200  -  total flux cleaned = 0.00265907 Jy
! Total flux subtracted in 200 components = 0.00265907 Jy
! Clean residual min=-0.003008 max=0.003916 Jy/beam
! Clean residual mean=-0.000105 rms=0.000858 Jy/beam
! Combined flux in latest and established models = 0.905583 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 106 components and 0.905583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154222Jy  sigma=0.001120
! Fit after  self-cal, rms=0.154218Jy  sigma=0.001120
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (9.4, 2.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00177796 Jy
! Component: 100  -  total flux cleaned = 0.00152176 Jy
! Component: 150  -  total flux cleaned = 0.00159147 Jy
! Component: 200  -  total flux cleaned = 0.00152738 Jy
! Total flux subtracted in 200 components = 0.00152738 Jy
! Clean residual min=-0.003016 max=0.002966 Jy/beam
! Clean residual mean=-0.000113 rms=0.000821 Jy/beam
! Combined flux in latest and established models = 0.907111 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 120 components and 0.907111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154064Jy  sigma=0.001119
! Fit after  self-cal, rms=0.154063Jy  sigma=0.001119
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154063Jy  sigma=0.001119
! Fit after  self-cal, rms=0.154151Jy  sigma=0.001118
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7294 mas, bmaj=1.571 mas, bpa=-2.669 degrees
! Estimated noise=724.721 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000970283 Jy
! Component: 100  -  total flux cleaned = 0.00114775 Jy
! Component: 150  -  total flux cleaned = 0.00131236 Jy
! Component: 200  -  total flux cleaned = 0.00136453 Jy
! Total flux subtracted in 200 components = 0.00136453 Jy
! Clean residual min=-0.003075 max=0.002940 Jy/beam
! Clean residual mean=-0.000108 rms=0.000808 Jy/beam
! Combined flux in latest and established models = 0.908475 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 126 components and 0.908475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154089Jy  sigma=0.001118
! Fit after  self-cal, rms=0.154091Jy  sigma=0.001118
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000168197 Jy
! Component: 100  -  total flux cleaned = 0.000121075 Jy
! Component: 150  -  total flux cleaned = 0.000166782 Jy
! Component: 200  -  total flux cleaned = 0.000210069 Jy
! Total flux subtracted in 200 components = 0.000210069 Jy
! Clean residual min=-0.003072 max=0.002912 Jy/beam
! Clean residual mean=-0.000109 rms=0.000799 Jy/beam
! Combined flux in latest and established models = 0.908685 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 130 components and 0.908685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154051Jy  sigma=0.001118
! Fit after  self-cal, rms=0.154052Jy  sigma=0.001118
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154052Jy  sigma=0.001118
! Fit after  self-cal, rms=0.154033Jy  sigma=0.001118
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=2.363 mas, bmaj=2.905 mas, bpa=-16.92 degrees
! Estimated noise=960.616 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00147448 Jy
! Component: 100  -  total flux cleaned = 0.00209274 Jy
! Component: 150  -  total flux cleaned = 0.00237943 Jy
! Component: 200  -  total flux cleaned = 0.0024873 Jy
! Total flux subtracted in 200 components = 0.0024873 Jy
! Clean residual min=-0.003355 max=0.003440 Jy/beam
! Clean residual mean=-0.000308 rms=0.000921 Jy/beam
! Combined flux in latest and established models = 0.911172 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 135 components and 0.911172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153988Jy  sigma=0.001118
! Fit after  self-cal, rms=0.153988Jy  sigma=0.001118
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000285503 Jy
! Component: 100  -  total flux cleaned = 0.000352085 Jy
! Component: 150  -  total flux cleaned = 0.000415682 Jy
! Component: 200  -  total flux cleaned = 0.000415654 Jy
! Total flux subtracted in 200 components = 0.000415654 Jy
! Clean residual min=-0.003320 max=0.003386 Jy/beam
! Clean residual mean=-0.000317 rms=0.000901 Jy/beam
! Combined flux in latest and established models = 0.911588 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 139 components and 0.911588 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153966Jy  sigma=0.001118
! Fit after  self-cal, rms=0.153965Jy  sigma=0.001118
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7294 mas, bmaj=1.571 mas, bpa=-2.673 degrees
! Estimated noise=725.061 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7294 x 1.571 at -2.673 degrees (North through East)
! Clean map  min=-0.0036126  max=0.67595 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  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
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153965Jy  sigma=0.001118
! Fit after  self-cal, rms=0.155290Jy  sigma=0.001117
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7294 mas, bmaj=1.572 mas, bpa=-2.673 degrees
! Estimated noise=725.34 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000213717 Jy
! Component: 100  -  total flux cleaned = -0.00021446 Jy
! Component: 150  -  total flux cleaned = -0.000302076 Jy
! Component: 200  -  total flux cleaned = -0.000258506 Jy
! Total flux subtracted in 200 components = -0.000258506 Jy
! Clean residual min=-0.003192 max=0.002789 Jy/beam
! Clean residual mean=-0.000109 rms=0.000776 Jy/beam
! Combined flux in latest and established models = 0.911329 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 150 components and 0.911329 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155255Jy  sigma=0.001116
! Fit after  self-cal, rms=0.155255Jy  sigma=0.001116
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.57681e-06 Jy
! Component: 100  -  total flux cleaned = 4.15497e-05 Jy
! Component: 150  -  total flux cleaned = 3.71532e-06 Jy
! Component: 200  -  total flux cleaned = 4.26618e-06 Jy
! Total flux subtracted in 200 components = 4.26618e-06 Jy
! Clean residual min=-0.003166 max=0.002771 Jy/beam
! Clean residual mean=-0.000109 rms=0.000772 Jy/beam
! Combined flux in latest and established models = 0.911334 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 156 components and 0.911334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155230Jy  sigma=0.001116
! Fit after  self-cal, rms=0.155231Jy  sigma=0.001116
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155231Jy  sigma=0.001116
! Fit after  self-cal, rms=0.155289Jy  sigma=0.001116
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative 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 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.5869 mas, bmaj=1.318 mas, bpa=-0.7858 degrees
! Estimated noise=1254.94 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.504925 Jy
! Component: 100  -  total flux cleaned = 0.678328 Jy
! Component: 150  -  total flux cleaned = 0.756107 Jy
! Component: 200  -  total flux cleaned = 0.795447 Jy
! Total flux subtracted in 200 components = 0.795447 Jy
! Clean residual min=-0.008749 max=0.020275 Jy/beam
! Clean residual mean=0.000178 rms=0.002889 Jy/beam
! Combined flux in latest and established models = 0.795447 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.795447 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7293 mas, bmaj=1.572 mas, bpa=-2.672 degrees
! Estimated noise=725.694 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.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0393599 Jy
! Component: 100  -  total flux cleaned = 0.0621026 Jy
! Component: 150  -  total flux cleaned = 0.0767807 Jy
! Component: 200  -  total flux cleaned = 0.0865967 Jy
! Total flux subtracted in 200 components = 0.0865967 Jy
! Clean residual min=-0.004031 max=0.006112 Jy/beam
! Clean residual mean=0.000095 rms=0.001549 Jy/beam
! Combined flux in latest and established models = 0.882043 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 56 components and 0.882044 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=2.362 mas, bmaj=2.905 mas, bpa=-16.9 degrees
! Estimated noise=961.544 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.012246 Jy
! Component: 100  -  total flux cleaned = 0.0192119 Jy
! Component: 150  -  total flux cleaned = 0.0235526 Jy
! Component: 200  -  total flux cleaned = 0.0265556 Jy
! Total flux subtracted in 200 components = 0.0265556 Jy
! Clean residual min=-0.003711 max=0.003616 Jy/beam
! Clean residual mean=-0.000232 rms=0.001140 Jy/beam
! Combined flux in latest and established models = 0.908599 Jy
flux_cutoff = imstat(rms) * dynam
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.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00145079 Jy
! Component: 100  -  total flux cleaned = 0.00196348 Jy
! Component: 150  -  total flux cleaned = 0.0022785 Jy
! Component: 200  -  total flux cleaned = 0.00239139 Jy
! Total flux subtracted in 200 components = 0.00239139 Jy
! Clean residual min=-0.003530 max=0.003501 Jy/beam
! Clean residual mean=-0.000270 rms=0.001003 Jy/beam
! Combined flux in latest and established models = 0.910991 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 106 components and 0.910991 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! Estimated beam: bmin=0.7293 mas, bmaj=1.572 mas, bpa=-2.672 degrees
! Estimated noise=725.694 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000253014 Jy
! Component: 100  -  total flux cleaned = 3.65238e-05 Jy
! Component: 150  -  total flux cleaned = -5.82175e-05 Jy
! Component: 200  -  total flux cleaned = -5.47156e-05 Jy
! Total flux subtracted in 200 components = -5.47156e-05 Jy
! Clean residual min=-0.003243 max=0.002951 Jy/beam
! Clean residual mean=-0.000104 rms=0.000839 Jy/beam
! Combined flux in latest and established models = 0.910936 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 122 components and 0.910936 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155590Jy  sigma=0.001119
! Fit after  self-cal, rms=0.155551Jy  sigma=0.001118
wmodel J0231+1322_X_1999_12_20_pus_map.mod
! Writing 122 model components to file: J0231+1322_X_1999_12_20_pus_map.mod
wobs J0231+1322_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0231+1322_X_1999_12_20_pus_uvs.fits
wwins J0231+1322_X_1999_12_20_pus_map.win
! wwins: Wrote 5 windows to J0231+1322_X_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000688328 Jy
! Component: 100  -  total flux cleaned = -0.000892129 Jy
! Component: 150  -  total flux cleaned = -0.00122681 Jy
! Component: 200  -  total flux cleaned = -0.00168374 Jy
! Component: 250  -  total flux cleaned = -0.00216813 Jy
! Component: 300  -  total flux cleaned = -0.00250925 Jy
! Component: 350  -  total flux cleaned = -0.00284216 Jy
! Component: 400  -  total flux cleaned = -0.00312689 Jy
! Component: 450  -  total flux cleaned = -0.00348484 Jy
! Component: 500  -  total flux cleaned = -0.00367974 Jy
! Component: 550  -  total flux cleaned = -0.00391029 Jy
! Component: 600  -  total flux cleaned = -0.00406157 Jy
! Component: 650  -  total flux cleaned = -0.00428567 Jy
! Component: 700  -  total flux cleaned = -0.00443305 Jy
! Component: 750  -  total flux cleaned = -0.00461419 Jy
! Component: 800  -  total flux cleaned = -0.00472168 Jy
! Component: 850  -  total flux cleaned = -0.00482771 Jy
! Component: 900  -  total flux cleaned = -0.00489747 Jy
! Component: 950  -  total flux cleaned = -0.00507006 Jy
! Component: 1000  -  total flux cleaned = -0.00513792 Jy
! Total flux subtracted in 1024 components = -0.00517176 Jy
! Clean residual min=-0.002233 max=0.001882 Jy/beam
! Clean residual mean=-0.000059 rms=0.000669 Jy/beam
! Combined flux in latest and established models = 0.905764 Jy
keep
! Adding 70 model components to the UV plane model.
! The established model now contains 191 components and 0.905764 Jy
![Exited script file: muppet]
wmap "J0231+1322_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7293 x 1.572 at -2.672 degrees (North through East)
! Clean map  min=-0.0027351  max=0.6769 Jy/beam
! Writing clean map to FITS file: J0231+1322_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.6769 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.71% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000669972 
device "J0231+1322_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0231+1322_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.29693 0.29693 0.593859 1.18772 2.37544 4.75087 9.50175 19.0035 38.007 76.014
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.676 
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.7293 x 1.572 at -2.672 degrees (North through East)
! Clean map  min=-0.0027351  max=0.6769 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0231+1322_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0231+1322_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0231+1322_X_1999_12_20_pus_uvs.log closed on Mon Dec 17 12:12:28 2007