! Started logfile: J0854+2006_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:27:31 2008
obs J0854+2006_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0854+2006_X_1998_10_01_pus_uva.fits
! AN table 1: 83 integrations on 136 of 136 possible baselines.
! AN table 2: 292 integrations on 136 of 136 possible baselines.
! AN table 3: 71 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.209954 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0854+2006
! 
! 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 50940 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 J0854+2006_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 791 telescope corrections were flagged in sub-array 1.
!  A total of 3221 telescope corrections were flagged in sub-array 2.
!  A total of 563 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 791 telescope corrections were flagged in sub-array 1.
!  A total of 3221 telescope corrections were flagged in sub-array 2.
!  A total of 563 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 791 telescope corrections were flagged in sub-array 1.
!  A total of 3221 telescope corrections were flagged in sub-array 2.
!  A total of 563 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 791 telescope corrections were flagged in sub-array 1.
!  A total of 3221 telescope corrections were flagged in sub-array 2.
!  A total of 563 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.646577Jy  sigma=0.005968
! Fit after  self-cal, rms=0.461209Jy  sigma=0.004109
! 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 0.82% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6743 mas, bmaj=1.001 mas, bpa=-5.801 degrees
! Estimated noise=762.283 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.773934 Jy
! Component: 100  -  total flux cleaned = 1.00296 Jy
! Total flux subtracted in 100 components = 1.00296 Jy
! Clean residual min=-0.027460 max=0.102144 Jy/beam
! Clean residual mean=0.001219 rms=0.009955 Jy/beam
! Combined flux in latest and established models = 1.00296 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.00296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.433836Jy  sigma=0.003919
! Fit after  self-cal, rms=0.433099Jy  sigma=0.003915
! Inverting map 
! Your choice of large map pixels excluded 0.82% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.117065 Jy
! Component: 100  -  total flux cleaned = 0.185832 Jy
! Total flux subtracted in 100 components = 0.185832 Jy
! Clean residual min=-0.020704 max=0.063418 Jy/beam
! Clean residual mean=0.000710 rms=0.006704 Jy/beam
! Combined flux in latest and established models = 1.1888 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 15 components and 1.1888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385699Jy  sigma=0.003144
! Fit after  self-cal, rms=0.385328Jy  sigma=0.003141
! Inverting map 
! Your choice of large map pixels excluded 0.82% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Added new window around map position (-1, -0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0608876 Jy
! Component: 100  -  total flux cleaned = 0.0974776 Jy
! Total flux subtracted in 100 components = 0.0974776 Jy
! Clean residual min=-0.018112 max=0.039551 Jy/beam
! Clean residual mean=0.000440 rms=0.005383 Jy/beam
! Combined flux in latest and established models = 1.28627 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 27 components and 1.28627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371506Jy  sigma=0.002884
! Fit after  self-cal, rms=0.370659Jy  sigma=0.002875
! Inverting map 
! Your choice of large map pixels excluded 0.82% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Added new window around map position (1, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0364151 Jy
! Component: 100  -  total flux cleaned = 0.0609718 Jy
! Total flux subtracted in 100 components = 0.0609718 Jy
! Clean residual min=-0.016211 max=0.018679 Jy/beam
! Clean residual mean=0.000273 rms=0.004720 Jy/beam
! Combined flux in latest and established models = 1.34725 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 34 components and 1.34724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365411Jy  sigma=0.002784
! Fit after  self-cal, rms=0.365321Jy  sigma=0.002783
! Inverting map 
! Your choice of large map pixels excluded 0.82% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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 0.82% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.8068 mas, bmaj=1.351 mas, bpa=-7.661 degrees
! Estimated noise=325.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)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0385065 Jy
! Component: 100  -  total flux cleaned = 0.0604423 Jy
! Component: 150  -  total flux cleaned = 0.074568 Jy
! Component: 200  -  total flux cleaned = 0.0798813 Jy
! Total flux subtracted in 200 components = 0.0798813 Jy
! Clean residual min=-0.012577 max=0.015089 Jy/beam
! Clean residual mean=0.000018 rms=0.004097 Jy/beam
! Combined flux in latest and established models = 1.42713 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 56 components and 1.42713 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362301Jy  sigma=0.002713
! Fit after  self-cal, rms=0.362105Jy  sigma=0.002711
! Inverting map 
! Your choice of large map pixels excluded 0.82% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.05     GC        1.00*    HN        1.10     
!   KK        1.00*    KP        0.95     LA        1.03     MK        1.00*    
!   NL        1.06     NY        1.05     ON        0.93     OV        1.01     
!   PT        1.03     SC        1.10     WF        1.01     MC        0.95     
!   GN        1.03     
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.99     GC        0.94     HN        0.95     
!   KK        1.01     KP        0.95     LA        0.97     MK        1.00     
!   NL        0.97     NY        1.00     ON        1.00*    OV        1.00     
!   PT        1.02     SC        1.03     WF        1.10     MC        1.00*    
!   GN        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        0.93     HN        0.93     
!   KK        0.97     KP        0.99     LA        1.02     MK        0.96     
!   NL        0.97     NY        1.12     ON        1.00*    OV        1.02     
!   PT        1.02     SC        1.00*    WF        1.04     MC        1.00*    
!   GN        1.25     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.04     GC        1.00*    HN        1.12     
!   KK        1.00*    KP        0.96     LA        0.98     MK        1.00*    
!   NL        1.07     NY        0.96     ON        0.99     OV        0.99     
!   PT        1.04     SC        1.09     WF        1.02     MC        0.95     
!   GN        1.06     
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        0.96     HN        1.00     
!   KK        1.02     KP        0.96     LA        0.92     MK        1.00     
!   NL        0.98     NY        1.07     ON        1.00*    OV        0.99     
!   PT        1.02     SC        1.01     WF        1.11     MC        1.00*    
!   GN        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        0.95     HN        0.98     
!   KK        1.00     KP        1.01     LA        0.97     MK        0.97     
!   NL        0.98     NY        1.17     ON        1.00*    OV        1.01     
!   PT        1.02     SC        1.00*    WF        1.04     MC        1.00*    
!   GN        1.28     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.00*    HN        1.06     
!   KK        1.00*    KP        0.98     LA        0.98     MK        1.00*    
!   NL        1.05     NY        1.02     ON        0.92     OV        0.95     
!   PT        1.06     SC        1.10     WF        1.05     MC        0.79     
!   GN        1.12     
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.96     GC        0.96     HN        0.95     
!   KK        1.04     KP        0.99     LA        0.92     MK        1.04     
!   NL        0.97     NY        1.05     ON        1.00*    OV        0.96     
!   PT        1.03     SC        1.06     WF        1.09     MC        1.00*    
!   GN        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.98     GC        0.96     HN        0.94     
!   KK        0.97     KP        1.03     LA        0.96     MK        1.01     
!   NL        0.98     NY        1.16     ON        1.00*    OV        0.97     
!   PT        1.03     SC        1.00*    WF        1.03     MC        1.00*    
!   GN        1.26     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.00*    HN        1.13     
!   KK        1.00*    KP        0.96     LA        1.01     MK        1.00*    
!   NL        1.07     NY        0.91     ON        0.99     OV        0.97     
!   PT        1.01     SC        1.08     WF        1.07     MC        0.96     
!   GN        1.05     
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.94     GC        0.95     HN        1.00     
!   KK        1.03     KP        0.97     LA        0.94     MK        1.01     
!   NL        0.98     NY        1.06     ON        1.00*    OV        0.98     
!   PT        0.98     SC        1.02     WF        1.10     MC        1.00*    
!   GN        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.96     GC        0.96     HN        0.99     
!   KK        0.98     KP        0.99     LA        0.99     MK        0.96     
!   NL        0.99     NY        1.18     ON        1.00*    OV        1.01     
!   PT        0.98     SC        1.00*    WF        0.98     MC        1.00*    
!   GN        1.28     
! 
! 
! Fit before self-cal, rms=0.362105Jy  sigma=0.002711
! Fit after  self-cal, rms=0.360789Jy  sigma=0.002597
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.8106 mas, bmaj=1.358 mas, bpa=-7.588 degrees
! Estimated noise=324.581 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.2, 0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.013958 Jy
! Component: 100  -  total flux cleaned = 0.0147901 Jy
! Component: 150  -  total flux cleaned = 0.0139277 Jy
! Component: 200  -  total flux cleaned = 0.0134148 Jy
! Total flux subtracted in 200 components = 0.0134148 Jy
! Clean residual min=-0.007637 max=0.010588 Jy/beam
! Clean residual mean=0.000033 rms=0.002367 Jy/beam
! Combined flux in latest and established models = 1.44054 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 73 components and 1.44054 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359659Jy  sigma=0.002586
! Fit after  self-cal, rms=0.360129Jy  sigma=0.002584
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.360129Jy  sigma=0.002584
! Fit after  self-cal, rms=0.375971Jy  sigma=0.002538
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.8098 mas, bmaj=1.361 mas, bpa=-7.385 degrees
! Estimated noise=325.016 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00606227 Jy
! Component: 100  -  total flux cleaned = 0.00652498 Jy
! Component: 150  -  total flux cleaned = 0.00652846 Jy
! Component: 200  -  total flux cleaned = 0.00637729 Jy
! Total flux subtracted in 200 components = 0.00637729 Jy
! Clean residual min=-0.004705 max=0.008032 Jy/beam
! Clean residual mean=0.000134 rms=0.001462 Jy/beam
! Combined flux in latest and established models = 1.44692 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 90 components and 1.44692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375820Jy  sigma=0.002534
! Fit after  self-cal, rms=0.375981Jy  sigma=0.002533
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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 (-5.2, -2.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00634912 Jy
! Component: 100  -  total flux cleaned = 0.00787868 Jy
! Component: 150  -  total flux cleaned = 0.00883262 Jy
! Component: 200  -  total flux cleaned = 0.00937855 Jy
! Total flux subtracted in 200 components = 0.00937855 Jy
! Clean residual min=-0.004572 max=0.004599 Jy/beam
! Clean residual mean=0.000068 rms=0.001267 Jy/beam
! Combined flux in latest and established models = 1.4563 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 104 components and 1.4563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375780Jy  sigma=0.002530
! Fit after  self-cal, rms=0.375750Jy  sigma=0.002530
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.375750Jy  sigma=0.002530
! Fit after  self-cal, rms=0.408799Jy  sigma=0.002525
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.8101 mas, bmaj=1.362 mas, bpa=-7.261 degrees
! Estimated noise=325.188 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00109387 Jy
! Component: 100  -  total flux cleaned = 0.00073638 Jy
! Component: 150  -  total flux cleaned = 0.000881723 Jy
! Component: 200  -  total flux cleaned = 0.00112984 Jy
! Total flux subtracted in 200 components = 0.00112984 Jy
! Clean residual min=-0.003819 max=0.003918 Jy/beam
! Clean residual mean=0.000134 rms=0.001049 Jy/beam
! Combined flux in latest and established models = 1.45743 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 115 components and 1.45743 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.408686Jy  sigma=0.002523
! Fit after  self-cal, rms=0.408795Jy  sigma=0.002523
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.00066961 Jy
! Component: 100  -  total flux cleaned = 0.000892571 Jy
! Component: 150  -  total flux cleaned = 0.000785376 Jy
! Component: 200  -  total flux cleaned = 0.000781533 Jy
! Total flux subtracted in 200 components = 0.000781533 Jy
! Clean residual min=-0.003593 max=0.003719 Jy/beam
! Clean residual mean=0.000129 rms=0.001005 Jy/beam
! Combined flux in latest and established models = 1.45821 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 120 components and 1.45821 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.408741Jy  sigma=0.002522
! Fit after  self-cal, rms=0.408735Jy  sigma=0.002522
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.408735Jy  sigma=0.002522
! Fit after  self-cal, rms=0.410753Jy  sigma=0.002522
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=2.322 mas, bmaj=2.676 mas, bpa=-6.066 degrees
! Estimated noise=427.925 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000485987 Jy
! Component: 100  -  total flux cleaned = 0.00143184 Jy
! Component: 150  -  total flux cleaned = 0.00167763 Jy
! Component: 200  -  total flux cleaned = 0.00181308 Jy
! Total flux subtracted in 200 components = 0.00181308 Jy
! Clean residual min=-0.003002 max=0.004275 Jy/beam
! Clean residual mean=0.000334 rms=0.001146 Jy/beam
! Combined flux in latest and established models = 1.46002 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 139 components and 1.46002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.410720Jy  sigma=0.002521
! Fit after  self-cal, rms=0.410728Jy  sigma=0.002521
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.37914e-05 Jy
! Component: 100  -  total flux cleaned = 0.000248132 Jy
! Component: 150  -  total flux cleaned = 0.000245556 Jy
! Component: 200  -  total flux cleaned = 0.000198075 Jy
! Total flux subtracted in 200 components = 0.000198075 Jy
! Clean residual min=-0.002897 max=0.004231 Jy/beam
! Clean residual mean=0.000335 rms=0.001115 Jy/beam
! Combined flux in latest and established models = 1.46022 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 146 components and 1.46022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.410721Jy  sigma=0.002521
! Fit after  self-cal, rms=0.410714Jy  sigma=0.002521
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.81 mas, bmaj=1.362 mas, bpa=-7.243 degrees
! Estimated noise=324.943 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.81 x 1.362 at -7.243 degrees (North through East)
! Clean map  min=-0.0052048  max=1.0435 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.410714Jy  sigma=0.002521
! Fit after  self-cal, rms=0.655329Jy  sigma=0.002340
! Inverting map and beam 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.8096 mas, bmaj=1.361 mas, bpa=-7.159 degrees
! Estimated noise=325.009 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00123241 Jy
! Component: 100  -  total flux cleaned = -0.00185993 Jy
! Component: 150  -  total flux cleaned = -0.00222741 Jy
! Component: 200  -  total flux cleaned = -0.00231342 Jy
! Total flux subtracted in 200 components = -0.00231342 Jy
! Clean residual min=-0.003271 max=0.003505 Jy/beam
! Clean residual mean=0.000111 rms=0.000896 Jy/beam
! Combined flux in latest and established models = 1.45791 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 154 components and 1.45791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.655304Jy  sigma=0.002339
! Fit after  self-cal, rms=0.655323Jy  sigma=0.002339
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000113133 Jy
! Component: 100  -  total flux cleaned = 0.000110816 Jy
! Component: 150  -  total flux cleaned = 0.000111291 Jy
! Component: 200  -  total flux cleaned = 4.01874e-05 Jy
! Total flux subtracted in 200 components = 4.01874e-05 Jy
! Clean residual min=-0.003153 max=0.003504 Jy/beam
! Clean residual mean=0.000110 rms=0.000882 Jy/beam
! Combined flux in latest and established models = 1.45795 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 157 components and 1.45795 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.655303Jy  sigma=0.002339
! Fit after  self-cal, rms=0.655292Jy  sigma=0.002339
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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.655292Jy  sigma=0.002339
! Fit after  self-cal, rms=0.746309Jy  sigma=0.002338
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 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.6692 mas, bmaj=1.021 mas, bpa=-5.061 degrees
! Estimated noise=765.185 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.773497 Jy
! Component: 100  -  total flux cleaned = 1.01803 Jy
! Component: 150  -  total flux cleaned = 1.14444 Jy
! Component: 200  -  total flux cleaned = 1.22046 Jy
! Total flux subtracted in 200 components = 1.22046 Jy
! Clean residual min=-0.010823 max=0.039734 Jy/beam
! Clean residual mean=0.000639 rms=0.004343 Jy/beam
! Combined flux in latest and established models = 1.22046 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 12 model components to the UV plane model.
! The established model now contains 12 components and 1.22046 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.8092 mas, bmaj=1.362 mas, bpa=-7.162 degrees
! Estimated noise=324.799 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.0820372 Jy
! Component: 100  -  total flux cleaned = 0.127267 Jy
! Component: 150  -  total flux cleaned = 0.156204 Jy
! Component: 200  -  total flux cleaned = 0.17574 Jy
! Total flux subtracted in 200 components = 0.17574 Jy
! Clean residual min=-0.005165 max=0.010786 Jy/beam
! Clean residual mean=0.000737 rms=0.002241 Jy/beam
! Combined flux in latest and established models = 1.3962 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 53 components and 1.3962 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0137839 Jy
! Component: 100  -  total flux cleaned = 0.0239183 Jy
! Component: 150  -  total flux cleaned = 0.0316641 Jy
! Component: 200  -  total flux cleaned = 0.0377226 Jy
! Total flux subtracted in 200 components = 0.0377226 Jy
! Clean residual min=-0.003561 max=0.004286 Jy/beam
! Clean residual mean=0.000322 rms=0.001157 Jy/beam
! Combined flux in latest and established models = 1.43392 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 83 components and 1.43392 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 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 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=2.322 mas, bmaj=2.676 mas, bpa=-5.942 degrees
! Estimated noise=427.806 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00915662 Jy
! Component: 100  -  total flux cleaned = 0.0146669 Jy
! Component: 150  -  total flux cleaned = 0.0182897 Jy
! Component: 200  -  total flux cleaned = 0.0200319 Jy
! Total flux subtracted in 200 components = 0.0200319 Jy
! Clean residual min=-0.002878 max=0.004109 Jy/beam
! Clean residual mean=0.000367 rms=0.001120 Jy/beam
! Combined flux in latest and established models = 1.45396 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.000853802 Jy
! Component: 100  -  total flux cleaned = 0.00147654 Jy
! Component: 150  -  total flux cleaned = 0.00198471 Jy
! Component: 200  -  total flux cleaned = 0.00236126 Jy
! Total flux subtracted in 200 components = 0.00236126 Jy
! Clean residual min=-0.002675 max=0.003913 Jy/beam
! Clean residual mean=0.000313 rms=0.001071 Jy/beam
! Combined flux in latest and established models = 1.45632 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 125 components and 1.45632 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! Estimated beam: bmin=0.8092 mas, bmaj=1.362 mas, bpa=-7.162 degrees
! Estimated noise=324.799 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000553202 Jy
! Component: 100  -  total flux cleaned = -0.000271092 Jy
! Component: 150  -  total flux cleaned = 6.38004e-05 Jy
! Component: 200  -  total flux cleaned = 0.000214931 Jy
! Total flux subtracted in 200 components = 0.000214931 Jy
! Clean residual min=-0.003124 max=0.003209 Jy/beam
! Clean residual mean=0.000110 rms=0.000875 Jy/beam
! Combined flux in latest and established models = 1.45653 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 135 components and 1.45653 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.746247Jy  sigma=0.002338
! Fit after  self-cal, rms=0.746147Jy  sigma=0.002337
wmodel J0854+2006_X_1998_10_01_pus_map.mod
! Writing 135 model components to file: J0854+2006_X_1998_10_01_pus_map.mod
wobs J0854+2006_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0854+2006_X_1998_10_01_pus_uvs.fits
wwins J0854+2006_X_1998_10_01_pus_map.win
! wwins: Wrote 5 windows to J0854+2006_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 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000690579 Jy
! Component: 100  -  total flux cleaned = 0.000961945 Jy
! Component: 150  -  total flux cleaned = 0.00132147 Jy
! Component: 200  -  total flux cleaned = 0.00186347 Jy
! Component: 250  -  total flux cleaned = 0.00229281 Jy
! Component: 300  -  total flux cleaned = 0.00280084 Jy
! Component: 350  -  total flux cleaned = 0.00320349 Jy
! Component: 400  -  total flux cleaned = 0.00364026 Jy
! Component: 450  -  total flux cleaned = 0.00402542 Jy
! Component: 500  -  total flux cleaned = 0.0043619 Jy
! Component: 550  -  total flux cleaned = 0.00465177 Jy
! Component: 600  -  total flux cleaned = 0.00489666 Jy
! Component: 650  -  total flux cleaned = 0.00509799 Jy
! Component: 700  -  total flux cleaned = 0.00545358 Jy
! Component: 750  -  total flux cleaned = 0.00568736 Jy
! Component: 800  -  total flux cleaned = 0.00599498 Jy
! Component: 850  -  total flux cleaned = 0.00626069 Jy
! Component: 900  -  total flux cleaned = 0.00652296 Jy
! Component: 950  -  total flux cleaned = 0.00681904 Jy
! Component: 1000  -  total flux cleaned = 0.00714811 Jy
! Total flux subtracted in 1024 components = 0.00729314 Jy
! Clean residual min=-0.002072 max=0.001810 Jy/beam
! Clean residual mean=0.000072 rms=0.000698 Jy/beam
! Combined flux in latest and established models = 1.46383 Jy
keep
! Adding 71 model components to the UV plane model.
! The established model now contains 206 components and 1.46383 Jy
![Exited script file: muppet]
wmap "J0854+2006_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8092 x 1.362 at -7.162 degrees (North through East)
! Clean map  min=-0.0024673  max=1.0445 Jy/beam
! Writing clean map to FITS file: J0854+2006_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 1.04449 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.827% of the data.
!  The x-axis pixel size should ideally be below 0.1904 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000698491 
device "J0854+2006_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0854+2006_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.200622 0.200622 0.401243 0.802487 1.60497 3.20995 6.41989 12.8398 25.6796 51.3592
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.044 
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.8092 x 1.362 at -7.162 degrees (North through East)
! Clean map  min=-0.0024673  max=1.0445 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0854+2006_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0854+2006_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0854+2006_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:27:47 2008