! Started logfile: J0530+1331_S_2003_05_07_pus_uvs.log on Sun Dec 24 09:41:01 2006
obs J0530+1331_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0530+1331_S_2003_05_07_pus_uva.fits
! AN table 1: 145 integrations on 171 of 171 possible baselines.
! AN table 2: 39 integrations on 171 of 171 possible baselines.
! AN table 3: 51 integrations on 171 of 171 possible baselines.
! AN table 4: 150 integrations on 171 of 171 possible baselines.
! AN table 5: 164 integrations on 171 of 171 possible baselines.
! AN table 6: 266 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0563197 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0530+1331
! 
! 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 31396 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 2572 telescope corrections were flagged in sub-array 1.
!  A total of 614 telescope corrections were flagged in sub-array 2.
!  A total of 912 telescope corrections were flagged in sub-array 3.
!  A total of 2020 telescope corrections were flagged in sub-array 4.
!  A total of 2862 telescope corrections were flagged in sub-array 5.
!  A total of 4145 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 2569 telescope corrections were flagged in sub-array 1.
!  A total of 626 telescope corrections were flagged in sub-array 2.
!  A total of 912 telescope corrections were flagged in sub-array 3.
!  A total of 1995 telescope corrections were flagged in sub-array 4.
!  A total of 2909 telescope corrections were flagged in sub-array 5.
!  A total of 4145 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 2569 telescope corrections were flagged in sub-array 1.
!  A total of 626 telescope corrections were flagged in sub-array 2.
!  A total of 912 telescope corrections were flagged in sub-array 3.
!  A total of 2005 telescope corrections were flagged in sub-array 4.
!  A total of 2909 telescope corrections were flagged in sub-array 5.
!  A total of 4145 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 2569 telescope corrections were flagged in sub-array 1.
!  A total of 614 telescope corrections were flagged in sub-array 2.
!  A total of 912 telescope corrections were flagged in sub-array 3.
!  A total of 2005 telescope corrections were flagged in sub-array 4.
!  A total of 2862 telescope corrections were flagged in sub-array 5.
!  A total of 4145 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.989470Jy  sigma=0.006390
! Fit after  self-cal, rms=0.735056Jy  sigma=0.004710
! 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.985 mas, bmaj=4.023 mas, bpa=-4.269 degrees
! Estimated noise=1309.69 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.933766 Jy
! Component: 100  -  total flux cleaned = 1.27995 Jy
! Total flux subtracted in 100 components = 1.27995 Jy
! Clean residual min=-0.039856 max=0.155656 Jy/beam
! Clean residual mean=0.001146 rms=0.013676 Jy/beam
! Combined flux in latest and established models = 1.27995 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.27995 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.601877Jy  sigma=0.003297
! Fit after  self-cal, rms=0.597607Jy  sigma=0.003292
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.178158 Jy
! Component: 100  -  total flux cleaned = 0.282743 Jy
! Total flux subtracted in 100 components = 0.282743 Jy
! Clean residual min=-0.024302 max=0.058317 Jy/beam
! Clean residual mean=0.000569 rms=0.007847 Jy/beam
! Combined flux in latest and established models = 1.56269 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 26 components and 1.56269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.526988Jy  sigma=0.002198
! Fit after  self-cal, rms=0.525248Jy  sigma=0.002191
! Inverting map 
! Added new window around map position (1.5, 4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0737004 Jy
! Component: 100  -  total flux cleaned = 0.124531 Jy
! Total flux subtracted in 100 components = 0.124531 Jy
! Clean residual min=-0.023294 max=0.029774 Jy/beam
! Clean residual mean=0.000310 rms=0.006024 Jy/beam
! Combined flux in latest and established models = 1.68722 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 41 components and 1.68722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.511331Jy  sigma=0.001910
! Fit after  self-cal, rms=0.511011Jy  sigma=0.001907
! 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.67 mas, bmaj=5.524 mas, bpa=-8.004 degrees
! Estimated noise=668.577 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.0631132 Jy
! Component: 100  -  total flux cleaned = 0.0979085 Jy
! Component: 150  -  total flux cleaned = 0.118817 Jy
! Component: 200  -  total flux cleaned = 0.131532 Jy
! Total flux subtracted in 200 components = 0.131532 Jy
! Clean residual min=-0.025955 max=0.018744 Jy/beam
! Clean residual mean=0.000587 rms=0.005403 Jy/beam
! Combined flux in latest and established models = 1.81875 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 63 components and 1.81875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505686Jy  sigma=0.001782
! Fit after  self-cal, rms=0.505478Jy  sigma=0.001779
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 126 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.00*    
!   KK        0.90     KP        1.00*    LA        1.00*    MA        0.84     
!   MC        1.11     MK        1.01     NL        1.00*    ON        1.07     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.11     WF        1.15     WZ        1.03     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.96     LA        1.03     MA        1.12     
!   MC        1.08     MK        1.05     NL        1.00*    ON        0.99     
!   OV        0.87     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        1.08     WF        1.00*    WZ        1.17     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00     GG        1.00*    HN        0.88     
!   KK        1.06     KP        1.02     LA        1.07     MA        0.92     
!   MC        0.96     MK        1.04     NL        0.99     ON        1.13     
!   OV        0.79     PT        1.04     SC        0.97     TC        1.00*    
!   TS        1.00*    WF        1.07     WZ        1.05     
! 
!  A total of 90 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        0.97     KP        1.00*    LA        1.00*    MA        0.63     
!   MC        1.34     MK        0.89     NL        1.00*    ON        3.19     
!   OV        0.73     PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.15     WF        1.00*    WZ        4.58     
! 
!  A total of 93 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.01     FD        1.02     GG        1.00*    HN        0.76     
!   KK        1.00*    KP        0.91     LA        1.06     MA        0.93     
!   MC        1.03     MK        1.00*    NL        0.98     ON        1.04     
!   OV        0.94     PT        1.05     SC        0.91     TC        1.10     
!   TS        1.00*    WF        0.88     WZ        0.95     
! 
! 
! Correcting IF 2.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        0.96     KP        1.00*    LA        1.00*    MA        1.05     
!   MC        1.05     MK        1.10     NL        1.00*    ON        1.23     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.08     WF        1.05     WZ        1.04     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.96     LA        0.97     MA        1.12     
!   MC        1.03     MK        1.07     NL        1.00*    ON        1.34     
!   OV        0.95     PT        0.96     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.24     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.05     GG        1.00*    HN        0.89     
!   KK        1.07     KP        1.01     LA        1.01     MA        1.14     
!   MC        1.03     MK        1.10     NL        1.01     ON        1.15     
!   OV        0.99     PT        1.03     SC        0.96     TC        1.36     
!   TS        1.00*    WF        1.06     WZ        1.03     
! 
!  A total of 171 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.13     
!   MC        1.06     MK        1.00*    NL        1.00*    ON        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.02     
! 
!  A total of 93 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.08     FD        1.06     GG        1.00*    HN        0.86     
!   KK        1.00*    KP        0.99     LA        1.01     MA        0.97     
!   MC        1.08     MK        1.00*    NL        1.00     ON        1.12     
!   OV        1.02     PT        1.05     SC        0.93     TC        1.16     
!   TS        1.00*    WF        1.08     WZ        0.90     
! 
! 
! Correcting IF 3.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        0.92     KP        1.00*    LA        1.00*    MA        0.95     
!   MC        1.02     MK        1.19     NL        1.00*    ON        1.10     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.03     WF        0.89     WZ        1.02     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.96     LA        0.96     MA        1.14     
!   MC        1.12     MK        0.95     NL        1.00*    ON        1.21     
!   OV        0.92     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.20     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GG        1.00*    HN        0.82     
!   KK        1.04     KP        1.00     LA        1.00     MA        1.11     
!   MC        1.13     MK        1.02     NL        1.01     ON        1.12     
!   OV        0.92     PT        1.03     SC        1.08     TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.12     
! 
!  A total of 171 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.08     
!   MC        1.07     MK        1.00*    NL        1.00*    ON        1.05     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.03     
! 
!  A total of 93 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.02     FD        1.00     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.01     LA        1.00     MA        1.06     
!   MC        1.53     MK        1.00*    NL        1.00     ON        1.05     
!   OV        0.95     PT        1.06     SC        1.03     TC        0.91     
!   TS        1.00*    WF        1.07     WZ        0.94     
! 
! 
! Correcting IF 4.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.20     KP        1.00*    LA        1.00*    MA        1.19     
!   MC        1.16     MK        0.83     NL        1.00*    ON        1.10     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        0.95     WF        1.04     WZ        1.09     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.94     LA        0.96     MA        1.30     
!   MC        1.05     MK        1.04     NL        1.00*    ON        1.02     
!   OV        0.84     PT        0.94     SC        1.00*    TC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.11     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00     GG        1.00*    HN        0.97     
!   KK        1.04     KP        0.97     LA        1.01     MA        1.15     
!   MC        1.15     MK        1.06     NL        0.94     ON        0.98     
!   OV        0.85     PT        0.98     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.06     
! 
!  A total of 90 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        0.99     KP        1.00*    LA        1.00*    MA        0.95     
!   MC        1.83     MK        1.01     NL        1.00*    ON        1.02     
!   OV        0.95     PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.13     WF        1.00*    WZ        1.10     
! 
!  A total of 93 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.01     FD        1.00     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        0.97     LA        1.01     MA        0.97     
!   MC        1.18     MK        1.00*    NL        0.93     ON        0.97     
!   OV        0.96     PT        0.99     SC        1.02     TC        0.93     
!   TS        1.00*    WF        1.07     WZ        0.91     
! 
! 
! Fit before self-cal, rms=0.505478Jy  sigma=0.001779
! Fit after  self-cal, rms=0.650023Jy  sigma=0.001466
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.66 mas, bmaj=5.633 mas, bpa=-7.499 degrees
! Estimated noise=677.044 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.00818003 Jy
! Component: 100  -  total flux cleaned = 0.00781063 Jy
! Component: 150  -  total flux cleaned = 0.00748417 Jy
! Component: 200  -  total flux cleaned = 0.00720531 Jy
! Total flux subtracted in 200 components = 0.00720531 Jy
! Clean residual min=-0.009671 max=0.011233 Jy/beam
! Clean residual mean=-0.000198 rms=0.002459 Jy/beam
! Combined flux in latest and established models = 1.82596 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 69 components and 1.82596 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.649614Jy  sigma=0.001463
! Fit after  self-cal, rms=0.652689Jy  sigma=0.001462
! 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.652689Jy  sigma=0.001462
! Fit after  self-cal, rms=0.633592Jy  sigma=0.001441
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.661 mas, bmaj=5.621 mas, bpa=-7.474 degrees
! Estimated noise=677.712 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00489586 Jy
! Component: 100  -  total flux cleaned = 0.00474495 Jy
! Component: 150  -  total flux cleaned = 0.00485246 Jy
! Component: 200  -  total flux cleaned = 0.0048479 Jy
! Total flux subtracted in 200 components = 0.0048479 Jy
! Clean residual min=-0.007004 max=0.010127 Jy/beam
! Clean residual mean=0.000541 rms=0.001988 Jy/beam
! Combined flux in latest and established models = 1.83081 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 73 components and 1.83081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.633418Jy  sigma=0.001440
! Fit after  self-cal, rms=0.633045Jy  sigma=0.001439
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 (7, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101718 Jy
! Component: 100  -  total flux cleaned = 0.0122869 Jy
! Component: 150  -  total flux cleaned = 0.0129631 Jy
! Component: 200  -  total flux cleaned = 0.0131002 Jy
! Total flux subtracted in 200 components = 0.0131002 Jy
! Clean residual min=-0.006471 max=0.006847 Jy/beam
! Clean residual mean=0.000413 rms=0.001763 Jy/beam
! Combined flux in latest and established models = 1.84391 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 89 components and 1.84391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.632847Jy  sigma=0.001436
! Fit after  self-cal, rms=0.632847Jy  sigma=0.001436
! 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.632847Jy  sigma=0.001436
! Fit after  self-cal, rms=0.619726Jy  sigma=0.001391
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.669 mas, bmaj=5.605 mas, bpa=-7.495 degrees
! Estimated noise=679.342 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00516602 Jy
! Component: 100  -  total flux cleaned = 0.00660739 Jy
! Component: 150  -  total flux cleaned = 0.00699592 Jy
! Component: 200  -  total flux cleaned = 0.00734282 Jy
! Total flux subtracted in 200 components = 0.00734282 Jy
! Clean residual min=-0.005193 max=0.005344 Jy/beam
! Clean residual mean=0.000312 rms=0.001214 Jy/beam
! Combined flux in latest and established models = 1.85125 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 99 components and 1.85125 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619596Jy  sigma=0.001389
! Fit after  self-cal, rms=0.619471Jy  sigma=0.001389
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.000872687 Jy
! Component: 100  -  total flux cleaned = 0.00141957 Jy
! Component: 150  -  total flux cleaned = 0.00162024 Jy
! Component: 200  -  total flux cleaned = 0.00180805 Jy
! Total flux subtracted in 200 components = 0.00180805 Jy
! Clean residual min=-0.005044 max=0.005342 Jy/beam
! Clean residual mean=0.000295 rms=0.001199 Jy/beam
! Combined flux in latest and established models = 1.85306 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 106 components and 1.85306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619399Jy  sigma=0.001389
! Fit after  self-cal, rms=0.619404Jy  sigma=0.001389
! 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.619404Jy  sigma=0.001389
! Fit after  self-cal, rms=0.615508Jy  sigma=0.001388
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.429 mas, bmaj=11.2 mas, bpa=-12.95 degrees
! Estimated noise=785.557 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00392883 Jy
! Component: 100  -  total flux cleaned = 0.00556962 Jy
! Component: 150  -  total flux cleaned = 0.00599752 Jy
! Component: 200  -  total flux cleaned = 0.00632248 Jy
! Total flux subtracted in 200 components = 0.00632248 Jy
! Clean residual min=-0.003285 max=0.004271 Jy/beam
! Clean residual mean=0.000567 rms=0.001175 Jy/beam
! Combined flux in latest and established models = 1.85938 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 123 components and 1.85938 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.615519Jy  sigma=0.001388
! Fit after  self-cal, rms=0.615472Jy  sigma=0.001388
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.000267438 Jy
! Component: 100  -  total flux cleaned = 0.000691337 Jy
! Component: 150  -  total flux cleaned = 0.00101596 Jy
! Component: 200  -  total flux cleaned = 0.00123671 Jy
! Total flux subtracted in 200 components = 0.00123671 Jy
! Clean residual min=-0.003179 max=0.004235 Jy/beam
! Clean residual mean=0.000544 rms=0.001170 Jy/beam
! Combined flux in latest and established models = 1.86062 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 137 components and 1.86062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.615483Jy  sigma=0.001388
! Fit after  self-cal, rms=0.615479Jy  sigma=0.001388
! 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.671 mas, bmaj=5.594 mas, bpa=-7.503 degrees
! Estimated noise=680.288 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.671 x 5.594 at -7.503 degrees (North through East)
! Clean map  min=-0.004761  max=1.2999 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.615479Jy  sigma=0.001388
! Fit after  self-cal, rms=1.139335Jy  sigma=0.001153
! Inverting map and beam 
! Estimated beam: bmin=2.668 mas, bmaj=5.557 mas, bpa=-7.771 degrees
! Estimated noise=679.827 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00259049 Jy
! Component: 100  -  total flux cleaned = 0.00279928 Jy
! Component: 150  -  total flux cleaned = 0.00279561 Jy
! Component: 200  -  total flux cleaned = 0.0027923 Jy
! Total flux subtracted in 200 components = 0.0027923 Jy
! Clean residual min=-0.004020 max=0.004294 Jy/beam
! Clean residual mean=0.000206 rms=0.000976 Jy/beam
! Combined flux in latest and established models = 1.86341 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 147 components and 1.86341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.139265Jy  sigma=0.001153
! Fit after  self-cal, rms=1.139283Jy  sigma=0.001153
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000526788 Jy
! Component: 100  -  total flux cleaned = 0.000606162 Jy
! Component: 150  -  total flux cleaned = 0.000530366 Jy
! Component: 200  -  total flux cleaned = 0.000532024 Jy
! Total flux subtracted in 200 components = 0.000532024 Jy
! Clean residual min=-0.003908 max=0.004260 Jy/beam
! Clean residual mean=0.000201 rms=0.000966 Jy/beam
! Combined flux in latest and established models = 1.86394 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 148 components and 1.86394 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.139242Jy  sigma=0.001152
! Fit after  self-cal, rms=1.139231Jy  sigma=0.001152
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.139231Jy  sigma=0.001152
! Fit after  self-cal, rms=1.605583Jy  sigma=0.001152
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=2.008 mas, bmaj=4.06 mas, bpa=-4.341 degrees
! Estimated noise=1327.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.943607 Jy
! Component: 100  -  total flux cleaned = 1.29069 Jy
! Component: 150  -  total flux cleaned = 1.46634 Jy
! Component: 200  -  total flux cleaned = 1.56649 Jy
! Total flux subtracted in 200 components = 1.56649 Jy
! Clean residual min=-0.015643 max=0.053083 Jy/beam
! Clean residual mean=0.000650 rms=0.005844 Jy/beam
! Combined flux in latest and established models = 1.56649 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 25 model components to the UV plane model.
! The established model now contains 25 components and 1.56649 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.668 mas, bmaj=5.547 mas, bpa=-7.798 degrees
! Estimated noise=679.77 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.119874 Jy
! Component: 100  -  total flux cleaned = 0.182994 Jy
! Component: 150  -  total flux cleaned = 0.220132 Jy
! Component: 200  -  total flux cleaned = 0.243738 Jy
! Total flux subtracted in 200 components = 0.243738 Jy
! Clean residual min=-0.005134 max=0.014065 Jy/beam
! Clean residual mean=0.000706 rms=0.002347 Jy/beam
! Combined flux in latest and established models = 1.81022 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 73 components and 1.81022 Jy
! Inverting map 
! Added new window around map position (-2, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0162454 Jy
! Component: 100  -  total flux cleaned = 0.0275764 Jy
! Component: 150  -  total flux cleaned = 0.0357672 Jy
! Component: 200  -  total flux cleaned = 0.0418226 Jy
! Total flux subtracted in 200 components = 0.0418226 Jy
! Clean residual min=-0.003763 max=0.004509 Jy/beam
! Clean residual mean=0.000289 rms=0.001080 Jy/beam
! Combined flux in latest and established models = 1.85205 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 103 components and 1.85205 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.414 mas, bmaj=11.2 mas, bpa=-12.94 degrees
! Estimated noise=786.472 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00605688 Jy
! Component: 100  -  total flux cleaned = 0.0095324 Jy
! Component: 150  -  total flux cleaned = 0.011618 Jy
! Component: 200  -  total flux cleaned = 0.0128979 Jy
! Total flux subtracted in 200 components = 0.0128979 Jy
! Clean residual min=-0.002925 max=0.003595 Jy/beam
! Clean residual mean=0.000371 rms=0.001046 Jy/beam
! Combined flux in latest and established models = 1.86494 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.000491069 Jy
! Component: 100  -  total flux cleaned = 0.000691001 Jy
! Component: 150  -  total flux cleaned = 0.000868482 Jy
! Component: 200  -  total flux cleaned = 0.00102647 Jy
! Total flux subtracted in 200 components = 0.00102647 Jy
! Clean residual min=-0.002894 max=0.003551 Jy/beam
! Clean residual mean=0.000350 rms=0.001051 Jy/beam
! Combined flux in latest and established models = 1.86597 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 142 components and 1.86597 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.668 mas, bmaj=5.547 mas, bpa=-7.798 degrees
! Estimated noise=679.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00102116 Jy
! Component: 100  -  total flux cleaned = -0.000512864 Jy
! Component: 150  -  total flux cleaned = -0.000282231 Jy
! Component: 200  -  total flux cleaned = -0.000387973 Jy
! Total flux subtracted in 200 components = -0.000387973 Jy
! Clean residual min=-0.003349 max=0.004155 Jy/beam
! Clean residual mean=0.000161 rms=0.000954 Jy/beam
! Combined flux in latest and established models = 1.86558 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 152 components and 1.86558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.605574Jy  sigma=0.001153
! Fit after  self-cal, rms=1.605368Jy  sigma=0.001152
wmodel J0530+1331_S_2003_05_07_pus_map.mod
! Writing 152 model components to file: J0530+1331_S_2003_05_07_pus_map.mod
wobs J0530+1331_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0530+1331_S_2003_05_07_pus_uvs.fits
wwins J0530+1331_S_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J0530+1331_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.0018627 Jy
! Component: 100  -  total flux cleaned = 0.00344859 Jy
! Component: 150  -  total flux cleaned = 0.00431782 Jy
! Component: 200  -  total flux cleaned = 0.00503608 Jy
! Component: 250  -  total flux cleaned = 0.00573433 Jy
! Component: 300  -  total flux cleaned = 0.0061897 Jy
! Component: 350  -  total flux cleaned = 0.00669245 Jy
! Component: 400  -  total flux cleaned = 0.00723905 Jy
! Component: 450  -  total flux cleaned = 0.00793537 Jy
! Component: 500  -  total flux cleaned = 0.00846131 Jy
! Component: 550  -  total flux cleaned = 0.00897977 Jy
! Component: 600  -  total flux cleaned = 0.00954062 Jy
! Component: 650  -  total flux cleaned = 0.00994269 Jy
! Component: 700  -  total flux cleaned = 0.010439 Jy
! Component: 750  -  total flux cleaned = 0.0108304 Jy
! Component: 800  -  total flux cleaned = 0.0111679 Jy
! Component: 850  -  total flux cleaned = 0.0115492 Jy
! Component: 900  -  total flux cleaned = 0.0118315 Jy
! Component: 950  -  total flux cleaned = 0.012111 Jy
! Component: 1000  -  total flux cleaned = 0.0123423 Jy
! Component: 1050  -  total flux cleaned = 0.0125712 Jy
! Component: 1100  -  total flux cleaned = 0.0129335 Jy
! Component: 1150  -  total flux cleaned = 0.0129781 Jy
! Component: 1200  -  total flux cleaned = 0.0131559 Jy
! Component: 1250  -  total flux cleaned = 0.0133326 Jy
! Component: 1300  -  total flux cleaned = 0.0135076 Jy
! Component: 1350  -  total flux cleaned = 0.0137243 Jy
! Component: 1400  -  total flux cleaned = 0.0138102 Jy
! Component: 1450  -  total flux cleaned = 0.0139377 Jy
! Component: 1500  -  total flux cleaned = 0.0140223 Jy
! Component: 1550  -  total flux cleaned = 0.0140223 Jy
! Component: 1600  -  total flux cleaned = 0.0141476 Jy
! Component: 1650  -  total flux cleaned = 0.0142301 Jy
! Component: 1700  -  total flux cleaned = 0.0142715 Jy
! Component: 1750  -  total flux cleaned = 0.0142309 Jy
! Component: 1800  -  total flux cleaned = 0.0143937 Jy
! Component: 1850  -  total flux cleaned = 0.0144744 Jy
! Component: 1900  -  total flux cleaned = 0.0145549 Jy
! Component: 1950  -  total flux cleaned = 0.0146748 Jy
! Component: 2000  -  total flux cleaned = 0.0147544 Jy
! Total flux subtracted in 2048 components = 0.014912 Jy
! Clean residual min=-0.002098 max=0.002282 Jy/beam
! Clean residual mean=0.000050 rms=0.000720 Jy/beam
! Combined flux in latest and established models = 1.88049 Jy
keep
! Adding 142 model components to the UV plane model.
! The established model now contains 292 components and 1.88049 Jy
wmap "J0530+1331_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.668 x 5.547 at -7.798 degrees (North through East)
! Clean map  min=-0.0029312  max=1.3012 Jy/beam
! Writing clean map to FITS file: J0530+1331_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.30124 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000718669 
device "J0530+1331_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.165688 0.165688 0.331377 0.662753 1.32551 2.65101 5.30203 10.6041 21.2081 42.4162 84.8324
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.301 
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.668 x 5.547 at -7.798 degrees (North through East)
! Clean map  min=-0.0029312  max=1.3012 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 09:44:33 2006