! Started logfile: J0958+4725_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:28:24 2008
obs J0958+4725_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0958+4725_X_1998_10_01_pus_uva.fits
! AN table 1: 68 integrations on 136 of 136 possible baselines.
! AN table 2: 475 integrations on 136 of 136 possible baselines.
! AN table 3: 240 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.343457 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0958+4725
! 
! 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.40798e+09        4e+06          1        4e+06
!  02        2  8.47798e+09        4e+06          1        4e+06
!  03        3  8.79298e+09        4e+06          1        4e+06
!  04        4  8.89798e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 2049 lines of history.
! 
! Reading 146296 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 J0958+4725_X_1998_10_01_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 974 telescope corrections were flagged in sub-array 1.
!  A total of 2923 telescope corrections were flagged in sub-array 2.
!  A total of 2681 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 974 telescope corrections were flagged in sub-array 1.
!  A total of 2923 telescope corrections were flagged in sub-array 2.
!  A total of 2681 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 974 telescope corrections were flagged in sub-array 1.
!  A total of 2923 telescope corrections were flagged in sub-array 2.
!  A total of 2681 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 974 telescope corrections were flagged in sub-array 1.
!  A total of 2923 telescope corrections were flagged in sub-array 2.
!  A total of 2681 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.735543Jy  sigma=0.005755
! Fit after  self-cal, rms=0.532745Jy  sigma=0.003922
! 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 1.77% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.6371 mas, bmaj=0.7021 mas, bpa=14.99 degrees
! Estimated noise=656.365 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.488709 Jy
! Component: 100  -  total flux cleaned = 0.603873 Jy
! Total flux subtracted in 100 components = 0.603873 Jy
! Clean residual min=-0.012953 max=0.047330 Jy/beam
! Clean residual mean=0.000331 rms=0.004240 Jy/beam
! Combined flux in latest and established models = 0.603873 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.603873 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386368Jy  sigma=0.002601
! Fit after  self-cal, rms=0.386358Jy  sigma=0.002601
! Inverting map 
! Your choice of large map pixels excluded 1.77% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0532759 Jy
! Component: 100  -  total flux cleaned = 0.0836987 Jy
! Total flux subtracted in 100 components = 0.0836987 Jy
! Clean residual min=-0.009227 max=0.015953 Jy/beam
! Clean residual mean=0.000144 rms=0.002816 Jy/beam
! Combined flux in latest and established models = 0.687571 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 11 components and 0.687571 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379269Jy  sigma=0.002461
! Fit after  self-cal, rms=0.379240Jy  sigma=0.002461
! Inverting map 
! Your choice of large map pixels excluded 1.77% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0196499 Jy
! Component: 100  -  total flux cleaned = 0.0322877 Jy
! Total flux subtracted in 100 components = 0.0322877 Jy
! Clean residual min=-0.008981 max=0.011339 Jy/beam
! Clean residual mean=0.000074 rms=0.002553 Jy/beam
! Combined flux in latest and established models = 0.719859 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 12 components and 0.719859 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.378558Jy  sigma=0.002440
! Fit after  self-cal, rms=0.378542Jy  sigma=0.002440
! Inverting map 
! Your choice of large map pixels excluded 1.77% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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 1.77% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.7783 mas, bmaj=0.8879 mas, bpa=2.473 degrees
! Estimated noise=213.52 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.00991959 Jy
! Component: 100  -  total flux cleaned = 0.0155319 Jy
! Component: 150  -  total flux cleaned = 0.0168137 Jy
! Component: 200  -  total flux cleaned = 0.0177801 Jy
! Total flux subtracted in 200 components = 0.0177801 Jy
! Clean residual min=-0.009489 max=0.012921 Jy/beam
! Clean residual mean=0.000081 rms=0.002631 Jy/beam
! Combined flux in latest and established models = 0.737639 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 19 components and 0.737639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.378295Jy  sigma=0.002434
! Fit after  self-cal, rms=0.378313Jy  sigma=0.002434
! Inverting map 
! Your choice of large map pixels excluded 1.77% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.12     HN        1.00*    
!   KK        1.00*    KP        0.97     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.16     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.08     WF        0.31     MC        0.80     
!   GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.99     GC        0.95     HN        1.15     
!   KK        1.06     KP        0.98     LA        0.99     MK        1.00     
!   NL        0.96     NY        1.01     ON        0.97     OV        0.99     
!   PT        1.02     SC        0.98     WF        1.02     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00     GC        1.00     HN        1.03     
!   KK        0.97     KP        0.96     LA        1.05     MK        1.01     
!   NL        0.94     NY        0.93     ON        1.00     OV        0.97     
!   PT        1.02     SC        1.00*    WF        1.08     MC        1.42     
!   GN        1.10     
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.01     HN        1.00*    
!   KK        1.00*    KP        1.08     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        0.98     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.02     WF        0.26     MC        0.85     
!   GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        0.98     HN        1.22     
!   KK        1.08     KP        0.99     LA        0.95     MK        0.99     
!   NL        0.97     NY        1.03     ON        0.98     OV        0.98     
!   PT        1.03     SC        0.97     WF        1.04     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.02     GC        1.04     HN        1.10     
!   KK        0.98     KP        0.98     LA        1.00     MK        1.00     
!   NL        0.97     NY        0.94     ON        1.07     OV        0.97     
!   PT        1.00     SC        1.00*    WF        1.08     MC        1.34     
!   GN        1.13     
! 
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.11     HN        1.00*    
!   KK        1.00*    KP        1.09     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.18     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.17     WF        0.08     MC        0.62     
!   GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        0.97     HN        1.18     
!   KK        1.10     KP        1.02     LA        0.95     MK        1.04     
!   NL        0.97     NY        1.00     ON        1.01     OV        0.94     
!   PT        1.04     SC        1.01     WF        1.01     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.99     GC        1.02     HN        1.05     
!   KK        1.02     KP        1.03     LA        0.99     MK        1.05     
!   NL        0.96     NY        0.92     ON        1.00     OV        0.95     
!   PT        1.02     SC        1.00*    WF        1.09     MC        1.47     
!   GN        1.14     
! 
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.04     HN        1.00*    
!   KK        1.00*    KP        0.98     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.10     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.08     WF        0.14     MC        0.80     
!   GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     GC        0.99     HN        1.26     
!   KK        1.09     KP        1.00     LA        0.97     MK        1.00     
!   NL        0.98     NY        1.04     ON        1.00     OV        0.97     
!   PT        0.99     SC        0.97     WF        1.00     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.97     GC        1.02     HN        1.09     
!   KK        1.01     KP        1.00     LA        1.03     MK        1.02     
!   NL        0.98     NY        0.98     ON        1.05     OV        0.95     
!   PT        0.96     SC        1.00*    WF        1.11     MC        1.35     
!   GN        1.14     
! 
! 
! Fit before self-cal, rms=0.378313Jy  sigma=0.002434
! Fit after  self-cal, rms=0.358421Jy  sigma=0.002401
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.7857 mas, bmaj=0.89 mas, bpa=1.616 degrees
! Estimated noise=214.414 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.2, -0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00336632 Jy
! Component: 100  -  total flux cleaned = 0.00338018 Jy
! Component: 150  -  total flux cleaned = 0.0031793 Jy
! Component: 200  -  total flux cleaned = 0.00309363 Jy
! Total flux subtracted in 200 components = 0.00309363 Jy
! Clean residual min=-0.003161 max=0.003392 Jy/beam
! Clean residual mean=0.000041 rms=0.000878 Jy/beam
! Combined flux in latest and established models = 0.740733 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 30 components and 0.740733 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358326Jy  sigma=0.002400
! Fit after  self-cal, rms=0.358561Jy  sigma=0.002400
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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.358561Jy  sigma=0.002400
! Fit after  self-cal, rms=0.363235Jy  sigma=0.002394
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.7855 mas, bmaj=0.8891 mas, bpa=1.398 degrees
! Estimated noise=214.89 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00222855 Jy
! Component: 100  -  total flux cleaned = 0.00240822 Jy
! Component: 150  -  total flux cleaned = 0.00247964 Jy
! Component: 200  -  total flux cleaned = 0.00241787 Jy
! Total flux subtracted in 200 components = 0.00241787 Jy
! Clean residual min=-0.002971 max=0.002365 Jy/beam
! Clean residual mean=0.000005 rms=0.000618 Jy/beam
! Combined flux in latest and established models = 0.743151 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 37 components and 0.743151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363198Jy  sigma=0.002394
! Fit after  self-cal, rms=0.363323Jy  sigma=0.002394
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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.000147149 Jy
! Component: 100  -  total flux cleaned = -0.000148173 Jy
! Component: 150  -  total flux cleaned = -0.000243722 Jy
! Component: 200  -  total flux cleaned = -0.000332199 Jy
! Total flux subtracted in 200 components = -0.000332199 Jy
! Clean residual min=-0.002533 max=0.002342 Jy/beam
! Clean residual mean=0.000007 rms=0.000606 Jy/beam
! Combined flux in latest and established models = 0.742819 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 40 components and 0.742819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363310Jy  sigma=0.002393
! Fit after  self-cal, rms=0.363307Jy  sigma=0.002393
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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.363307Jy  sigma=0.002393
! Fit after  self-cal, rms=0.365952Jy  sigma=0.002393
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.7858 mas, bmaj=0.8887 mas, bpa=0.7538 degrees
! Estimated noise=215.152 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000866888 Jy
! Component: 100  -  total flux cleaned = 0.000819084 Jy
! Component: 150  -  total flux cleaned = 0.000772556 Jy
! Component: 200  -  total flux cleaned = 0.000689527 Jy
! Total flux subtracted in 200 components = 0.000689527 Jy
! Clean residual min=-0.002543 max=0.002156 Jy/beam
! Clean residual mean=-0.000013 rms=0.000573 Jy/beam
! Combined flux in latest and established models = 0.743508 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 45 components and 0.743508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365941Jy  sigma=0.002393
! Fit after  self-cal, rms=0.365986Jy  sigma=0.002393
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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 = -4.04998e-05 Jy
! Component: 100  -  total flux cleaned = -0.000149717 Jy
! Component: 150  -  total flux cleaned = -0.000219748 Jy
! Component: 200  -  total flux cleaned = -0.000285974 Jy
! Total flux subtracted in 200 components = -0.000285974 Jy
! Clean residual min=-0.002288 max=0.002166 Jy/beam
! Clean residual mean=-0.000012 rms=0.000567 Jy/beam
! Combined flux in latest and established models = 0.743222 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 48 components and 0.743222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365981Jy  sigma=0.002393
! Fit after  self-cal, rms=0.365979Jy  sigma=0.002393
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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.365979Jy  sigma=0.002393
! Fit after  self-cal, rms=0.368403Jy  sigma=0.002393
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=1.992 mas, bmaj=2.571 mas, bpa=36.2 degrees
! Estimated noise=298.292 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000620874 Jy
! Component: 100  -  total flux cleaned = -0.000642454 Jy
! Component: 150  -  total flux cleaned = -0.000676844 Jy
! Component: 200  -  total flux cleaned = -0.000706471 Jy
! Total flux subtracted in 200 components = -0.000706471 Jy
! Clean residual min=-0.002131 max=0.002149 Jy/beam
! Clean residual mean=-0.000042 rms=0.000750 Jy/beam
! Combined flux in latest and established models = 0.742516 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 51 components and 0.742516 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.368406Jy  sigma=0.002392
! Fit after  self-cal, rms=0.368437Jy  sigma=0.002392
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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 = -5.36457e-05 Jy
! Component: 100  -  total flux cleaned = -1.92095e-05 Jy
! Component: 150  -  total flux cleaned = -3.46185e-06 Jy
! Component: 200  -  total flux cleaned = -1.64016e-05 Jy
! Total flux subtracted in 200 components = -1.64016e-05 Jy
! Clean residual min=-0.002113 max=0.002165 Jy/beam
! Clean residual mean=-0.000042 rms=0.000749 Jy/beam
! Combined flux in latest and established models = 0.742499 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 54 components and 0.742499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.368443Jy  sigma=0.002392
! Fit after  self-cal, rms=0.368443Jy  sigma=0.002392
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.7859 mas, bmaj=0.8882 mas, bpa=0.3971 degrees
! Estimated noise=215.368 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7859 x 0.8882 at 0.3971 degrees (North through East)
! Clean map  min=-0.0017063  max=0.65413 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.368443Jy  sigma=0.002392
! Fit after  self-cal, rms=0.754249Jy  sigma=0.002265
! Inverting map and beam 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.786 mas, bmaj=0.8884 mas, bpa=-0.1128 degrees
! Estimated noise=215.436 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000764399 Jy
! Component: 100  -  total flux cleaned = 0.000614509 Jy
! Component: 150  -  total flux cleaned = 0.00061449 Jy
! Component: 200  -  total flux cleaned = 0.000557711 Jy
! Total flux subtracted in 200 components = 0.000557711 Jy
! Clean residual min=-0.002299 max=0.002042 Jy/beam
! Clean residual mean=-0.000017 rms=0.000538 Jy/beam
! Combined flux in latest and established models = 0.743057 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 58 components and 0.743057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.754241Jy  sigma=0.002265
! Fit after  self-cal, rms=0.754271Jy  sigma=0.002265
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.09423e-05 Jy
! Component: 100  -  total flux cleaned = -0.000142438 Jy
! Component: 150  -  total flux cleaned = -0.0001663 Jy
! Component: 200  -  total flux cleaned = -0.000211548 Jy
! Total flux subtracted in 200 components = -0.000211548 Jy
! Clean residual min=-0.002147 max=0.002025 Jy/beam
! Clean residual mean=-0.000016 rms=0.000534 Jy/beam
! Combined flux in latest and established models = 0.742846 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 62 components and 0.742846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.754270Jy  sigma=0.002264
! Fit after  self-cal, rms=0.754275Jy  sigma=0.002264
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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.754275Jy  sigma=0.002264
! Fit after  self-cal, rms=1.026585Jy  sigma=0.002264
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 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.6424 mas, bmaj=0.7003 mas, bpa=13.39 degrees
! Estimated noise=667.342 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.490117 Jy
! Component: 100  -  total flux cleaned = 0.604112 Jy
! Component: 150  -  total flux cleaned = 0.655101 Jy
! Component: 200  -  total flux cleaned = 0.686443 Jy
! Total flux subtracted in 200 components = 0.686443 Jy
! Clean residual min=-0.006385 max=0.016754 Jy/beam
! Clean residual mean=0.000149 rms=0.002089 Jy/beam
! Combined flux in latest and established models = 0.686443 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.686443 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.786 mas, bmaj=0.8879 mas, bpa=-0.309 degrees
! Estimated noise=215.688 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.0254598 Jy
! Component: 100  -  total flux cleaned = 0.0382226 Jy
! Component: 150  -  total flux cleaned = 0.0453776 Jy
! Component: 200  -  total flux cleaned = 0.0498869 Jy
! Total flux subtracted in 200 components = 0.0498869 Jy
! Clean residual min=-0.002233 max=0.002956 Jy/beam
! Clean residual mean=0.000008 rms=0.000632 Jy/beam
! Combined flux in latest and established models = 0.73633 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 27 components and 0.73633 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Added new window around map position (-0.6, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00313003 Jy
! Component: 100  -  total flux cleaned = 0.00429683 Jy
! Component: 150  -  total flux cleaned = 0.00475133 Jy
! Component: 200  -  total flux cleaned = 0.00502735 Jy
! Total flux subtracted in 200 components = 0.00502735 Jy
! Clean residual min=-0.002047 max=0.001833 Jy/beam
! Clean residual mean=-0.000010 rms=0.000553 Jy/beam
! Combined flux in latest and established models = 0.741357 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 39 components and 0.741357 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 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 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=1.994 mas, bmaj=2.571 mas, bpa=36.31 degrees
! Estimated noise=298.629 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00113832 Jy
! Component: 100  -  total flux cleaned = 0.00111025 Jy
! Component: 150  -  total flux cleaned = 0.00110936 Jy
! Component: 200  -  total flux cleaned = 0.00108891 Jy
! Total flux subtracted in 200 components = 0.00108891 Jy
! Clean residual min=-0.002090 max=0.002325 Jy/beam
! Clean residual mean=-0.000054 rms=0.000733 Jy/beam
! Combined flux in latest and established models = 0.742446 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 = -1.76923e-05 Jy
! Component: 100  -  total flux cleaned = -3.42508e-05 Jy
! Component: 150  -  total flux cleaned = -4.95495e-05 Jy
! Component: 200  -  total flux cleaned = -6.34883e-05 Jy
! Total flux subtracted in 200 components = -6.34883e-05 Jy
! Clean residual min=-0.002035 max=0.002322 Jy/beam
! Clean residual mean=-0.000054 rms=0.000726 Jy/beam
! Combined flux in latest and established models = 0.742383 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 53 components and 0.742383 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! Estimated beam: bmin=0.786 mas, bmaj=0.8879 mas, bpa=-0.309 degrees
! Estimated noise=215.688 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.26051e-06 Jy
! Component: 100  -  total flux cleaned = 5.05857e-05 Jy
! Component: 150  -  total flux cleaned = 5.26885e-05 Jy
! Component: 200  -  total flux cleaned = -4.45588e-05 Jy
! Total flux subtracted in 200 components = -4.45588e-05 Jy
! Clean residual min=-0.001962 max=0.001860 Jy/beam
! Clean residual mean=-0.000013 rms=0.000530 Jy/beam
! Combined flux in latest and established models = 0.742338 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 60 components and 0.742338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.026638Jy  sigma=0.002265
! Fit after  self-cal, rms=1.026619Jy  sigma=0.002265
wmodel J0958+4725_X_1998_10_01_pus_map.mod
! Writing 60 model components to file: J0958+4725_X_1998_10_01_pus_map.mod
wobs J0958+4725_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0958+4725_X_1998_10_01_pus_uvs.fits
wwins J0958+4725_X_1998_10_01_pus_map.win
! wwins: Wrote 3 windows to J0958+4725_X_1998_10_01_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 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000336426 Jy
! Component: 100  -  total flux cleaned = -0.000437426 Jy
! Component: 150  -  total flux cleaned = -0.000595156 Jy
! Component: 200  -  total flux cleaned = -0.000716412 Jy
! Component: 250  -  total flux cleaned = -0.000773716 Jy
! Component: 300  -  total flux cleaned = -0.00074511 Jy
! Component: 350  -  total flux cleaned = -0.000772722 Jy
! Component: 400  -  total flux cleaned = -0.000772542 Jy
! Component: 450  -  total flux cleaned = -0.000746199 Jy
! Component: 500  -  total flux cleaned = -0.000771829 Jy
! Component: 550  -  total flux cleaned = -0.000796956 Jy
! Component: 600  -  total flux cleaned = -0.000796671 Jy
! Component: 650  -  total flux cleaned = -0.000796329 Jy
! Component: 700  -  total flux cleaned = -0.000771883 Jy
! Component: 750  -  total flux cleaned = -0.000651931 Jy
! Component: 800  -  total flux cleaned = -0.000533513 Jy
! Component: 850  -  total flux cleaned = -0.00053366 Jy
! Component: 900  -  total flux cleaned = -0.000417545 Jy
! Component: 950  -  total flux cleaned = -0.00039444 Jy
! Component: 1000  -  total flux cleaned = -0.000258114 Jy
! Total flux subtracted in 1024 components = -0.000168061 Jy
! Clean residual min=-0.001325 max=0.001285 Jy/beam
! Clean residual mean=-0.000005 rms=0.000436 Jy/beam
! Combined flux in latest and established models = 0.74217 Jy
keep
! Adding 80 model components to the UV plane model.
! The established model now contains 140 components and 0.74217 Jy
![Exited script file: muppet]
wmap "J0958+4725_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.786 x 0.8879 at -0.309 degrees (North through East)
! Clean map  min=-0.001578  max=0.65546 Jy/beam
! Writing clean map to FITS file: J0958+4725_X_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.65546 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.78% of the data.
!  The x-axis pixel size should ideally be below 0.1791 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000434799 
device "J0958+4725_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0958+4725_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.199005 0.199005 0.39801 0.79602 1.59204 3.18408 6.36816 12.7363 25.4726 50.9453
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.655 
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.786 x 0.8879 at -0.309 degrees (North through East)
! Clean map  min=-0.001578  max=0.65546 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0958+4725_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0958+4725_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0958+4725_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:28:54 2008