! Started logfile: J0017+8135_X_1999_03_08_pus_uvs.log on Thu Jan  3 14:28:16 2008
obs J0017+8135_X_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0017+8135_X_1999_03_08_pus_uva.fits
! AN table 1: 952 integrations on 190 of 190 possible baselines.
! AN table 2: 85 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.208791 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0017+8135
! 
! 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 2464 lines of history.
! 
! Reading 164552 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 J0017+8135_X_1999_03_08_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 11546 telescope corrections were flagged in sub-array 1.
!  A total of 1700 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 11632 telescope corrections were flagged in sub-array 1.
!  A total of 1700 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 11584 telescope corrections were flagged in sub-array 1.
!  A total of 1700 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 11584 telescope corrections were flagged in sub-array 1.
!  A total of 1700 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.708203Jy  sigma=0.006260
! Fit after  self-cal, rms=0.653209Jy  sigma=0.005830
! 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 3.3% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.5576 mas, bmaj=0.6563 mas, bpa=80.78 degrees
! Estimated noise=572.36 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.263277 Jy
! Component: 100  -  total flux cleaned = 0.366039 Jy
! Total flux subtracted in 100 components = 0.366039 Jy
! Clean residual min=-0.008672 max=0.049416 Jy/beam
! Clean residual mean=0.000153 rms=0.003569 Jy/beam
! Combined flux in latest and established models = 0.366039 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.366039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256829Jy  sigma=0.001867
! Fit after  self-cal, rms=0.256440Jy  sigma=0.001866
! Inverting map 
! Your choice of large map pixels excluded 3.3% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0570822 Jy
! Component: 100  -  total flux cleaned = 0.0921648 Jy
! Total flux subtracted in 100 components = 0.0921648 Jy
! Clean residual min=-0.006623 max=0.027782 Jy/beam
! Clean residual mean=0.000106 rms=0.002215 Jy/beam
! Combined flux in latest and established models = 0.458204 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 14 components and 0.458204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233938Jy  sigma=0.001487
! Fit after  self-cal, rms=0.233809Jy  sigma=0.001486
! Inverting map 
! Your choice of large map pixels excluded 3.3% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Added new window around map position (0, -0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0283451 Jy
! Component: 100  -  total flux cleaned = 0.0473764 Jy
! Total flux subtracted in 100 components = 0.0473764 Jy
! Clean residual min=-0.006127 max=0.011276 Jy/beam
! Clean residual mean=0.000082 rms=0.001724 Jy/beam
! Combined flux in latest and established models = 0.505581 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 18 components and 0.50558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227818Jy  sigma=0.001374
! Fit after  self-cal, rms=0.227684Jy  sigma=0.001373
! Inverting map 
! Your choice of large map pixels excluded 3.3% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0148197 Jy
! Component: 100  -  total flux cleaned = 0.0251667 Jy
! Total flux subtracted in 100 components = 0.0251667 Jy
! Clean residual min=-0.006000 max=0.006538 Jy/beam
! Clean residual mean=0.000070 rms=0.001551 Jy/beam
! Combined flux in latest and established models = 0.530747 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 0.530747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225852Jy  sigma=0.001337
! Fit after  self-cal, rms=0.225820Jy  sigma=0.001336
! Inverting map 
! Your choice of large map pixels excluded 3.3% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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 3.3% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.7601 mas, bmaj=0.8492 mas, bpa=-67.4 degrees
! Estimated noise=199.588 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.0162096 Jy
! Component: 100  -  total flux cleaned = 0.0252127 Jy
! Component: 150  -  total flux cleaned = 0.0307463 Jy
! Component: 200  -  total flux cleaned = 0.0342585 Jy
! Total flux subtracted in 200 components = 0.0342585 Jy
! Clean residual min=-0.003608 max=0.004081 Jy/beam
! Clean residual mean=0.000155 rms=0.000992 Jy/beam
! Combined flux in latest and established models = 0.565006 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 32 components and 0.565006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224811Jy  sigma=0.001315
! Fit after  self-cal, rms=0.224775Jy  sigma=0.001315
! Inverting map 
! Your choice of large map pixels excluded 3.3% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 552 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     GC        1.01     GG        1.00*    
!   HN        0.98     KP        0.99     LA        1.01     NL        0.94     
!   OV        0.98     PT        0.98     SC        1.03     WF        1.01     
!   GN        0.96     HH        1.00*    KK        1.01     MC        0.97     
!   MK        0.98     NY        1.00     ON        0.92     WZ        1.50     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 465 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.03     GG        1.00*    
!   HN        0.99     KP        1.00     LA        1.02     NL        0.93     
!   OV        0.99     PT        0.98     SC        1.03     WF        1.02     
!   GN        0.97     HH        1.00*    KK        1.00     MC        0.98     
!   MK        1.00     NY        1.00     ON        0.91     WZ        1.52     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 546 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00     GC        1.13     GG        1.00*    
!   HN        0.98     KP        1.01     LA        1.03     NL        0.94     
!   OV        0.99     PT        1.00     SC        1.08     WF        1.02     
!   GN        0.98     HH        1.00*    KK        1.01     MC        0.97     
!   MK        0.99     NY        1.01     ON        0.92     WZ        1.72     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 546 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.05     GG        1.00*    
!   HN        1.00     KP        1.01     LA        1.03     NL        0.96     
!   OV        0.99     PT        1.00     SC        1.07     WF        1.03     
!   GN        0.97     HH        1.00*    KK        1.02     MC        0.98     
!   MK        1.00     NY        1.00     ON        0.89     WZ        1.73     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.224775Jy  sigma=0.001315
! Fit after  self-cal, rms=0.232025Jy  sigma=0.001296
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.7672 mas, bmaj=0.8627 mas, bpa=-65.48 degrees
! Estimated noise=201.242 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.000468373 Jy
! Component: 100  -  total flux cleaned = 0.000348691 Jy
! Component: 150  -  total flux cleaned = 0.000297147 Jy
! Component: 200  -  total flux cleaned = 0.00019888 Jy
! Total flux subtracted in 200 components = 0.00019888 Jy
! Clean residual min=-0.003412 max=0.003498 Jy/beam
! Clean residual mean=0.000123 rms=0.000755 Jy/beam
! Combined flux in latest and established models = 0.565205 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 36 components and 0.565205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231997Jy  sigma=0.001296
! Fit after  self-cal, rms=0.232097Jy  sigma=0.001296
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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.232097Jy  sigma=0.001296
! Fit after  self-cal, rms=0.283071Jy  sigma=0.001275
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.7679 mas, bmaj=0.8549 mas, bpa=-70.89 degrees
! Estimated noise=200.704 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000594305 Jy
! Component: 100  -  total flux cleaned = 0.000659174 Jy
! Component: 150  -  total flux cleaned = 0.00071542 Jy
! Component: 200  -  total flux cleaned = 0.000764127 Jy
! Total flux subtracted in 200 components = 0.000764127 Jy
! Clean residual min=-0.001246 max=0.002556 Jy/beam
! Clean residual mean=0.000064 rms=0.000451 Jy/beam
! Combined flux in latest and established models = 0.565969 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 36 components and 0.565969 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283036Jy  sigma=0.001274
! Fit after  self-cal, rms=0.283232Jy  sigma=0.001274
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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.6, -4.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00252967 Jy
! Component: 100  -  total flux cleaned = 0.0035855 Jy
! Component: 150  -  total flux cleaned = 0.00393355 Jy
! Component: 200  -  total flux cleaned = 0.00419471 Jy
! Total flux subtracted in 200 components = 0.00419471 Jy
! Clean residual min=-0.001201 max=0.001838 Jy/beam
! Clean residual mean=0.000038 rms=0.000364 Jy/beam
! Combined flux in latest and established models = 0.570163 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 55 components and 0.570163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283210Jy  sigma=0.001273
! Fit after  self-cal, rms=0.283211Jy  sigma=0.001273
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Added new window around map position (-1.2, -7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00188253 Jy
! Component: 100  -  total flux cleaned = 0.00271232 Jy
! Component: 150  -  total flux cleaned = 0.00307546 Jy
! Component: 200  -  total flux cleaned = 0.00329245 Jy
! Total flux subtracted in 200 components = 0.00329245 Jy
! Clean residual min=-0.001136 max=0.001255 Jy/beam
! Clean residual mean=0.000016 rms=0.000309 Jy/beam
! Combined flux in latest and established models = 0.573456 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 68 components and 0.573456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283197Jy  sigma=0.001273
! Fit after  self-cal, rms=0.283201Jy  sigma=0.001273
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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.283201Jy  sigma=0.001273
! Fit after  self-cal, rms=0.286137Jy  sigma=0.001273
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.7679 mas, bmaj=0.8544 mas, bpa=-71.95 degrees
! Estimated noise=200.619 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000437731 Jy
! Component: 100  -  total flux cleaned = 0.000728925 Jy
! Component: 150  -  total flux cleaned = 0.000991958 Jy
! Component: 200  -  total flux cleaned = 0.00126591 Jy
! Total flux subtracted in 200 components = 0.00126591 Jy
! Clean residual min=-0.001177 max=0.001299 Jy/beam
! Clean residual mean=0.000004 rms=0.000288 Jy/beam
! Combined flux in latest and established models = 0.574722 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 0.574722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286127Jy  sigma=0.001272
! Fit after  self-cal, rms=0.286113Jy  sigma=0.001272
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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, -9.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00118634 Jy
! Component: 100  -  total flux cleaned = 0.0017 Jy
! Component: 150  -  total flux cleaned = 0.00182603 Jy
! Component: 200  -  total flux cleaned = 0.0019723 Jy
! Total flux subtracted in 200 components = 0.0019723 Jy
! Clean residual min=-0.001116 max=0.001017 Jy/beam
! Clean residual mean=-0.000009 rms=0.000265 Jy/beam
! Combined flux in latest and established models = 0.576694 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 89 components and 0.576694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286106Jy  sigma=0.001272
! Fit after  self-cal, rms=0.286107Jy  sigma=0.001272
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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.286107Jy  sigma=0.001272
! Fit after  self-cal, rms=0.286622Jy  sigma=0.001272
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=2.161 mas, bmaj=2.788 mas, bpa=-39.63 degrees
! Estimated noise=288.431 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128729 Jy
! Component: 100  -  total flux cleaned = 0.00154016 Jy
! Component: 150  -  total flux cleaned = 0.00171779 Jy
! Component: 200  -  total flux cleaned = 0.00180454 Jy
! Total flux subtracted in 200 components = 0.00180454 Jy
! Clean residual min=-0.000864 max=0.000825 Jy/beam
! Clean residual mean=-0.000049 rms=0.000284 Jy/beam
! Combined flux in latest and established models = 0.578499 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 111 components and 0.578499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286622Jy  sigma=0.001272
! Fit after  self-cal, rms=0.286617Jy  sigma=0.001272
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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.000231243 Jy
! Component: 100  -  total flux cleaned = 0.000244921 Jy
! Component: 150  -  total flux cleaned = 0.000270078 Jy
! Component: 200  -  total flux cleaned = 0.000301416 Jy
! Total flux subtracted in 200 components = 0.000301416 Jy
! Clean residual min=-0.000844 max=0.000800 Jy/beam
! Clean residual mean=-0.000054 rms=0.000270 Jy/beam
! Combined flux in latest and established models = 0.5788 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 115 components and 0.5788 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286618Jy  sigma=0.001272
! Fit after  self-cal, rms=0.286618Jy  sigma=0.001272
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.7678 mas, bmaj=0.8542 mas, bpa=-72.53 degrees
! Estimated noise=200.607 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7678 x 0.8542 at -72.53 degrees (North through East)
! Clean map  min=-0.00092409  max=0.40191 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
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 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.551 mas, bmaj=0.6715 mas, bpa=76.48 degrees
! Estimated noise=578.974 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.266398 Jy
! Component: 100  -  total flux cleaned = 0.370853 Jy
! Component: 150  -  total flux cleaned = 0.428181 Jy
! Component: 200  -  total flux cleaned = 0.46467 Jy
! Total flux subtracted in 200 components = 0.46467 Jy
! Clean residual min=-0.005733 max=0.020075 Jy/beam
! Clean residual mean=0.000069 rms=0.001692 Jy/beam
! Combined flux in latest and established models = 0.46467 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.46467 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.7678 mas, bmaj=0.8542 mas, bpa=-72.53 degrees
! Estimated noise=200.607 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.0443996 Jy
! Component: 100  -  total flux cleaned = 0.0673672 Jy
! Component: 150  -  total flux cleaned = 0.080051 Jy
! Component: 200  -  total flux cleaned = 0.0875552 Jy
! Total flux subtracted in 200 components = 0.0875552 Jy
! Clean residual min=-0.001765 max=0.005391 Jy/beam
! Clean residual mean=0.000135 rms=0.000740 Jy/beam
! Combined flux in latest and established models = 0.552225 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 26 components and 0.552225 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Added new window around map position (0, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00543916 Jy
! Component: 100  -  total flux cleaned = 0.00921094 Jy
! Component: 150  -  total flux cleaned = 0.0121742 Jy
! Component: 200  -  total flux cleaned = 0.0145935 Jy
! Total flux subtracted in 200 components = 0.0145935 Jy
! Clean residual min=-0.001290 max=0.002003 Jy/beam
! Clean residual mean=0.000054 rms=0.000400 Jy/beam
! Combined flux in latest and established models = 0.566819 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 54 components and 0.566819 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Added new window around map position (-0.2, -1.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00225281 Jy
! Component: 100  -  total flux cleaned = 0.0040272 Jy
! Component: 150  -  total flux cleaned = 0.00552975 Jy
! Component: 200  -  total flux cleaned = 0.00681728 Jy
! Total flux subtracted in 200 components = 0.00681728 Jy
! Clean residual min=-0.001132 max=0.001162 Jy/beam
! Clean residual mean=0.000014 rms=0.000290 Jy/beam
! Combined flux in latest and established models = 0.573636 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 82 components and 0.573636 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 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 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=2.161 mas, bmaj=2.788 mas, bpa=-39.63 degrees
! Estimated noise=288.431 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00217196 Jy
! Component: 100  -  total flux cleaned = 0.0034195 Jy
! Component: 150  -  total flux cleaned = 0.00428141 Jy
! Component: 200  -  total flux cleaned = 0.00489011 Jy
! Total flux subtracted in 200 components = 0.00489011 Jy
! Clean residual min=-0.000887 max=0.000810 Jy/beam
! Clean residual mean=-0.000049 rms=0.000273 Jy/beam
! Combined flux in latest and established models = 0.578526 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.000326205 Jy
! Component: 100  -  total flux cleaned = 0.000472446 Jy
! Component: 150  -  total flux cleaned = 0.000560341 Jy
! Component: 200  -  total flux cleaned = 0.000616976 Jy
! Total flux subtracted in 200 components = 0.000616976 Jy
! Clean residual min=-0.000860 max=0.000798 Jy/beam
! Clean residual mean=-0.000061 rms=0.000256 Jy/beam
! Combined flux in latest and established models = 0.579143 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 132 components and 0.579144 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! Estimated beam: bmin=0.7678 mas, bmaj=0.8542 mas, bpa=-72.53 degrees
! Estimated noise=200.607 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000482846 Jy
! Component: 100  -  total flux cleaned = -0.000482893 Jy
! Component: 150  -  total flux cleaned = -0.000415168 Jy
! Component: 200  -  total flux cleaned = -0.000383766 Jy
! Total flux subtracted in 200 components = -0.000383766 Jy
! Clean residual min=-0.001077 max=0.001097 Jy/beam
! Clean residual mean=-0.000017 rms=0.000246 Jy/beam
! Combined flux in latest and established models = 0.57876 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 143 components and 0.57876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286631Jy  sigma=0.001272
! Fit after  self-cal, rms=0.286628Jy  sigma=0.001272
wmodel J0017+8135_X_1999_03_08_pus_map.mod
! Writing 143 model components to file: J0017+8135_X_1999_03_08_pus_map.mod
wobs J0017+8135_X_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0017+8135_X_1999_03_08_pus_uvs.fits
wwins J0017+8135_X_1999_03_08_pus_map.win
! wwins: Wrote 7 windows to J0017+8135_X_1999_03_08_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 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 5.12521e-05 Jy
! Component: 100  -  total flux cleaned = 6.86323e-05 Jy
! Component: 150  -  total flux cleaned = 0.00013173 Jy
! Component: 200  -  total flux cleaned = 0.000237002 Jy
! Component: 250  -  total flux cleaned = 0.000324331 Jy
! Component: 300  -  total flux cleaned = 0.000366862 Jy
! Component: 350  -  total flux cleaned = 0.000408626 Jy
! Component: 400  -  total flux cleaned = 0.000449533 Jy
! Component: 450  -  total flux cleaned = 0.000463125 Jy
! Component: 500  -  total flux cleaned = 0.000463473 Jy
! Component: 550  -  total flux cleaned = 0.000463726 Jy
! Component: 600  -  total flux cleaned = 0.000450967 Jy
! Component: 650  -  total flux cleaned = 0.000413174 Jy
! Component: 700  -  total flux cleaned = 0.000375858 Jy
! Component: 750  -  total flux cleaned = 0.000363457 Jy
! Component: 800  -  total flux cleaned = 0.000290225 Jy
! Component: 850  -  total flux cleaned = 0.000266098 Jy
! Component: 900  -  total flux cleaned = 0.000254074 Jy
! Component: 950  -  total flux cleaned = 0.000194563 Jy
! Component: 1000  -  total flux cleaned = 0.000170963 Jy
! Total flux subtracted in 1024 components = 0.000124116 Jy
! Clean residual min=-0.000737 max=0.000659 Jy/beam
! Clean residual mean=-0.000017 rms=0.000220 Jy/beam
! Combined flux in latest and established models = 0.578884 Jy
keep
! Adding 79 model components to the UV plane model.
! The established model now contains 222 components and 0.578884 Jy
![Exited script file: muppet]
wmap "J0017+8135_X_1999_03_08_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7678 x 0.8542 at -72.53 degrees (North through East)
! Clean map  min=-0.00091456  max=0.40311 Jy/beam
! Writing clean map to FITS file: J0017+8135_X_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.403108 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.14% of the data.
!  The x-axis pixel size should ideally be below 0.1662 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1624 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000220411 
device "J0017+8135_X_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0017+8135_X_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.164033 0.164033 0.328067 0.656133 1.31227 2.62453 5.24907 10.4981 20.9963 41.9925 83.9851
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0006 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.403 
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.7678 x 0.8542 at -72.53 degrees (North through East)
! Clean map  min=-0.00091456  max=0.40311 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0017+8135_X_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0017+8135_X_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0017+8135_X_1999_03_08_pus_uvs.log closed on Thu Jan  3 14:29:20 2008