! Started logfile: J0102+5824_S_2003_06_18_pus_uvs.log on Tue Jan 23 21:18:33 2007
obs J0102+5824_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0102+5824_S_2003_06_18_pus_uva.fits
! AN table 1: 31 integrations on 153 of 153 possible baselines.
! AN table 2: 74 integrations on 153 of 153 possible baselines.
! AN table 3: 20 integrations on 153 of 153 possible baselines.
! AN table 4: 98 integrations on 153 of 153 possible baselines.
! AN table 5: 83 integrations on 153 of 153 possible baselines.
! AN table 6: 58 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.127433 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0102+5824
! 
! 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 2425 lines of history.
! 
! Reading 28388 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 558 telescope corrections were flagged in sub-array 1.
!  A total of 938 telescope corrections were flagged in sub-array 2.
!  A total of 255 telescope corrections were flagged in sub-array 3.
!  A total of 1468 telescope corrections were flagged in sub-array 4.
!  A total of 794 telescope corrections were flagged in sub-array 5.
!  A total of 703 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 558 telescope corrections were flagged in sub-array 1.
!  A total of 938 telescope corrections were flagged in sub-array 2.
!  A total of 255 telescope corrections were flagged in sub-array 3.
!  A total of 1468 telescope corrections were flagged in sub-array 4.
!  A total of 794 telescope corrections were flagged in sub-array 5.
!  A total of 703 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 558 telescope corrections were flagged in sub-array 1.
!  A total of 949 telescope corrections were flagged in sub-array 2.
!  A total of 255 telescope corrections were flagged in sub-array 3.
!  A total of 1493 telescope corrections were flagged in sub-array 4.
!  A total of 794 telescope corrections were flagged in sub-array 5.
!  A total of 703 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 558 telescope corrections were flagged in sub-array 1.
!  A total of 949 telescope corrections were flagged in sub-array 2.
!  A total of 255 telescope corrections were flagged in sub-array 3.
!  A total of 1493 telescope corrections were flagged in sub-array 4.
!  A total of 794 telescope corrections were flagged in sub-array 5.
!  A total of 703 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=1.623979Jy  sigma=0.016517
! Fit after  self-cal, rms=1.167602Jy  sigma=0.011648
! 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.698 mas, bmaj=2.809 mas, bpa=-6.086 degrees
! Estimated noise=779.221 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 = 1.38982 Jy
! Component: 100  -  total flux cleaned = 1.77756 Jy
! Total flux subtracted in 100 components = 1.77756 Jy
! Clean residual min=-0.047543 max=0.172758 Jy/beam
! Clean residual mean=0.000491 rms=0.014897 Jy/beam
! Combined flux in latest and established models = 1.77756 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.77756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.662597Jy  sigma=0.005612
! Fit after  self-cal, rms=0.662397Jy  sigma=0.005612
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.190104 Jy
! Component: 100  -  total flux cleaned = 0.305154 Jy
! Total flux subtracted in 100 components = 0.305154 Jy
! Clean residual min=-0.039279 max=0.061542 Jy/beam
! Clean residual mean=0.000173 rms=0.011186 Jy/beam
! Combined flux in latest and established models = 2.08271 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 19 components and 2.08271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.577433Jy  sigma=0.004216
! Fit after  self-cal, rms=0.577345Jy  sigma=0.004216
! 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.22 mas, bmaj=3.608 mas, bpa=-14.83 degrees
! Estimated noise=438.603 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.113307 Jy
! Component: 100  -  total flux cleaned = 0.166517 Jy
! Component: 150  -  total flux cleaned = 0.192958 Jy
! Component: 200  -  total flux cleaned = 0.196955 Jy
! Total flux subtracted in 200 components = 0.196955 Jy
! Clean residual min=-0.037682 max=0.061311 Jy/beam
! Clean residual mean=0.001013 rms=0.012392 Jy/beam
! Combined flux in latest and established models = 2.27966 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 29 components and 2.27966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.564674Jy  sigma=0.003815
! Fit after  self-cal, rms=0.564610Jy  sigma=0.003814
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   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 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GG        1.00*    HN        0.92     
!   KK        0.98     KP        0.96     LA        0.96     MA        1.00*    
!   MK        1.00     NL        1.00     ON        1.04     OV        0.86     
!   PT        0.97     SC        0.94     TC        1.00*    TS        0.95     
!   WF        1.28     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.09     FD        1.00*    GG        1.00*    HN        0.91     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        0.97     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        0.93     TC        1.00*    TS        1.01     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     GG        1.00*    HN        0.92     
!   KK        1.00*    KP        0.99     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        1.03     ON        5.73     OV        1.13     
!   PT        1.00*    SC        0.93     TC        1.00*    TS        1.06     
!   WF        1.10     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.99     GG        1.00*    HN        0.93     
!   KK        1.00*    KP        1.00     LA        0.99     MA        1.00*    
!   MK        1.00*    NL        0.99     ON        1.07     OV        1.52     
!   PT        0.99     SC        0.93     TC        1.00*    TS        1.10     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.99     FD        1.00*    GG        1.00*    HN        0.93     
!   KK        1.00*    KP        1.00*    LA        1.13     MA        1.00*    
!   MK        1.00*    NL        1.27     ON        1.10     OV        0.98     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.99     
!   WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   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 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.00     GG        1.00*    HN        1.06     
!   KK        0.99     KP        1.02     LA        0.96     MA        1.00*    
!   MK        1.02     NL        0.97     ON        0.99     OV        0.94     
!   PT        0.96     SC        0.95     TC        1.00*    TS        0.93     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        0.92     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        0.96     TC        1.00*    TS        0.99     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.99     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.04     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        0.95     ON        5.70     OV        1.01     
!   PT        1.00*    SC        0.94     TC        1.00*    TS        1.05     
!   WF        0.96     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        0.99     GG        1.00*    HN        0.97     
!   KK        1.00*    KP        1.06     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        0.93     ON        1.00     OV        1.28     
!   PT        0.98     SC        0.94     TC        1.00*    TS        1.08     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.93     FD        1.00*    GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00*    LA        1.11     MA        1.00*    
!   MK        1.00*    NL        1.15     ON        1.03     OV        0.72     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.98     
!   WF        0.96     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   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 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.97     GG        1.00*    HN        1.01     
!   KK        1.00     KP        0.98     LA        0.90     MA        1.00*    
!   MK        0.97     NL        0.93     ON        0.94     OV        0.97     
!   PT        0.96     SC        1.09     TC        1.00*    TS        0.94     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        0.91     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.10     TC        1.00*    TS        0.99     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.97     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        0.99     LA        0.93     MA        1.00*    
!   MK        1.00*    NL        0.95     ON        0.98     OV        1.05     
!   PT        1.00*    SC        1.06     TC        1.00*    TS        1.04     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.95     FD        0.99     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.02     LA        0.93     MA        1.00*    
!   MK        1.00*    NL        0.93     ON        0.96     OV        2.20     
!   PT        0.97     SC        1.09     TC        1.00*    TS        1.07     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.94     FD        1.00*    GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.00*    LA        1.05     MA        1.00*    
!   MK        1.00*    NL        1.13     ON        1.02     OV        0.78     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.95     
!   WF        0.93     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   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 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.89     FD        0.99     GG        1.00*    HN        0.84     
!   KK        1.01     KP        1.00     LA        0.95     MA        1.00*    
!   MK        0.92     NL        0.97     ON        0.95     OV        0.91     
!   PT        1.00     SC        1.10     TC        1.00*    TS        0.91     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.00*    GG        1.00*    HN        0.84     
!   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.11     TC        1.00*    TS        0.97     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.99     GG        1.00*    HN        0.82     
!   KK        1.00*    KP        1.01     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.02     OV        0.99     
!   PT        1.00*    SC        1.13     TC        1.00*    TS        1.02     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.91     FD        0.98     GG        1.00*    HN        0.94     
!   KK        1.00*    KP        1.03     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        0.97     ON        0.99     OV        2.46     
!   PT        1.01     SC        1.08     TC        1.00*    TS        1.06     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.90     FD        1.00*    GG        1.00*    HN        0.96     
!   KK        1.00*    KP        1.00*    LA        1.09     MA        1.00*    
!   MK        1.00*    NL        1.14     ON        1.07     OV        0.89     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.94     
!   WF        0.94     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.564610Jy  sigma=0.003814
! Fit after  self-cal, rms=0.674609Jy  sigma=0.002416
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.245 mas, bmaj=3.677 mas, bpa=-15.7 degrees
! Estimated noise=442.023 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.0162542 Jy
! Component: 100  -  total flux cleaned = -0.0167109 Jy
! Component: 150  -  total flux cleaned = -0.0166917 Jy
! Component: 200  -  total flux cleaned = -0.0167006 Jy
! Total flux subtracted in 200 components = -0.0167006 Jy
! Clean residual min=-0.016649 max=0.016516 Jy/beam
! Clean residual mean=0.000075 rms=0.003673 Jy/beam
! Combined flux in latest and established models = 2.26296 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 31 components and 2.26296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.673731Jy  sigma=0.002402
! Fit after  self-cal, rms=0.674192Jy  sigma=0.002401
! 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.674192Jy  sigma=0.002401
! Fit after  self-cal, rms=0.710025Jy  sigma=0.002241
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.253 mas, bmaj=3.689 mas, bpa=-15.96 degrees
! Estimated noise=441.739 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00996858 Jy
! Component: 100  -  total flux cleaned = -0.00996802 Jy
! Component: 150  -  total flux cleaned = -0.00993533 Jy
! Component: 200  -  total flux cleaned = -0.00990449 Jy
! Total flux subtracted in 200 components = -0.00990449 Jy
! Clean residual min=-0.013525 max=0.013617 Jy/beam
! Clean residual mean=0.000413 rms=0.002855 Jy/beam
! Combined flux in latest and established models = 2.25306 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 32 components and 2.25306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.709474Jy  sigma=0.002231
! Fit after  self-cal, rms=0.709714Jy  sigma=0.002230
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 (-6, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113445 Jy
! Component: 100  -  total flux cleaned = 0.0123139 Jy
! Component: 150  -  total flux cleaned = 0.0125683 Jy
! Component: 200  -  total flux cleaned = 0.0127868 Jy
! Total flux subtracted in 200 components = 0.0127868 Jy
! Clean residual min=-0.013604 max=0.008902 Jy/beam
! Clean residual mean=0.000188 rms=0.002743 Jy/beam
! Combined flux in latest and established models = 2.26585 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 47 components and 2.26585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.709320Jy  sigma=0.002221
! Fit after  self-cal, rms=0.709275Jy  sigma=0.002220
! 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.709275Jy  sigma=0.002220
! Fit after  self-cal, rms=0.695240Jy  sigma=0.002076
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.261 mas, bmaj=3.697 mas, bpa=-15.99 degrees
! Estimated noise=441.694 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0016634 Jy
! Component: 100  -  total flux cleaned = -0.00139088 Jy
! Component: 150  -  total flux cleaned = -0.00184462 Jy
! Component: 200  -  total flux cleaned = -0.00203989 Jy
! Total flux subtracted in 200 components = -0.00203989 Jy
! Clean residual min=-0.007609 max=0.006582 Jy/beam
! Clean residual mean=0.000268 rms=0.001591 Jy/beam
! Combined flux in latest and established models = 2.26381 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 57 components and 2.26381 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.694906Jy  sigma=0.002069
! Fit after  self-cal, rms=0.694915Jy  sigma=0.002069
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.00178958 Jy
! Component: 100  -  total flux cleaned = 0.00126947 Jy
! Component: 150  -  total flux cleaned = 0.00126948 Jy
! Component: 200  -  total flux cleaned = 0.00111641 Jy
! Total flux subtracted in 200 components = 0.00111641 Jy
! Clean residual min=-0.007319 max=0.006475 Jy/beam
! Clean residual mean=0.000249 rms=0.001558 Jy/beam
! Combined flux in latest and established models = 2.26492 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 61 components and 2.26492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.694791Jy  sigma=0.002067
! Fit after  self-cal, rms=0.694782Jy  sigma=0.002067
! 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.694782Jy  sigma=0.002067
! Fit after  self-cal, rms=0.697293Jy  sigma=0.002063
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.941 mas, bmaj=10.56 mas, bpa=-71 degrees
! Estimated noise=617.809 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00156339 Jy
! Component: 100  -  total flux cleaned = -0.00184948 Jy
! Component: 150  -  total flux cleaned = -0.00203703 Jy
! Component: 200  -  total flux cleaned = -0.00210622 Jy
! Total flux subtracted in 200 components = -0.00210622 Jy
! Clean residual min=-0.005808 max=0.007245 Jy/beam
! Clean residual mean=0.000500 rms=0.001990 Jy/beam
! Combined flux in latest and established models = 2.26282 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 75 components and 2.26281 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.697182Jy  sigma=0.002062
! Fit after  self-cal, rms=0.697204Jy  sigma=0.002061
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.000498256 Jy
! Component: 100  -  total flux cleaned = 0.000503677 Jy
! Component: 150  -  total flux cleaned = 0.000503639 Jy
! Component: 200  -  total flux cleaned = 0.00045125 Jy
! Total flux subtracted in 200 components = 0.00045125 Jy
! Clean residual min=-0.005741 max=0.007220 Jy/beam
! Clean residual mean=0.000482 rms=0.002006 Jy/beam
! Combined flux in latest and established models = 2.26327 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 87 components and 2.26327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.697199Jy  sigma=0.002061
! Fit after  self-cal, rms=0.697200Jy  sigma=0.002061
! 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.268 mas, bmaj=3.702 mas, bpa=-16.09 degrees
! Estimated noise=441.435 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.268 x 3.702 at -16.09 degrees (North through East)
! Clean map  min=-0.00651  max=1.9346 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.697200Jy  sigma=0.002061
! Fit after  self-cal, rms=1.186783Jy  sigma=0.001749
! Inverting map and beam 
! Estimated beam: bmin=2.269 mas, bmaj=3.707 mas, bpa=-16.2 degrees
! Estimated noise=441.084 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00260055 Jy
! Component: 100  -  total flux cleaned = -0.00318645 Jy
! Component: 150  -  total flux cleaned = -0.00302863 Jy
! Component: 200  -  total flux cleaned = -0.00317114 Jy
! Total flux subtracted in 200 components = -0.00317114 Jy
! Clean residual min=-0.006114 max=0.005446 Jy/beam
! Clean residual mean=0.000236 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 2.26009 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 90 components and 2.26009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.186709Jy  sigma=0.001746
! Fit after  self-cal, rms=1.186622Jy  sigma=0.001746
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00091738 Jy
! Component: 100  -  total flux cleaned = 0.000792817 Jy
! Component: 150  -  total flux cleaned = 0.000800669 Jy
! Component: 200  -  total flux cleaned = 0.000798666 Jy
! Total flux subtracted in 200 components = 0.000798666 Jy
! Clean residual min=-0.006122 max=0.005049 Jy/beam
! Clean residual mean=0.000222 rms=0.001263 Jy/beam
! Combined flux in latest and established models = 2.26089 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 93 components and 2.26089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.186582Jy  sigma=0.001745
! Fit after  self-cal, rms=1.186548Jy  sigma=0.001745
! 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.186548Jy  sigma=0.001745
! Fit after  self-cal, rms=1.190148Jy  sigma=0.001743
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.718 mas, bmaj=2.848 mas, bpa=-6.909 degrees
! Estimated noise=803.481 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.41567 Jy
! Component: 100  -  total flux cleaned = 1.78198 Jy
! Component: 150  -  total flux cleaned = 1.95462 Jy
! Component: 200  -  total flux cleaned = 2.05224 Jy
! Total flux subtracted in 200 components = 2.05224 Jy
! Clean residual min=-0.017289 max=0.050597 Jy/beam
! Clean residual mean=0.000238 rms=0.004357 Jy/beam
! Combined flux in latest and established models = 2.05224 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 17 model components to the UV plane model.
! The established model now contains 17 components and 2.05224 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.274 mas, bmaj=3.712 mas, bpa=-16.28 degrees
! Estimated noise=441.165 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.0944915 Jy
! Component: 100  -  total flux cleaned = 0.141189 Jy
! Component: 150  -  total flux cleaned = 0.167648 Jy
! Component: 200  -  total flux cleaned = 0.183505 Jy
! Total flux subtracted in 200 components = 0.183505 Jy
! Clean residual min=-0.006037 max=0.008203 Jy/beam
! Clean residual mean=0.000600 rms=0.001502 Jy/beam
! Combined flux in latest and established models = 2.23575 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 48 components and 2.23575 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00999336 Jy
! Component: 100  -  total flux cleaned = 0.0166371 Jy
! Component: 150  -  total flux cleaned = 0.0191816 Jy
! Component: 200  -  total flux cleaned = 0.0200257 Jy
! Total flux subtracted in 200 components = 0.0200257 Jy
! Clean residual min=-0.005878 max=0.005453 Jy/beam
! Clean residual mean=0.000246 rms=0.001281 Jy/beam
! Combined flux in latest and established models = 2.25577 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 59 components and 2.25577 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=7.934 mas, bmaj=10.56 mas, bpa=-70.72 degrees
! Estimated noise=616.116 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00336992 Jy
! Component: 100  -  total flux cleaned = 0.00375534 Jy
! Component: 150  -  total flux cleaned = 0.00387222 Jy
! Component: 200  -  total flux cleaned = 0.00396537 Jy
! Total flux subtracted in 200 components = 0.00396537 Jy
! Clean residual min=-0.003894 max=0.006751 Jy/beam
! Clean residual mean=0.000471 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 2.25974 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)
! Added new window around map position (-62, 29).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00580157 Jy
! Component: 100  -  total flux cleaned = 0.00836262 Jy
! Component: 150  -  total flux cleaned = 0.00881101 Jy
! Component: 200  -  total flux cleaned = 0.00904877 Jy
! Total flux subtracted in 200 components = 0.00904877 Jy
! Clean residual min=-0.003958 max=0.004490 Jy/beam
! Clean residual mean=0.000180 rms=0.001364 Jy/beam
! Combined flux in latest and established models = 2.26879 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 109 components and 2.26879 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.274 mas, bmaj=3.712 mas, bpa=-16.28 degrees
! Estimated noise=441.165 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00142587 Jy
! Component: 100  -  total flux cleaned = -0.0014178 Jy
! Component: 150  -  total flux cleaned = -0.00113953 Jy
! Component: 200  -  total flux cleaned = -0.00127459 Jy
! Total flux subtracted in 200 components = -0.00127459 Jy
! Clean residual min=-0.005808 max=0.004990 Jy/beam
! Clean residual mean=0.000092 rms=0.001215 Jy/beam
! Combined flux in latest and established models = 2.26751 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 125 components and 2.26751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.190110Jy  sigma=0.001744
! Fit after  self-cal, rms=1.189867Jy  sigma=0.001743
wmodel J0102+5824_S_2003_06_18_pus_map.mod
! Writing 125 model components to file: J0102+5824_S_2003_06_18_pus_map.mod
wobs J0102+5824_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0102+5824_S_2003_06_18_pus_uvs.fits
wwins J0102+5824_S_2003_06_18_pus_map.win
! wwins: Wrote 3 windows to J0102+5824_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.00149925 Jy
! Component: 100  -  total flux cleaned = -0.00213655 Jy
! Component: 150  -  total flux cleaned = -0.00282469 Jy
! Component: 200  -  total flux cleaned = -0.00323527 Jy
! Component: 250  -  total flux cleaned = -0.00347512 Jy
! Component: 300  -  total flux cleaned = -0.00355342 Jy
! Component: 350  -  total flux cleaned = -0.00362953 Jy
! Component: 400  -  total flux cleaned = -0.00385158 Jy
! Component: 450  -  total flux cleaned = -0.00406778 Jy
! Component: 500  -  total flux cleaned = -0.00420761 Jy
! Component: 550  -  total flux cleaned = -0.00420716 Jy
! Component: 600  -  total flux cleaned = -0.00420685 Jy
! Component: 650  -  total flux cleaned = -0.00400512 Jy
! Component: 700  -  total flux cleaned = -0.00387309 Jy
! Component: 750  -  total flux cleaned = -0.00374346 Jy
! Component: 800  -  total flux cleaned = -0.00367934 Jy
! Component: 850  -  total flux cleaned = -0.00355194 Jy
! Component: 900  -  total flux cleaned = -0.0033637 Jy
! Component: 950  -  total flux cleaned = -0.00330184 Jy
! Component: 1000  -  total flux cleaned = -0.00311734 Jy
! Component: 1050  -  total flux cleaned = -0.00317855 Jy
! Component: 1100  -  total flux cleaned = -0.0030576 Jy
! Component: 1150  -  total flux cleaned = -0.00311751 Jy
! Component: 1200  -  total flux cleaned = -0.00299848 Jy
! Component: 1250  -  total flux cleaned = -0.00299859 Jy
! Component: 1300  -  total flux cleaned = -0.00294051 Jy
! Component: 1350  -  total flux cleaned = -0.00288285 Jy
! Component: 1400  -  total flux cleaned = -0.00288332 Jy
! Component: 1450  -  total flux cleaned = -0.00294007 Jy
! Component: 1500  -  total flux cleaned = -0.00288361 Jy
! Component: 1550  -  total flux cleaned = -0.00282798 Jy
! Component: 1600  -  total flux cleaned = -0.00288308 Jy
! Component: 1650  -  total flux cleaned = -0.00282809 Jy
! Component: 1700  -  total flux cleaned = -0.00271919 Jy
! Component: 1750  -  total flux cleaned = -0.00266528 Jy
! Component: 1800  -  total flux cleaned = -0.00261189 Jy
! Component: 1850  -  total flux cleaned = -0.00266467 Jy
! Component: 1900  -  total flux cleaned = -0.00255879 Jy
! Component: 1950  -  total flux cleaned = -0.00250619 Jy
! Component: 2000  -  total flux cleaned = -0.00245414 Jy
! Total flux subtracted in 2048 components = -0.00240253 Jy
! Clean residual min=-0.003065 max=0.002964 Jy/beam
! Clean residual mean=0.000113 rms=0.000914 Jy/beam
! Combined flux in latest and established models = 2.26511 Jy
keep
! Adding 142 model components to the UV plane model.
! The established model now contains 267 components and 2.26511 Jy
wmap "J0102+5824_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.274 x 3.712 at -16.28 degrees (North through East)
! Clean map  min=-0.0046978  max=1.9358 Jy/beam
! Writing clean map to FITS file: J0102+5824_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 1.93578 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00091511 
device "J0102+5824_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0102+5824_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.141821 0.141821 0.283641 0.567283 1.13457 2.26913 4.53826 9.07652 18.153 36.3061 72.6122
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0027 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.935 
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.274 x 3.712 at -16.28 degrees (North through East)
! Clean map  min=-0.0046978  max=1.9358 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0102+5824_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0102+5824_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0102+5824_S_2003_06_18_pus_uvs.log closed on Tue Jan 23 21:20:30 2007