! Started logfile: J1640+3946_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:28:19 2007
obs J1640+3946_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1640+3946_X_2000_12_04_pus_uva.fits
! AN table 1: 304 integrations on 190 of 190 possible baselines.
! AN table 2: 310 integrations on 190 of 190 possible baselines.
! AN table 3: 57 integrations on 190 of 190 possible baselines.
! AN table 4: 40 integrations on 190 of 190 possible baselines.
! AN table 5: 193 integrations on 190 of 190 possible baselines.
! AN table 6: 202 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.193295 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1640+3946
! 
! 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 2126 lines of history.
! 
! Reading 162476 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 J1640+3946_X_2000_12_04_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 2555 telescope corrections were flagged in sub-array 1.
!  A total of 4283 telescope corrections were flagged in sub-array 2.
!  A total of 984 telescope corrections were flagged in sub-array 3.
!  A total of 329 telescope corrections were flagged in sub-array 4.
!  A total of 2565 telescope corrections were flagged in sub-array 5.
!  A total of 2955 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 2555 telescope corrections were flagged in sub-array 1.
!  A total of 4283 telescope corrections were flagged in sub-array 2.
!  A total of 984 telescope corrections were flagged in sub-array 3.
!  A total of 329 telescope corrections were flagged in sub-array 4.
!  A total of 2565 telescope corrections were flagged in sub-array 5.
!  A total of 2955 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 2559 telescope corrections were flagged in sub-array 1.
!  A total of 4337 telescope corrections were flagged in sub-array 2.
!  A total of 984 telescope corrections were flagged in sub-array 3.
!  A total of 329 telescope corrections were flagged in sub-array 4.
!  A total of 2565 telescope corrections were flagged in sub-array 5.
!  A total of 2959 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 2557 telescope corrections were flagged in sub-array 1.
!  A total of 4281 telescope corrections were flagged in sub-array 2.
!  A total of 984 telescope corrections were flagged in sub-array 3.
!  A total of 329 telescope corrections were flagged in sub-array 4.
!  A total of 2565 telescope corrections were flagged in sub-array 5.
!  A total of 2955 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.783625Jy  sigma=0.007075
! Fit after  self-cal, rms=0.692627Jy  sigma=0.006346
! 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.95% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.5292 mas, bmaj=0.7839 mas, bpa=-3.256 degrees
! Estimated noise=576.465 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.25179 Jy
! Component: 100  -  total flux cleaned = 0.323852 Jy
! Total flux subtracted in 100 components = 0.323852 Jy
! Clean residual min=-0.009782 max=0.036584 Jy/beam
! Clean residual mean=0.000212 rms=0.002802 Jy/beam
! Combined flux in latest and established models = 0.323852 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.323852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.327464Jy  sigma=0.001945
! Fit after  self-cal, rms=0.327477Jy  sigma=0.001945
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0458313 Jy
! Component: 100  -  total flux cleaned = 0.0778092 Jy
! Total flux subtracted in 100 components = 0.0778092 Jy
! Clean residual min=-0.006385 max=0.018048 Jy/beam
! Clean residual mean=0.000133 rms=0.001819 Jy/beam
! Combined flux in latest and established models = 0.401661 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 17 components and 0.401661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312926Jy  sigma=0.001633
! Fit after  self-cal, rms=0.312952Jy  sigma=0.001632
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0235299 Jy
! Component: 100  -  total flux cleaned = 0.0405308 Jy
! Total flux subtracted in 100 components = 0.0405308 Jy
! Clean residual min=-0.005126 max=0.009671 Jy/beam
! Clean residual mean=0.000091 rms=0.001448 Jy/beam
! Combined flux in latest and established models = 0.442192 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 0.442192 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308677Jy  sigma=0.001529
! Fit after  self-cal, rms=0.308704Jy  sigma=0.001529
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0129045 Jy
! Component: 100  -  total flux cleaned = 0.0222112 Jy
! Total flux subtracted in 100 components = 0.0222112 Jy
! Clean residual min=-0.004816 max=0.005925 Jy/beam
! Clean residual mean=0.000069 rms=0.001310 Jy/beam
! Combined flux in latest and established models = 0.464403 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 0.464403 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307275Jy  sigma=0.001492
! Fit after  self-cal, rms=0.307295Jy  sigma=0.001492
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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.95% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.7181 mas, bmaj=1.147 mas, bpa=-17.39 degrees
! Estimated noise=183.997 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.0194342 Jy
! Component: 100  -  total flux cleaned = 0.0297382 Jy
! Component: 150  -  total flux cleaned = 0.0354613 Jy
! Component: 200  -  total flux cleaned = 0.0386863 Jy
! Total flux subtracted in 200 components = 0.0386863 Jy
! Clean residual min=-0.003925 max=0.008931 Jy/beam
! Clean residual mean=0.000663 rms=0.001635 Jy/beam
! Combined flux in latest and established models = 0.503089 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 29 components and 0.503089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306285Jy  sigma=0.001464
! Fit after  self-cal, rms=0.306310Jy  sigma=0.001464
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.99     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.00     NY        0.96     OV        0.98     PT        0.97     
!   SC        1.23     TS        0.91     WF        1.03     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.99     GC        1.06     GG        1.00*    
!   HH        1.74     HN        0.99     KK        1.00*    KP        1.01     
!   LA        1.01     MA        0.91     MC        0.89     MK        1.00*    
!   NL        1.00     NY        1.05     OV        1.00*    PT        1.00     
!   SC        1.11     TS        1.00*    WF        0.96     WZ        1.03     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.16     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.89     MK        1.00*    
!   NL        1.00*    NY        1.05     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.85     WF        1.00*    WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.01     GC        1.12     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.03     
!   LA        0.99     MA        0.96     MC        0.87     MK        1.00*    
!   NL        0.99     NY        1.02     OV        1.02     PT        0.99     
!   SC        1.04     TS        1.00*    WF        1.04     WZ        0.94     
! 
!  A total of 234 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        0.97     
!   LA        0.94     MA        1.00*    MC        1.10     MK        1.01     
!   NL        0.98     NY        0.93     OV        0.96     PT        0.98     
!   SC        1.15     TS        1.09     WF        0.97     WZ        1.00*    
! 
!  A total of 246 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        0.96     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.11     KP        0.96     
!   LA        0.94     MA        0.92     MC        0.92     MK        1.06     
!   NL        0.96     NY        0.97     OV        0.98     PT        0.97     
!   SC        1.06     TS        1.00*    WF        0.78     WZ        0.92     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.98     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.95     NY        0.96     OV        0.98     PT        0.99     
!   SC        1.25     TS        0.92     WF        1.02     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.09     GG        1.00*    
!   HH        1.95     HN        1.00     KK        1.00*    KP        1.02     
!   LA        0.98     MA        0.94     MC        0.89     MK        1.00*    
!   NL        0.96     NY        1.03     OV        1.00*    PT        1.00     
!   SC        1.11     TS        1.00*    WF        0.98     WZ        1.00     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.84     MK        1.00*    
!   NL        1.00*    NY        1.02     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.91     WF        1.00*    WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.02     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        1.03     
!   LA        0.99     MA        0.96     MC        0.87     MK        1.00*    
!   NL        0.96     NY        0.96     OV        1.02     PT        0.99     
!   SC        1.04     TS        1.00*    WF        1.00     WZ        0.98     
! 
!  A total of 234 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.98     
!   LA        0.93     MA        1.00*    MC        1.13     MK        0.99     
!   NL        0.93     NY        0.91     OV        0.97     PT        1.00     
!   SC        1.11     TS        1.14     WF        0.98     WZ        1.00*    
! 
!  A total of 246 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        0.97     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.08     KP        1.00     
!   LA        0.92     MA        0.93     MC        0.95     MK        1.06     
!   NL        0.89     NY        1.01     OV        0.97     PT        0.97     
!   SC        0.97     TS        1.00*    WF        0.99     WZ        0.91     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.08     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.99     KP        0.99     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.96     NY        1.00     OV        0.95     PT        0.96     
!   SC        1.27     TS        0.96     WF        1.01     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.07     GC        1.08     GG        1.00*    
!   HH        1.50     HN        1.01     KK        1.00*    KP        1.01     
!   LA        1.00     MA        0.93     MC        0.89     MK        1.00*    
!   NL        0.96     NY        1.04     OV        1.00*    PT        0.97     
!   SC        1.13     TS        1.00*    WF        1.02     WZ        1.06     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.14     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.83     MK        1.00*    
!   NL        1.00*    NY        0.99     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.05     GC        1.12     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.05     
!   LA        1.00     MA        0.97     MC        0.87     MK        1.00*    
!   NL        0.96     NY        1.06     OV        0.99     PT        0.98     
!   SC        1.05     TS        1.00*    WF        1.04     WZ        1.04     
! 
!  A total of 234 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.97     
!   LA        0.96     MA        1.00*    MC        1.11     MK        1.01     
!   NL        0.93     NY        1.02     OV        0.94     PT        0.97     
!   SC        1.21     TS        1.21     WF        0.98     WZ        1.00*    
! 
!  A total of 246 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        1.04     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.09     KP        1.01     
!   LA        0.96     MA        0.93     MC        0.95     MK        1.03     
!   NL        0.92     NY        1.01     OV        0.96     PT        0.95     
!   SC        1.04     TS        1.00*    WF        0.21     WZ        0.96     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.01     KP        0.99     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.97     NY        0.97     OV        0.98     PT        0.95     
!   SC        1.26     TS        0.98     WF        1.01     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.06     GC        1.08     GG        1.00*    
!   HH        0.51     HN        0.96     KK        1.00*    KP        1.03     
!   LA        1.00     MA        0.96     MC        0.94     MK        1.00*    
!   NL        0.97     NY        1.02     OV        1.00*    PT        0.96     
!   SC        1.10     TS        1.00*    WF        1.00     WZ        1.02     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.94     MK        1.00*    
!   NL        1.00*    NY        0.99     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.03     GC        1.13     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.05     
!   LA        1.01     MA        0.99     MC        0.91     MK        1.00*    
!   NL        0.98     NY        1.00     OV        1.03     PT        0.98     
!   SC        1.02     TS        1.00*    WF        1.02     WZ        1.02     
! 
!  A total of 234 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        0.99     
!   LA        0.95     MA        1.00*    MC        1.17     MK        0.98     
!   NL        0.95     NY        0.90     OV        0.98     PT        0.96     
!   SC        1.18     TS        1.19     WF        1.00     WZ        1.00*    
! 
!  A total of 246 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.02     FD        1.01     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.04     KP        1.01     
!   LA        0.95     MA        0.93     MC        0.95     MK        1.07     
!   NL        0.90     NY        1.00     OV        0.99     PT        0.92     
!   SC        1.06     TS        1.00*    WF        0.65     WZ        0.96     
! 
! 
! Fit before self-cal, rms=0.306310Jy  sigma=0.001464
! Fit after  self-cal, rms=0.240126Jy  sigma=0.001428
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.715 mas, bmaj=1.162 mas, bpa=-17.49 degrees
! Estimated noise=185.621 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.2, -1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00415588 Jy
! Component: 100  -  total flux cleaned = 0.0050483 Jy
! Component: 150  -  total flux cleaned = 0.00559679 Jy
! Component: 200  -  total flux cleaned = 0.00599611 Jy
! Total flux subtracted in 200 components = 0.00599611 Jy
! Clean residual min=-0.001364 max=0.002241 Jy/beam
! Clean residual mean=0.000336 rms=0.000504 Jy/beam
! Combined flux in latest and established models = 0.509085 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 50 components and 0.509085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240045Jy  sigma=0.001427
! Fit after  self-cal, rms=0.240110Jy  sigma=0.001426
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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.240110Jy  sigma=0.001426
! Fit after  self-cal, rms=0.237439Jy  sigma=0.001421
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.7147 mas, bmaj=1.161 mas, bpa=-17.55 degrees
! Estimated noise=185.566 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161703 Jy
! Component: 100  -  total flux cleaned = 0.0021238 Jy
! Component: 150  -  total flux cleaned = 0.00234013 Jy
! Component: 200  -  total flux cleaned = 0.0024424 Jy
! Total flux subtracted in 200 components = 0.0024424 Jy
! Clean residual min=-0.001171 max=0.002187 Jy/beam
! Clean residual mean=0.000302 rms=0.000421 Jy/beam
! Combined flux in latest and established models = 0.511528 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 59 components and 0.511528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237399Jy  sigma=0.001420
! Fit after  self-cal, rms=0.237512Jy  sigma=0.001420
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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.2, -1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00196917 Jy
! Component: 100  -  total flux cleaned = 0.0022207 Jy
! Component: 150  -  total flux cleaned = 0.00237565 Jy
! Component: 200  -  total flux cleaned = 0.00251916 Jy
! Total flux subtracted in 200 components = 0.00251916 Jy
! Clean residual min=-0.001146 max=0.001666 Jy/beam
! Clean residual mean=0.000262 rms=0.000386 Jy/beam
! Combined flux in latest and established models = 0.514047 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 72 components and 0.514047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237475Jy  sigma=0.001419
! Fit after  self-cal, rms=0.237473Jy  sigma=0.001419
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Added new window around map position (9.4, -5.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00142458 Jy
! Component: 100  -  total flux cleaned = 0.00176555 Jy
! Component: 150  -  total flux cleaned = 0.0018099 Jy
! Component: 200  -  total flux cleaned = 0.00189457 Jy
! Total flux subtracted in 200 components = 0.00189457 Jy
! Clean residual min=-0.001158 max=0.001649 Jy/beam
! Clean residual mean=0.000232 rms=0.000370 Jy/beam
! Combined flux in latest and established models = 0.515941 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 79 components and 0.515941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237447Jy  sigma=0.001419
! Fit after  self-cal, rms=0.237447Jy  sigma=0.001419
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Added new window around map position (-6.6, 3.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00101277 Jy
! Component: 100  -  total flux cleaned = 0.00132558 Jy
! Component: 150  -  total flux cleaned = 0.00149132 Jy
! Component: 200  -  total flux cleaned = 0.00161019 Jy
! Total flux subtracted in 200 components = 0.00161019 Jy
! Clean residual min=-0.001163 max=0.001548 Jy/beam
! Clean residual mean=0.000205 rms=0.000362 Jy/beam
! Combined flux in latest and established models = 0.517552 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 85 components and 0.517552 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237424Jy  sigma=0.001419
! Fit after  self-cal, rms=0.237421Jy  sigma=0.001419
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Added new window around map position (-1.8, -7.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00122032 Jy
! Component: 100  -  total flux cleaned = 0.00150775 Jy
! Component: 150  -  total flux cleaned = 0.00162298 Jy
! Component: 200  -  total flux cleaned = 0.00166019 Jy
! Total flux subtracted in 200 components = 0.00166019 Jy
! Clean residual min=-0.001137 max=0.001484 Jy/beam
! Clean residual mean=0.000180 rms=0.000353 Jy/beam
! Combined flux in latest and established models = 0.519212 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 97 components and 0.519212 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237402Jy  sigma=0.001419
! Fit after  self-cal, rms=0.237400Jy  sigma=0.001419
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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.237400Jy  sigma=0.001419
! Fit after  self-cal, rms=0.236007Jy  sigma=0.001417
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.7147 mas, bmaj=1.158 mas, bpa=-17.5 degrees
! Estimated noise=185.684 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00109589 Jy
! Component: 100  -  total flux cleaned = 0.00135085 Jy
! Component: 150  -  total flux cleaned = 0.0014687 Jy
! Component: 200  -  total flux cleaned = 0.00158 Jy
! Total flux subtracted in 200 components = 0.00158 Jy
! Clean residual min=-0.000897 max=0.001317 Jy/beam
! Clean residual mean=0.000181 rms=0.000310 Jy/beam
! Combined flux in latest and established models = 0.520792 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 103 components and 0.520792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235988Jy  sigma=0.001416
! Fit after  self-cal, rms=0.236205Jy  sigma=0.001416
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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.000112676 Jy
! Component: 100  -  total flux cleaned = 0.000222023 Jy
! Component: 150  -  total flux cleaned = 0.000359748 Jy
! Component: 200  -  total flux cleaned = 0.000425922 Jy
! Total flux subtracted in 200 components = 0.000425922 Jy
! Clean residual min=-0.000875 max=0.001320 Jy/beam
! Clean residual mean=0.000173 rms=0.000312 Jy/beam
! Combined flux in latest and established models = 0.521218 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 107 components and 0.521218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236192Jy  sigma=0.001416
! Fit after  self-cal, rms=0.236196Jy  sigma=0.001416
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Added new window around map position (11.6, -12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000751474 Jy
! Component: 100  -  total flux cleaned = 0.000610801 Jy
! Component: 150  -  total flux cleaned = 0.000675837 Jy
! Component: 200  -  total flux cleaned = 0.000706947 Jy
! Total flux subtracted in 200 components = 0.000706947 Jy
! Clean residual min=-0.000835 max=0.001244 Jy/beam
! Clean residual mean=0.000165 rms=0.000305 Jy/beam
! Combined flux in latest and established models = 0.521925 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 117 components and 0.521925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236181Jy  sigma=0.001416
! Fit after  self-cal, rms=0.236183Jy  sigma=0.001416
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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.236183Jy  sigma=0.001416
! Fit after  self-cal, rms=0.235829Jy  sigma=0.001415
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=2.233 mas, bmaj=2.572 mas, bpa=-43.63 degrees
! Estimated noise=249.341 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00126905 Jy
! Component: 100  -  total flux cleaned = 0.00167016 Jy
! Component: 150  -  total flux cleaned = 0.00203714 Jy
! Component: 200  -  total flux cleaned = 0.00226077 Jy
! Total flux subtracted in 200 components = 0.00226077 Jy
! Clean residual min=-0.000580 max=0.001595 Jy/beam
! Clean residual mean=0.000406 rms=0.000348 Jy/beam
! Combined flux in latest and established models = 0.524185 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 141 components and 0.524185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235825Jy  sigma=0.001415
! Fit after  self-cal, rms=0.235920Jy  sigma=0.001415
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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 (-4.6, -2.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156873 Jy
! Component: 100  -  total flux cleaned = 0.00235512 Jy
! Component: 150  -  total flux cleaned = 0.00243685 Jy
! Component: 200  -  total flux cleaned = 0.00255526 Jy
! Total flux subtracted in 200 components = 0.00255526 Jy
! Clean residual min=-0.000490 max=0.001258 Jy/beam
! Clean residual mean=0.000285 rms=0.000305 Jy/beam
! Combined flux in latest and established models = 0.526741 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 171 components and 0.526741 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235914Jy  sigma=0.001415
! Fit after  self-cal, rms=0.235915Jy  sigma=0.001415
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Added new window around map position (-4.6, 10.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00121506 Jy
! Component: 100  -  total flux cleaned = 0.00193399 Jy
! Component: 150  -  total flux cleaned = 0.00219932 Jy
! Component: 200  -  total flux cleaned = 0.00232689 Jy
! Total flux subtracted in 200 components = 0.00232689 Jy
! Clean residual min=-0.000557 max=0.001061 Jy/beam
! Clean residual mean=0.000167 rms=0.000260 Jy/beam
! Combined flux in latest and established models = 0.529067 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 204 components and 0.529067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235905Jy  sigma=0.001415
! Fit after  self-cal, rms=0.235904Jy  sigma=0.001415
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.7148 mas, bmaj=1.158 mas, bpa=-17.51 degrees
! Estimated noise=185.823 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7148 x 1.158 at -17.51 degrees (North through East)
! Clean map  min=-0.00076883  max=0.3825 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.5261 mas, bmaj=0.7946 mas, bpa=-3.894 degrees
! Estimated noise=582.894 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.253842 Jy
! Component: 100  -  total flux cleaned = 0.32905 Jy
! Component: 150  -  total flux cleaned = 0.374077 Jy
! Component: 200  -  total flux cleaned = 0.405619 Jy
! Total flux subtracted in 200 components = 0.405619 Jy
! Clean residual min=-0.004465 max=0.017887 Jy/beam
! Clean residual mean=0.000131 rms=0.001608 Jy/beam
! Combined flux in latest and established models = 0.405619 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 0.405619 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.7148 mas, bmaj=1.158 mas, bpa=-17.51 degrees
! Estimated noise=185.823 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.0469764 Jy
! Component: 100  -  total flux cleaned = 0.0700895 Jy
! Component: 150  -  total flux cleaned = 0.0829965 Jy
! Component: 200  -  total flux cleaned = 0.091062 Jy
! Total flux subtracted in 200 components = 0.091062 Jy
! Clean residual min=-0.001198 max=0.004421 Jy/beam
! Clean residual mean=0.000569 rms=0.000753 Jy/beam
! Combined flux in latest and established models = 0.496681 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 46 components and 0.496681 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00562055 Jy
! Component: 100  -  total flux cleaned = 0.00975826 Jy
! Component: 150  -  total flux cleaned = 0.0129061 Jy
! Component: 200  -  total flux cleaned = 0.0154132 Jy
! Total flux subtracted in 200 components = 0.0154132 Jy
! Clean residual min=-0.000946 max=0.001772 Jy/beam
! Clean residual mean=0.000327 rms=0.000382 Jy/beam
! Combined flux in latest and established models = 0.512094 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 74 components and 0.512094 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Added new window around map position (1, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00217445 Jy
! Component: 100  -  total flux cleaned = 0.00406936 Jy
! Component: 150  -  total flux cleaned = 0.00575676 Jy
! Component: 200  -  total flux cleaned = 0.00698195 Jy
! Total flux subtracted in 200 components = 0.00698195 Jy
! Clean residual min=-0.000953 max=0.001207 Jy/beam
! Clean residual mean=0.000217 rms=0.000310 Jy/beam
! Combined flux in latest and established models = 0.519076 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 99 components and 0.519076 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 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.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=2.233 mas, bmaj=2.572 mas, bpa=-43.63 degrees
! Estimated noise=249.341 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00232091 Jy
! Component: 100  -  total flux cleaned = 0.00397351 Jy
! Component: 150  -  total flux cleaned = 0.00531252 Jy
! Component: 200  -  total flux cleaned = 0.00643767 Jy
! Total flux subtracted in 200 components = 0.00643767 Jy
! Clean residual min=-0.000655 max=0.001125 Jy/beam
! Clean residual mean=0.000333 rms=0.000291 Jy/beam
! Combined flux in latest and established models = 0.525513 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.000808666 Jy
! Component: 100  -  total flux cleaned = 0.00131882 Jy
! Component: 150  -  total flux cleaned = 0.00174784 Jy
! Component: 200  -  total flux cleaned = 0.00216282 Jy
! Total flux subtracted in 200 components = 0.00216282 Jy
! Clean residual min=-0.000513 max=0.001035 Jy/beam
! Clean residual mean=0.000232 rms=0.000259 Jy/beam
! Combined flux in latest and established models = 0.527676 Jy
! Adding 88 model components to the UV plane model.
! The established model now contains 185 components and 0.527676 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! Estimated beam: bmin=0.7148 mas, bmaj=1.158 mas, bpa=-17.51 degrees
! Estimated noise=185.823 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00018494 Jy
! Component: 100  -  total flux cleaned = 0.000252028 Jy
! Component: 150  -  total flux cleaned = 0.00065744 Jy
! Component: 200  -  total flux cleaned = 0.00103644 Jy
! Total flux subtracted in 200 components = 0.00103644 Jy
! Clean residual min=-0.000831 max=0.001083 Jy/beam
! Clean residual mean=0.000067 rms=0.000260 Jy/beam
! Combined flux in latest and established models = 0.528713 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 198 components and 0.528713 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235868Jy  sigma=0.001415
! Fit after  self-cal, rms=0.235961Jy  sigma=0.001414
wmodel J1640+3946_X_2000_12_04_pus_map.mod
! Writing 198 model components to file: J1640+3946_X_2000_12_04_pus_map.mod
wobs J1640+3946_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1640+3946_X_2000_12_04_pus_uvs.fits
wwins J1640+3946_X_2000_12_04_pus_map.win
! wwins: Wrote 10 windows to J1640+3946_X_2000_12_04_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.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000479588 Jy
! Component: 100  -  total flux cleaned = 0.000908304 Jy
! Component: 150  -  total flux cleaned = 0.00115213 Jy
! Component: 200  -  total flux cleaned = 0.00132442 Jy
! Component: 250  -  total flux cleaned = 0.00147635 Jy
! Component: 300  -  total flux cleaned = 0.00158002 Jy
! Component: 350  -  total flux cleaned = 0.00172461 Jy
! Component: 400  -  total flux cleaned = 0.00182378 Jy
! Component: 450  -  total flux cleaned = 0.00192159 Jy
! Component: 500  -  total flux cleaned = 0.00197692 Jy
! Component: 550  -  total flux cleaned = 0.00207254 Jy
! Component: 600  -  total flux cleaned = 0.0021131 Jy
! Component: 650  -  total flux cleaned = 0.0021935 Jy
! Component: 700  -  total flux cleaned = 0.00224643 Jy
! Component: 750  -  total flux cleaned = 0.00228581 Jy
! Component: 800  -  total flux cleaned = 0.0023378 Jy
! Component: 850  -  total flux cleaned = 0.00238929 Jy
! Component: 900  -  total flux cleaned = 0.00242748 Jy
! Component: 950  -  total flux cleaned = 0.00245282 Jy
! Component: 1000  -  total flux cleaned = 0.00251554 Jy
! Total flux subtracted in 1024 components = 0.00252801 Jy
! Clean residual min=-0.000634 max=0.000799 Jy/beam
! Clean residual mean=0.000032 rms=0.000239 Jy/beam
! Combined flux in latest and established models = 0.531241 Jy
keep
! Adding 76 model components to the UV plane model.
! The established model now contains 267 components and 0.531241 Jy
![Exited script file: muppet]
wmap "J1640+3946_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7148 x 1.158 at -17.51 degrees (North through East)
! Clean map  min=-0.00077094  max=0.38396 Jy/beam
! Writing clean map to FITS file: J1640+3946_X_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.383964 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.97% of the data.
!  The x-axis pixel size should ideally be below 0.155 milli-arcsec
!  The y-axis pixel size should ideally be below 0.146 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000238903 
device "J1640+3946_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1640+3946_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.186661 0.186661 0.373322 0.746643 1.49329 2.98657 5.97314 11.9463 23.8926 47.7852 95.5703
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0007 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.383 
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.7148 x 1.158 at -17.51 degrees (North through East)
! Clean map  min=-0.00077094  max=0.38396 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1640+3946_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1640+3946_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1640+3946_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:29:25 2007