! Started logfile: J1048+7143_X_2003_05_07_pus_uvs.log on Thu Dec 14 15:23:39 2006
obs J1048+7143_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1048+7143_X_2003_05_07_pus_uva.fits
! AN table 1: 27 integrations on 171 of 171 possible baselines.
! AN table 2: 73 integrations on 171 of 171 possible baselines.
! AN table 3: 343 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.1182 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1048+7143
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1739 lines of history.
! 
! Reading 35816 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 = 256x256 pixels with 0.200x0.200 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 513 telescope corrections were flagged in sub-array 1.
!  A total of 1206 telescope corrections were flagged in sub-array 2.
!  A total of 5131 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 489 telescope corrections were flagged in sub-array 1.
!  A total of 1206 telescope corrections were flagged in sub-array 2.
!  A total of 5051 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 483 telescope corrections were flagged in sub-array 1.
!  A total of 1215 telescope corrections were flagged in sub-array 2.
!  A total of 5059 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 492 telescope corrections were flagged in sub-array 1.
!  A total of 1212 telescope corrections were flagged in sub-array 2.
!  A total of 5079 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.098875Jy  sigma=0.009398
! Fit after  self-cal, rms=0.474888Jy  sigma=0.003533
! 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 
! Your choice of large map pixels excluded 0.891% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.5027 mas, bmaj=0.5303 mas, bpa=-4.476 degrees
! Estimated noise=1104.41 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.486082 Jy
! Component: 100  -  total flux cleaned = 0.638091 Jy
! Total flux subtracted in 100 components = 0.638091 Jy
! Clean residual min=-0.023743 max=0.125636 Jy/beam
! Clean residual mean=0.000341 rms=0.009345 Jy/beam
! Combined flux in latest and established models = 0.638091 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.638091 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363773Jy  sigma=0.002792
! Fit after  self-cal, rms=0.363108Jy  sigma=0.002788
! Inverting map 
! Your choice of large map pixels excluded 0.891% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Added new window around map position (0.4, -0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.118233 Jy
! Component: 100  -  total flux cleaned = 0.186005 Jy
! Total flux subtracted in 100 components = 0.186005 Jy
! Clean residual min=-0.019212 max=0.047227 Jy/beam
! Clean residual mean=0.000239 rms=0.006016 Jy/beam
! Combined flux in latest and established models = 0.824096 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 11 components and 0.824096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296294Jy  sigma=0.002025
! Fit after  self-cal, rms=0.292324Jy  sigma=0.001995
! Inverting map 
! Your choice of large map pixels excluded 0.891% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0535218 Jy
! Component: 100  -  total flux cleaned = 0.0907352 Jy
! Total flux subtracted in 100 components = 0.0907352 Jy
! Clean residual min=-0.015389 max=0.033652 Jy/beam
! Clean residual mean=0.000189 rms=0.004485 Jy/beam
! Combined flux in latest and established models = 0.914831 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 18 components and 0.914831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272006Jy  sigma=0.001732
! Fit after  self-cal, rms=0.271079Jy  sigma=0.001725
! Inverting map 
! Your choice of large map pixels excluded 0.891% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Added new window around map position (1, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0359903 Jy
! Component: 100  -  total flux cleaned = 0.0613792 Jy
! Total flux subtracted in 100 components = 0.0613792 Jy
! Clean residual min=-0.013100 max=0.025585 Jy/beam
! Clean residual mean=0.000154 rms=0.003676 Jy/beam
! Combined flux in latest and established models = 0.976211 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 25 components and 0.976211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261325Jy  sigma=0.001592
! Fit after  self-cal, rms=0.260672Jy  sigma=0.001587
! Inverting map 
! Your choice of large map pixels excluded 0.891% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
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 
! Your choice of large map pixels excluded 0.891% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.602 mas, bmaj=0.6744 mas, bpa=22.98 degrees
! Estimated noise=486.569 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.0477446 Jy
! Component: 100  -  total flux cleaned = 0.0766111 Jy
! Component: 150  -  total flux cleaned = 0.095517 Jy
! Component: 200  -  total flux cleaned = 0.108308 Jy
! Total flux subtracted in 200 components = 0.108308 Jy
! Clean residual min=-0.015725 max=0.021362 Jy/beam
! Clean residual mean=0.000869 rms=0.005086 Jy/beam
! Combined flux in latest and established models = 1.08452 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 36 components and 1.08452 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252551Jy  sigma=0.001468
! Fit after  self-cal, rms=0.252082Jy  sigma=0.001464
! Inverting map 
! Your choice of large map pixels excluded 0.891% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
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*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.08     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.01     
!   MC        1.02     MK        1.00*    NL        1.00*    ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.05     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.97     GG        1.00*    HN        0.99     
!   KK        1.14     KP        1.07     LA        0.95     MA        1.01     
!   MC        1.01     MK        1.01     NL        1.06     ON        0.97     
!   OV        0.96     PT        0.98     SC        0.91     TC        1.00*    
!   TS        0.99     WF        1.03     WZ        1.04     
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 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*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.13     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.98     
!   MC        0.98     MK        1.00*    NL        1.00*    ON        0.96     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        0.95     WF        1.00*    WZ        1.06     
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GG        1.00*    HN        1.01     
!   KK        1.17     KP        1.01     LA        0.96     MA        0.98     
!   MC        0.99     MK        1.04     NL        1.02     ON        0.95     
!   OV        0.95     PT        1.02     SC        0.88     TC        1.00*    
!   TS        0.99     WF        1.03     WZ        1.05     
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 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*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.04     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.94     
!   MC        0.92     MK        1.00*    NL        1.00*    ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        0.95     WF        1.00*    WZ        1.06     
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.96     GG        1.00*    HN        1.00     
!   KK        1.24     KP        0.94     LA        0.97     MA        0.96     
!   MC        0.97     MK        1.03     NL        1.00     ON        0.96     
!   OV        1.00     PT        1.05     SC        0.91     TC        1.00*    
!   TS        0.96     WF        0.99     WZ        1.02     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 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*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.10     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.01     
!   MC        0.91     MK        1.00*    NL        1.00*    ON        0.99     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        0.98     WF        1.00*    WZ        1.08     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.94     GG        1.00*    HN        1.02     
!   KK        1.18     KP        1.01     LA        0.95     MA        1.00     
!   MC        0.91     MK        1.05     NL        1.00     ON        0.93     
!   OV        0.99     PT        1.06     SC        0.94     TC        1.00*    
!   TS        0.98     WF        0.98     WZ        1.05     
! 
! 
! Fit before self-cal, rms=0.252082Jy  sigma=0.001464
! Fit after  self-cal, rms=0.249405Jy  sigma=0.001418
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.6032 mas, bmaj=0.6751 mas, bpa=26.05 degrees
! Estimated noise=482.903 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.00727924 Jy
! Component: 100  -  total flux cleaned = 0.00843081 Jy
! Component: 150  -  total flux cleaned = 0.00954805 Jy
! Component: 200  -  total flux cleaned = 0.0103694 Jy
! Total flux subtracted in 200 components = 0.0103694 Jy
! Clean residual min=-0.015520 max=0.013410 Jy/beam
! Clean residual mean=0.000671 rms=0.004554 Jy/beam
! Combined flux in latest and established models = 1.09489 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 43 components and 1.09489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249080Jy  sigma=0.001415
! Fit after  self-cal, rms=0.249059Jy  sigma=0.001414
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
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.249059Jy  sigma=0.001414
! Fit after  self-cal, rms=0.266350Jy  sigma=0.001279
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.5994 mas, bmaj=0.6829 mas, bpa=25.41 degrees
! Estimated noise=483.998 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00582413 Jy
! Component: 100  -  total flux cleaned = 0.00660354 Jy
! Component: 150  -  total flux cleaned = 0.00661242 Jy
! Component: 200  -  total flux cleaned = 0.00648777 Jy
! Total flux subtracted in 200 components = 0.00648777 Jy
! Clean residual min=-0.004945 max=0.006689 Jy/beam
! Clean residual mean=0.000118 rms=0.001190 Jy/beam
! Combined flux in latest and established models = 1.10138 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 50 components and 1.10138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265794Jy  sigma=0.001270
! Fit after  self-cal, rms=0.265816Jy  sigma=0.001269
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
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 (1.4, -0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00238666 Jy
! Component: 100  -  total flux cleaned = 0.00290139 Jy
! Component: 150  -  total flux cleaned = 0.00316235 Jy
! Component: 200  -  total flux cleaned = 0.00347925 Jy
! Total flux subtracted in 200 components = 0.00347925 Jy
! Clean residual min=-0.004353 max=0.003725 Jy/beam
! Clean residual mean=0.000080 rms=0.001019 Jy/beam
! Combined flux in latest and established models = 1.10485 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 60 components and 1.10485 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265632Jy  sigma=0.001266
! Fit after  self-cal, rms=0.265619Jy  sigma=0.001266
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
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.265619Jy  sigma=0.001266
! Fit after  self-cal, rms=0.265640Jy  sigma=0.001262
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.5982 mas, bmaj=0.6849 mas, bpa=25.41 degrees
! Estimated noise=483.727 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00167613 Jy
! Component: 100  -  total flux cleaned = 0.00237846 Jy
! Component: 150  -  total flux cleaned = 0.00279544 Jy
! Component: 200  -  total flux cleaned = 0.00304664 Jy
! Total flux subtracted in 200 components = 0.00304664 Jy
! Clean residual min=-0.003527 max=0.002763 Jy/beam
! Clean residual mean=-0.000010 rms=0.000795 Jy/beam
! Combined flux in latest and established models = 1.1079 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 68 components and 1.1079 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265517Jy  sigma=0.001260
! Fit after  self-cal, rms=0.265497Jy  sigma=0.001260
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
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.000235416 Jy
! Component: 100  -  total flux cleaned = 0.000461269 Jy
! Component: 150  -  total flux cleaned = 0.000590984 Jy
! Component: 200  -  total flux cleaned = 0.000648398 Jy
! Total flux subtracted in 200 components = 0.000648398 Jy
! Clean residual min=-0.003338 max=0.002596 Jy/beam
! Clean residual mean=-0.000017 rms=0.000769 Jy/beam
! Combined flux in latest and established models = 1.10855 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 69 components and 1.10855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265454Jy  sigma=0.001259
! Fit after  self-cal, rms=0.265453Jy  sigma=0.001259
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.265453Jy  sigma=0.001259
! Fit after  self-cal, rms=0.265472Jy  sigma=0.001259
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=2.368 mas, bmaj=2.983 mas, bpa=-88.81 degrees
! Estimated noise=744.467 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00133621 Jy
! Component: 100  -  total flux cleaned = 0.00143541 Jy
! Component: 150  -  total flux cleaned = 0.00154861 Jy
! Component: 200  -  total flux cleaned = 0.00163414 Jy
! Total flux subtracted in 200 components = 0.00163414 Jy
! Clean residual min=-0.003503 max=0.002457 Jy/beam
! Clean residual mean=-0.000248 rms=0.000940 Jy/beam
! Combined flux in latest and established models = 1.11018 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 72 components and 1.11018 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265446Jy  sigma=0.001258
! Fit after  self-cal, rms=0.265441Jy  sigma=0.001258
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
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 = 7.40696e-05 Jy
! Component: 100  -  total flux cleaned = 0.000103044 Jy
! Component: 150  -  total flux cleaned = 0.000149651 Jy
! Component: 200  -  total flux cleaned = 0.000228672 Jy
! Total flux subtracted in 200 components = 0.000228672 Jy
! Clean residual min=-0.003498 max=0.002453 Jy/beam
! Clean residual mean=-0.000257 rms=0.000939 Jy/beam
! Combined flux in latest and established models = 1.11041 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 73 components and 1.11041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265436Jy  sigma=0.001258
! Fit after  self-cal, rms=0.265435Jy  sigma=0.001258
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
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 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.5977 mas, bmaj=0.6853 mas, bpa=25.36 degrees
! Estimated noise=483.442 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5977 x 0.6853 at 25.36 degrees (North through East)
! Clean map  min=-0.0024165  max=0.65258 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.265435Jy  sigma=0.001258
! Fit after  self-cal, rms=0.528171Jy  sigma=0.001189
! Inverting map and beam 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.5977 mas, bmaj=0.6852 mas, bpa=25.39 degrees
! Estimated noise=483.436 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.8293e-05 Jy
! Component: 100  -  total flux cleaned = 0.000493726 Jy
! Component: 150  -  total flux cleaned = 0.000680184 Jy
! Component: 200  -  total flux cleaned = 0.000679045 Jy
! Total flux subtracted in 200 components = 0.000679045 Jy
! Clean residual min=-0.002772 max=0.002299 Jy/beam
! Clean residual mean=-0.000087 rms=0.000657 Jy/beam
! Combined flux in latest and established models = 1.11109 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 74 components and 1.11109 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528151Jy  sigma=0.001188
! Fit after  self-cal, rms=0.528170Jy  sigma=0.001188
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -2.30209e-05 Jy
! Component: 100  -  total flux cleaned = -2.40286e-05 Jy
! Component: 150  -  total flux cleaned = -2.30856e-05 Jy
! Component: 200  -  total flux cleaned = 1.8263e-05 Jy
! Total flux subtracted in 200 components = 1.8263e-05 Jy
! Clean residual min=-0.002744 max=0.002303 Jy/beam
! Clean residual mean=-0.000087 rms=0.000651 Jy/beam
! Combined flux in latest and established models = 1.11111 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 76 components and 1.11111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528162Jy  sigma=0.001188
! Fit after  self-cal, rms=0.528172Jy  sigma=0.001188
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.528172Jy  sigma=0.001188
! Fit after  self-cal, rms=0.594349Jy  sigma=0.001188
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 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.5024 mas, bmaj=0.535 mas, bpa=13.42 degrees
! Estimated noise=1109.64 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.485515 Jy
! Component: 100  -  total flux cleaned = 0.66065 Jy
! Component: 150  -  total flux cleaned = 0.764252 Jy
! Component: 200  -  total flux cleaned = 0.834575 Jy
! Total flux subtracted in 200 components = 0.834575 Jy
! Clean residual min=-0.010012 max=0.039740 Jy/beam
! Clean residual mean=0.000183 rms=0.004576 Jy/beam
! Combined flux in latest and established models = 0.834575 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.834576 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.5975 mas, bmaj=0.685 mas, bpa=25.35 degrees
! Estimated noise=483.085 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.10213 Jy
! Component: 100  -  total flux cleaned = 0.160949 Jy
! Component: 150  -  total flux cleaned = 0.197462 Jy
! Component: 200  -  total flux cleaned = 0.221459 Jy
! Total flux subtracted in 200 components = 0.221459 Jy
! Clean residual min=-0.003996 max=0.013069 Jy/beam
! Clean residual mean=0.000533 rms=0.002072 Jy/beam
! Combined flux in latest and established models = 1.05603 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 47 components and 1.05603 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0163879 Jy
! Component: 100  -  total flux cleaned = 0.0277922 Jy
! Component: 150  -  total flux cleaned = 0.0358302 Jy
! Component: 200  -  total flux cleaned = 0.0415355 Jy
! Total flux subtracted in 200 components = 0.0415355 Jy
! Clean residual min=-0.002885 max=0.003968 Jy/beam
! Clean residual mean=0.000065 rms=0.000810 Jy/beam
! Combined flux in latest and established models = 1.09757 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 61 components and 1.09757 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Added new window around map position (-0.2, -1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00429189 Jy
! Component: 100  -  total flux cleaned = 0.00733179 Jy
! Component: 150  -  total flux cleaned = 0.00959766 Jy
! Component: 200  -  total flux cleaned = 0.010882 Jy
! Total flux subtracted in 200 components = 0.010882 Jy
! Clean residual min=-0.002658 max=0.002310 Jy/beam
! Clean residual mean=-0.000059 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 1.10845 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 74 components and 1.10845 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=2.366 mas, bmaj=2.985 mas, bpa=-89.05 degrees
! Estimated noise=745.288 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00259489 Jy
! Component: 100  -  total flux cleaned = 0.00322169 Jy
! Component: 150  -  total flux cleaned = 0.00339046 Jy
! Component: 200  -  total flux cleaned = 0.00351549 Jy
! Total flux subtracted in 200 components = 0.00351549 Jy
! Clean residual min=-0.003135 max=0.002262 Jy/beam
! Clean residual mean=-0.000348 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 1.11197 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 = 4.04029e-07 Jy
! Component: 100  -  total flux cleaned = -5.06424e-07 Jy
! Component: 150  -  total flux cleaned = -6.96777e-07 Jy
! Component: 200  -  total flux cleaned = 1.4689e-05 Jy
! Total flux subtracted in 200 components = 1.4689e-05 Jy
! Clean residual min=-0.003108 max=0.002257 Jy/beam
! Clean residual mean=-0.000349 rms=0.000870 Jy/beam
! Combined flux in latest and established models = 1.11198 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 82 components and 1.11198 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.5975 mas, bmaj=0.685 mas, bpa=25.35 degrees
! Estimated noise=483.085 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000662778 Jy
! Component: 100  -  total flux cleaned = -0.00077447 Jy
! Component: 150  -  total flux cleaned = -0.000725778 Jy
! Component: 200  -  total flux cleaned = -0.000635711 Jy
! Total flux subtracted in 200 components = -0.000635711 Jy
! Clean residual min=-0.002554 max=0.002263 Jy/beam
! Clean residual mean=-0.000092 rms=0.000618 Jy/beam
! Combined flux in latest and established models = 1.11135 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 89 components and 1.11135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.594257Jy  sigma=0.001187
! Fit after  self-cal, rms=0.594430Jy  sigma=0.001187
wmodel J1048+7143_X_2003_05_07_pus_map.mod
! Writing 89 model components to file: J1048+7143_X_2003_05_07_pus_map.mod
wobs J1048+7143_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1048+7143_X_2003_05_07_pus_uvs.fits
wwins J1048+7143_X_2003_05_07_pus_map.win
! wwins: Wrote 5 windows to J1048+7143_X_2003_05_07_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00109112 Jy
! Component: 100  -  total flux cleaned = -0.00163953 Jy
! Component: 150  -  total flux cleaned = -0.00211438 Jy
! Component: 200  -  total flux cleaned = -0.00264135 Jy
! Component: 250  -  total flux cleaned = -0.00296666 Jy
! Component: 300  -  total flux cleaned = -0.00324581 Jy
! Component: 350  -  total flux cleaned = -0.00344901 Jy
! Component: 400  -  total flux cleaned = -0.00361481 Jy
! Component: 450  -  total flux cleaned = -0.00380955 Jy
! Component: 500  -  total flux cleaned = -0.00399985 Jy
! Component: 550  -  total flux cleaned = -0.00418617 Jy
! Component: 600  -  total flux cleaned = -0.00430828 Jy
! Component: 650  -  total flux cleaned = -0.00442842 Jy
! Component: 700  -  total flux cleaned = -0.00451766 Jy
! Component: 750  -  total flux cleaned = -0.00472287 Jy
! Component: 800  -  total flux cleaned = -0.00486768 Jy
! Component: 850  -  total flux cleaned = -0.00506862 Jy
! Component: 900  -  total flux cleaned = -0.00526716 Jy
! Component: 950  -  total flux cleaned = -0.00540742 Jy
! Component: 1000  -  total flux cleaned = -0.00560205 Jy
! Total flux subtracted in 1024 components = -0.00565719 Jy
! Clean residual min=-0.001576 max=0.001525 Jy/beam
! Clean residual mean=-0.000033 rms=0.000511 Jy/beam
! Combined flux in latest and established models = 1.10569 Jy
keep
! Adding 90 model components to the UV plane model.
! The established model now contains 179 components and 1.10569 Jy
wmap "J1048+7143_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5975 x 0.685 at 25.35 degrees (North through East)
! Clean map  min=-0.0020597  max=0.65632 Jy/beam
! Writing clean map to FITS file: J1048+7143_X_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.656321 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.76% of the data.
!  The x-axis pixel size should ideally be below 0.1788 milli-arcsec
!  The y-axis pixel size should ideally be below 0.187 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000510655 
device "J1048+7143_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1048+7143_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.233417 0.233417 0.466834 0.933668 1.86734 3.73467 7.46934 14.9387 29.8774 59.7547
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.656 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5975 x 0.685 at 25.35 degrees (North through East)
! Clean map  min=-0.0020597  max=0.65632 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1048+7143_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1048+7143_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1048+7143_X_2003_05_07_pus_uvs.log closed on Thu Dec 14 15:25:49 2006