! Started logfile: J1640+3946_X_2003_05_07_pus_uvs.log on Wed Dec  6 13:22:42 2006
obs J1640+3946_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1640+3946_X_2003_05_07_pus_uva.fits
! AN table 1: 2 integrations on 171 of 171 possible baselines.
! AN table 2: 106 integrations on 171 of 171 possible baselines.
! AN table 3: 41 integrations on 171 of 171 possible baselines.
! AN table 4: Unused.
! AN table 5: 27 integrations on 171 of 171 possible baselines.
! AN table 6: 274 integrations on 171 of 171 possible baselines.
! AN table 7: 124 integrations on 171 of 171 possible baselines.
! AN table 8: Unused.
! AN table 9: Unused.
! Apparent sampling: 0.081688 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 1735 lines of history.
! 
! Reading 32072 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 38 telescope corrections were flagged in sub-array 1.
!  A total of 1287 telescope corrections were flagged in sub-array 2.
!  A total of 582 telescope corrections were flagged in sub-array 3.
!  A total of 385 telescope corrections were flagged in sub-array 4.
!  A total of 4303 telescope corrections were flagged in sub-array 5.
!  A total of 1865 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 38 telescope corrections were flagged in sub-array 1.
!  A total of 1288 telescope corrections were flagged in sub-array 2.
!  A total of 582 telescope corrections were flagged in sub-array 3.
!  A total of 385 telescope corrections were flagged in sub-array 4.
!  A total of 4259 telescope corrections were flagged in sub-array 5.
!  A total of 1865 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 38 telescope corrections were flagged in sub-array 1.
!  A total of 1288 telescope corrections were flagged in sub-array 2.
!  A total of 582 telescope corrections were flagged in sub-array 3.
!  A total of 385 telescope corrections were flagged in sub-array 4.
!  A total of 4259 telescope corrections were flagged in sub-array 5.
!  A total of 1865 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 38 telescope corrections were flagged in sub-array 1.
!  A total of 1288 telescope corrections were flagged in sub-array 2.
!  A total of 582 telescope corrections were flagged in sub-array 3.
!  A total of 385 telescope corrections were flagged in sub-array 4.
!  A total of 4259 telescope corrections were flagged in sub-array 5.
!  A total of 1865 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.897018Jy  sigma=0.007663
! Fit after  self-cal, rms=0.441933Jy  sigma=0.003437
! 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.43% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.5515 mas, bmaj=0.8295 mas, bpa=-14.43 degrees
! Estimated noise=1082.67 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.444888 Jy
! Component: 100  -  total flux cleaned = 0.586722 Jy
! Total flux subtracted in 100 components = 0.586722 Jy
! Clean residual min=-0.020941 max=0.068884 Jy/beam
! Clean residual mean=0.000424 rms=0.006948 Jy/beam
! Combined flux in latest and established models = 0.586722 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.586722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294731Jy  sigma=0.002103
! Fit after  self-cal, rms=0.294574Jy  sigma=0.002102
! Inverting map 
! Your choice of large map pixels excluded 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0837334 Jy
! Component: 100  -  total flux cleaned = 0.137283 Jy
! Total flux subtracted in 100 components = 0.137283 Jy
! Clean residual min=-0.015766 max=0.028321 Jy/beam
! Clean residual mean=0.000171 rms=0.004220 Jy/beam
! Combined flux in latest and established models = 0.724005 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 15 components and 0.724005 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254984Jy  sigma=0.001517
! Fit after  self-cal, rms=0.254899Jy  sigma=0.001516
! Inverting map 
! Your choice of large map pixels excluded 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0350529 Jy
! Component: 100  -  total flux cleaned = 0.0580837 Jy
! Total flux subtracted in 100 components = 0.0580837 Jy
! Clean residual min=-0.013194 max=0.015426 Jy/beam
! Clean residual mean=0.000064 rms=0.003499 Jy/beam
! Combined flux in latest and established models = 0.782089 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 17 components and 0.782089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248095Jy  sigma=0.001387
! Fit after  self-cal, rms=0.248049Jy  sigma=0.001387
! Inverting map 
! Your choice of large map pixels excluded 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.157 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.43% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.7522 mas, bmaj=1.277 mas, bpa=-17.96 degrees
! Estimated noise=479.67 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.0215946 Jy
! Component: 100  -  total flux cleaned = 0.030001 Jy
! Component: 150  -  total flux cleaned = 0.0337077 Jy
! Component: 200  -  total flux cleaned = 0.0353682 Jy
! Total flux subtracted in 200 components = 0.0353682 Jy
! Clean residual min=-0.009731 max=0.010408 Jy/beam
! Clean residual mean=-0.001057 rms=0.002857 Jy/beam
! Combined flux in latest and established models = 0.817457 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 21 components and 0.817457 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247008Jy  sigma=0.001359
! Fit after  self-cal, rms=0.246972Jy  sigma=0.001359
! Inverting map 
! Your choice of large map pixels excluded 2.43% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GG        1.00*    HN        1.02     
!   KK        0.63     KP        1.15     LA        0.95     MA        1.00*    
!   MC        1.25     MK        0.96     NL        1.04     ON        0.93     
!   OV        0.97     PT        0.98     SC        0.98     TC        1.00*    
!   TS        1.33     WF        1.06     WZ        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.96     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.08     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.06     ON        1.00*    
!   OV        0.96     PT        0.95     SC        0.99     TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.05     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.01     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.10     ON        1.00*    
!   OV        0.97     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 231 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.04     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.14     LA        0.98     MA        0.98     
!   MC        1.08     MK        1.00*    NL        1.03     ON        1.00     
!   OV        0.94     PT        0.98     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        1.18     WZ        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        1.08     GG        1.00*    HN        0.97     
!   KK        0.97     KP        1.01     LA        0.94     MA        1.00*    
!   MC        1.00*    MK        0.88     NL        1.22     ON        1.00*    
!   OV        0.93     PT        0.93     SC        1.00*    TC        1.00*    
!   TS        1.14     WF        1.10     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.07     LA        0.96     MA        1.00*    
!   MC        1.23     MK        0.96     NL        1.00     ON        0.93     
!   OV        0.97     PT        1.02     SC        0.93     TC        1.00*    
!   TS        1.24     WF        1.08     WZ        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.96     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.02     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.04     ON        1.00*    
!   OV        0.94     PT        1.00     SC        0.96     TC        1.00*    
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        1.04     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        0.97     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.03     ON        1.00*    
!   OV        0.94     PT        1.05     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 225 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        1.07     GG        1.00*    HN        1.10     
!   KK        1.00*    KP        1.09     LA        0.97     MA        0.98     
!   MC        1.04     MK        1.00*    NL        0.99     ON        0.98     
!   OV        0.93     PT        1.03     SC        0.98     TC        1.00*    
!   TS        1.95     WF        1.16     WZ        1.03     
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        1.10     GG        1.00*    HN        1.00     
!   KK        0.96     KP        0.95     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.87     NL        1.15     ON        1.00*    
!   OV        0.92     PT        0.97     SC        1.00*    TC        1.00*    
!   TS        1.15     WF        1.14     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.97     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.01     LA        0.96     MA        1.00*    
!   MC        1.16     MK        0.98     NL        1.00     ON        0.96     
!   OV        1.01     PT        1.06     SC        0.97     TC        1.00*    
!   TS        1.30     WF        1.06     WZ        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.96     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        0.94     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.03     ON        1.00*    
!   OV        0.99     PT        1.04     SC        0.94     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.05     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.93     LA        0.99     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.05     ON        1.00*    
!   OV        1.02     PT        1.07     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 225 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        1.05     GG        1.00*    HN        1.10     
!   KK        1.00*    KP        1.02     LA        1.00     MA        0.94     
!   MC        1.01     MK        1.00*    NL        0.97     ON        1.00     
!   OV        0.99     PT        1.07     SC        1.01     TC        1.00*    
!   TS        1.94     WF        1.10     WZ        1.04     
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.01     FD        1.06     GG        1.00*    HN        1.01     
!   KK        0.98     KP        0.90     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        0.88     NL        1.15     ON        1.00*    
!   OV        0.96     PT        1.01     SC        1.00*    TC        1.00*    
!   TS        1.18     WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.06     LA        0.95     MA        1.00*    
!   MC        1.19     MK        0.99     NL        1.00     ON        0.99     
!   OV        1.00     PT        1.05     SC        1.00     TC        1.00*    
!   TS        1.34     WF        1.05     WZ        1.02     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.93     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.03     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.03     ON        1.00*    
!   OV        0.98     PT        1.02     SC        1.03     TC        1.00*    
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.99     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        0.97     LA        0.99     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.04     ON        1.00*    
!   OV        0.99     PT        1.07     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 225 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.01     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.08     LA        0.98     MA        0.99     
!   MC        1.03     MK        1.00*    NL        0.98     ON        0.97     
!   OV        0.97     PT        1.06     SC        1.08     TC        1.00*    
!   TS        1.80     WF        1.15     WZ        1.06     
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.99     FD        1.06     GG        1.00*    HN        1.04     
!   KK        0.98     KP        0.98     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        0.89     NL        1.17     ON        1.00*    
!   OV        0.96     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        1.20     WF        1.08     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.246972Jy  sigma=0.001359
! Fit after  self-cal, rms=0.228069Jy  sigma=0.001263
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.7655 mas, bmaj=1.281 mas, bpa=-18.13 degrees
! Estimated noise=488.906 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.00302045 Jy
! Component: 100  -  total flux cleaned = -0.00347025 Jy
! Component: 150  -  total flux cleaned = -0.00398891 Jy
! Component: 200  -  total flux cleaned = -0.00443354 Jy
! Total flux subtracted in 200 components = -0.00443354 Jy
! Clean residual min=-0.004419 max=0.004411 Jy/beam
! Clean residual mean=-0.000200 rms=0.001312 Jy/beam
! Combined flux in latest and established models = 0.813024 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 24 components and 0.813024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227844Jy  sigma=0.001262
! Fit after  self-cal, rms=0.227904Jy  sigma=0.001262
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 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.227904Jy  sigma=0.001262
! Fit after  self-cal, rms=0.228699Jy  sigma=0.001233
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.7664 mas, bmaj=1.284 mas, bpa=-17.92 degrees
! Estimated noise=489.203 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00139165 Jy
! Component: 100  -  total flux cleaned = -0.00180576 Jy
! Component: 150  -  total flux cleaned = -0.00206719 Jy
! Component: 200  -  total flux cleaned = -0.00229968 Jy
! Total flux subtracted in 200 components = -0.00229968 Jy
! Clean residual min=-0.003037 max=0.004701 Jy/beam
! Clean residual mean=0.000226 rms=0.000861 Jy/beam
! Combined flux in latest and established models = 0.810724 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 24 components and 0.810724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228578Jy  sigma=0.001232
! Fit after  self-cal, rms=0.228679Jy  sigma=0.001232
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 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, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00373894 Jy
! Component: 100  -  total flux cleaned = 0.00433124 Jy
! Component: 150  -  total flux cleaned = 0.00442665 Jy
! Component: 200  -  total flux cleaned = 0.00451449 Jy
! Total flux subtracted in 200 components = 0.00451449 Jy
! Clean residual min=-0.003058 max=0.004546 Jy/beam
! Clean residual mean=0.000117 rms=0.000782 Jy/beam
! Combined flux in latest and established models = 0.815238 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 35 components and 0.815238 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228509Jy  sigma=0.001231
! Fit after  self-cal, rms=0.228494Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Added new window around map position (-2.4, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00116299 Jy
! Component: 100  -  total flux cleaned = 0.00163644 Jy
! Component: 150  -  total flux cleaned = 0.00203064 Jy
! Component: 200  -  total flux cleaned = 0.00229745 Jy
! Total flux subtracted in 200 components = 0.00229745 Jy
! Clean residual min=-0.002961 max=0.002525 Jy/beam
! Clean residual mean=0.000062 rms=0.000718 Jy/beam
! Combined flux in latest and established models = 0.817536 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 41 components and 0.817536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228339Jy  sigma=0.001229
! Fit after  self-cal, rms=0.228326Jy  sigma=0.001229
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 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.228326Jy  sigma=0.001229
! Fit after  self-cal, rms=0.227797Jy  sigma=0.001223
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.766 mas, bmaj=1.287 mas, bpa=-17.75 degrees
! Estimated noise=489.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000855521 Jy
! Component: 100  -  total flux cleaned = 0.00121619 Jy
! Component: 150  -  total flux cleaned = 0.0013839 Jy
! Component: 200  -  total flux cleaned = 0.00153998 Jy
! Total flux subtracted in 200 components = 0.00153998 Jy
! Clean residual min=-0.002257 max=0.002384 Jy/beam
! Clean residual mean=0.000137 rms=0.000647 Jy/beam
! Combined flux in latest and established models = 0.819076 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 47 components and 0.819076 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227705Jy  sigma=0.001223
! Fit after  self-cal, rms=0.227675Jy  sigma=0.001223
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 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.000151098 Jy
! Component: 100  -  total flux cleaned = 0.000366904 Jy
! Component: 150  -  total flux cleaned = 0.000497698 Jy
! Component: 200  -  total flux cleaned = 0.000559861 Jy
! Total flux subtracted in 200 components = 0.000559861 Jy
! Clean residual min=-0.002187 max=0.002346 Jy/beam
! Clean residual mean=0.000124 rms=0.000632 Jy/beam
! Combined flux in latest and established models = 0.819636 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 49 components and 0.819636 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227619Jy  sigma=0.001222
! Fit after  self-cal, rms=0.227618Jy  sigma=0.001222
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 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.227618Jy  sigma=0.001222
! Fit after  self-cal, rms=0.227930Jy  sigma=0.001222
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=2.693 mas, bmaj=2.871 mas, bpa=-38.61 degrees
! Estimated noise=606.781 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000893709 Jy
! Component: 100  -  total flux cleaned = 0.00108332 Jy
! Component: 150  -  total flux cleaned = 0.00127095 Jy
! Component: 200  -  total flux cleaned = 0.00140576 Jy
! Total flux subtracted in 200 components = 0.00140576 Jy
! Clean residual min=-0.001304 max=0.002126 Jy/beam
! Clean residual mean=0.000268 rms=0.000602 Jy/beam
! Combined flux in latest and established models = 0.821041 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 59 components and 0.821041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227917Jy  sigma=0.001222
! Fit after  self-cal, rms=0.227912Jy  sigma=0.001222
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.69292e-05 Jy
! Component: 100  -  total flux cleaned = 0.000128486 Jy
! Component: 150  -  total flux cleaned = 0.000245966 Jy
! Component: 200  -  total flux cleaned = 0.000367469 Jy
! Total flux subtracted in 200 components = 0.000367469 Jy
! Clean residual min=-0.001278 max=0.002111 Jy/beam
! Clean residual mean=0.000249 rms=0.000592 Jy/beam
! Combined flux in latest and established models = 0.821409 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 61 components and 0.821409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227905Jy  sigma=0.001222
! Fit after  self-cal, rms=0.227903Jy  sigma=0.001222
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 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.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.7662 mas, bmaj=1.289 mas, bpa=-17.66 degrees
! Estimated noise=489.611 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7662 x 1.289 at -17.66 degrees (North through East)
! Clean map  min=-0.0036447  max=0.66315 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.227903Jy  sigma=0.001222
! Fit after  self-cal, rms=0.230040Jy  sigma=0.001116
! Inverting map and beam 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.7663 mas, bmaj=1.29 mas, bpa=-17.66 degrees
! Estimated noise=489.224 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000294607 Jy
! Component: 100  -  total flux cleaned = -0.000161134 Jy
! Component: 150  -  total flux cleaned = -9.99524e-05 Jy
! Component: 200  -  total flux cleaned = -0.000100069 Jy
! Total flux subtracted in 200 components = -0.000100069 Jy
! Clean residual min=-0.002051 max=0.002210 Jy/beam
! Clean residual mean=0.000142 rms=0.000592 Jy/beam
! Combined flux in latest and established models = 0.821309 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 66 components and 0.821309 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229993Jy  sigma=0.001115
! Fit after  self-cal, rms=0.229993Jy  sigma=0.001115
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000113238 Jy
! Component: 100  -  total flux cleaned = 0.00011274 Jy
! Component: 150  -  total flux cleaned = 0.000165848 Jy
! Component: 200  -  total flux cleaned = 0.000166972 Jy
! Total flux subtracted in 200 components = 0.000166972 Jy
! Clean residual min=-0.002022 max=0.002186 Jy/beam
! Clean residual mean=0.000139 rms=0.000584 Jy/beam
! Combined flux in latest and established models = 0.821476 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 69 components and 0.821476 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229963Jy  sigma=0.001115
! Fit after  self-cal, rms=0.229962Jy  sigma=0.001115
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 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.229962Jy  sigma=0.001115
! Fit after  self-cal, rms=0.230347Jy  sigma=0.001115
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.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.5637 mas, bmaj=0.8517 mas, bpa=-14.76 degrees
! Estimated noise=1180.69 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.467285 Jy
! Component: 100  -  total flux cleaned = 0.603977 Jy
! Component: 150  -  total flux cleaned = 0.675947 Jy
! Component: 200  -  total flux cleaned = 0.720626 Jy
! Total flux subtracted in 200 components = 0.720626 Jy
! Clean residual min=-0.008029 max=0.023552 Jy/beam
! Clean residual mean=0.000207 rms=0.002585 Jy/beam
! Combined flux in latest and established models = 0.720626 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 19 model components to the UV plane model.
! The established model now contains 19 components and 0.720627 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.7666 mas, bmaj=1.292 mas, bpa=-17.6 degrees
! Estimated noise=489.426 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.04715 Jy
! Component: 100  -  total flux cleaned = 0.0674219 Jy
! Component: 150  -  total flux cleaned = 0.0780176 Jy
! Component: 200  -  total flux cleaned = 0.0847341 Jy
! Total flux subtracted in 200 components = 0.0847341 Jy
! Clean residual min=-0.002183 max=0.005176 Jy/beam
! Clean residual mean=0.000530 rms=0.000858 Jy/beam
! Combined flux in latest and established models = 0.805361 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 52 components and 0.805361 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Added new window around map position (-0.8, -0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00524485 Jy
! Component: 100  -  total flux cleaned = 0.00876851 Jy
! Component: 150  -  total flux cleaned = 0.011407 Jy
! Component: 200  -  total flux cleaned = 0.0129827 Jy
! Total flux subtracted in 200 components = 0.0129827 Jy
! Clean residual min=-0.001982 max=0.002092 Jy/beam
! Clean residual mean=0.000215 rms=0.000578 Jy/beam
! Combined flux in latest and established models = 0.818343 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 75 components and 0.818343 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 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.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=2.691 mas, bmaj=2.87 mas, bpa=-38.49 degrees
! Estimated noise=606.102 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00192369 Jy
! Component: 100  -  total flux cleaned = 0.00277497 Jy
! Component: 150  -  total flux cleaned = 0.0031211 Jy
! Component: 200  -  total flux cleaned = 0.00337158 Jy
! Total flux subtracted in 200 components = 0.00337158 Jy
! Clean residual min=-0.001177 max=0.002009 Jy/beam
! Clean residual mean=0.000305 rms=0.000542 Jy/beam
! Combined flux in latest and established models = 0.821715 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.00020537 Jy
! Component: 100  -  total flux cleaned = 0.000376676 Jy
! Component: 150  -  total flux cleaned = 0.000520709 Jy
! Component: 200  -  total flux cleaned = 0.000603772 Jy
! Total flux subtracted in 200 components = 0.000603772 Jy
! Clean residual min=-0.001168 max=0.001976 Jy/beam
! Clean residual mean=0.000272 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 0.822319 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 94 components and 0.822319 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! Estimated beam: bmin=0.7666 mas, bmaj=1.292 mas, bpa=-17.6 degrees
! Estimated noise=489.426 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000590695 Jy
! Component: 100  -  total flux cleaned = -0.000537201 Jy
! Component: 150  -  total flux cleaned = -0.000487144 Jy
! Component: 200  -  total flux cleaned = -0.000394171 Jy
! Total flux subtracted in 200 components = -0.000394171 Jy
! Clean residual min=-0.001857 max=0.001977 Jy/beam
! Clean residual mean=0.000130 rms=0.000539 Jy/beam
! Combined flux in latest and established models = 0.821925 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 98 components and 0.821924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230251Jy  sigma=0.001115
! Fit after  self-cal, rms=0.230205Jy  sigma=0.001115
wmodel J1640+3946_X_2003_05_07_pus_map.mod
! Writing 98 model components to file: J1640+3946_X_2003_05_07_pus_map.mod
wobs J1640+3946_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1640+3946_X_2003_05_07_pus_uvs.fits
wwins J1640+3946_X_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J1640+3946_X_2003_05_07_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.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00058945 Jy
! Component: 100  -  total flux cleaned = 0.000891748 Jy
! Component: 150  -  total flux cleaned = 0.00114832 Jy
! Component: 200  -  total flux cleaned = 0.00142652 Jy
! Component: 250  -  total flux cleaned = 0.00166709 Jy
! Component: 300  -  total flux cleaned = 0.00190147 Jy
! Component: 350  -  total flux cleaned = 0.00210143 Jy
! Component: 400  -  total flux cleaned = 0.00226925 Jy
! Component: 450  -  total flux cleaned = 0.00240657 Jy
! Component: 500  -  total flux cleaned = 0.0025416 Jy
! Component: 550  -  total flux cleaned = 0.00270083 Jy
! Component: 600  -  total flux cleaned = 0.00277899 Jy
! Component: 650  -  total flux cleaned = 0.00288216 Jy
! Component: 700  -  total flux cleaned = 0.00293287 Jy
! Component: 750  -  total flux cleaned = 0.00305829 Jy
! Component: 800  -  total flux cleaned = 0.0031078 Jy
! Component: 850  -  total flux cleaned = 0.003157 Jy
! Component: 900  -  total flux cleaned = 0.00325417 Jy
! Component: 950  -  total flux cleaned = 0.00330214 Jy
! Component: 1000  -  total flux cleaned = 0.00334978 Jy
! Total flux subtracted in 1024 components = 0.00337333 Jy
! Clean residual min=-0.001177 max=0.001369 Jy/beam
! Clean residual mean=0.000055 rms=0.000450 Jy/beam
! Combined flux in latest and established models = 0.825298 Jy
keep
! Adding 72 model components to the UV plane model.
! The established model now contains 170 components and 0.825298 Jy
wmap "J1640+3946_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7666 x 1.292 at -17.6 degrees (North through East)
! Clean map  min=-0.0017061  max=0.66627 Jy/beam
! Writing clean map to FITS file: J1640+3946_X_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.666275 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.51% of the data.
!  The x-axis pixel size should ideally be below 0.157 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000450385 
device "J1640+3946_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1640+3946_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.202793 0.202793 0.405585 0.811171 1.62234 3.24468 6.48937 12.9787 25.9575 51.9149
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.666 
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.7666 x 1.292 at -17.6 degrees (North through East)
! Clean map  min=-0.0017061  max=0.66627 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1640+3946_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1640+3946_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1640+3946_X_2003_05_07_pus_uvs.log closed on Wed Dec  6 13:25:13 2006