! Started logfile: J0927+3902_X_2003_05_07_pus_uvs.log on Wed Dec  6 12:12:36 2006
obs J0927+3902_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0927+3902_X_2003_05_07_pus_uva.fits
! AN table 1: Unused.
! AN table 2: 19 integrations on 171 of 171 possible baselines.
! AN table 3: Unused.
! AN table 4: 87 integrations on 171 of 171 possible baselines.
! AN table 5: Unused.
! AN table 6: Unused.
! AN table 7: Unused.
! AN table 8: Unused.
! AN table 9: Unused.
! Apparent sampling: 0.242525 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0927+3902
! 
! 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 1735 lines of history.
! 
! Reading 17584 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 148 telescope corrections were flagged in sub-array 1.
!  A total of 1027 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 148 telescope corrections were flagged in sub-array 1.
!  A total of 1027 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 148 telescope corrections were flagged in sub-array 1.
!  A total of 1027 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 148 telescope corrections were flagged in sub-array 1.
!  A total of 1027 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=4.775450Jy  sigma=0.042364
! Fit after  self-cal, rms=4.476877Jy  sigma=0.041049
! 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 8.25% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1746 milli-arcsec
! Estimated beam: bmin=0.4827 mas, bmaj=0.9314 mas, bpa=-2.823 degrees
! Estimated noise=1540.26 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 = 3.10431 Jy
! Component: 100  -  total flux cleaned = 4.70494 Jy
! Total flux subtracted in 100 components = 4.70494 Jy
! Clean residual min=-0.223884 max=0.806023 Jy/beam
! Clean residual mean=0.011418 rms=0.097993 Jy/beam
! Combined flux in latest and established models = 4.70494 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 4.70494 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.022501Jy  sigma=0.018526
! Fit after  self-cal, rms=1.995101Jy  sigma=0.018347
! Inverting map 
! Your choice of large map pixels excluded 8.25% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1746 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.982878 Jy
! Component: 100  -  total flux cleaned = 1.61566 Jy
! Total flux subtracted in 100 components = 1.61566 Jy
! Clean residual min=-0.111150 max=0.407341 Jy/beam
! Clean residual mean=0.006220 rms=0.050332 Jy/beam
! Combined flux in latest and established models = 6.3206 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 19 components and 6.3206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.119980Jy  sigma=0.009906
! Fit after  self-cal, rms=1.115786Jy  sigma=0.009882
! Inverting map 
! Your choice of large map pixels excluded 8.25% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1746 milli-arcsec
! Added new window around map position (-0.6, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.454395 Jy
! Component: 100  -  total flux cleaned = 0.766947 Jy
! Total flux subtracted in 100 components = 0.766947 Jy
! Clean residual min=-0.070315 max=0.206922 Jy/beam
! Clean residual mean=0.003759 rms=0.031409 Jy/beam
! Combined flux in latest and established models = 7.08754 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 27 components and 7.08754 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.801171Jy  sigma=0.006642
! Fit after  self-cal, rms=0.797841Jy  sigma=0.006621
! Inverting map 
! Your choice of large map pixels excluded 8.25% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1746 milli-arcsec
! Added new window around map position (0.6, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.231413 Jy
! Component: 100  -  total flux cleaned = 0.394957 Jy
! Total flux subtracted in 100 components = 0.394957 Jy
! Clean residual min=-0.061130 max=0.112254 Jy/beam
! Clean residual mean=0.002500 rms=0.023579 Jy/beam
! Combined flux in latest and established models = 7.4825 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 31 components and 7.4825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.693498Jy  sigma=0.005391
! Fit after  self-cal, rms=0.693103Jy  sigma=0.005389
! Inverting map 
! Your choice of large map pixels excluded 8.25% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1746 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 8.25% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1746 milli-arcsec
! Estimated beam: bmin=0.6125 mas, bmaj=1.188 mas, bpa=-3.921 degrees
! Estimated noise=696.877 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.209879 Jy
! Component: 100  -  total flux cleaned = 0.331589 Jy
! Component: 150  -  total flux cleaned = 0.405999 Jy
! Component: 200  -  total flux cleaned = 0.452997 Jy
! Total flux subtracted in 200 components = 0.452997 Jy
! Clean residual min=-0.067911 max=0.157200 Jy/beam
! Clean residual mean=0.005548 rms=0.031011 Jy/beam
! Combined flux in latest and established models = 7.9355 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 41 components and 7.9355 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.648010Jy  sigma=0.004674
! Fit after  self-cal, rms=0.647158Jy  sigma=0.004669
! Inverting map 
! Your choice of large map pixels excluded 8.25% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1746 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.02     FD        1.01     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.12     LA        0.99     MA        0.98     
!   MC        1.04     MK        1.00*    NL        1.06     ON        1.07     
!   OV        1.01     PT        1.01     SC        1.01     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.96     GG        1.00*    HN        0.93     
!   KK        1.21     KP        1.00*    LA        0.95     MA        1.02     
!   MC        1.10     MK        1.07     NL        1.05     ON        1.01     
!   OV        0.95     PT        0.92     SC        0.98     TC        1.17     
!   TS        1.00*    WF        1.01     WZ        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.01     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.05     LA        1.00     MA        0.95     
!   MC        1.01     MK        1.00*    NL        1.02     ON        1.09     
!   OV        1.01     PT        1.04     SC        0.97     TC        1.00*    
!   TS        1.00*    WF        1.08     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.96     GG        1.00*    HN        0.94     
!   KK        1.21     KP        1.00*    LA        0.95     MA        1.00     
!   MC        1.05     MK        1.08     NL        1.01     ON        1.00     
!   OV        0.94     PT        0.96     SC        0.94     TC        1.25     
!   TS        1.00*    WF        1.03     WZ        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        0.98     LA        1.01     MA        0.93     
!   MC        0.92     MK        1.00*    NL        1.01     ON        1.12     
!   OV        1.05     PT        1.08     SC        0.99     TC        1.00*    
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.95     GG        1.00*    HN        0.94     
!   KK        1.30     KP        1.00*    LA        0.96     MA        0.99     
!   MC        1.12     MK        1.08     NL        1.00     ON        1.00     
!   OV        0.99     PT        0.99     SC        0.97     TC        1.18     
!   TS        1.00*    WF        0.98     WZ        0.99     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.98     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.06     LA        0.99     MA        0.99     
!   MC        0.90     MK        1.00*    NL        1.02     ON        0.84     
!   OV        1.04     PT        1.08     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.94     GG        1.00*    HN        0.96     
!   KK        1.23     KP        1.00*    LA        0.95     MA        1.06     
!   MC        1.10     MK        1.11     NL        1.01     ON        0.99     
!   OV        0.98     PT        0.99     SC        1.02     TC        1.25     
!   TS        1.00*    WF        0.97     WZ        1.00     
! 
! 
! Fit before self-cal, rms=0.647158Jy  sigma=0.004669
! Fit after  self-cal, rms=0.469730Jy  sigma=0.002922
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=0.6141 mas, bmaj=1.202 mas, bpa=-3.952 degrees
! Estimated noise=696.604 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 (-2.4, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0929753 Jy
! Component: 100  -  total flux cleaned = 0.128507 Jy
! Component: 150  -  total flux cleaned = 0.136734 Jy
! Component: 200  -  total flux cleaned = 0.139907 Jy
! Total flux subtracted in 200 components = 0.139907 Jy
! Clean residual min=-0.021207 max=0.036153 Jy/beam
! Clean residual mean=0.001914 rms=0.007737 Jy/beam
! Combined flux in latest and established models = 8.0754 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 58 components and 8.07541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.452909Jy  sigma=0.002750
! Fit after  self-cal, rms=0.449787Jy  sigma=0.002725
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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.449787Jy  sigma=0.002725
! Fit after  self-cal, rms=0.444856Jy  sigma=0.002684
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=0.6148 mas, bmaj=1.2 mas, bpa=-3.893 degrees
! Estimated noise=697.426 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0475469 Jy
! Component: 100  -  total flux cleaned = 0.0709426 Jy
! Component: 150  -  total flux cleaned = 0.0782478 Jy
! Component: 200  -  total flux cleaned = 0.0827637 Jy
! Total flux subtracted in 200 components = 0.0827637 Jy
! Clean residual min=-0.016000 max=0.023445 Jy/beam
! Clean residual mean=0.001430 rms=0.005365 Jy/beam
! Combined flux in latest and established models = 8.15817 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 69 components and 8.15817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.438991Jy  sigma=0.002634
! Fit after  self-cal, rms=0.438084Jy  sigma=0.002627
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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 (-6.8, -11.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219403 Jy
! Component: 100  -  total flux cleaned = 0.0286543 Jy
! Component: 150  -  total flux cleaned = 0.0303653 Jy
! Component: 200  -  total flux cleaned = 0.0319195 Jy
! Total flux subtracted in 200 components = 0.0319195 Jy
! Clean residual min=-0.017447 max=0.016486 Jy/beam
! Clean residual mean=0.000990 rms=0.004680 Jy/beam
! Combined flux in latest and established models = 8.19009 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 85 components and 8.19009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436542Jy  sigma=0.002613
! Fit after  self-cal, rms=0.436446Jy  sigma=0.002612
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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.436446Jy  sigma=0.002612
! Fit after  self-cal, rms=0.434210Jy  sigma=0.002594
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=0.6151 mas, bmaj=1.199 mas, bpa=-3.87 degrees
! Estimated noise=697.753 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0221362 Jy
! Component: 100  -  total flux cleaned = 0.0345447 Jy
! Component: 150  -  total flux cleaned = 0.0386161 Jy
! Component: 200  -  total flux cleaned = 0.0418653 Jy
! Total flux subtracted in 200 components = 0.0418653 Jy
! Clean residual min=-0.012729 max=0.014023 Jy/beam
! Clean residual mean=0.000967 rms=0.003728 Jy/beam
! Combined flux in latest and established models = 8.23195 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 91 components and 8.23195 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432366Jy  sigma=0.002582
! Fit after  self-cal, rms=0.432186Jy  sigma=0.002581
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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.00592371 Jy
! Component: 100  -  total flux cleaned = 0.00817642 Jy
! Component: 150  -  total flux cleaned = 0.00931646 Jy
! Component: 200  -  total flux cleaned = 0.010622 Jy
! Total flux subtracted in 200 components = 0.010622 Jy
! Clean residual min=-0.013333 max=0.012282 Jy/beam
! Clean residual mean=0.000777 rms=0.003515 Jy/beam
! Combined flux in latest and established models = 8.24257 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 95 components and 8.24257 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.431452Jy  sigma=0.002578
! Fit after  self-cal, rms=0.431399Jy  sigma=0.002578
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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.431399Jy  sigma=0.002578
! Fit after  self-cal, rms=0.430708Jy  sigma=0.002573
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=2.051 mas, bmaj=2.789 mas, bpa=35.46 degrees
! Estimated noise=965.588 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0195139 Jy
! Component: 100  -  total flux cleaned = 0.0257447 Jy
! Component: 150  -  total flux cleaned = 0.0274977 Jy
! Component: 200  -  total flux cleaned = 0.028882 Jy
! Total flux subtracted in 200 components = 0.028882 Jy
! Clean residual min=-0.012650 max=0.019815 Jy/beam
! Clean residual mean=0.001903 rms=0.004695 Jy/beam
! Combined flux in latest and established models = 8.27146 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 111 components and 8.27146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430388Jy  sigma=0.002570
! Fit after  self-cal, rms=0.430309Jy  sigma=0.002569
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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 (1.8, 12.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113092 Jy
! Component: 100  -  total flux cleaned = 0.0101868 Jy
! Component: 150  -  total flux cleaned = 0.00955446 Jy
! Component: 200  -  total flux cleaned = 0.00954219 Jy
! Total flux subtracted in 200 components = 0.00954219 Jy
! Clean residual min=-0.010753 max=0.014171 Jy/beam
! Clean residual mean=0.001372 rms=0.003688 Jy/beam
! Combined flux in latest and established models = 8.281 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 134 components and 8.281 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430095Jy  sigma=0.002566
! Fit after  self-cal, rms=0.430077Jy  sigma=0.002566
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=0.6153 mas, bmaj=1.199 mas, bpa=-3.855 degrees
! Estimated noise=698.215 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6153 x 1.199 at -3.855 degrees (North through East)
! Clean map  min=-0.009716  max=4.3954 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.430077Jy  sigma=0.002566
! Fit after  self-cal, rms=0.370132Jy  sigma=0.001277
! Inverting map and beam 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=0.6148 mas, bmaj=1.2 mas, bpa=-3.978 degrees
! Estimated noise=697.883 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00815363 Jy
! Component: 100  -  total flux cleaned = 0.0105197 Jy
! Component: 150  -  total flux cleaned = 0.0120131 Jy
! Component: 200  -  total flux cleaned = 0.013652 Jy
! Total flux subtracted in 200 components = 0.013652 Jy
! Clean residual min=-0.008283 max=0.009568 Jy/beam
! Clean residual mean=0.000373 rms=0.002189 Jy/beam
! Combined flux in latest and established models = 8.29465 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 151 components and 8.29465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369551Jy  sigma=0.001269
! Fit after  self-cal, rms=0.369465Jy  sigma=0.001269
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00119671 Jy
! Component: 100  -  total flux cleaned = 0.0024477 Jy
! Component: 150  -  total flux cleaned = 0.00314692 Jy
! Component: 200  -  total flux cleaned = 0.00358749 Jy
! Total flux subtracted in 200 components = 0.00358749 Jy
! Clean residual min=-0.007579 max=0.008853 Jy/beam
! Clean residual mean=0.000306 rms=0.002049 Jy/beam
! Combined flux in latest and established models = 8.29824 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 159 components and 8.29824 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369094Jy  sigma=0.001266
! Fit after  self-cal, rms=0.369057Jy  sigma=0.001266
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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.369057Jy  sigma=0.001266
! Fit after  self-cal, rms=0.367428Jy  sigma=0.001265
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 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=0.4825 mas, bmaj=0.9459 mas, bpa=-3.165 degrees
! Estimated noise=1556.03 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.16083 Jy
! Component: 100  -  total flux cleaned = 4.76878 Jy
! Component: 150  -  total flux cleaned = 5.73368 Jy
! Component: 200  -  total flux cleaned = 6.3755 Jy
! Total flux subtracted in 200 components = 6.3755 Jy
! Clean residual min=-0.102404 max=0.345676 Jy/beam
! Clean residual mean=0.006077 rms=0.044599 Jy/beam
! Combined flux in latest and established models = 6.3755 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 16 model components to the UV plane model.
! The established model now contains 16 components and 6.3755 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=0.6148 mas, bmaj=1.2 mas, bpa=-3.98 degrees
! Estimated noise=697.865 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.693639 Jy
! Component: 100  -  total flux cleaned = 1.07571 Jy
! Component: 150  -  total flux cleaned = 1.32286 Jy
! Component: 200  -  total flux cleaned = 1.49316 Jy
! Total flux subtracted in 200 components = 1.49316 Jy
! Clean residual min=-0.030624 max=0.097282 Jy/beam
! Clean residual mean=0.008121 rms=0.016024 Jy/beam
! Combined flux in latest and established models = 7.86866 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 39 components and 7.86866 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Added new window around map position (-1.4, 0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.119449 Jy
! Component: 100  -  total flux cleaned = 0.20412 Jy
! Component: 150  -  total flux cleaned = 0.264827 Jy
! Component: 200  -  total flux cleaned = 0.309485 Jy
! Total flux subtracted in 200 components = 0.309485 Jy
! Clean residual min=-0.013330 max=0.025587 Jy/beam
! Clean residual mean=0.002420 rms=0.005347 Jy/beam
! Combined flux in latest and established models = 8.17814 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 58 components and 8.17815 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0332078 Jy
! Component: 100  -  total flux cleaned = 0.0583239 Jy
! Component: 150  -  total flux cleaned = 0.0682011 Jy
! Component: 200  -  total flux cleaned = 0.0747771 Jy
! Total flux subtracted in 200 components = 0.0747771 Jy
! Clean residual min=-0.011257 max=0.016322 Jy/beam
! Clean residual mean=0.001068 rms=0.003504 Jy/beam
! Combined flux in latest and established models = 8.25292 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 69 components and 8.25292 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Added new window around map position (3.8, -0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104031 Jy
! Component: 100  -  total flux cleaned = 0.0165875 Jy
! Component: 150  -  total flux cleaned = 0.0222509 Jy
! Component: 200  -  total flux cleaned = 0.0264314 Jy
! Total flux subtracted in 200 components = 0.0264314 Jy
! Clean residual min=-0.009940 max=0.011615 Jy/beam
! Clean residual mean=0.000614 rms=0.002881 Jy/beam
! Combined flux in latest and established models = 8.27936 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 82 components and 8.27936 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 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 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=2.048 mas, bmaj=2.788 mas, bpa=35.34 degrees
! Estimated noise=966.585 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0134791 Jy
! Component: 100  -  total flux cleaned = 0.018276 Jy
! Component: 150  -  total flux cleaned = 0.0215121 Jy
! Component: 200  -  total flux cleaned = 0.0235801 Jy
! Total flux subtracted in 200 components = 0.0235801 Jy
! Clean residual min=-0.006321 max=0.006708 Jy/beam
! Clean residual mean=0.000722 rms=0.002003 Jy/beam
! Combined flux in latest and established models = 8.30294 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.00164863 Jy
! Component: 100  -  total flux cleaned = 0.00305167 Jy
! Component: 150  -  total flux cleaned = 0.00428093 Jy
! Component: 200  -  total flux cleaned = 0.00464894 Jy
! Total flux subtracted in 200 components = 0.00464894 Jy
! Clean residual min=-0.006549 max=0.006336 Jy/beam
! Clean residual mean=0.000511 rms=0.001801 Jy/beam
! Combined flux in latest and established models = 8.30759 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 125 components and 8.30758 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! Estimated beam: bmin=0.6148 mas, bmaj=1.2 mas, bpa=-3.98 degrees
! Estimated noise=697.865 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0037107 Jy
! Component: 100  -  total flux cleaned = -0.00412821 Jy
! Component: 150  -  total flux cleaned = -0.00410426 Jy
! Component: 200  -  total flux cleaned = -0.00370228 Jy
! Total flux subtracted in 200 components = -0.00370228 Jy
! Clean residual min=-0.009704 max=0.009180 Jy/beam
! Clean residual mean=0.000255 rms=0.002280 Jy/beam
! Combined flux in latest and established models = 8.30388 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 130 components and 8.30388 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385062Jy  sigma=0.001293
! Fit after  self-cal, rms=0.375856Jy  sigma=0.001286
wmodel J0927+3902_X_2003_05_07_pus_map.mod
! Writing 130 model components to file: J0927+3902_X_2003_05_07_pus_map.mod
wobs J0927+3902_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0927+3902_X_2003_05_07_pus_uvs.fits
wwins J0927+3902_X_2003_05_07_pus_map.win
! wwins: Wrote 8 windows to J0927+3902_X_2003_05_07_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 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00180439 Jy
! Component: 100  -  total flux cleaned = 0.00315004 Jy
! Component: 150  -  total flux cleaned = 0.00414433 Jy
! Component: 200  -  total flux cleaned = 0.00482814 Jy
! Component: 250  -  total flux cleaned = 0.00522825 Jy
! Component: 300  -  total flux cleaned = 0.00561662 Jy
! Component: 350  -  total flux cleaned = 0.00587166 Jy
! Component: 400  -  total flux cleaned = 0.00624551 Jy
! Component: 450  -  total flux cleaned = 0.00649048 Jy
! Component: 500  -  total flux cleaned = 0.00661173 Jy
! Component: 550  -  total flux cleaned = 0.00708555 Jy
! Component: 600  -  total flux cleaned = 0.00720137 Jy
! Component: 650  -  total flux cleaned = 0.00743126 Jy
! Component: 700  -  total flux cleaned = 0.00754366 Jy
! Component: 750  -  total flux cleaned = 0.0077685 Jy
! Component: 800  -  total flux cleaned = 0.00798872 Jy
! Component: 850  -  total flux cleaned = 0.00798802 Jy
! Component: 900  -  total flux cleaned = 0.00820482 Jy
! Component: 950  -  total flux cleaned = 0.00831143 Jy
! Component: 1000  -  total flux cleaned = 0.00852306 Jy
! Total flux subtracted in 1024 components = 0.00841779 Jy
! Clean residual min=-0.005236 max=0.005240 Jy/beam
! Clean residual mean=0.000133 rms=0.001868 Jy/beam
! Combined flux in latest and established models = 8.3123 Jy
keep
! Adding 72 model components to the UV plane model.
! The established model now contains 192 components and 8.31231 Jy
wmap "J0927+3902_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6148 x 1.2 at -3.98 degrees (North through East)
! Clean map  min=-0.0071799  max=4.3916 Jy/beam
! Writing clean map to FITS file: J0927+3902_X_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 4.39163 
invert
! Inverting map 
! Your choice of large map pixels excluded 7.67% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1749 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00186779 
device "J0927+3902_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0927+3902_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.127592 0.127592 0.255184 0.510368 1.02074 2.04147 4.08294 8.16589 16.3318 32.6636 65.3271
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0056 
print "peak=",int(1000*peak_flux)/1000
! peak= 4.391 
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.6148 x 1.2 at -3.98 degrees (North through East)
! Clean map  min=-0.0071799  max=4.3916 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0927+3902_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0927+3902_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0927+3902_X_2003_05_07_pus_uvs.log closed on Wed Dec  6 12:13:21 2006