! Started logfile: J0753+5352_S_2003_06_18_pus_uvs.log on Wed Jan 24 17:39:30 2007
obs J0753+5352_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0753+5352_S_2003_06_18_pus_uva.fits
! AN table 1: 313 integrations on 153 of 153 possible baselines.
! AN table 2: 135 integrations on 153 of 153 possible baselines.
! AN table 3: 60 integrations on 153 of 153 possible baselines.
! AN table 4: 49 integrations on 153 of 153 possible baselines.
! AN table 5: 95 integrations on 153 of 153 possible baselines.
! AN table 6: 46 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0655655 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0753+5352
! 
! 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 2429 lines of history.
! 
! Reading 28008 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
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 4329 telescope corrections were flagged in sub-array 1.
!  A total of 2060 telescope corrections were flagged in sub-array 2.
!  A total of 811 telescope corrections were flagged in sub-array 3.
!  A total of 756 telescope corrections were flagged in sub-array 4.
!  A total of 1297 telescope corrections were flagged in sub-array 5.
!  A total of 828 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 4313 telescope corrections were flagged in sub-array 1.
!  A total of 2061 telescope corrections were flagged in sub-array 2.
!  A total of 811 telescope corrections were flagged in sub-array 3.
!  A total of 756 telescope corrections were flagged in sub-array 4.
!  A total of 1297 telescope corrections were flagged in sub-array 5.
!  A total of 828 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 4313 telescope corrections were flagged in sub-array 1.
!  A total of 2059 telescope corrections were flagged in sub-array 2.
!  A total of 811 telescope corrections were flagged in sub-array 3.
!  A total of 756 telescope corrections were flagged in sub-array 4.
!  A total of 1297 telescope corrections were flagged in sub-array 5.
!  A total of 828 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 4285 telescope corrections were flagged in sub-array 1.
!  A total of 2060 telescope corrections were flagged in sub-array 2.
!  A total of 811 telescope corrections were flagged in sub-array 3.
!  A total of 756 telescope corrections were flagged in sub-array 4.
!  A total of 1297 telescope corrections were flagged in sub-array 5.
!  A total of 828 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.799991Jy  sigma=0.008640
! Fit after  self-cal, rms=0.399096Jy  sigma=0.004233
! 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=2.279 mas, bmaj=2.805 mas, bpa=-3.264 degrees
! Estimated noise=735.014 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.492811 Jy
! Component: 100  -  total flux cleaned = 0.644836 Jy
! Total flux subtracted in 100 components = 0.644836 Jy
! Clean residual min=-0.019525 max=0.063885 Jy/beam
! Clean residual mean=0.000311 rms=0.005354 Jy/beam
! Combined flux in latest and established models = 0.644836 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.644836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278430Jy  sigma=0.002562
! Fit after  self-cal, rms=0.277789Jy  sigma=0.002561
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0671482 Jy
! Component: 100  -  total flux cleaned = 0.103414 Jy
! Total flux subtracted in 100 components = 0.103414 Jy
! Clean residual min=-0.013247 max=0.018568 Jy/beam
! Clean residual mean=0.000122 rms=0.003595 Jy/beam
! Combined flux in latest and established models = 0.74825 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 23 components and 0.74825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247248Jy  sigma=0.002200
! Fit after  self-cal, rms=0.247039Jy  sigma=0.002200
! 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.818 mas, bmaj=3.65 mas, bpa=-3.061 degrees
! Estimated noise=419.712 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.0453078 Jy
! Component: 100  -  total flux cleaned = 0.0656018 Jy
! Component: 150  -  total flux cleaned = 0.0753305 Jy
! Component: 200  -  total flux cleaned = 0.0802283 Jy
! Total flux subtracted in 200 components = 0.0802283 Jy
! Clean residual min=-0.012113 max=0.017467 Jy/beam
! Clean residual mean=-0.000218 rms=0.004082 Jy/beam
! Combined flux in latest and established models = 0.828478 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 46 components and 0.828478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239315Jy  sigma=0.002110
! Fit after  self-cal, rms=0.239216Jy  sigma=0.002110
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.90     GG        1.00*    HN        0.93     
!   KK        1.05     KP        0.74     LA        0.96     MA        1.00*    
!   MK        0.97     NL        0.97     ON        1.04     OV        0.97     
!   PT        0.95     SC        0.90     TC        1.00*    TS        1.03     
!   WF        1.22     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.06     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        1.00     LA        1.01     MA        1.00*    
!   MK        1.00*    NL        1.08     ON        1.00*    OV        1.24     
!   PT        0.99     SC        0.88     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.02     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.08     LA        1.02     MA        1.00*    
!   MK        1.01     NL        1.10     ON        1.00*    OV        1.42     
!   PT        1.06     SC        1.00*    TC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        1.00*    GG        1.00*    HN        0.96     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.07     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.02     
!   WF        1.19     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        1.00     GG        1.00*    HN        1.00*    
!   KK        1.12     KP        1.05     LA        1.01     MA        1.00*    
!   MK        0.91     NL        1.00*    ON        1.00*    OV        1.19     
!   PT        0.93     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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 207 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.89     GG        1.00*    HN        1.00     
!   KK        1.06     KP        0.99     LA        0.96     MA        1.00*    
!   MK        1.11     NL        0.92     ON        2.06     OV        0.80     
!   PT        0.94     SC        0.92     TC        1.00*    TS        1.02     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.01     GG        1.00*    HN        1.43     
!   KK        1.00*    KP        1.05     LA        1.02     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.00*    OV        1.10     
!   PT        1.02     SC        0.89     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.02     GG        1.00*    HN        1.12     
!   KK        1.00*    KP        1.13     LA        1.02     MA        1.00*    
!   MK        1.12     NL        1.01     ON        1.00*    OV        1.20     
!   PT        1.06     SC        1.00*    TC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        0.96     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.02     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        1.00     GG        1.00*    HN        1.00*    
!   KK        1.02     KP        1.06     LA        1.00     MA        1.00*    
!   MK        1.03     NL        1.00*    ON        1.00*    OV        1.12     
!   PT        0.91     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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 207 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.90     GG        1.00*    HN        0.99     
!   KK        1.04     KP        0.91     LA        0.93     MA        1.00*    
!   MK        1.03     NL        0.92     ON        1.00     OV        1.03     
!   PT        0.96     SC        1.09     TC        1.00*    TS        1.03     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.07     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        1.02     ON        1.00*    OV        1.05     
!   PT        1.01     SC        1.05     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.03     GG        1.00*    HN        1.12     
!   KK        1.00*    KP        1.08     LA        1.01     MA        1.00*    
!   MK        1.05     NL        1.02     ON        1.00*    OV        1.23     
!   PT        1.04     SC        1.00*    TC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.00*    GG        1.00*    HN        1.09     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.02     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.03     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.01     GG        1.00*    HN        1.00*    
!   KK        0.99     KP        1.05     LA        0.97     MA        1.00*    
!   MK        0.98     NL        1.00*    ON        1.00*    OV        1.17     
!   PT        0.96     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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 219 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.93     GG        1.00*    HN        0.96     
!   KK        1.07     KP        0.90     LA        0.98     MA        1.00*    
!   MK        0.99     NL        0.96     ON        1.08     OV        0.91     
!   PT        1.00     SC        1.08     TC        1.00*    TS        1.03     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 66 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        0.97     
!   KK        1.00*    KP        1.07     LA        1.02     MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.00*    OV        0.96     
!   PT        1.09     SC        1.03     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.06     GG        1.00*    HN        1.13     
!   KK        1.00*    KP        1.08     LA        1.04     MA        1.00*    
!   MK        1.01     NL        1.04     ON        1.00*    OV        1.12     
!   PT        1.12     SC        1.00*    TC        1.00*    TS        1.03     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.04     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.04     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.95     FD        1.00     GG        1.00*    HN        1.00*    
!   KK        0.97     KP        1.06     LA        1.02     MA        1.00*    
!   MK        0.93     NL        1.00*    ON        1.00*    OV        1.09     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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.239216Jy  sigma=0.002110
! Fit after  self-cal, rms=0.230193Jy  sigma=0.001924
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.851 mas, bmaj=3.782 mas, bpa=-4.746 degrees
! Estimated noise=431.942 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.00339728 Jy
! Component: 100  -  total flux cleaned = -0.0035991 Jy
! Component: 150  -  total flux cleaned = -0.00376805 Jy
! Component: 200  -  total flux cleaned = -0.00391471 Jy
! Total flux subtracted in 200 components = -0.00391471 Jy
! Clean residual min=-0.007024 max=0.007144 Jy/beam
! Clean residual mean=-0.000149 rms=0.002116 Jy/beam
! Combined flux in latest and established models = 0.824563 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 52 components and 0.824563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230094Jy  sigma=0.001923
! Fit after  self-cal, rms=0.230385Jy  sigma=0.001922
! 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.230385Jy  sigma=0.001922
! Fit after  self-cal, rms=0.233923Jy  sigma=0.001854
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.865 mas, bmaj=3.782 mas, bpa=-4.491 degrees
! Estimated noise=433.035 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00157065 Jy
! Component: 100  -  total flux cleaned = -0.00189742 Jy
! Component: 150  -  total flux cleaned = -0.00223147 Jy
! Component: 200  -  total flux cleaned = -0.00244627 Jy
! Total flux subtracted in 200 components = -0.00244627 Jy
! Clean residual min=-0.004414 max=0.004422 Jy/beam
! Clean residual mean=0.000083 rms=0.001132 Jy/beam
! Combined flux in latest and established models = 0.822117 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 56 components and 0.822117 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233836Jy  sigma=0.001853
! Fit after  self-cal, rms=0.234050Jy  sigma=0.001853
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.000575879 Jy
! Component: 100  -  total flux cleaned = -0.000515515 Jy
! Component: 150  -  total flux cleaned = -0.000516433 Jy
! Component: 200  -  total flux cleaned = -0.000517394 Jy
! Total flux subtracted in 200 components = -0.000517394 Jy
! Clean residual min=-0.004362 max=0.004398 Jy/beam
! Clean residual mean=0.000091 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 0.8216 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 58 components and 0.8216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234024Jy  sigma=0.001852
! Fit after  self-cal, rms=0.234026Jy  sigma=0.001852
! 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.234026Jy  sigma=0.001852
! Fit after  self-cal, rms=0.235080Jy  sigma=0.001852
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.877 mas, bmaj=3.79 mas, bpa=-4.43 degrees
! Estimated noise=434.129 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000596722 Jy
! Component: 100  -  total flux cleaned = -0.000907884 Jy
! Component: 150  -  total flux cleaned = -0.00121936 Jy
! Component: 200  -  total flux cleaned = -0.00147068 Jy
! Total flux subtracted in 200 components = -0.00147068 Jy
! Clean residual min=-0.004220 max=0.004163 Jy/beam
! Clean residual mean=0.000074 rms=0.001065 Jy/beam
! Combined flux in latest and established models = 0.820129 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 58 components and 0.820129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235036Jy  sigma=0.001851
! Fit after  self-cal, rms=0.235042Jy  sigma=0.001851
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.000342236 Jy
! Component: 100  -  total flux cleaned = -0.000378763 Jy
! Component: 150  -  total flux cleaned = -0.000377757 Jy
! Component: 200  -  total flux cleaned = -0.00037695 Jy
! Total flux subtracted in 200 components = -0.00037695 Jy
! Clean residual min=-0.004177 max=0.004176 Jy/beam
! Clean residual mean=0.000079 rms=0.001064 Jy/beam
! Combined flux in latest and established models = 0.819752 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 59 components and 0.819752 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235029Jy  sigma=0.001851
! Fit after  self-cal, rms=0.235033Jy  sigma=0.001851
! 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.235033Jy  sigma=0.001851
! Fit after  self-cal, rms=0.235566Jy  sigma=0.001851
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.274 mas, bmaj=10.77 mas, bpa=59.52 degrees
! Estimated noise=572.711 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00101842 Jy
! Component: 100  -  total flux cleaned = -0.00106402 Jy
! Component: 150  -  total flux cleaned = -0.00110053 Jy
! Component: 200  -  total flux cleaned = -0.00112962 Jy
! Total flux subtracted in 200 components = -0.00112962 Jy
! Clean residual min=-0.004809 max=0.005525 Jy/beam
! Clean residual mean=0.000193 rms=0.001588 Jy/beam
! Combined flux in latest and established models = 0.818623 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 63 components and 0.818622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235583Jy  sigma=0.001851
! Fit after  self-cal, rms=0.235548Jy  sigma=0.001851
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 = -6.84801e-05 Jy
! Component: 100  -  total flux cleaned = -0.000113803 Jy
! Component: 150  -  total flux cleaned = -0.000148133 Jy
! Component: 200  -  total flux cleaned = -0.000174942 Jy
! Total flux subtracted in 200 components = -0.000174942 Jy
! Clean residual min=-0.004813 max=0.005549 Jy/beam
! Clean residual mean=0.000198 rms=0.001587 Jy/beam
! Combined flux in latest and established models = 0.818448 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 64 components and 0.818448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235564Jy  sigma=0.001851
! Fit after  self-cal, rms=0.235550Jy  sigma=0.001851
! 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.888 mas, bmaj=3.796 mas, bpa=-4.39 degrees
! Estimated noise=435.2 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.888 x 3.796 at -4.39 degrees (North through East)
! Clean map  min=-0.0039305  max=0.69557 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.235550Jy  sigma=0.001851
! Fit after  self-cal, rms=0.236022Jy  sigma=0.001613
! Inverting map and beam 
! Estimated beam: bmin=2.89 mas, bmaj=3.793 mas, bpa=-4.696 degrees
! Estimated noise=434.372 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00178442 Jy
! Component: 100  -  total flux cleaned = -0.00211406 Jy
! Component: 150  -  total flux cleaned = -0.0023887 Jy
! Component: 200  -  total flux cleaned = -0.00261563 Jy
! Total flux subtracted in 200 components = -0.00261563 Jy
! Clean residual min=-0.003389 max=0.003675 Jy/beam
! Clean residual mean=0.000055 rms=0.000952 Jy/beam
! Combined flux in latest and established models = 0.815832 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 64 components and 0.815832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235988Jy  sigma=0.001613
! Fit after  self-cal, rms=0.235992Jy  sigma=0.001613
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000163677 Jy
! Component: 100  -  total flux cleaned = -0.000234778 Jy
! Component: 150  -  total flux cleaned = -0.000297583 Jy
! Component: 200  -  total flux cleaned = -0.000325653 Jy
! Total flux subtracted in 200 components = -0.000325653 Jy
! Clean residual min=-0.003358 max=0.003670 Jy/beam
! Clean residual mean=0.000059 rms=0.000950 Jy/beam
! Combined flux in latest and established models = 0.815506 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 64 components and 0.815506 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235982Jy  sigma=0.001613
! Fit after  self-cal, rms=0.235982Jy  sigma=0.001613
! 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.235982Jy  sigma=0.001613
! Fit after  self-cal, rms=0.236623Jy  sigma=0.001612
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.317 mas, bmaj=2.876 mas, bpa=-4.844 degrees
! Estimated noise=819.958 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.516119 Jy
! Component: 100  -  total flux cleaned = 0.670737 Jy
! Component: 150  -  total flux cleaned = 0.735909 Jy
! Component: 200  -  total flux cleaned = 0.767693 Jy
! Total flux subtracted in 200 components = 0.767693 Jy
! Clean residual min=-0.007639 max=0.015658 Jy/beam
! Clean residual mean=0.000099 rms=0.001863 Jy/beam
! Combined flux in latest and established models = 0.767693 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.767693 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.899 mas, bmaj=3.799 mas, bpa=-4.675 degrees
! Estimated noise=434.647 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.0268111 Jy
! Component: 100  -  total flux cleaned = 0.0382864 Jy
! Component: 150  -  total flux cleaned = 0.0435499 Jy
! Component: 200  -  total flux cleaned = 0.0440635 Jy
! Total flux subtracted in 200 components = 0.0440635 Jy
! Clean residual min=-0.003743 max=0.004435 Jy/beam
! Clean residual mean=0.000084 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 0.811757 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 33 components and 0.811757 Jy
! Inverting map 
! Added new window around map position (1.5, 11.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00469119 Jy
! Component: 100  -  total flux cleaned = 0.0062658 Jy
! Component: 150  -  total flux cleaned = 0.00675148 Jy
! Component: 200  -  total flux cleaned = 0.0070152 Jy
! Total flux subtracted in 200 components = 0.0070152 Jy
! Clean residual min=-0.003494 max=0.003421 Jy/beam
! Clean residual mean=0.000012 rms=0.000898 Jy/beam
! Combined flux in latest and established models = 0.818772 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 47 components and 0.818772 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=9.288 mas, bmaj=10.78 mas, bpa=59.73 degrees
! Estimated noise=569.654 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000321208 Jy
! Component: 100  -  total flux cleaned = 0.000444421 Jy
! Component: 150  -  total flux cleaned = 0.000589982 Jy
! Component: 200  -  total flux cleaned = 0.000699345 Jy
! Total flux subtracted in 200 components = 0.000699345 Jy
! Clean residual min=-0.003991 max=0.003300 Jy/beam
! Clean residual mean=0.000016 rms=0.001188 Jy/beam
! Combined flux in latest and established models = 0.819471 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 = 8.40038e-05 Jy
! Component: 100  -  total flux cleaned = 0.000106688 Jy
! Component: 150  -  total flux cleaned = 8.82194e-05 Jy
! Component: 200  -  total flux cleaned = 8.81393e-05 Jy
! Total flux subtracted in 200 components = 8.81393e-05 Jy
! Clean residual min=-0.003973 max=0.003307 Jy/beam
! Clean residual mean=0.000015 rms=0.001182 Jy/beam
! Combined flux in latest and established models = 0.819559 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 55 components and 0.819559 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.899 mas, bmaj=3.799 mas, bpa=-4.675 degrees
! Estimated noise=434.647 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000400498 Jy
! Component: 100  -  total flux cleaned = 0.000482179 Jy
! Component: 150  -  total flux cleaned = 0.000625654 Jy
! Component: 200  -  total flux cleaned = 0.000820548 Jy
! Total flux subtracted in 200 components = 0.000820548 Jy
! Clean residual min=-0.003295 max=0.003190 Jy/beam
! Clean residual mean=-0.000004 rms=0.000866 Jy/beam
! Combined flux in latest and established models = 0.82038 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 58 components and 0.82038 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236632Jy  sigma=0.001613
! Fit after  self-cal, rms=0.236619Jy  sigma=0.001612
wmodel J0753+5352_S_2003_06_18_pus_map.mod
! Writing 58 model components to file: J0753+5352_S_2003_06_18_pus_map.mod
wobs J0753+5352_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0753+5352_S_2003_06_18_pus_uvs.fits
wwins J0753+5352_S_2003_06_18_pus_map.win
! wwins: Wrote 2 windows to J0753+5352_S_2003_06_18_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.000421059 Jy
! Component: 100  -  total flux cleaned = -0.000651256 Jy
! Component: 150  -  total flux cleaned = -0.000650532 Jy
! Component: 200  -  total flux cleaned = -0.000597432 Jy
! Component: 250  -  total flux cleaned = -0.000444941 Jy
! Component: 300  -  total flux cleaned = -0.000150498 Jy
! Component: 350  -  total flux cleaned = -7.69014e-06 Jy
! Component: 400  -  total flux cleaned = 0.000178709 Jy
! Component: 450  -  total flux cleaned = 0.000405455 Jy
! Component: 500  -  total flux cleaned = 0.000539281 Jy
! Component: 550  -  total flux cleaned = 0.000843821 Jy
! Component: 600  -  total flux cleaned = 0.00101427 Jy
! Component: 650  -  total flux cleaned = 0.00118181 Jy
! Component: 700  -  total flux cleaned = 0.00138852 Jy
! Component: 750  -  total flux cleaned = 0.00151088 Jy
! Component: 800  -  total flux cleaned = 0.00155125 Jy
! Component: 850  -  total flux cleaned = 0.00170954 Jy
! Component: 900  -  total flux cleaned = 0.00174869 Jy
! Component: 950  -  total flux cleaned = 0.00178767 Jy
! Component: 1000  -  total flux cleaned = 0.00186396 Jy
! Component: 1050  -  total flux cleaned = 0.00182647 Jy
! Component: 1100  -  total flux cleaned = 0.00186342 Jy
! Component: 1150  -  total flux cleaned = 0.00178997 Jy
! Component: 1200  -  total flux cleaned = 0.00182653 Jy
! Component: 1250  -  total flux cleaned = 0.00186193 Jy
! Component: 1300  -  total flux cleaned = 0.00182606 Jy
! Component: 1350  -  total flux cleaned = 0.00186134 Jy
! Component: 1400  -  total flux cleaned = 0.00189637 Jy
! Component: 1450  -  total flux cleaned = 0.00189671 Jy
! Component: 1500  -  total flux cleaned = 0.00199929 Jy
! Component: 1550  -  total flux cleaned = 0.0019991 Jy
! Component: 1600  -  total flux cleaned = 0.00203299 Jy
! Component: 1650  -  total flux cleaned = 0.00206648 Jy
! Component: 1700  -  total flux cleaned = 0.0020666 Jy
! Component: 1750  -  total flux cleaned = 0.00216449 Jy
! Component: 1800  -  total flux cleaned = 0.00209987 Jy
! Component: 1850  -  total flux cleaned = 0.00216434 Jy
! Component: 1900  -  total flux cleaned = 0.00222783 Jy
! Component: 1950  -  total flux cleaned = 0.00216454 Jy
! Component: 2000  -  total flux cleaned = 0.00219603 Jy
! Total flux subtracted in 2048 components = 0.00219595 Jy
! Clean residual min=-0.001971 max=0.001858 Jy/beam
! Clean residual mean=-0.000017 rms=0.000603 Jy/beam
! Combined flux in latest and established models = 0.822576 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 216 components and 0.822576 Jy
wmap "J0753+5352_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.899 x 3.799 at -4.675 degrees (North through East)
! Clean map  min=-0.0025132  max=0.69795 Jy/beam
! Writing clean map to FITS file: J0753+5352_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.697954 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000603272 
device "J0753+5352_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0753+5352_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.259303 0.259303 0.518606 1.03721 2.07442 4.14885 8.29769 16.5954 33.1908 66.3815
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.697 
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.899 x 3.799 at -4.675 degrees (North through East)
! Clean map  min=-0.0025132  max=0.69795 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0753+5352_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0753+5352_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0753+5352_S_2003_06_18_pus_uvs.log closed on Wed Jan 24 17:42:46 2007