! Started logfile: J0136+4751_X_1999_12_20_pus_uvs.log on Mon Dec 17 12:05:19 2007
obs J0136+4751_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0136+4751_X_1999_12_20_pus_uva.fits
! AN table 1: 125 integrations on 190 of 190 possible baselines.
! AN table 2: 160 integrations on 190 of 190 possible baselines.
! AN table 3: 11 integrations on 190 of 190 possible baselines.
! AN table 4: 148 integrations on 190 of 190 possible baselines.
! AN table 5: 69 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.258664 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0136+4751
! 
! 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 2426 lines of history.
! 
! Reading 100848 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 J0136+4751_X_1999_12_20_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1614 telescope corrections were flagged in sub-array 1.
!  A total of 2343 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 1617 telescope corrections were flagged in sub-array 4.
!  A total of 590 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1614 telescope corrections were flagged in sub-array 1.
!  A total of 2333 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 1617 telescope corrections were flagged in sub-array 4.
!  A total of 589 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1614 telescope corrections were flagged in sub-array 1.
!  A total of 2333 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 1627 telescope corrections were flagged in sub-array 4.
!  A total of 607 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1614 telescope corrections were flagged in sub-array 1.
!  A total of 2339 telescope corrections were flagged in sub-array 2.
!  A total of 220 telescope corrections were flagged in sub-array 3.
!  A total of 1617 telescope corrections were flagged in sub-array 4.
!  A total of 589 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.943199Jy  sigma=0.008792
! Fit after  self-cal, rms=0.942710Jy  sigma=0.008784
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.5406 mas, bmaj=0.654 mas, bpa=-14.09 degrees
! Estimated noise=545.571 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 = 1.40485 Jy
! Component: 100  -  total flux cleaned = 1.71219 Jy
! Total flux subtracted in 100 components = 1.71219 Jy
! Clean residual min=-0.010878 max=0.095425 Jy/beam
! Clean residual mean=0.000258 rms=0.004373 Jy/beam
! Combined flux in latest and established models = 1.71219 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 1.71219 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404824Jy  sigma=0.002751
! Fit after  self-cal, rms=0.404763Jy  sigma=0.002751
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.105338 Jy
! Component: 100  -  total flux cleaned = 0.163766 Jy
! Total flux subtracted in 100 components = 0.163766 Jy
! Clean residual min=-0.006583 max=0.043011 Jy/beam
! Clean residual mean=0.000170 rms=0.002536 Jy/beam
! Combined flux in latest and established models = 1.87596 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 1.87596 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357704Jy  sigma=0.001913
! Fit after  self-cal, rms=0.357123Jy  sigma=0.001909
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-0.4, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0467351 Jy
! Component: 100  -  total flux cleaned = 0.0795047 Jy
! Total flux subtracted in 100 components = 0.0795047 Jy
! Clean residual min=-0.005612 max=0.019077 Jy/beam
! Clean residual mean=0.000127 rms=0.001868 Jy/beam
! Combined flux in latest and established models = 1.95546 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 18 components and 1.95546 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344547Jy  sigma=0.001620
! Fit after  self-cal, rms=0.344037Jy  sigma=0.001616
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0271081 Jy
! Component: 100  -  total flux cleaned = 0.0475406 Jy
! Total flux subtracted in 100 components = 0.0475406 Jy
! Clean residual min=-0.004861 max=0.012001 Jy/beam
! Clean residual mean=0.000101 rms=0.001548 Jy/beam
! Combined flux in latest and established models = 2.00301 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 20 components and 2.00301 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339148Jy  sigma=0.001488
! Fit after  self-cal, rms=0.338958Jy  sigma=0.001486
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0170268 Jy
! Component: 100  -  total flux cleaned = 0.03039 Jy
! Total flux subtracted in 100 components = 0.03039 Jy
! Clean residual min=-0.004921 max=0.007962 Jy/beam
! Clean residual mean=0.000084 rms=0.001400 Jy/beam
! Combined flux in latest and established models = 2.0334 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 23 components and 2.0334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336852Jy  sigma=0.001426
! Fit after  self-cal, rms=0.336751Jy  sigma=0.001425
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113784 Jy
! Component: 100  -  total flux cleaned = 0.0203706 Jy
! Total flux subtracted in 100 components = 0.0203706 Jy
! Clean residual min=-0.004965 max=0.006950 Jy/beam
! Clean residual mean=0.000073 rms=0.001327 Jy/beam
! Combined flux in latest and established models = 2.05377 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 23 components and 2.05377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335747Jy  sigma=0.001395
! Fit after  self-cal, rms=0.335689Jy  sigma=0.001395
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.6818 mas, bmaj=0.8332 mas, bpa=-11.19 degrees
! Estimated noise=263.979 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.0211543 Jy
! Component: 100  -  total flux cleaned = 0.0341689 Jy
! Component: 150  -  total flux cleaned = 0.0424931 Jy
! Component: 200  -  total flux cleaned = 0.0479176 Jy
! Total flux subtracted in 200 components = 0.0479176 Jy
! Clean residual min=-0.003314 max=0.011417 Jy/beam
! Clean residual mean=0.000723 rms=0.001580 Jy/beam
! Combined flux in latest and established models = 2.10168 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 38 components and 2.10168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334605Jy  sigma=0.001357
! Fit after  self-cal, rms=0.334462Jy  sigma=0.001355
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-1.4, 2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0121144 Jy
! Component: 100  -  total flux cleaned = 0.0192468 Jy
! Component: 150  -  total flux cleaned = 0.0240026 Jy
! Component: 200  -  total flux cleaned = 0.0273265 Jy
! Total flux subtracted in 200 components = 0.0273265 Jy
! Clean residual min=-0.002760 max=0.007130 Jy/beam
! Clean residual mean=0.000505 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 2.12901 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 60 components and 2.12901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334097Jy  sigma=0.001343
! Fit after  self-cal, rms=0.334046Jy  sigma=0.001342
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (1.4, 2.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00664102 Jy
! Component: 100  -  total flux cleaned = 0.0104263 Jy
! Component: 150  -  total flux cleaned = 0.0128823 Jy
! Component: 200  -  total flux cleaned = 0.0140647 Jy
! Total flux subtracted in 200 components = 0.0140647 Jy
! Clean residual min=-0.002598 max=0.006679 Jy/beam
! Clean residual mean=0.000396 rms=0.001082 Jy/beam
! Combined flux in latest and established models = 2.14307 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 78 components and 2.14308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333889Jy  sigma=0.001339
! Fit after  self-cal, rms=0.333876Jy  sigma=0.001339
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (4, -10.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00518431 Jy
! Component: 100  -  total flux cleaned = 0.00657635 Jy
! Component: 150  -  total flux cleaned = 0.00737452 Jy
! Component: 200  -  total flux cleaned = 0.00785238 Jy
! Total flux subtracted in 200 components = 0.00785238 Jy
! Clean residual min=-0.002612 max=0.005577 Jy/beam
! Clean residual mean=0.000337 rms=0.001056 Jy/beam
! Combined flux in latest and established models = 2.15093 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 93 components and 2.15093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333770Jy  sigma=0.001337
! Fit after  self-cal, rms=0.333766Jy  sigma=0.001337
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00*    MK        1.00     NY        1.01     ON        1.01     
!   OV        1.00     PT        1.00     SC        1.01     TS        0.99     
!   WF        1.00     WZ        1.01     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.01     MK        1.00     NY        1.00     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.00     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     MK        1.00     NY        1.00     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.01     
!   WF        1.00     WZ        1.00     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     MK        1.00     NY        1.00     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.00     WZ        1.00     GN        1.00     NL        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00*    MK        1.00     NY        1.01     ON        1.01     
!   OV        1.00     PT        1.00     SC        1.01     TS        0.99     
!   WF        1.00     WZ        1.01     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.01     MK        1.00     NY        1.00     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.00     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     MK        1.00     NY        1.00     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.01     
!   WF        1.00     WZ        1.00     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     MK        1.00     NY        1.01     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.00     WZ        1.00     GN        1.00     NL        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00*    MK        1.00     NY        1.01     ON        1.01     
!   OV        1.00     PT        1.00     SC        1.01     TS        0.99     
!   WF        1.00     WZ        1.01     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.01     MK        1.00     NY        1.00     ON        1.01     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.01     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     MK        1.00     NY        1.00     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.01     
!   WF        1.00     WZ        1.00     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        0.99     MK        1.00     NY        1.01     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.00     WZ        0.99     GN        1.00     NL        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00*    MK        1.00     NY        1.01     ON        1.01     
!   OV        1.00     PT        1.00     SC        1.01     TS        0.99     
!   WF        1.00     WZ        1.01     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.01     MK        1.00     NY        1.00     ON        1.01     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.00     
!   WF        1.00     WZ        1.01     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     MK        1.00     NY        1.00     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.00     TS        1.01     
!   WF        1.00     WZ        1.00     GN        1.00     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        0.99     MK        1.00     NY        1.01     ON        1.00     
!   OV        1.00     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.00     WZ        0.99     GN        1.00     NL        1.00     
! 
! 
! Fit before self-cal, rms=0.333766Jy  sigma=0.001337
! Fit after  self-cal, rms=0.334454Jy  sigma=0.001335
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.6815 mas, bmaj=0.8341 mas, bpa=-11.31 degrees
! Estimated noise=264.266 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 (-4.2, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00454132 Jy
! Component: 100  -  total flux cleaned = 0.00553485 Jy
! Component: 150  -  total flux cleaned = 0.0058557 Jy
! Component: 200  -  total flux cleaned = 0.00606544 Jy
! Total flux subtracted in 200 components = 0.00606544 Jy
! Clean residual min=-0.002978 max=0.005089 Jy/beam
! Clean residual mean=0.000233 rms=0.000970 Jy/beam
! Combined flux in latest and established models = 2.15699 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 106 components and 2.15699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334361Jy  sigma=0.001334
! Fit after  self-cal, rms=0.334364Jy  sigma=0.001334
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-4.2, 10.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0042906 Jy
! Component: 100  -  total flux cleaned = 0.00552657 Jy
! Component: 150  -  total flux cleaned = 0.00617432 Jy
! Component: 200  -  total flux cleaned = 0.00656948 Jy
! Total flux subtracted in 200 components = 0.00656948 Jy
! Clean residual min=-0.003093 max=0.004475 Jy/beam
! Clean residual mean=0.000184 rms=0.000951 Jy/beam
! Combined flux in latest and established models = 2.16356 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 119 components and 2.16356 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334298Jy  sigma=0.001333
! Fit after  self-cal, rms=0.334298Jy  sigma=0.001333
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 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.334298Jy  sigma=0.001333
! Fit after  self-cal, rms=0.333984Jy  sigma=0.001332
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.6815 mas, bmaj=0.8344 mas, bpa=-11.3 degrees
! Estimated noise=264.348 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00115274 Jy
! Component: 100  -  total flux cleaned = 0.00168788 Jy
! Component: 150  -  total flux cleaned = 0.00175001 Jy
! Component: 200  -  total flux cleaned = 0.00198146 Jy
! Total flux subtracted in 200 components = 0.00198146 Jy
! Clean residual min=-0.002826 max=0.004571 Jy/beam
! Clean residual mean=0.000173 rms=0.000927 Jy/beam
! Combined flux in latest and established models = 2.16554 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 127 components and 2.16554 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333952Jy  sigma=0.001332
! Fit after  self-cal, rms=0.333952Jy  sigma=0.001332
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 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.4, -2.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00461422 Jy
! Component: 100  -  total flux cleaned = 0.00536874 Jy
! Component: 150  -  total flux cleaned = 0.00545131 Jy
! Component: 200  -  total flux cleaned = 0.00527047 Jy
! Total flux subtracted in 200 components = 0.00527047 Jy
! Clean residual min=-0.003142 max=0.003963 Jy/beam
! Clean residual mean=0.000132 rms=0.000896 Jy/beam
! Combined flux in latest and established models = 2.17081 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 144 components and 2.17081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333874Jy  sigma=0.001331
! Fit after  self-cal, rms=0.333863Jy  sigma=0.001331
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-11.2, -12.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00340597 Jy
! Component: 100  -  total flux cleaned = 0.00385994 Jy
! Component: 150  -  total flux cleaned = 0.00387168 Jy
! Component: 200  -  total flux cleaned = 0.0036984 Jy
! Total flux subtracted in 200 components = 0.0036984 Jy
! Clean residual min=-0.003130 max=0.003882 Jy/beam
! Clean residual mean=0.000113 rms=0.000890 Jy/beam
! Combined flux in latest and established models = 2.17451 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 156 components and 2.17451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333805Jy  sigma=0.001330
! Fit after  self-cal, rms=0.333804Jy  sigma=0.001330
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (5.4, 1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00313255 Jy
! Component: 100  -  total flux cleaned = 0.00327545 Jy
! Component: 150  -  total flux cleaned = 0.00315941 Jy
! Component: 200  -  total flux cleaned = 0.0031609 Jy
! Total flux subtracted in 200 components = 0.0031609 Jy
! Clean residual min=-0.002996 max=0.003767 Jy/beam
! Clean residual mean=0.000089 rms=0.000887 Jy/beam
! Combined flux in latest and established models = 2.17767 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 170 components and 2.17767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333750Jy  sigma=0.001330
! Fit after  self-cal, rms=0.333752Jy  sigma=0.001330
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 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.333752Jy  sigma=0.001330
! Fit after  self-cal, rms=0.333975Jy  sigma=0.001329
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.6813 mas, bmaj=0.8347 mas, bpa=-11.32 degrees
! Estimated noise=264.441 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00193097 Jy
! Component: 100  -  total flux cleaned = 0.00280501 Jy
! Component: 150  -  total flux cleaned = 0.00343977 Jy
! Component: 200  -  total flux cleaned = 0.00371248 Jy
! Total flux subtracted in 200 components = 0.00371248 Jy
! Clean residual min=-0.002955 max=0.003731 Jy/beam
! Clean residual mean=0.000089 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 2.18139 Jy
selfcal
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 176 components and 2.18139 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333943Jy  sigma=0.001329
! Fit after  self-cal, rms=0.333941Jy  sigma=0.001329
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 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.000325952 Jy
! Component: 100  -  total flux cleaned = 0.000535675 Jy
! Component: 150  -  total flux cleaned = 0.000585989 Jy
! Component: 200  -  total flux cleaned = 0.000587075 Jy
! Total flux subtracted in 200 components = 0.000587075 Jy
! Clean residual min=-0.002852 max=0.003722 Jy/beam
! Clean residual mean=0.000085 rms=0.000877 Jy/beam
! Combined flux in latest and established models = 2.18197 Jy
! Performing phase self-cal
! Adding 60 model components to the UV plane model.
! The established model now contains 183 components and 2.18197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333922Jy  sigma=0.001329
! Fit after  self-cal, rms=0.333920Jy  sigma=0.001329
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 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.333920Jy  sigma=0.001329
! Fit after  self-cal, rms=0.334041Jy  sigma=0.001329
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=2.322 mas, bmaj=2.497 mas, bpa=61.37 degrees
! Estimated noise=388.802 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00264735 Jy
! Component: 100  -  total flux cleaned = 0.00281757 Jy
! Component: 150  -  total flux cleaned = 0.00288407 Jy
! Component: 200  -  total flux cleaned = 0.00277618 Jy
! Total flux subtracted in 200 components = 0.00277618 Jy
! Clean residual min=-0.003761 max=0.004912 Jy/beam
! Clean residual mean=0.000287 rms=0.001493 Jy/beam
! Combined flux in latest and established models = 2.18475 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 189 components and 2.18475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334064Jy  sigma=0.001329
! Fit after  self-cal, rms=0.334055Jy  sigma=0.001329
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 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.000488854 Jy
! Component: 100  -  total flux cleaned = 0.000443955 Jy
! Component: 150  -  total flux cleaned = 0.000320186 Jy
! Component: 200  -  total flux cleaned = 0.000244516 Jy
! Total flux subtracted in 200 components = 0.000244516 Jy
! Clean residual min=-0.003687 max=0.004854 Jy/beam
! Clean residual mean=0.000276 rms=0.001473 Jy/beam
! Combined flux in latest and established models = 2.18499 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 195 components and 2.18499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334066Jy  sigma=0.001329
! Fit after  self-cal, rms=0.334064Jy  sigma=0.001329
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.6813 mas, bmaj=0.8347 mas, bpa=-11.32 degrees
! Estimated noise=264.534 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6813 x 0.8347 at -11.32 degrees (North through East)
! Clean map  min=-0.0022466  max=1.8595 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.334064Jy  sigma=0.001329
! Fit after  self-cal, rms=0.333023Jy  sigma=0.001329
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.6813 mas, bmaj=0.8348 mas, bpa=-11.34 degrees
! Estimated noise=264.566 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.75287e-05 Jy
! Component: 100  -  total flux cleaned = 0.000417563 Jy
! Component: 150  -  total flux cleaned = 0.000817365 Jy
! Component: 200  -  total flux cleaned = 0.00108214 Jy
! Total flux subtracted in 200 components = 0.00108214 Jy
! Clean residual min=-0.002927 max=0.003709 Jy/beam
! Clean residual mean=0.000077 rms=0.000859 Jy/beam
! Combined flux in latest and established models = 2.18608 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 197 components and 2.18608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332979Jy  sigma=0.001329
! Fit after  self-cal, rms=0.332982Jy  sigma=0.001329
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-4.6, 4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00347261 Jy
! Component: 100  -  total flux cleaned = 0.00444469 Jy
! Component: 150  -  total flux cleaned = 0.00473325 Jy
! Component: 200  -  total flux cleaned = 0.00483839 Jy
! Total flux subtracted in 200 components = 0.00483839 Jy
! Clean residual min=-0.002831 max=0.003406 Jy/beam
! Clean residual mean=0.000039 rms=0.000834 Jy/beam
! Combined flux in latest and established models = 2.19091 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 207 components and 2.19091 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332936Jy  sigma=0.001328
! Fit after  self-cal, rms=0.332931Jy  sigma=0.001328
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 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.332931Jy  sigma=0.001328
! Fit after  self-cal, rms=0.333130Jy  sigma=0.001328
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.5401 mas, bmaj=0.6553 mas, bpa=-14.2 degrees
! Estimated noise=547.609 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.4099 Jy
! Component: 100  -  total flux cleaned = 1.71858 Jy
! Component: 150  -  total flux cleaned = 1.82697 Jy
! Component: 200  -  total flux cleaned = 1.89112 Jy
! Total flux subtracted in 200 components = 1.89112 Jy
! Clean residual min=-0.006404 max=0.034719 Jy/beam
! Clean residual mean=0.000164 rms=0.002378 Jy/beam
! Combined flux in latest and established models = 1.89112 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 13 model components to the UV plane model.
! The established model now contains 13 components and 1.89112 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.6813 mas, bmaj=0.8349 mas, bpa=-11.33 degrees
! Estimated noise=264.658 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.0898275 Jy
! Component: 100  -  total flux cleaned = 0.140656 Jy
! Component: 150  -  total flux cleaned = 0.17189 Jy
! Component: 200  -  total flux cleaned = 0.192536 Jy
! Total flux subtracted in 200 components = 0.192536 Jy
! Clean residual min=-0.002851 max=0.011885 Jy/beam
! Clean residual mean=0.000888 rms=0.002023 Jy/beam
! Combined flux in latest and established models = 2.08366 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 43 components and 2.08366 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-0.4, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0150957 Jy
! Component: 100  -  total flux cleaned = 0.0267528 Jy
! Component: 150  -  total flux cleaned = 0.0362923 Jy
! Component: 200  -  total flux cleaned = 0.0445037 Jy
! Total flux subtracted in 200 components = 0.0445037 Jy
! Clean residual min=-0.002438 max=0.006556 Jy/beam
! Clean residual mean=0.000534 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 2.12816 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 86 components and 2.12816 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-1.2, -0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00744674 Jy
! Component: 100  -  total flux cleaned = 0.0139113 Jy
! Component: 150  -  total flux cleaned = 0.019749 Jy
! Component: 200  -  total flux cleaned = 0.0250392 Jy
! Total flux subtracted in 200 components = 0.0250392 Jy
! Clean residual min=-0.002353 max=0.004964 Jy/beam
! Clean residual mean=0.000341 rms=0.001054 Jy/beam
! Combined flux in latest and established models = 2.1532 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 108 components and 2.1532 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-2.8, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00525229 Jy
! Component: 100  -  total flux cleaned = 0.00968866 Jy
! Component: 150  -  total flux cleaned = 0.0137186 Jy
! Component: 200  -  total flux cleaned = 0.0173907 Jy
! Total flux subtracted in 200 components = 0.0173907 Jy
! Clean residual min=-0.002434 max=0.003926 Jy/beam
! Clean residual mean=0.000210 rms=0.000936 Jy/beam
! Combined flux in latest and established models = 2.17059 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 126 components and 2.17059 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=2.322 mas, bmaj=2.497 mas, bpa=61.37 degrees
! Estimated noise=388.958 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00681685 Jy
! Component: 100  -  total flux cleaned = 0.0103818 Jy
! Component: 150  -  total flux cleaned = 0.0124788 Jy
! Component: 200  -  total flux cleaned = 0.0142915 Jy
! Total flux subtracted in 200 components = 0.0142915 Jy
! Clean residual min=-0.003454 max=0.004348 Jy/beam
! Clean residual mean=0.000364 rms=0.001440 Jy/beam
! Combined flux in latest and established models = 2.18488 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.00152043 Jy
! Component: 100  -  total flux cleaned = 0.0025592 Jy
! Component: 150  -  total flux cleaned = 0.00322759 Jy
! Component: 200  -  total flux cleaned = 0.00383993 Jy
! Total flux subtracted in 200 components = 0.00383993 Jy
! Clean residual min=-0.003473 max=0.004266 Jy/beam
! Clean residual mean=0.000261 rms=0.001394 Jy/beam
! Combined flux in latest and established models = 2.18872 Jy
! Adding 78 model components to the UV plane model.
! The established model now contains 195 components and 2.18872 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.6813 mas, bmaj=0.8349 mas, bpa=-11.33 degrees
! Estimated noise=264.658 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000374764 Jy
! Component: 100  -  total flux cleaned = 0.00131127 Jy
! Component: 150  -  total flux cleaned = 0.00228105 Jy
! Component: 200  -  total flux cleaned = 0.00292412 Jy
! Total flux subtracted in 200 components = 0.00292412 Jy
! Clean residual min=-0.002453 max=0.003491 Jy/beam
! Clean residual mean=0.000048 rms=0.000851 Jy/beam
! Combined flux in latest and established models = 2.19165 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 211 components and 2.19165 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333380Jy  sigma=0.001330
! Fit after  self-cal, rms=0.333358Jy  sigma=0.001330
wmodel J0136+4751_X_1999_12_20_pus_map.mod
! Writing 211 model components to file: J0136+4751_X_1999_12_20_pus_map.mod
wobs J0136+4751_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0136+4751_X_1999_12_20_pus_uvs.fits
wwins J0136+4751_X_1999_12_20_pus_map.win
! wwins: Wrote 14 windows to J0136+4751_X_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00160224 Jy
! Component: 100  -  total flux cleaned = 0.00309588 Jy
! Component: 150  -  total flux cleaned = 0.00453058 Jy
! Component: 200  -  total flux cleaned = 0.00591714 Jy
! Component: 250  -  total flux cleaned = 0.00726404 Jy
! Component: 300  -  total flux cleaned = 0.00857736 Jy
! Component: 350  -  total flux cleaned = 0.00985963 Jy
! Component: 400  -  total flux cleaned = 0.0111128 Jy
! Component: 450  -  total flux cleaned = 0.0122418 Jy
! Component: 500  -  total flux cleaned = 0.0132526 Jy
! Component: 550  -  total flux cleaned = 0.0141988 Jy
! Component: 600  -  total flux cleaned = 0.0151294 Jy
! Component: 650  -  total flux cleaned = 0.0160454 Jy
! Component: 700  -  total flux cleaned = 0.0169478 Jy
! Component: 750  -  total flux cleaned = 0.0177936 Jy
! Component: 800  -  total flux cleaned = 0.0187591 Jy
! Component: 850  -  total flux cleaned = 0.019452 Jy
! Component: 900  -  total flux cleaned = 0.0200946 Jy
! Component: 950  -  total flux cleaned = 0.0206879 Jy
! Component: 1000  -  total flux cleaned = 0.0212332 Jy
! Total flux subtracted in 1024 components = 0.0214831 Jy
! Clean residual min=-0.002157 max=0.003050 Jy/beam
! Clean residual mean=-0.000109 rms=0.000781 Jy/beam
! Combined flux in latest and established models = 2.21313 Jy
keep
! Adding 76 model components to the UV plane model.
! The established model now contains 287 components and 2.21313 Jy
![Exited script file: muppet]
wmap "J0136+4751_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6813 x 0.8349 at -11.33 degrees (North through East)
! Clean map  min=-0.0023005  max=1.8625 Jy/beam
! Writing clean map to FITS file: J0136+4751_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.86248 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1538 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1842 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000780515 
device "J0136+4751_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0136+4751_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.125722 0.125722 0.251443 0.502887 1.00577 2.01155 4.02309 8.04619 16.0924 32.1848 64.3695
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.862 
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.6813 x 0.8349 at -11.33 degrees (North through East)
! Clean map  min=-0.0023005  max=1.8625 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0136+4751_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0136+4751_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0136+4751_X_1999_12_20_pus_uvs.log closed on Mon Dec 17 12:06:02 2007