! Started logfile: J1130+3815_S_2003_06_18_pus_uvs.log on Tue Jan 23 22:35:12 2007
obs J1130+3815_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J1130+3815_S_2003_06_18_pus_uva.fits
! AN table 1: 148 integrations on 153 of 153 possible baselines.
! AN table 2: 17 integrations on 153 of 153 possible baselines.
! AN table 3: 14 integrations on 153 of 153 possible baselines.
! AN table 4: 44 integrations on 153 of 153 possible baselines.
! AN table 5: 67 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.084449 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1130+3815
! 
! 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 14988 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 2033 telescope corrections were flagged in sub-array 1.
!  A total of 306 telescope corrections were flagged in sub-array 2.
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  A total of 722 telescope corrections were flagged in sub-array 4.
!  A total of 881 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 2033 telescope corrections were flagged in sub-array 1.
!  A total of 306 telescope corrections were flagged in sub-array 2.
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  A total of 722 telescope corrections were flagged in sub-array 4.
!  A total of 881 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 2051 telescope corrections were flagged in sub-array 1.
!  A total of 306 telescope corrections were flagged in sub-array 2.
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  A total of 722 telescope corrections were flagged in sub-array 4.
!  A total of 881 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 2051 telescope corrections were flagged in sub-array 1.
!  A total of 306 telescope corrections were flagged in sub-array 2.
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  A total of 722 telescope corrections were flagged in sub-array 4.
!  A total of 881 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.776679Jy  sigma=0.008442
! Fit after  self-cal, rms=0.455884Jy  sigma=0.003936
! 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.951 mas, bmaj=4.101 mas, bpa=6.311 degrees
! Estimated noise=852.595 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.592397 Jy
! Component: 100  -  total flux cleaned = 0.742543 Jy
! Total flux subtracted in 100 components = 0.742543 Jy
! Clean residual min=-0.026988 max=0.062179 Jy/beam
! Clean residual mean=-0.000012 rms=0.008093 Jy/beam
! Combined flux in latest and established models = 0.742543 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.742543 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407453Jy  sigma=0.002880
! Fit after  self-cal, rms=0.407212Jy  sigma=0.002879
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0656123 Jy
! Component: 100  -  total flux cleaned = 0.10357 Jy
! Total flux subtracted in 100 components = 0.10357 Jy
! Clean residual min=-0.024690 max=0.023778 Jy/beam
! Clean residual mean=-0.000044 rms=0.006671 Jy/beam
! Combined flux in latest and established models = 0.846112 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 20 components and 0.846112 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396827Jy  sigma=0.002684
! Fit after  self-cal, rms=0.396611Jy  sigma=0.002684
! 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.459 mas, bmaj=4.694 mas, bpa=2.611 degrees
! Estimated noise=509.972 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.0139596 Jy
! Component: 100  -  total flux cleaned = 0.0201433 Jy
! Component: 150  -  total flux cleaned = 0.021011 Jy
! Component: 200  -  total flux cleaned = 0.0210186 Jy
! Total flux subtracted in 200 components = 0.0210186 Jy
! Clean residual min=-0.025563 max=0.022659 Jy/beam
! Clean residual mean=0.000262 rms=0.006387 Jy/beam
! Combined flux in latest and established models = 0.867131 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 28 components and 0.867131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395820Jy  sigma=0.002674
! Fit after  self-cal, rms=0.395843Jy  sigma=0.002674
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00     GG        1.00*    HN        0.97     
!   KK        0.93     KP        1.02     LA        1.01     MA        1.00*    
!   MK        0.98     NL        1.02     ON        1.02     OV        1.26     
!   PT        0.99     SC        0.85     TC        1.00*    TS        1.04     
!   WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 33 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*    
!   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 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.12     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.07     OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.99     
!   WF        0.53     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.98     GG        1.00*    HN        0.91     
!   KK        1.04     KP        1.00     LA        0.99     MA        1.00*    
!   MK        0.98     NL        0.93     ON        1.00*    OV        0.69     
!   PT        0.97     SC        1.02     TC        1.00*    TS        1.04     
!   WF        1.12     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GG        1.00*    HN        1.02     
!   KK        1.00     KP        1.09     LA        1.02     MA        1.00*    
!   MK        1.04     NL        1.00     ON        0.99     OV        1.17     
!   PT        0.98     SC        0.88     TC        1.00*    TS        1.02     
!   WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 33 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*    
!   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 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.22     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.21     OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.26     
!   WF        1.07     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        0.96     GG        1.00*    HN        1.03     
!   KK        1.06     KP        1.00     LA        1.00     MA        1.00*    
!   MK        1.11     NL        0.89     ON        1.00*    OV        0.81     
!   PT        0.95     SC        1.04     TC        1.00*    TS        1.04     
!   WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GG        1.00*    HN        1.02     
!   KK        1.07     KP        1.05     LA        0.96     MA        1.00*    
!   MK        1.03     NL        1.00     ON        1.03     OV        1.23     
!   PT        1.01     SC        1.00     TC        1.00*    TS        1.07     
!   WF        1.06     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 33 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*    
!   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 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.16     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        3.68     OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.78     
!   WF        0.49     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        0.97     GG        1.00*    HN        1.03     
!   KK        1.00     KP        0.99     LA        0.93     MA        1.00*    
!   MK        1.09     NL        0.90     ON        1.00*    OV        0.77     
!   PT        0.95     SC        1.02     TC        1.00*    TS        1.07     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.03     GG        1.00*    HN        1.06     
!   KK        1.07     KP        1.06     LA        1.01     MA        1.00*    
!   MK        0.97     NL        1.03     ON        1.06     OV        1.20     
!   PT        1.06     SC        1.01     TC        1.00*    TS        1.06     
!   WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 33 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*    
!   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 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.09     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        0.98     OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.10     
!   WF        1.38     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.92     FD        0.97     GG        1.00*    HN        0.84     
!   KK        1.01     KP        1.02     LA        1.00     MA        1.00*    
!   MK        1.02     NL        0.95     ON        1.00*    OV        0.64     
!   PT        1.03     SC        1.04     TC        1.00*    TS        1.06     
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.395843Jy  sigma=0.002674
! Fit after  self-cal, rms=0.260820Jy  sigma=0.002349
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.512 mas, bmaj=4.767 mas, bpa=1.576 degrees
! Estimated noise=517.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)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0051159 Jy
! Component: 100  -  total flux cleaned = 0.0052955 Jy
! Component: 150  -  total flux cleaned = 0.00543653 Jy
! Component: 200  -  total flux cleaned = 0.00531233 Jy
! Total flux subtracted in 200 components = 0.00531233 Jy
! Clean residual min=-0.007738 max=0.009774 Jy/beam
! Clean residual mean=0.000437 rms=0.002170 Jy/beam
! Combined flux in latest and established models = 0.872443 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 36 components and 0.872443 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260534Jy  sigma=0.002346
! Fit after  self-cal, rms=0.260995Jy  sigma=0.002345
! 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.260995Jy  sigma=0.002345
! Fit after  self-cal, rms=0.261825Jy  sigma=0.002333
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.516 mas, bmaj=4.759 mas, bpa=1.407 degrees
! Estimated noise=518.92 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00378223 Jy
! Component: 100  -  total flux cleaned = 0.00391432 Jy
! Component: 150  -  total flux cleaned = 0.0040179 Jy
! Component: 200  -  total flux cleaned = 0.00392564 Jy
! Total flux subtracted in 200 components = 0.00392564 Jy
! Clean residual min=-0.006987 max=0.009619 Jy/beam
! Clean residual mean=0.000394 rms=0.001912 Jy/beam
! Combined flux in latest and established models = 0.876369 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 37 components and 0.876369 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261669Jy  sigma=0.002332
! Fit after  self-cal, rms=0.261622Jy  sigma=0.002332
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 (-12, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00982961 Jy
! Component: 100  -  total flux cleaned = 0.0127623 Jy
! Component: 150  -  total flux cleaned = 0.0136826 Jy
! Component: 200  -  total flux cleaned = 0.0136837 Jy
! Total flux subtracted in 200 components = 0.0136837 Jy
! Clean residual min=-0.006367 max=0.007456 Jy/beam
! Clean residual mean=0.000243 rms=0.001707 Jy/beam
! Combined flux in latest and established models = 0.890053 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 53 components and 0.890052 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261186Jy  sigma=0.002324
! Fit after  self-cal, rms=0.261176Jy  sigma=0.002324
! Inverting map 
! Added new window around map position (60.5, -61).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00568453 Jy
! Component: 100  -  total flux cleaned = 0.00689869 Jy
! Component: 150  -  total flux cleaned = 0.007558 Jy
! Component: 200  -  total flux cleaned = 0.00803248 Jy
! Total flux subtracted in 200 components = 0.00803248 Jy
! Clean residual min=-0.006377 max=0.006934 Jy/beam
! Clean residual mean=0.000184 rms=0.001607 Jy/beam
! Combined flux in latest and established models = 0.898085 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 67 components and 0.898085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260949Jy  sigma=0.002321
! Fit after  self-cal, rms=0.260947Jy  sigma=0.002321
! Inverting map 
! Added new window around map position (-35.5, -24).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00565613 Jy
! Component: 100  -  total flux cleaned = 0.00664051 Jy
! Component: 150  -  total flux cleaned = 0.00723918 Jy
! Component: 200  -  total flux cleaned = 0.00790034 Jy
! Total flux subtracted in 200 components = 0.00790034 Jy
! Clean residual min=-0.005914 max=0.006342 Jy/beam
! Clean residual mean=0.000114 rms=0.001527 Jy/beam
! Combined flux in latest and established models = 0.905985 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 87 components and 0.905985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260722Jy  sigma=0.002318
! Fit after  self-cal, rms=0.260727Jy  sigma=0.002318
! 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.260727Jy  sigma=0.002318
! Fit after  self-cal, rms=0.262106Jy  sigma=0.002317
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.517 mas, bmaj=4.75 mas, bpa=1.394 degrees
! Estimated noise=519.845 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.004079 Jy
! Component: 100  -  total flux cleaned = 0.00510761 Jy
! Component: 150  -  total flux cleaned = 0.00579247 Jy
! Component: 200  -  total flux cleaned = 0.00621374 Jy
! Total flux subtracted in 200 components = 0.00621374 Jy
! Clean residual min=-0.006172 max=0.005991 Jy/beam
! Clean residual mean=0.000118 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 0.912199 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 105 components and 0.912199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261963Jy  sigma=0.002316
! Fit after  self-cal, rms=0.261974Jy  sigma=0.002316
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.000647463 Jy
! Component: 100  -  total flux cleaned = 0.000940773 Jy
! Component: 150  -  total flux cleaned = 0.00122123 Jy
! Component: 200  -  total flux cleaned = 0.00148857 Jy
! Total flux subtracted in 200 components = 0.00148857 Jy
! Clean residual min=-0.005942 max=0.005966 Jy/beam
! Clean residual mean=0.000103 rms=0.001444 Jy/beam
! Combined flux in latest and established models = 0.913688 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 108 components and 0.913688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261897Jy  sigma=0.002315
! Fit after  self-cal, rms=0.261899Jy  sigma=0.002315
! 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.261899Jy  sigma=0.002315
! Fit after  self-cal, rms=0.262704Jy  sigma=0.002314
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.818 mas, bmaj=9.353 mas, bpa=-13.36 degrees
! Estimated noise=724.85 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00375866 Jy
! Component: 100  -  total flux cleaned = 0.00435987 Jy
! Component: 150  -  total flux cleaned = 0.00455353 Jy
! Component: 200  -  total flux cleaned = 0.00447893 Jy
! Total flux subtracted in 200 components = 0.00447893 Jy
! Clean residual min=-0.005588 max=0.006274 Jy/beam
! Clean residual mean=0.000234 rms=0.001821 Jy/beam
! Combined flux in latest and established models = 0.918167 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 128 components and 0.918167 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262721Jy  sigma=0.002314
! Fit after  self-cal, rms=0.262716Jy  sigma=0.002314
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.000138347 Jy
! Component: 100  -  total flux cleaned = -0.000465177 Jy
! Component: 150  -  total flux cleaned = -0.000698694 Jy
! Component: 200  -  total flux cleaned = -0.00085688 Jy
! Total flux subtracted in 200 components = -0.00085688 Jy
! Clean residual min=-0.005442 max=0.006136 Jy/beam
! Clean residual mean=0.000248 rms=0.001788 Jy/beam
! Combined flux in latest and established models = 0.91731 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 138 components and 0.91731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262738Jy  sigma=0.002314
! Fit after  self-cal, rms=0.262735Jy  sigma=0.002314
! 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.518 mas, bmaj=4.748 mas, bpa=1.364 degrees
! Estimated noise=521.162 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.518 x 4.748 at 1.364 degrees (North through East)
! Clean map  min=-0.0083661  max=0.78293 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.262735Jy  sigma=0.002314
! Fit after  self-cal, rms=0.247679Jy  sigma=0.001963
! Inverting map and beam 
! Estimated beam: bmin=2.512 mas, bmaj=4.753 mas, bpa=1.442 degrees
! Estimated noise=520.119 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00284908 Jy
! Component: 100  -  total flux cleaned = -0.00411089 Jy
! Component: 150  -  total flux cleaned = -0.00482377 Jy
! Component: 200  -  total flux cleaned = -0.00538383 Jy
! Total flux subtracted in 200 components = -0.00538383 Jy
! Clean residual min=-0.003506 max=0.004831 Jy/beam
! Clean residual mean=0.000240 rms=0.001113 Jy/beam
! Combined flux in latest and established models = 0.911926 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 157 components and 0.911926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247598Jy  sigma=0.001962
! Fit after  self-cal, rms=0.247597Jy  sigma=0.001962
! Inverting map 
! Added new window around map position (-49, 49.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00388642 Jy
! Component: 100  -  total flux cleaned = 0.00408827 Jy
! Component: 150  -  total flux cleaned = 0.0037562 Jy
! Component: 200  -  total flux cleaned = 0.00344489 Jy
! Total flux subtracted in 200 components = 0.00344489 Jy
! Clean residual min=-0.003349 max=0.004206 Jy/beam
! Clean residual mean=0.000185 rms=0.001068 Jy/beam
! Combined flux in latest and established models = 0.915371 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 177 components and 0.915371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247498Jy  sigma=0.001960
! Fit after  self-cal, rms=0.247494Jy  sigma=0.001960
! 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.247494Jy  sigma=0.001960
! Fit after  self-cal, rms=0.247348Jy  sigma=0.001960
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.016 mas, bmaj=4.19 mas, bpa=4.986 degrees
! Estimated noise=928.145 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.595102 Jy
! Component: 100  -  total flux cleaned = 0.734794 Jy
! Component: 150  -  total flux cleaned = 0.789822 Jy
! Component: 200  -  total flux cleaned = 0.819573 Jy
! Total flux subtracted in 200 components = 0.819573 Jy
! Clean residual min=-0.007944 max=0.015599 Jy/beam
! Clean residual mean=0.000084 rms=0.002425 Jy/beam
! Combined flux in latest and established models = 0.819573 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 31 model components to the UV plane model.
! The established model now contains 31 components and 0.819573 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.514 mas, bmaj=4.753 mas, bpa=1.443 degrees
! Estimated noise=519.752 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.029033 Jy
! Component: 100  -  total flux cleaned = 0.0451766 Jy
! Component: 150  -  total flux cleaned = 0.0557604 Jy
! Component: 200  -  total flux cleaned = 0.0636522 Jy
! Total flux subtracted in 200 components = 0.0636522 Jy
! Clean residual min=-0.004118 max=0.008127 Jy/beam
! Clean residual mean=0.000503 rms=0.001437 Jy/beam
! Combined flux in latest and established models = 0.883225 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 67 components and 0.883226 Jy
! Inverting map 
! Added new window around map position (-6, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00834267 Jy
! Component: 100  -  total flux cleaned = 0.0130475 Jy
! Component: 150  -  total flux cleaned = 0.0163195 Jy
! Component: 200  -  total flux cleaned = 0.0191777 Jy
! Total flux subtracted in 200 components = 0.0191777 Jy
! Clean residual min=-0.003781 max=0.004886 Jy/beam
! Clean residual mean=0.000303 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 0.902403 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 93 components and 0.902403 Jy
! Inverting map 
! Added new window around map position (-23.5, 44).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00393504 Jy
! Component: 100  -  total flux cleaned = 0.00541189 Jy
! Component: 150  -  total flux cleaned = 0.00626923 Jy
! Component: 200  -  total flux cleaned = 0.00706458 Jy
! Total flux subtracted in 200 components = 0.00706458 Jy
! Clean residual min=-0.003500 max=0.004479 Jy/beam
! Clean residual mean=0.000221 rms=0.001043 Jy/beam
! Combined flux in latest and established models = 0.909468 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 114 components and 0.909468 Jy
! Inverting map 
! Added new window around map position (34.5, -58.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00310942 Jy
! Component: 100  -  total flux cleaned = 0.0043229 Jy
! Component: 150  -  total flux cleaned = 0.00504085 Jy
! Component: 200  -  total flux cleaned = 0.00562368 Jy
! Total flux subtracted in 200 components = 0.00562368 Jy
! Clean residual min=-0.003250 max=0.004186 Jy/beam
! Clean residual mean=0.000141 rms=0.000987 Jy/beam
! Combined flux in latest and established models = 0.915092 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 134 components and 0.915092 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.813 mas, bmaj=9.342 mas, bpa=-13.26 degrees
! Estimated noise=724.232 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0026613 Jy
! Component: 100  -  total flux cleaned = 0.00401293 Jy
! Component: 150  -  total flux cleaned = 0.00458298 Jy
! Component: 200  -  total flux cleaned = 0.00509521 Jy
! Total flux subtracted in 200 components = 0.00509521 Jy
! Clean residual min=-0.003427 max=0.004799 Jy/beam
! Clean residual mean=0.000221 rms=0.001171 Jy/beam
! Combined flux in latest and established models = 0.920187 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.000208479 Jy
! Component: 100  -  total flux cleaned = 0.000452791 Jy
! Component: 150  -  total flux cleaned = 0.000679831 Jy
! Component: 200  -  total flux cleaned = 0.000894768 Jy
! Total flux subtracted in 200 components = 0.000894768 Jy
! Clean residual min=-0.003362 max=0.004719 Jy/beam
! Clean residual mean=0.000195 rms=0.001153 Jy/beam
! Combined flux in latest and established models = 0.921082 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 176 components and 0.921082 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.514 mas, bmaj=4.753 mas, bpa=1.443 degrees
! Estimated noise=519.752 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000850602 Jy
! Component: 100  -  total flux cleaned = -0.000763214 Jy
! Component: 150  -  total flux cleaned = -0.000598895 Jy
! Component: 200  -  total flux cleaned = -0.000369513 Jy
! Total flux subtracted in 200 components = -0.000369513 Jy
! Clean residual min=-0.003304 max=0.004005 Jy/beam
! Clean residual mean=0.000086 rms=0.000930 Jy/beam
! Combined flux in latest and established models = 0.920712 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 193 components and 0.920712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247173Jy  sigma=0.001957
! Fit after  self-cal, rms=0.247113Jy  sigma=0.001956
wmodel J1130+3815_S_2003_06_18_pus_map.mod
! Writing 193 model components to file: J1130+3815_S_2003_06_18_pus_map.mod
wobs J1130+3815_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J1130+3815_S_2003_06_18_pus_uvs.fits
wwins J1130+3815_S_2003_06_18_pus_map.win
! wwins: Wrote 8 windows to J1130+3815_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.00175182 Jy
! Component: 100  -  total flux cleaned = 0.00260609 Jy
! Component: 150  -  total flux cleaned = 0.00329262 Jy
! Component: 200  -  total flux cleaned = 0.00389326 Jy
! Component: 250  -  total flux cleaned = 0.00441923 Jy
! Component: 300  -  total flux cleaned = 0.00482871 Jy
! Component: 350  -  total flux cleaned = 0.00527552 Jy
! Component: 400  -  total flux cleaned = 0.00556672 Jy
! Component: 450  -  total flux cleaned = 0.0058524 Jy
! Component: 500  -  total flux cleaned = 0.00594602 Jy
! Component: 550  -  total flux cleaned = 0.00608464 Jy
! Component: 600  -  total flux cleaned = 0.0063112 Jy
! Component: 650  -  total flux cleaned = 0.00648925 Jy
! Component: 700  -  total flux cleaned = 0.00657693 Jy
! Component: 750  -  total flux cleaned = 0.00670673 Jy
! Component: 800  -  total flux cleaned = 0.00674993 Jy
! Component: 850  -  total flux cleaned = 0.00683483 Jy
! Component: 900  -  total flux cleaned = 0.00696042 Jy
! Component: 950  -  total flux cleaned = 0.00708422 Jy
! Component: 1000  -  total flux cleaned = 0.00708461 Jy
! Component: 1050  -  total flux cleaned = 0.00712585 Jy
! Component: 1100  -  total flux cleaned = 0.00716644 Jy
! Component: 1150  -  total flux cleaned = 0.00728525 Jy
! Component: 1200  -  total flux cleaned = 0.00736356 Jy
! Component: 1250  -  total flux cleaned = 0.00740214 Jy
! Component: 1300  -  total flux cleaned = 0.00744045 Jy
! Component: 1350  -  total flux cleaned = 0.00755451 Jy
! Component: 1400  -  total flux cleaned = 0.00759188 Jy
! Component: 1450  -  total flux cleaned = 0.00762927 Jy
! Component: 1500  -  total flux cleaned = 0.00766586 Jy
! Component: 1550  -  total flux cleaned = 0.00770238 Jy
! Component: 1600  -  total flux cleaned = 0.00770213 Jy
! Component: 1650  -  total flux cleaned = 0.00770242 Jy
! Component: 1700  -  total flux cleaned = 0.00773809 Jy
! Component: 1750  -  total flux cleaned = 0.00784382 Jy
! Component: 1800  -  total flux cleaned = 0.00773836 Jy
! Component: 1850  -  total flux cleaned = 0.00777334 Jy
! Component: 1900  -  total flux cleaned = 0.00777321 Jy
! Component: 1950  -  total flux cleaned = 0.00777341 Jy
! Component: 2000  -  total flux cleaned = 0.00784152 Jy
! Total flux subtracted in 2048 components = 0.00777396 Jy
! Clean residual min=-0.002107 max=0.002379 Jy/beam
! Clean residual mean=-0.000025 rms=0.000658 Jy/beam
! Combined flux in latest and established models = 0.928486 Jy
keep
! Adding 143 model components to the UV plane model.
! The established model now contains 336 components and 0.928486 Jy
wmap "J1130+3815_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.514 x 4.753 at 1.443 degrees (North through East)
! Clean map  min=-0.0042207  max=0.78256 Jy/beam
! Writing clean map to FITS file: J1130+3815_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.782555 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000656371 
device "J1130+3815_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J1130+3815_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.251626 0.251626 0.503252 1.0065 2.01301 4.02602 8.05204 16.1041 32.2081 64.4163
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.782 
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.514 x 4.753 at 1.443 degrees (North through East)
! Clean map  min=-0.0042207  max=0.78256 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1130+3815_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J1130+3815_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1130+3815_S_2003_06_18_pus_uvs.log closed on Tue Jan 23 22:36:56 2007