! Started logfile: J2202+4216_X_1999_05_10_pus_uvs.log on Tue Jan 15 17:09:33 2008
obs J2202+4216_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J2202+4216_X_1999_05_10_pus_uva.fits
! AN table 1: 84 integrations on 153 of 153 possible baselines.
! AN table 2: 3 integrations on 153 of 153 possible baselines.
! AN table 3: 269 integrations on 153 of 153 possible baselines.
! AN table 4: 62 integrations on 153 of 153 possible baselines.
! AN table 5: 9 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.228253 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2202+4216
! 
! 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 1763 lines of history.
! 
! Reading 59648 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 J2202+4216_X_1999_05_10_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 859 telescope corrections were flagged in sub-array 1.
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  A total of 3338 telescope corrections were flagged in sub-array 3.
!  A total of 749 telescope corrections were flagged in sub-array 4.
!  A total of 162 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 849 telescope corrections were flagged in sub-array 1.
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  A total of 3283 telescope corrections were flagged in sub-array 3.
!  A total of 749 telescope corrections were flagged in sub-array 4.
!  A total of 162 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 849 telescope corrections were flagged in sub-array 1.
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  A total of 3291 telescope corrections were flagged in sub-array 3.
!  A total of 749 telescope corrections were flagged in sub-array 4.
!  A total of 162 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 880 telescope corrections were flagged in sub-array 1.
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  A total of 3445 telescope corrections were flagged in sub-array 3.
!  A total of 759 telescope corrections were flagged in sub-array 4.
!  A total of 162 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.849848Jy  sigma=0.008054
! Fit after  self-cal, rms=0.633143Jy  sigma=0.006664
! 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.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.5746 mas, bmaj=0.7196 mas, bpa=-20.73 degrees
! Estimated noise=753.039 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.804724 Jy
! Component: 100  -  total flux cleaned = 1.02255 Jy
! Total flux subtracted in 100 components = 1.02255 Jy
! Clean residual min=-0.033333 max=0.210854 Jy/beam
! Clean residual mean=0.001326 rms=0.013639 Jy/beam
! Combined flux in latest and established models = 1.02255 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 1.02255 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619445Jy  sigma=0.006518
! Fit after  self-cal, rms=0.619225Jy  sigma=0.006516
! Inverting map 
! Your choice of large map pixels excluded 2.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (-0.4, -2.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.199848 Jy
! Component: 100  -  total flux cleaned = 0.329422 Jy
! Total flux subtracted in 100 components = 0.329422 Jy
! Clean residual min=-0.029555 max=0.121561 Jy/beam
! Clean residual mean=0.001022 rms=0.010267 Jy/beam
! Combined flux in latest and established models = 1.35197 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 20 components and 1.35197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.490008Jy  sigma=0.005071
! Fit after  self-cal, rms=0.478339Jy  sigma=0.005003
! Inverting map 
! Your choice of large map pixels excluded 2.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (-0.6, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.126039 Jy
! Component: 100  -  total flux cleaned = 0.219801 Jy
! Total flux subtracted in 100 components = 0.219801 Jy
! Clean residual min=-0.024646 max=0.067111 Jy/beam
! Clean residual mean=0.000829 rms=0.007885 Jy/beam
! Combined flux in latest and established models = 1.57177 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 27 components and 1.57177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.402604Jy  sigma=0.004104
! Fit after  self-cal, rms=0.398445Jy  sigma=0.004082
! Inverting map 
! Your choice of large map pixels excluded 2.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0830228 Jy
! Component: 100  -  total flux cleaned = 0.149989 Jy
! Total flux subtracted in 100 components = 0.149989 Jy
! Clean residual min=-0.022760 max=0.063378 Jy/beam
! Clean residual mean=0.000696 rms=0.006592 Jy/beam
! Combined flux in latest and established models = 1.72176 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 37 components and 1.72176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354771Jy  sigma=0.003519
! Fit after  self-cal, rms=0.352708Jy  sigma=0.003510
! Inverting map 
! Your choice of large map pixels excluded 2.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (0.4, -2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.06728 Jy
! Component: 100  -  total flux cleaned = 0.120732 Jy
! Total flux subtracted in 100 components = 0.120732 Jy
! Clean residual min=-0.020358 max=0.036056 Jy/beam
! Clean residual mean=0.000595 rms=0.005620 Jy/beam
! Combined flux in latest and established models = 1.84249 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 48 components and 1.84249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321763Jy  sigma=0.003095
! Fit after  self-cal, rms=0.320202Jy  sigma=0.003089
! Inverting map 
! Your choice of large map pixels excluded 2.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (-1, -2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0489088 Jy
! Component: 100  -  total flux cleaned = 0.0908991 Jy
! Total flux subtracted in 100 components = 0.0908991 Jy
! Clean residual min=-0.019138 max=0.030109 Jy/beam
! Clean residual mean=0.000517 rms=0.004981 Jy/beam
! Combined flux in latest and established models = 1.93339 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 56 components and 1.93339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300327Jy  sigma=0.002800
! Fit after  self-cal, rms=0.299431Jy  sigma=0.002797
! Inverting map 
! Your choice of large map pixels excluded 2.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (-0.2, -3.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0390593 Jy
! Component: 100  -  total flux cleaned = 0.0732497 Jy
! Total flux subtracted in 100 components = 0.0732497 Jy
! Clean residual min=-0.018260 max=0.023949 Jy/beam
! Clean residual mean=0.000453 rms=0.004524 Jy/beam
! Combined flux in latest and established models = 2.00664 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 67 components and 2.00664 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285514Jy  sigma=0.002586
! Fit after  self-cal, rms=0.284805Jy  sigma=0.002584
! Inverting map 
! Your choice of large map pixels excluded 2.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.687 mas, bmaj=0.9205 mas, bpa=-15.54 degrees
! Estimated noise=350.544 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.0939643 Jy
! Component: 100  -  total flux cleaned = 0.163806 Jy
! Component: 150  -  total flux cleaned = 0.218079 Jy
! Component: 200  -  total flux cleaned = 0.261012 Jy
! Total flux subtracted in 200 components = 0.261012 Jy
! Clean residual min=-0.014324 max=0.036554 Jy/beam
! Clean residual mean=0.002655 rms=0.007577 Jy/beam
! Combined flux in latest and established models = 2.26765 Jy
! Performing phase self-cal
! Adding 80 model components to the UV plane model.
! The established model now contains 106 components and 2.26765 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253900Jy  sigma=0.002018
! Fit after  self-cal, rms=0.250996Jy  sigma=0.001992
! Inverting map 
! Your choice of large map pixels excluded 2.15% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     GC        1.08     HH        1.00*    
!   HN        1.03     KK        0.88     KP        0.95     LA        0.92     
!   MC        0.95     MK        0.92     NL        1.03     NY        0.97     
!   ON        0.93     OV        1.00     PT        0.98     SC        1.04     
!   WF        1.19     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.98     GC        1.08     HH        0.93     
!   HN        0.99     KK        0.96     KP        0.96     LA        0.91     
!   MC        1.05     MK        0.99     NL        1.05     NY        0.97     
!   ON        1.03     OV        0.97     PT        1.01     SC        1.08     
!   WF        1.11     WZ        1.07     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.92     GC        1.13     HH        1.00*    
!   HN        1.01     KK        0.90     KP        0.97     LA        0.94     
!   MC        1.00*    MK        0.94     NL        1.09     NY        0.96     
!   ON        0.97     OV        0.93     PT        0.99     SC        1.00*    
!   WF        0.99     WZ        1.09     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        1.05     HH        1.00*    
!   HN        1.02     KK        0.90     KP        0.95     LA        0.93     
!   MC        0.95     MK        0.92     NL        0.97     NY        0.98     
!   ON        0.92     OV        0.98     PT        0.89     SC        1.03     
!   WF        1.11     WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.98     GC        1.07     HH        0.96     
!   HN        0.97     KK        0.97     KP        0.99     LA        0.90     
!   MC        1.05     MK        0.98     NL        1.00     NY        0.99     
!   ON        1.03     OV        0.95     PT        0.93     SC        1.06     
!   WF        1.00     WZ        1.11     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.91     GC        1.11     HH        1.00*    
!   HN        1.00     KK        0.92     KP        0.99     LA        0.95     
!   MC        1.00*    MK        0.94     NL        1.04     NY        0.97     
!   ON        1.00     OV        0.92     PT        0.91     SC        1.00*    
!   WF        1.04     WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        1.04     HH        1.00*    
!   HN        1.02     KK        0.97     KP        0.97     LA        0.92     
!   MC        0.98     MK        0.93     NL        0.98     NY        1.03     
!   ON        0.98     OV        1.00     PT        0.91     SC        1.04     
!   WF        1.11     WZ        1.05     
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GC        1.12     HH        0.96     
!   HN        0.99     KK        1.05     KP        1.00     LA        0.90     
!   MC        1.09     MK        0.98     NL        1.01     NY        1.02     
!   ON        1.07     OV        0.97     PT        0.95     SC        1.08     
!   WF        1.00     WZ        1.15     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.94     GC        1.11     HH        1.00*    
!   HN        1.01     KK        0.99     KP        1.01     LA        0.95     
!   MC        1.00*    MK        0.95     NL        1.04     NY        1.00     
!   ON        0.97     OV        0.94     PT        0.93     SC        1.00*    
!   WF        1.06     WZ        1.05     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.06     HH        1.00*    
!   HN        1.02     KK        0.93     KP        0.96     LA        0.93     
!   MC        0.96     MK        0.94     NL        0.99     NY        1.07     
!   ON        0.97     OV        1.00     PT        0.94     SC        1.01     
!   WF        1.10     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.98     GC        1.08     HH        1.13     
!   HN        0.97     KK        1.02     KP        0.99     LA        0.91     
!   MC        1.07     MK        0.99     NL        1.02     NY        1.07     
!   ON        1.06     OV        0.97     PT        0.97     SC        1.04     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.94     GC        1.10     HH        1.00*    
!   HN        1.00     KK        0.96     KP        1.00     LA        0.96     
!   MC        1.00*    MK        0.95     NL        1.05     NY        1.03     
!   ON        1.03     OV        0.95     PT        0.95     SC        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.250996Jy  sigma=0.001992
! Fit after  self-cal, rms=0.233829Jy  sigma=0.001661
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.6936 mas, bmaj=0.9353 mas, bpa=-14.72 degrees
! Estimated noise=346.493 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.6, -3.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0217811 Jy
! Component: 100  -  total flux cleaned = 0.0272866 Jy
! Component: 150  -  total flux cleaned = 0.0314457 Jy
! Component: 200  -  total flux cleaned = 0.0347604 Jy
! Total flux subtracted in 200 components = 0.0347604 Jy
! Clean residual min=-0.013632 max=0.013256 Jy/beam
! Clean residual mean=-0.000388 rms=0.003523 Jy/beam
! Combined flux in latest and established models = 2.30241 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 125 components and 2.30241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230589Jy  sigma=0.001613
! Fit after  self-cal, rms=0.230044Jy  sigma=0.001608
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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.230044Jy  sigma=0.001608
! Fit after  self-cal, rms=0.226158Jy  sigma=0.001460
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.6939 mas, bmaj=0.937 mas, bpa=-14.09 degrees
! Estimated noise=347.011 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0126033 Jy
! Component: 100  -  total flux cleaned = 0.0162862 Jy
! Component: 150  -  total flux cleaned = 0.0199446 Jy
! Component: 200  -  total flux cleaned = 0.022688 Jy
! Total flux subtracted in 200 components = 0.022688 Jy
! Clean residual min=-0.005153 max=0.013800 Jy/beam
! Clean residual mean=0.001618 rms=0.002152 Jy/beam
! Combined flux in latest and established models = 2.3251 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 137 components and 2.3251 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224966Jy  sigma=0.001441
! Fit after  self-cal, rms=0.225550Jy  sigma=0.001438
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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 (0, -6.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154135 Jy
! Component: 100  -  total flux cleaned = 0.0242919 Jy
! Component: 150  -  total flux cleaned = 0.0284778 Jy
! Component: 200  -  total flux cleaned = 0.0315257 Jy
! Total flux subtracted in 200 components = 0.0315257 Jy
! Clean residual min=-0.004588 max=0.008323 Jy/beam
! Clean residual mean=0.001191 rms=0.001578 Jy/beam
! Combined flux in latest and established models = 2.35663 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 163 components and 2.35663 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224558Jy  sigma=0.001419
! Fit after  self-cal, rms=0.224411Jy  sigma=0.001417
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (2.2, -5.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00802005 Jy
! Component: 100  -  total flux cleaned = 0.0117059 Jy
! Component: 150  -  total flux cleaned = 0.0142397 Jy
! Component: 200  -  total flux cleaned = 0.0162938 Jy
! Total flux subtracted in 200 components = 0.0162938 Jy
! Clean residual min=-0.004040 max=0.007193 Jy/beam
! Clean residual mean=0.000968 rms=0.001403 Jy/beam
! Combined flux in latest and established models = 2.37292 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 186 components and 2.37292 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223942Jy  sigma=0.001410
! Fit after  self-cal, rms=0.223843Jy  sigma=0.001410
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (-1.2, -4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00552764 Jy
! Component: 100  -  total flux cleaned = 0.0073234 Jy
! Component: 150  -  total flux cleaned = 0.00885336 Jy
! Component: 200  -  total flux cleaned = 0.0102121 Jy
! Total flux subtracted in 200 components = 0.0102121 Jy
! Clean residual min=-0.003645 max=0.006944 Jy/beam
! Clean residual mean=0.000833 rms=0.001323 Jy/beam
! Combined flux in latest and established models = 2.38314 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 205 components and 2.38314 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223524Jy  sigma=0.001405
! Fit after  self-cal, rms=0.223435Jy  sigma=0.001405
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (1.4, -9.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00695181 Jy
! Component: 100  -  total flux cleaned = 0.00964345 Jy
! Component: 150  -  total flux cleaned = 0.0120382 Jy
! Component: 200  -  total flux cleaned = 0.0137529 Jy
! Total flux subtracted in 200 components = 0.0137529 Jy
! Clean residual min=-0.004125 max=0.004357 Jy/beam
! Clean residual mean=0.000658 rms=0.001213 Jy/beam
! Combined flux in latest and established models = 2.39689 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 230 components and 2.39689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223138Jy  sigma=0.001401
! Fit after  self-cal, rms=0.223087Jy  sigma=0.001400
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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.223087Jy  sigma=0.001400
! Fit after  self-cal, rms=0.223068Jy  sigma=0.001390
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.6943 mas, bmaj=0.9381 mas, bpa=-13.81 degrees
! Estimated noise=346.373 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00554642 Jy
! Component: 100  -  total flux cleaned = 0.00906291 Jy
! Component: 150  -  total flux cleaned = 0.0121523 Jy
! Component: 200  -  total flux cleaned = 0.0150779 Jy
! Total flux subtracted in 200 components = 0.0150779 Jy
! Clean residual min=-0.003083 max=0.004482 Jy/beam
! Clean residual mean=0.000851 rms=0.000951 Jy/beam
! Combined flux in latest and established models = 2.41197 Jy
selfcal
! Performing phase self-cal
! Adding 62 model components to the UV plane model.
! The established model now contains 267 components and 2.41197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222720Jy  sigma=0.001385
! Fit after  self-cal, rms=0.222855Jy  sigma=0.001385
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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 (2.2, -3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00371545 Jy
! Component: 100  -  total flux cleaned = 0.00630845 Jy
! Component: 150  -  total flux cleaned = 0.00861791 Jy
! Component: 200  -  total flux cleaned = 0.0104553 Jy
! Total flux subtracted in 200 components = 0.0104553 Jy
! Clean residual min=-0.003065 max=0.003743 Jy/beam
! Clean residual mean=0.000712 rms=0.000871 Jy/beam
! Combined flux in latest and established models = 2.42242 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 276 components and 2.42242 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222641Jy  sigma=0.001382
! Fit after  self-cal, rms=0.222620Jy  sigma=0.001382
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (2.8, -7.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00311001 Jy
! Component: 100  -  total flux cleaned = 0.00535262 Jy
! Component: 150  -  total flux cleaned = 0.00665325 Jy
! Component: 200  -  total flux cleaned = 0.00806407 Jy
! Total flux subtracted in 200 components = 0.00806407 Jy
! Clean residual min=-0.002862 max=0.003199 Jy/beam
! Clean residual mean=0.000604 rms=0.000817 Jy/beam
! Combined flux in latest and established models = 2.43049 Jy
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 290 components and 2.43049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222477Jy  sigma=0.001380
! Fit after  self-cal, rms=0.222455Jy  sigma=0.001380
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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.222455Jy  sigma=0.001380
! Fit after  self-cal, rms=0.222455Jy  sigma=0.001379
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=2.36 mas, bmaj=2.511 mas, bpa=25.3 degrees
! Estimated noise=494.384 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0102475 Jy
! Component: 100  -  total flux cleaned = 0.0171187 Jy
! Component: 150  -  total flux cleaned = 0.0209414 Jy
! Component: 200  -  total flux cleaned = 0.0231161 Jy
! Total flux subtracted in 200 components = 0.0231161 Jy
! Clean residual min=-0.002277 max=0.005641 Jy/beam
! Clean residual mean=0.001679 rms=0.001357 Jy/beam
! Combined flux in latest and established models = 2.4536 Jy
selfcal
! Performing phase self-cal
! Adding 71 model components to the UV plane model.
! The established model now contains 344 components and 2.4536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222320Jy  sigma=0.001377
! Fit after  self-cal, rms=0.222309Jy  sigma=0.001376
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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.00257819 Jy
! Component: 100  -  total flux cleaned = 0.00437522 Jy
! Component: 150  -  total flux cleaned = 0.00591894 Jy
! Component: 200  -  total flux cleaned = 0.00717084 Jy
! Total flux subtracted in 200 components = 0.00717084 Jy
! Clean residual min=-0.002491 max=0.005146 Jy/beam
! Clean residual mean=0.001351 rms=0.001377 Jy/beam
! Combined flux in latest and established models = 2.46077 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 365 components and 2.46077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222297Jy  sigma=0.001376
! Fit after  self-cal, rms=0.222269Jy  sigma=0.001376
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.6944 mas, bmaj=0.9386 mas, bpa=-13.66 degrees
! Estimated noise=346.218 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6944 x 0.9386 at -13.66 degrees (North through East)
! Clean map  min=-0.0018678  max=1.0564 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.222269Jy  sigma=0.001376
! Fit after  self-cal, rms=0.318423Jy  sigma=0.001230
! Inverting map and beam 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.6941 mas, bmaj=0.9385 mas, bpa=-13.7 degrees
! Estimated noise=345.657 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000716195 Jy
! Component: 100  -  total flux cleaned = 0.00186356 Jy
! Component: 150  -  total flux cleaned = 0.00256931 Jy
! Component: 200  -  total flux cleaned = 0.00330723 Jy
! Total flux subtracted in 200 components = 0.00330723 Jy
! Clean residual min=-0.001884 max=0.002772 Jy/beam
! Clean residual mean=0.000400 rms=0.000631 Jy/beam
! Combined flux in latest and established models = 2.46408 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 374 components and 2.46408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318343Jy  sigma=0.001229
! Fit after  self-cal, rms=0.318334Jy  sigma=0.001229
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00124834 Jy
! Component: 100  -  total flux cleaned = 0.00201529 Jy
! Component: 150  -  total flux cleaned = 0.00272002 Jy
! Component: 200  -  total flux cleaned = 0.00344518 Jy
! Total flux subtracted in 200 components = 0.00344518 Jy
! Clean residual min=-0.001971 max=0.002697 Jy/beam
! Clean residual mean=0.000355 rms=0.000613 Jy/beam
! Combined flux in latest and established models = 2.46753 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 379 components and 2.46753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318289Jy  sigma=0.001228
! Fit after  self-cal, rms=0.318283Jy  sigma=0.001228
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Added new window around map position (5.8, -11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00248143 Jy
! Component: 100  -  total flux cleaned = 0.00379001 Jy
! Component: 150  -  total flux cleaned = 0.00472717 Jy
! Component: 200  -  total flux cleaned = 0.00525815 Jy
! Total flux subtracted in 200 components = 0.00525815 Jy
! Clean residual min=-0.002212 max=0.002242 Jy/beam
! Clean residual mean=0.000284 rms=0.000583 Jy/beam
! Combined flux in latest and established models = 2.47278 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 396 components and 2.47278 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318233Jy  sigma=0.001227
! Fit after  self-cal, rms=0.318254Jy  sigma=0.001227
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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.318254Jy  sigma=0.001227
! Fit after  self-cal, rms=0.325494Jy  sigma=0.001227
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.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.5799 mas, bmaj=0.7261 mas, bpa=-18.69 degrees
! Estimated noise=757.583 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.804208 Jy
! Component: 100  -  total flux cleaned = 1.07886 Jy
! Component: 150  -  total flux cleaned = 1.26804 Jy
! Component: 200  -  total flux cleaned = 1.41289 Jy
! Total flux subtracted in 200 components = 1.41289 Jy
! Clean residual min=-0.017527 max=0.085374 Jy/beam
! Clean residual mean=0.000962 rms=0.008402 Jy/beam
! Combined flux in latest and established models = 1.41289 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 21 model components to the UV plane model.
! The established model now contains 21 components and 1.41289 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.6943 mas, bmaj=0.9389 mas, bpa=-13.6 degrees
! Estimated noise=345.652 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.250859 Jy
! Component: 100  -  total flux cleaned = 0.417338 Jy
! Component: 150  -  total flux cleaned = 0.537737 Jy
! Component: 200  -  total flux cleaned = 0.627178 Jy
! Total flux subtracted in 200 components = 0.627178 Jy
! Clean residual min=-0.008018 max=0.051490 Jy/beam
! Clean residual mean=0.005990 rms=0.009342 Jy/beam
! Combined flux in latest and established models = 2.04007 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 68 components and 2.04006 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0682028 Jy
! Component: 100  -  total flux cleaned = 0.12146 Jy
! Component: 150  -  total flux cleaned = 0.163933 Jy
! Component: 200  -  total flux cleaned = 0.198247 Jy
! Total flux subtracted in 200 components = 0.198247 Jy
! Clean residual min=-0.003436 max=0.020676 Jy/beam
! Clean residual mean=0.003415 rms=0.004501 Jy/beam
! Combined flux in latest and established models = 2.23831 Jy
! Adding 74 model components to the UV plane model.
! The established model now contains 129 components and 2.23831 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0282488 Jy
! Component: 100  -  total flux cleaned = 0.0520514 Jy
! Component: 150  -  total flux cleaned = 0.0722894 Jy
! Component: 200  -  total flux cleaned = 0.0897469 Jy
! Total flux subtracted in 200 components = 0.0897469 Jy
! Clean residual min=-0.002223 max=0.011243 Jy/beam
! Clean residual mean=0.002242 rms=0.002687 Jy/beam
! Combined flux in latest and established models = 2.32806 Jy
! Adding 83 model components to the UV plane model.
! The established model now contains 181 components and 2.32806 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 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.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=2.358 mas, bmaj=2.509 mas, bpa=25.3 degrees
! Estimated noise=493.849 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0425491 Jy
! Component: 100  -  total flux cleaned = 0.0711301 Jy
! Component: 150  -  total flux cleaned = 0.0915185 Jy
! Component: 200  -  total flux cleaned = 0.106563 Jy
! Total flux subtracted in 200 components = 0.106563 Jy
! Clean residual min=-0.001727 max=0.008901 Jy/beam
! Clean residual mean=0.002959 rms=0.002463 Jy/beam
! Combined flux in latest and established models = 2.43462 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.0113272 Jy
! Component: 100  -  total flux cleaned = 0.0200337 Jy
! Component: 150  -  total flux cleaned = 0.0268105 Jy
! Component: 200  -  total flux cleaned = 0.0321521 Jy
! Total flux subtracted in 200 components = 0.0321521 Jy
! Clean residual min=-0.001818 max=0.004586 Jy/beam
! Clean residual mean=0.001485 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 2.46677 Jy
! Adding 217 model components to the UV plane model.
! The established model now contains 360 components and 2.46677 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! Estimated beam: bmin=0.6943 mas, bmaj=0.9389 mas, bpa=-13.6 degrees
! Estimated noise=345.652 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00185897 Jy
! Component: 100  -  total flux cleaned = 0.00302594 Jy
! Component: 150  -  total flux cleaned = 0.00401454 Jy
! Component: 200  -  total flux cleaned = 0.00504488 Jy
! Total flux subtracted in 200 components = 0.00504488 Jy
! Clean residual min=-0.003192 max=0.002915 Jy/beam
! Clean residual mean=0.000372 rms=0.000651 Jy/beam
! Combined flux in latest and established models = 2.47182 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 375 components and 2.47182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325478Jy  sigma=0.001235
! Fit after  self-cal, rms=0.325538Jy  sigma=0.001234
wmodel J2202+4216_X_1999_05_10_pus_map.mod
! Writing 375 model components to file: J2202+4216_X_1999_05_10_pus_map.mod
wobs J2202+4216_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J2202+4216_X_1999_05_10_pus_uvs.fits
wwins J2202+4216_X_1999_05_10_pus_map.win
! wwins: Wrote 14 windows to J2202+4216_X_1999_05_10_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.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000111592 Jy
! Component: 100  -  total flux cleaned = 0.00083658 Jy
! Component: 150  -  total flux cleaned = 0.0016867 Jy
! Component: 200  -  total flux cleaned = 0.00250265 Jy
! Component: 250  -  total flux cleaned = 0.00329336 Jy
! Component: 300  -  total flux cleaned = 0.00390863 Jy
! Component: 350  -  total flux cleaned = 0.0045472 Jy
! Component: 400  -  total flux cleaned = 0.00513547 Jy
! Component: 450  -  total flux cleaned = 0.00571223 Jy
! Component: 500  -  total flux cleaned = 0.00624317 Jy
! Component: 550  -  total flux cleaned = 0.00673064 Jy
! Component: 600  -  total flux cleaned = 0.00721104 Jy
! Component: 650  -  total flux cleaned = 0.00768466 Jy
! Component: 700  -  total flux cleaned = 0.00815207 Jy
! Component: 750  -  total flux cleaned = 0.00848164 Jy
! Component: 800  -  total flux cleaned = 0.00880787 Jy
! Component: 850  -  total flux cleaned = 0.00919467 Jy
! Component: 900  -  total flux cleaned = 0.00948187 Jy
! Component: 950  -  total flux cleaned = 0.00982931 Jy
! Component: 1000  -  total flux cleaned = 0.0101107 Jy
! Total flux subtracted in 1024 components = 0.010297 Jy
! Clean residual min=-0.001551 max=0.001625 Jy/beam
! Clean residual mean=0.000242 rms=0.000566 Jy/beam
! Combined flux in latest and established models = 2.48211 Jy
keep
! Adding 88 model components to the UV plane model.
! The established model now contains 449 components and 2.48211 Jy
![Exited script file: muppet]
wmap "J2202+4216_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6943 x 0.9389 at -13.6 degrees (North through East)
! Clean map  min=-0.0015347  max=1.0535 Jy/beam
! Writing clean map to FITS file: J2202+4216_X_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.05349 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.16% of the data.
!  The x-axis pixel size should ideally be below 0.1659 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1448 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000565425 
device "J2202+4216_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J2202+4216_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.161014 0.161014 0.322028 0.644056 1.28811 2.57622 5.15245 10.3049 20.6098 41.2196 82.4392
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.053 
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.6943 x 0.9389 at -13.6 degrees (North through East)
! Clean map  min=-0.0015347  max=1.0535 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2202+4216_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J2202+4216_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2202+4216_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 17:10:03 2008