! Started logfile: J1751+0939_S_2003_05_07_pus_uvs.log on Sun Dec 24 11:54:07 2006
obs J1751+0939_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1751+0939_S_2003_05_07_pus_uva.fits
! AN table 1: 89 integrations on 171 of 171 possible baselines.
! AN table 2: 132 integrations on 171 of 171 possible baselines.
! AN table 3: 111 integrations on 171 of 171 possible baselines.
! AN table 4: 177 integrations on 171 of 171 possible baselines.
! AN table 5: 11 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0878767 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1751+0939
! 
! 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1680 lines of history.
! 
! Reading 31256 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 = 512
float field_cell
field_cell = 0.5
float taper_size
taper_size = 20.
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 = 512x512 pixels with 0.500x0.500 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 1378 telescope corrections were flagged in sub-array 1.
!  A total of 1942 telescope corrections were flagged in sub-array 2.
!  A total of 1269 telescope corrections were flagged in sub-array 3.
!  A total of 2620 telescope corrections were flagged in sub-array 4.
!  A total of 209 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1378 telescope corrections were flagged in sub-array 1.
!  A total of 1942 telescope corrections were flagged in sub-array 2.
!  A total of 1269 telescope corrections were flagged in sub-array 3.
!  A total of 2618 telescope corrections were flagged in sub-array 4.
!  A total of 209 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1378 telescope corrections were flagged in sub-array 1.
!  A total of 1942 telescope corrections were flagged in sub-array 2.
!  A total of 1269 telescope corrections were flagged in sub-array 3.
!  A total of 2618 telescope corrections were flagged in sub-array 4.
!  A total of 209 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1378 telescope corrections were flagged in sub-array 1.
!  A total of 1942 telescope corrections were flagged in sub-array 2.
!  A total of 1269 telescope corrections were flagged in sub-array 3.
!  A total of 2624 telescope corrections were flagged in sub-array 4.
!  A total of 209 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.000684Jy  sigma=0.006049
! Fit after  self-cal, rms=0.440887Jy  sigma=0.001818
! 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 
! Estimated beam: bmin=1.957 mas, bmaj=3.926 mas, bpa=-7.417 degrees
! Estimated noise=1416.42 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.770226 Jy
! Component: 100  -  total flux cleaned = 0.955407 Jy
! Total flux subtracted in 100 components = 0.955407 Jy
! Clean residual min=-0.024711 max=0.073781 Jy/beam
! Clean residual mean=0.000423 rms=0.007717 Jy/beam
! Combined flux in latest and established models = 0.955407 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.955407 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441226Jy  sigma=0.001946
! Fit after  self-cal, rms=0.441126Jy  sigma=0.001946
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0802452 Jy
! Component: 100  -  total flux cleaned = 0.122493 Jy
! Total flux subtracted in 100 components = 0.122493 Jy
! Clean residual min=-0.024895 max=0.025929 Jy/beam
! Clean residual mean=0.000186 rms=0.005597 Jy/beam
! Combined flux in latest and established models = 1.0779 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 17 components and 1.0779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424161Jy  sigma=0.001649
! Fit after  self-cal, rms=0.424050Jy  sigma=0.001648
! Inverting map 
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 
! Estimated beam: bmin=2.747 mas, bmaj=6.013 mas, bpa=-6.255 degrees
! Estimated noise=634.356 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.0409172 Jy
! Component: 100  -  total flux cleaned = 0.0598957 Jy
! Component: 150  -  total flux cleaned = 0.0695531 Jy
! Component: 200  -  total flux cleaned = 0.0745302 Jy
! Total flux subtracted in 200 components = 0.0745302 Jy
! Clean residual min=-0.028216 max=0.022801 Jy/beam
! Clean residual mean=-0.000001 rms=0.005027 Jy/beam
! Combined flux in latest and established models = 1.15243 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 33 components and 1.15243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422212Jy  sigma=0.001585
! Fit after  self-cal, rms=0.422139Jy  sigma=0.001584
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.86     FD        1.00*    GG        1.00*    HN        1.52     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.47     
!   MC        1.03     MK        1.00*    NL        0.87     ON        1.01     
!   OV        1.00*    PT        1.00*    SC        0.82     TC        1.11     
!   TS        1.12     WF        1.08     WZ        1.18     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.95     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.04     LA        1.04     MA        1.04     
!   MC        0.97     MK        1.03     NL        0.94     ON        1.02     
!   OV        0.99     PT        1.01     SC        0.88     TC        1.11     
!   TS        1.00*    WF        0.95     WZ        0.91     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GG        1.00*    HN        0.86     
!   KK        1.00*    KP        1.03     LA        1.03     MA        0.86     
!   MC        1.01     MK        1.00*    NL        0.90     ON        1.02     
!   OV        0.92     PT        1.00     SC        0.95     TC        1.13     
!   TS        1.00*    WF        0.98     WZ        0.91     
! 
!  A total of 195 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.04     GG        1.00*    HN        0.95     
!   KK        0.98     KP        1.01     LA        1.10     MA        0.87     
!   MC        0.93     MK        0.88     NL        1.06     ON        0.97     
!   OV        1.51     PT        1.08     SC        0.87     TC        1.00*    
!   TS        1.00*    WF        0.83     WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00*    GG        1.00*    HN        1.16     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.23     
!   MC        1.08     MK        1.00*    NL        0.90     ON        1.16     
!   OV        1.00*    PT        1.00*    SC        0.83     TC        1.24     
!   TS        1.02     WF        1.03     WZ        1.20     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.01     LA        0.93     MA        0.96     
!   MC        1.00     MK        1.04     NL        0.99     ON        1.00     
!   OV        0.99     PT        1.00     SC        0.90     TC        1.08     
!   TS        1.00*    WF        1.00     WZ        0.91     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.03     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.00     LA        0.97     MA        0.99     
!   MC        1.02     MK        1.00*    NL        0.94     ON        1.13     
!   OV        0.99     PT        1.00     SC        1.00     TC        1.21     
!   TS        1.00*    WF        1.03     WZ        0.91     
! 
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.10     GG        1.00*    HN        1.01     
!   KK        1.09     KP        1.01     LA        1.06     MA        0.98     
!   MC        1.04     MK        0.98     NL        1.10     ON        1.00     
!   OV        0.98     PT        1.05     SC        0.89     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00*    GG        1.00*    HN        1.22     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.10     
!   MC        1.14     MK        1.00*    NL        0.91     ON        1.14     
!   OV        1.00*    PT        1.00*    SC        0.97     TC        0.89     
!   TS        1.07     WF        0.99     WZ        1.20     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.94     GG        1.00*    HN        1.09     
!   KK        1.00*    KP        1.01     LA        0.99     MA        1.19     
!   MC        1.63     MK        1.00     NL        0.99     ON        1.08     
!   OV        0.97     PT        1.02     SC        1.04     TC        0.96     
!   TS        1.00*    WF        1.02     WZ        1.02     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.01     LA        0.97     MA        1.02     
!   MC        1.52     MK        1.00*    NL        0.95     ON        1.08     
!   OV        0.99     PT        1.01     SC        1.20     TC        1.03     
!   TS        1.00*    WF        1.21     WZ        0.94     
! 
!  A total of 198 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.10     FD        1.04     GG        1.00*    HN        1.02     
!   KK        1.02     KP        1.06     LA        1.05     MA        0.93     
!   MC        1.16     MK        0.95     NL        1.09     ON        1.04     
!   OV        1.07     PT        1.07     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        0.93     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.00*    GG        1.00*    HN        1.56     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.32     
!   MC        1.01     MK        1.00*    NL        0.85     ON        1.06     
!   OV        1.00*    PT        1.00*    SC        0.92     TC        0.85     
!   TS        1.11     WF        1.01     WZ        1.21     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.95     GG        1.00*    HN        1.11     
!   KK        1.00*    KP        0.93     LA        1.01     MA        0.90     
!   MC        1.07     MK        1.05     NL        0.95     ON        0.95     
!   OV        0.88     PT        0.97     SC        1.03     TC        0.98     
!   TS        1.00*    WF        1.00     WZ        0.94     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GG        1.00*    HN        0.87     
!   KK        1.00*    KP        0.99     LA        0.99     MA        1.00     
!   MC        1.36     MK        1.00*    NL        0.89     ON        0.99     
!   OV        0.91     PT        0.97     SC        1.26     TC        0.98     
!   TS        1.00*    WF        1.09     WZ        0.94     
! 
!  A total of 192 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.05     GG        1.00*    HN        1.00     
!   KK        0.99     KP        1.01     LA        1.04     MA        1.08     
!   MC        0.99     MK        0.99     NL        1.01     ON        0.95     
!   OV        1.44     PT        1.01     SC        0.98     TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.03     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Fit before self-cal, rms=0.422139Jy  sigma=0.001584
! Fit after  self-cal, rms=0.441649Jy  sigma=0.001372
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.754 mas, bmaj=6.104 mas, bpa=-5.942 degrees
! Estimated noise=639.981 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 (2, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108379 Jy
! Component: 100  -  total flux cleaned = 0.0157503 Jy
! Component: 150  -  total flux cleaned = 0.0168879 Jy
! Component: 200  -  total flux cleaned = 0.0173515 Jy
! Total flux subtracted in 200 components = 0.0173515 Jy
! Clean residual min=-0.005214 max=0.006283 Jy/beam
! Clean residual mean=0.000309 rms=0.001479 Jy/beam
! Combined flux in latest and established models = 1.16978 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 61 components and 1.16978 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441321Jy  sigma=0.001367
! Fit after  self-cal, rms=0.442286Jy  sigma=0.001366
! Inverting map 
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.442286Jy  sigma=0.001366
! Fit after  self-cal, rms=0.460609Jy  sigma=0.001343
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.753 mas, bmaj=6.104 mas, bpa=-5.9 degrees
! Estimated noise=641.618 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00564297 Jy
! Component: 100  -  total flux cleaned = 0.00727537 Jy
! Component: 150  -  total flux cleaned = 0.00748501 Jy
! Component: 200  -  total flux cleaned = 0.0077622 Jy
! Total flux subtracted in 200 components = 0.0077622 Jy
! Clean residual min=-0.004063 max=0.004475 Jy/beam
! Clean residual mean=-0.000017 rms=0.001122 Jy/beam
! Combined flux in latest and established models = 1.17754 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 73 components and 1.17754 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460489Jy  sigma=0.001342
! Fit after  self-cal, rms=0.460965Jy  sigma=0.001342
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000800661 Jy
! Component: 100  -  total flux cleaned = 0.000801918 Jy
! Component: 150  -  total flux cleaned = 0.000801264 Jy
! Component: 200  -  total flux cleaned = 0.000870922 Jy
! Total flux subtracted in 200 components = 0.000870922 Jy
! Clean residual min=-0.003930 max=0.004269 Jy/beam
! Clean residual mean=-0.000021 rms=0.001107 Jy/beam
! Combined flux in latest and established models = 1.17842 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 80 components and 1.17842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460925Jy  sigma=0.001342
! Fit after  self-cal, rms=0.460922Jy  sigma=0.001341
! Inverting map 
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.460922Jy  sigma=0.001341
! Fit after  self-cal, rms=0.460309Jy  sigma=0.001329
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.75 mas, bmaj=6.1 mas, bpa=-5.911 degrees
! Estimated noise=642.043 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00350651 Jy
! Component: 100  -  total flux cleaned = 0.00451763 Jy
! Component: 150  -  total flux cleaned = 0.00464131 Jy
! Component: 200  -  total flux cleaned = 0.00469756 Jy
! Total flux subtracted in 200 components = 0.00469756 Jy
! Clean residual min=-0.003200 max=0.004421 Jy/beam
! Clean residual mean=0.000162 rms=0.000990 Jy/beam
! Combined flux in latest and established models = 1.18311 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 94 components and 1.18311 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460265Jy  sigma=0.001329
! Fit after  self-cal, rms=0.460306Jy  sigma=0.001329
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (47.5, -32.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00371836 Jy
! Component: 100  -  total flux cleaned = 0.00433537 Jy
! Component: 150  -  total flux cleaned = 0.00455389 Jy
! Component: 200  -  total flux cleaned = 0.00481645 Jy
! Total flux subtracted in 200 components = 0.00481645 Jy
! Clean residual min=-0.003014 max=0.003650 Jy/beam
! Clean residual mean=0.000119 rms=0.000913 Jy/beam
! Combined flux in latest and established models = 1.18793 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 106 components and 1.18793 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460233Jy  sigma=0.001328
! Fit after  self-cal, rms=0.460238Jy  sigma=0.001328
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.460238Jy  sigma=0.001328
! Fit after  self-cal, rms=0.460405Jy  sigma=0.001328
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.82 mas, bmaj=10.94 mas, bpa=-5.701 degrees
! Estimated noise=774.36 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00295718 Jy
! Component: 100  -  total flux cleaned = 0.00361063 Jy
! Component: 150  -  total flux cleaned = 0.00407342 Jy
! Component: 200  -  total flux cleaned = 0.0044588 Jy
! Total flux subtracted in 200 components = 0.0044588 Jy
! Clean residual min=-0.002495 max=0.003836 Jy/beam
! Clean residual mean=0.000200 rms=0.001030 Jy/beam
! Combined flux in latest and established models = 1.19239 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 127 components and 1.19239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460406Jy  sigma=0.001328
! Fit after  self-cal, rms=0.460395Jy  sigma=0.001328
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000683189 Jy
! Component: 100  -  total flux cleaned = 0.000793895 Jy
! Component: 150  -  total flux cleaned = 0.00082635 Jy
! Component: 200  -  total flux cleaned = 0.000886154 Jy
! Total flux subtracted in 200 components = 0.000886154 Jy
! Clean residual min=-0.002452 max=0.003842 Jy/beam
! Clean residual mean=0.000184 rms=0.001029 Jy/beam
! Combined flux in latest and established models = 1.19327 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 138 components and 1.19327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460396Jy  sigma=0.001328
! Fit after  self-cal, rms=0.460393Jy  sigma=0.001328
! Inverting map 
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 
! Estimated beam: bmin=2.748 mas, bmaj=6.099 mas, bpa=-5.919 degrees
! Estimated noise=642.507 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.748 x 6.099 at -5.919 degrees (North through East)
! Clean map  min=-0.0026612  max=1.0364 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.460393Jy  sigma=0.001328
! Fit after  self-cal, rms=0.556897Jy  sigma=0.001162
! Inverting map and beam 
! Estimated beam: bmin=2.749 mas, bmaj=6.09 mas, bpa=-5.928 degrees
! Estimated noise=642.441 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000434551 Jy
! Component: 100  -  total flux cleaned = -0.000567109 Jy
! Component: 150  -  total flux cleaned = -0.000566283 Jy
! Component: 200  -  total flux cleaned = -0.000624728 Jy
! Total flux subtracted in 200 components = -0.000624728 Jy
! Clean residual min=-0.003212 max=0.003126 Jy/beam
! Clean residual mean=-0.000083 rms=0.000839 Jy/beam
! Combined flux in latest and established models = 1.19265 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 155 components and 1.19265 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556861Jy  sigma=0.001162
! Fit after  self-cal, rms=0.556886Jy  sigma=0.001162
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000176184 Jy
! Component: 100  -  total flux cleaned = -0.000174601 Jy
! Component: 150  -  total flux cleaned = -0.000225516 Jy
! Component: 200  -  total flux cleaned = -0.000273262 Jy
! Total flux subtracted in 200 components = -0.000273262 Jy
! Clean residual min=-0.003174 max=0.003119 Jy/beam
! Clean residual mean=-0.000080 rms=0.000835 Jy/beam
! Combined flux in latest and established models = 1.19238 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 162 components and 1.19238 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556858Jy  sigma=0.001162
! Fit after  self-cal, rms=0.556875Jy  sigma=0.001162
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556875Jy  sigma=0.001162
! Fit after  self-cal, rms=0.558825Jy  sigma=0.001162
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 
! Estimated beam: bmin=1.96 mas, bmaj=3.984 mas, bpa=-6.993 degrees
! Estimated noise=1428.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.77323 Jy
! Component: 100  -  total flux cleaned = 0.955483 Jy
! Component: 150  -  total flux cleaned = 1.03251 Jy
! Component: 200  -  total flux cleaned = 1.07258 Jy
! Total flux subtracted in 200 components = 1.07258 Jy
! Clean residual min=-0.009549 max=0.019843 Jy/beam
! Clean residual mean=0.000216 rms=0.002658 Jy/beam
! Combined flux in latest and established models = 1.07258 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 18 model components to the UV plane model.
! The established model now contains 18 components and 1.07258 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.749 mas, bmaj=6.092 mas, bpa=-5.93 degrees
! Estimated noise=642.47 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.0462796 Jy
! Component: 100  -  total flux cleaned = 0.0704396 Jy
! Component: 150  -  total flux cleaned = 0.084782 Jy
! Component: 200  -  total flux cleaned = 0.0939154 Jy
! Total flux subtracted in 200 components = 0.0939154 Jy
! Clean residual min=-0.003917 max=0.006398 Jy/beam
! Clean residual mean=0.000182 rms=0.001397 Jy/beam
! Combined flux in latest and established models = 1.1665 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 65 components and 1.1665 Jy
! Inverting map 
! Added new window around map position (9.5, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00695081 Jy
! Component: 100  -  total flux cleaned = 0.0119177 Jy
! Component: 150  -  total flux cleaned = 0.0157045 Jy
! Component: 200  -  total flux cleaned = 0.0186228 Jy
! Total flux subtracted in 200 components = 0.0186228 Jy
! Clean residual min=-0.003437 max=0.003041 Jy/beam
! Clean residual mean=-0.000012 rms=0.000892 Jy/beam
! Combined flux in latest and established models = 1.18512 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 87 components and 1.18512 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.821 mas, bmaj=10.95 mas, bpa=-5.691 degrees
! Estimated noise=774.231 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00292435 Jy
! Component: 100  -  total flux cleaned = 0.00473278 Jy
! Component: 150  -  total flux cleaned = 0.00529722 Jy
! Component: 200  -  total flux cleaned = 0.00541667 Jy
! Total flux subtracted in 200 components = 0.00541667 Jy
! Clean residual min=-0.003108 max=0.003482 Jy/beam
! Clean residual mean=-0.000152 rms=0.000986 Jy/beam
! Combined flux in latest and established models = 1.19054 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.000107338 Jy
! Component: 100  -  total flux cleaned = 0.000204684 Jy
! Component: 150  -  total flux cleaned = 0.000263533 Jy
! Component: 200  -  total flux cleaned = 0.000289941 Jy
! Total flux subtracted in 200 components = 0.000289941 Jy
! Clean residual min=-0.003005 max=0.003425 Jy/beam
! Clean residual mean=-0.000161 rms=0.000967 Jy/beam
! Combined flux in latest and established models = 1.19083 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 125 components and 1.19083 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.749 mas, bmaj=6.092 mas, bpa=-5.93 degrees
! Estimated noise=642.47 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000770601 Jy
! Component: 100  -  total flux cleaned = -0.00084082 Jy
! Component: 150  -  total flux cleaned = -0.000782846 Jy
! Component: 200  -  total flux cleaned = -0.000726828 Jy
! Total flux subtracted in 200 components = -0.000726828 Jy
! Clean residual min=-0.003089 max=0.002951 Jy/beam
! Clean residual mean=-0.000063 rms=0.000814 Jy/beam
! Combined flux in latest and established models = 1.1901 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 137 components and 1.1901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.558779Jy  sigma=0.001161
! Fit after  self-cal, rms=0.558792Jy  sigma=0.001161
wmodel J1751+0939_S_2003_05_07_pus_map.mod
! Writing 137 model components to file: J1751+0939_S_2003_05_07_pus_map.mod
wobs J1751+0939_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1751+0939_S_2003_05_07_pus_uvs.fits
wwins J1751+0939_S_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J1751+0939_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00101415 Jy
! Component: 100  -  total flux cleaned = -0.00111904 Jy
! Component: 150  -  total flux cleaned = -0.0012172 Jy
! Component: 200  -  total flux cleaned = -0.00135902 Jy
! Component: 250  -  total flux cleaned = -0.00154191 Jy
! Component: 300  -  total flux cleaned = -0.00167542 Jy
! Component: 350  -  total flux cleaned = -0.00167486 Jy
! Component: 400  -  total flux cleaned = -0.0017178 Jy
! Component: 450  -  total flux cleaned = -0.00180245 Jy
! Component: 500  -  total flux cleaned = -0.00196825 Jy
! Component: 550  -  total flux cleaned = -0.00200873 Jy
! Component: 600  -  total flux cleaned = -0.00212957 Jy
! Component: 650  -  total flux cleaned = -0.00220879 Jy
! Component: 700  -  total flux cleaned = -0.00228718 Jy
! Component: 750  -  total flux cleaned = -0.00244168 Jy
! Component: 800  -  total flux cleaned = -0.00255604 Jy
! Component: 850  -  total flux cleaned = -0.00266963 Jy
! Component: 900  -  total flux cleaned = -0.00285582 Jy
! Component: 950  -  total flux cleaned = -0.00304041 Jy
! Component: 1000  -  total flux cleaned = -0.00318627 Jy
! Component: 1050  -  total flux cleaned = -0.00333097 Jy
! Component: 1100  -  total flux cleaned = -0.00347396 Jy
! Component: 1150  -  total flux cleaned = -0.00361609 Jy
! Component: 1200  -  total flux cleaned = -0.00368625 Jy
! Component: 1250  -  total flux cleaned = -0.00382568 Jy
! Component: 1300  -  total flux cleaned = -0.00392972 Jy
! Component: 1350  -  total flux cleaned = -0.00406643 Jy
! Component: 1400  -  total flux cleaned = -0.00410035 Jy
! Component: 1450  -  total flux cleaned = -0.00423519 Jy
! Component: 1500  -  total flux cleaned = -0.00436891 Jy
! Component: 1550  -  total flux cleaned = -0.00436898 Jy
! Component: 1600  -  total flux cleaned = -0.00456696 Jy
! Component: 1650  -  total flux cleaned = -0.00456688 Jy
! Component: 1700  -  total flux cleaned = -0.00476206 Jy
! Component: 1750  -  total flux cleaned = -0.0047942 Jy
! Component: 1800  -  total flux cleaned = -0.0048905 Jy
! Component: 1850  -  total flux cleaned = -0.0049224 Jy
! Component: 1900  -  total flux cleaned = -0.00495444 Jy
! Component: 1950  -  total flux cleaned = -0.00511203 Jy
! Component: 2000  -  total flux cleaned = -0.00523723 Jy
! Total flux subtracted in 2048 components = -0.00523706 Jy
! Clean residual min=-0.001795 max=0.001666 Jy/beam
! Clean residual mean=-0.000022 rms=0.000589 Jy/beam
! Combined flux in latest and established models = 1.18486 Jy
keep
! Adding 148 model components to the UV plane model.
! The established model now contains 285 components and 1.18486 Jy
wmap "J1751+0939_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.749 x 6.092 at -5.93 degrees (North through East)
! Clean map  min=-0.0025014  max=1.0382 Jy/beam
! Writing clean map to FITS file: J1751+0939_S_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 1.03817 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000588505 
device "J1751+0939_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.17006 0.17006 0.340119 0.680239 1.36048 2.72096 5.44191 10.8838 21.7676 43.5353 87.0706
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.038 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.749 x 6.092 at -5.93 degrees (North through East)
! Clean map  min=-0.0025014  max=1.0382 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 11:56:38 2006