! Started logfile: J1517-2422_X_2003_09_17_pus_uvs.log on Sun May 13 19:07:31 2007
obs J1517-2422_X_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1517-2422_X_2003_09_17_pus_uva.fits
! AN table 1: 33 integrations on 120 of 120 possible baselines.
! AN table 2: 193 integrations on 120 of 120 possible baselines.
! AN table 3: 12 integrations on 120 of 120 possible baselines.
! AN table 4: 17 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0730065 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1517-2422
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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 1489 lines of history.
! 
! Reading 8936 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
float field_size
field_size = 512
float field_cell
field_cell = 0.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 = 512x512 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 528 telescope corrections were flagged in sub-array 1.
!  A total of 2545 telescope corrections were flagged in sub-array 2.
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  A total of 156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 528 telescope corrections were flagged in sub-array 1.
!  A total of 2545 telescope corrections were flagged in sub-array 2.
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  A total of 156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 528 telescope corrections were flagged in sub-array 1.
!  A total of 2545 telescope corrections were flagged in sub-array 2.
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  A total of 156 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 528 telescope corrections were flagged in sub-array 1.
!  A total of 2545 telescope corrections were flagged in sub-array 2.
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  A total of 156 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.337738Jy  sigma=0.003056
! Fit after  self-cal, rms=0.324007Jy  sigma=0.002904
! 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 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.5634 mas, bmaj=3.606 mas, bpa=1.528 degrees
! Estimated noise=1507.38 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.637267 Jy
! Component: 100  -  total flux cleaned = 0.842958 Jy
! Total flux subtracted in 100 components = 0.842958 Jy
! Clean residual min=-0.031834 max=0.090963 Jy/beam
! Clean residual mean=0.001706 rms=0.013781 Jy/beam
! Combined flux in latest and established models = 0.842958 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 0.842959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270612Jy  sigma=0.002492
! Fit after  self-cal, rms=0.269556Jy  sigma=0.002483
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.103209 Jy
! Component: 100  -  total flux cleaned = 0.15936 Jy
! Total flux subtracted in 100 components = 0.15936 Jy
! Clean residual min=-0.026938 max=0.068361 Jy/beam
! Clean residual mean=0.001213 rms=0.009648 Jy/beam
! Combined flux in latest and established models = 1.00232 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 26 components and 1.00232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212404Jy  sigma=0.001878
! Fit after  self-cal, rms=0.211670Jy  sigma=0.001872
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Added new window around map position (1.2, -4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0675904 Jy
! Component: 100  -  total flux cleaned = 0.105997 Jy
! Total flux subtracted in 100 components = 0.105997 Jy
! Clean residual min=-0.024742 max=0.039854 Jy/beam
! Clean residual mean=0.000884 rms=0.007089 Jy/beam
! Combined flux in latest and established models = 1.10832 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 40 components and 1.10832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177378Jy  sigma=0.001519
! Fit after  self-cal, rms=0.174376Jy  sigma=0.001496
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.686 mas, bmaj=5.034 mas, bpa=0.922 degrees
! Estimated noise=910.735 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.0579042 Jy
! Component: 100  -  total flux cleaned = 0.0908596 Jy
! Component: 150  -  total flux cleaned = 0.113083 Jy
! Component: 200  -  total flux cleaned = 0.128387 Jy
! Total flux subtracted in 200 components = 0.128387 Jy
! Clean residual min=-0.014521 max=0.040318 Jy/beam
! Clean residual mean=0.005770 rms=0.007342 Jy/beam
! Combined flux in latest and established models = 1.2367 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 73 components and 1.2367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155521Jy  sigma=0.001283
! Fit after  self-cal, rms=0.153253Jy  sigma=0.001262
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Added new window around map position (2.2, -5.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.039213 Jy
! Component: 100  -  total flux cleaned = 0.0581075 Jy
! Component: 150  -  total flux cleaned = 0.0693995 Jy
! Component: 200  -  total flux cleaned = 0.0737689 Jy
! Total flux subtracted in 200 components = 0.0737689 Jy
! Clean residual min=-0.009464 max=0.019149 Jy/beam
! Clean residual mean=0.002324 rms=0.003781 Jy/beam
! Combined flux in latest and established models = 1.31047 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 122 components and 1.31047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.143529Jy  sigma=0.001160
! Fit after  self-cal, rms=0.142269Jy  sigma=0.001149
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        1.01     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        1.01     KK        1.03     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.00     SC        0.97     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        1.01     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        1.01     KK        1.03     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.00     SC        0.97     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        1.01     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        1.02     KK        1.03     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.01     KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00     SC        0.97     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        1.01     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        1.02     KK        1.03     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.00*    HN        1.01     KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00     SC        0.96     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.142269Jy  sigma=0.001149
! Fit after  self-cal, rms=0.143230Jy  sigma=0.001139
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.688 mas, bmaj=4.996 mas, bpa=0.9808 degrees
! Estimated noise=912.012 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.000595007 Jy
! Component: 100  -  total flux cleaned = 0.00154514 Jy
! Component: 150  -  total flux cleaned = 0.00181027 Jy
! Component: 200  -  total flux cleaned = 0.00228416 Jy
! Total flux subtracted in 200 components = 0.00228416 Jy
! Clean residual min=-0.007788 max=0.012333 Jy/beam
! Clean residual mean=0.000627 rms=0.002708 Jy/beam
! Combined flux in latest and established models = 1.31276 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 140 components and 1.31276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141854Jy  sigma=0.001127
! Fit after  self-cal, rms=0.141741Jy  sigma=0.001125
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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.141741Jy  sigma=0.001125
! Fit after  self-cal, rms=0.141320Jy  sigma=0.001124
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.6886 mas, bmaj=4.983 mas, bpa=0.9965 degrees
! Estimated noise=910.072 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000982026 Jy
! Component: 100  -  total flux cleaned = -3.75163e-05 Jy
! Component: 150  -  total flux cleaned = 0.00057872 Jy
! Component: 200  -  total flux cleaned = 0.000751445 Jy
! Total flux subtracted in 200 components = 0.000751445 Jy
! Clean residual min=-0.007228 max=0.012215 Jy/beam
! Clean residual mean=0.000584 rms=0.002559 Jy/beam
! Combined flux in latest and established models = 1.31351 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 151 components and 1.31351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140549Jy  sigma=0.001117
! Fit after  self-cal, rms=0.140471Jy  sigma=0.001116
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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 (4, -7.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00807341 Jy
! Component: 100  -  total flux cleaned = 0.00897842 Jy
! Component: 150  -  total flux cleaned = 0.00975636 Jy
! Component: 200  -  total flux cleaned = 0.0102241 Jy
! Total flux subtracted in 200 components = 0.0102241 Jy
! Clean residual min=-0.007206 max=0.009401 Jy/beam
! Clean residual mean=0.000069 rms=0.002297 Jy/beam
! Combined flux in latest and established models = 1.32373 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 167 components and 1.32373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139252Jy  sigma=0.001102
! Fit after  self-cal, rms=0.139171Jy  sigma=0.001101
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Added new window around map position (-5.8, -14.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00513122 Jy
! Component: 100  -  total flux cleaned = 0.00563705 Jy
! Component: 150  -  total flux cleaned = 0.00608688 Jy
! Component: 200  -  total flux cleaned = 0.00648682 Jy
! Total flux subtracted in 200 components = 0.00648682 Jy
! Clean residual min=-0.006860 max=0.008288 Jy/beam
! Clean residual mean=-0.000144 rms=0.002030 Jy/beam
! Combined flux in latest and established models = 1.33022 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 184 components and 1.33022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138221Jy  sigma=0.001093
! Fit after  self-cal, rms=0.138196Jy  sigma=0.001093
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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.138196Jy  sigma=0.001093
! Fit after  self-cal, rms=0.136975Jy  sigma=0.001090
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.69 mas, bmaj=4.976 mas, bpa=1.025 degrees
! Estimated noise=908.605 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00383897 Jy
! Component: 100  -  total flux cleaned = 0.00563516 Jy
! Component: 150  -  total flux cleaned = 0.00601197 Jy
! Component: 200  -  total flux cleaned = 0.00618538 Jy
! Total flux subtracted in 200 components = 0.00618538 Jy
! Clean residual min=-0.006425 max=0.008362 Jy/beam
! Clean residual mean=0.000048 rms=0.001805 Jy/beam
! Combined flux in latest and established models = 1.3364 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 203 components and 1.3364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136400Jy  sigma=0.001084
! Fit after  self-cal, rms=0.136357Jy  sigma=0.001083
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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 (6, -12.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00378497 Jy
! Component: 100  -  total flux cleaned = 0.00533006 Jy
! Component: 150  -  total flux cleaned = 0.00583143 Jy
! Component: 200  -  total flux cleaned = 0.00582928 Jy
! Total flux subtracted in 200 components = 0.00582928 Jy
! Clean residual min=-0.006125 max=0.005734 Jy/beam
! Clean residual mean=-0.000203 rms=0.001649 Jy/beam
! Combined flux in latest and established models = 1.34223 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 219 components and 1.34223 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135814Jy  sigma=0.001078
! Fit after  self-cal, rms=0.135796Jy  sigma=0.001077
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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.135796Jy  sigma=0.001077
! Fit after  self-cal, rms=0.135210Jy  sigma=0.001076
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=2.44 mas, bmaj=6.79 mas, bpa=5.308 degrees
! Estimated noise=1170.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00607749 Jy
! Component: 100  -  total flux cleaned = 0.00774594 Jy
! Component: 150  -  total flux cleaned = 0.00877968 Jy
! Component: 200  -  total flux cleaned = 0.00937344 Jy
! Total flux subtracted in 200 components = 0.00937344 Jy
! Clean residual min=-0.006741 max=0.005735 Jy/beam
! Clean residual mean=-0.000265 rms=0.001917 Jy/beam
! Combined flux in latest and established models = 1.35161 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 231 components and 1.35161 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134975Jy  sigma=0.001074
! Fit after  self-cal, rms=0.134923Jy  sigma=0.001073
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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.0009687 Jy
! Component: 100  -  total flux cleaned = 0.00210675 Jy
! Component: 150  -  total flux cleaned = 0.00260449 Jy
! Component: 200  -  total flux cleaned = 0.00306206 Jy
! Total flux subtracted in 200 components = 0.00306206 Jy
! Clean residual min=-0.006990 max=0.005390 Jy/beam
! Clean residual mean=-0.000462 rms=0.001818 Jy/beam
! Combined flux in latest and established models = 1.35467 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 238 components and 1.35467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134825Jy  sigma=0.001073
! Fit after  self-cal, rms=0.134818Jy  sigma=0.001072
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.6911 mas, bmaj=4.972 mas, bpa=1.03 degrees
! Estimated noise=907.854 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6911 x 4.972 at 1.03 degrees (North through East)
! Clean map  min=-0.0079303  max=0.84063 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.134818Jy  sigma=0.001072
! Fit after  self-cal, rms=0.134348Jy  sigma=0.001071
! Inverting map and beam 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.6921 mas, bmaj=4.968 mas, bpa=1.021 degrees
! Estimated noise=907.57 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161827 Jy
! Component: 100  -  total flux cleaned = 0.00331301 Jy
! Component: 150  -  total flux cleaned = 0.00411426 Jy
! Component: 200  -  total flux cleaned = 0.00448275 Jy
! Total flux subtracted in 200 components = 0.00448275 Jy
! Clean residual min=-0.004654 max=0.004988 Jy/beam
! Clean residual mean=-0.000014 rms=0.001343 Jy/beam
! Combined flux in latest and established models = 1.35915 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 261 components and 1.35915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134036Jy  sigma=0.001068
! Fit after  self-cal, rms=0.134025Jy  sigma=0.001068
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000422552 Jy
! Component: 100  -  total flux cleaned = 0.000898868 Jy
! Component: 150  -  total flux cleaned = 0.00100956 Jy
! Component: 200  -  total flux cleaned = 0.00110856 Jy
! Total flux subtracted in 200 components = 0.00110856 Jy
! Clean residual min=-0.004496 max=0.004835 Jy/beam
! Clean residual mean=-0.000057 rms=0.001302 Jy/beam
! Combined flux in latest and established models = 1.36026 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 271 components and 1.36026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133813Jy  sigma=0.001066
! Fit after  self-cal, rms=0.133803Jy  sigma=0.001066
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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.133803Jy  sigma=0.001066
! Fit after  self-cal, rms=0.133532Jy  sigma=0.001065
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 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.5684 mas, bmaj=3.553 mas, bpa=1.726 degrees
! Estimated noise=1495.45 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.634225 Jy
! Component: 100  -  total flux cleaned = 0.844872 Jy
! Component: 150  -  total flux cleaned = 0.956096 Jy
! Component: 200  -  total flux cleaned = 1.02746 Jy
! Total flux subtracted in 200 components = 1.02746 Jy
! Clean residual min=-0.018081 max=0.042363 Jy/beam
! Clean residual mean=0.001142 rms=0.007766 Jy/beam
! Combined flux in latest and established models = 1.02746 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 32 model components to the UV plane model.
! The established model now contains 32 components and 1.02746 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.6926 mas, bmaj=4.967 mas, bpa=1.024 degrees
! Estimated noise=906.931 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)
! Added new window around map position (0.6, -2.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0903639 Jy
! Component: 100  -  total flux cleaned = 0.149669 Jy
! Component: 150  -  total flux cleaned = 0.192213 Jy
! Component: 200  -  total flux cleaned = 0.223503 Jy
! Total flux subtracted in 200 components = 0.223503 Jy
! Clean residual min=-0.009129 max=0.018290 Jy/beam
! Clean residual mean=0.005017 rms=0.005602 Jy/beam
! Combined flux in latest and established models = 1.25097 Jy
! Adding 82 model components to the UV plane model.
! The established model now contains 112 components and 1.25097 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 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 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=2.435 mas, bmaj=6.782 mas, bpa=5.253 degrees
! Estimated noise=1170.75 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0413937 Jy
! Component: 100  -  total flux cleaned = 0.0662126 Jy
! Component: 150  -  total flux cleaned = 0.0816381 Jy
! Component: 200  -  total flux cleaned = 0.0920692 Jy
! Total flux subtracted in 200 components = 0.0920692 Jy
! Clean residual min=-0.005615 max=0.009206 Jy/beam
! Clean residual mean=0.001830 rms=0.002340 Jy/beam
! Combined flux in latest and established models = 1.34304 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.00723392 Jy
! Component: 100  -  total flux cleaned = 0.0123427 Jy
! Component: 150  -  total flux cleaned = 0.0160192 Jy
! Component: 200  -  total flux cleaned = 0.0173005 Jy
! Total flux subtracted in 200 components = 0.0173005 Jy
! Clean residual min=-0.005569 max=0.005712 Jy/beam
! Clean residual mean=0.000370 rms=0.001538 Jy/beam
! Combined flux in latest and established models = 1.36034 Jy
! Adding 132 model components to the UV plane model.
! The established model now contains 224 components and 1.36034 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! Estimated beam: bmin=0.6926 mas, bmaj=4.967 mas, bpa=1.024 degrees
! Estimated noise=906.931 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000110172 Jy
! Component: 100  -  total flux cleaned = 0.000675098 Jy
! Component: 150  -  total flux cleaned = 0.0013174 Jy
! Component: 200  -  total flux cleaned = 0.00189767 Jy
! Total flux subtracted in 200 components = 0.00189767 Jy
! Clean residual min=-0.004751 max=0.005148 Jy/beam
! Clean residual mean=0.000065 rms=0.001326 Jy/beam
! Combined flux in latest and established models = 1.36223 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 251 components and 1.36223 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133443Jy  sigma=0.001065
! Fit after  self-cal, rms=0.133219Jy  sigma=0.001062
wmodel J1517-2422_X_2003_09_17_pus_map.mod
! Writing 251 model components to file: J1517-2422_X_2003_09_17_pus_map.mod
wobs J1517-2422_X_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1517-2422_X_2003_09_17_pus_uvs.fits
wwins J1517-2422_X_2003_09_17_pus_map.win
! wwins: Wrote 7 windows to J1517-2422_X_2003_09_17_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 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00233705 Jy
! Component: 100  -  total flux cleaned = 0.00318629 Jy
! Component: 150  -  total flux cleaned = 0.00311362 Jy
! Component: 200  -  total flux cleaned = 0.00288754 Jy
! Component: 250  -  total flux cleaned = 0.00266965 Jy
! Component: 300  -  total flux cleaned = 0.00266963 Jy
! Component: 350  -  total flux cleaned = 0.00260144 Jy
! Component: 400  -  total flux cleaned = 0.00260207 Jy
! Component: 450  -  total flux cleaned = 0.00273225 Jy
! Component: 500  -  total flux cleaned = 0.00266814 Jy
! Component: 550  -  total flux cleaned = 0.00285402 Jy
! Component: 600  -  total flux cleaned = 0.002974 Jy
! Component: 650  -  total flux cleaned = 0.00291329 Jy
! Component: 700  -  total flux cleaned = 0.00308881 Jy
! Component: 750  -  total flux cleaned = 0.00326018 Jy
! Component: 800  -  total flux cleaned = 0.00325961 Jy
! Component: 850  -  total flux cleaned = 0.00331493 Jy
! Component: 900  -  total flux cleaned = 0.00347743 Jy
! Component: 950  -  total flux cleaned = 0.00342344 Jy
! Component: 1000  -  total flux cleaned = 0.00342348 Jy
! Component: 1050  -  total flux cleaned = 0.00352719 Jy
! Component: 1100  -  total flux cleaned = 0.00352703 Jy
! Component: 1150  -  total flux cleaned = 0.00352736 Jy
! Component: 1200  -  total flux cleaned = 0.00362594 Jy
! Component: 1250  -  total flux cleaned = 0.00367406 Jy
! Component: 1300  -  total flux cleaned = 0.00372168 Jy
! Component: 1350  -  total flux cleaned = 0.00376839 Jy
! Component: 1400  -  total flux cleaned = 0.00376825 Jy
! Component: 1450  -  total flux cleaned = 0.0037686 Jy
! Component: 1500  -  total flux cleaned = 0.00390439 Jy
! Component: 1550  -  total flux cleaned = 0.0039486 Jy
! Component: 1600  -  total flux cleaned = 0.00394843 Jy
! Component: 1650  -  total flux cleaned = 0.0039921 Jy
! Component: 1700  -  total flux cleaned = 0.00416326 Jy
! Component: 1750  -  total flux cleaned = 0.00412036 Jy
! Component: 1800  -  total flux cleaned = 0.00416203 Jy
! Component: 1850  -  total flux cleaned = 0.0042446 Jy
! Component: 1900  -  total flux cleaned = 0.00428542 Jy
! Component: 1950  -  total flux cleaned = 0.00432585 Jy
! Component: 2000  -  total flux cleaned = 0.004366 Jy
! Total flux subtracted in 2048 components = 0.00440582 Jy
! Clean residual min=-0.002167 max=0.002493 Jy/beam
! Clean residual mean=0.000030 rms=0.000782 Jy/beam
! Combined flux in latest and established models = 1.36664 Jy
keep
! Adding 137 model components to the UV plane model.
! The established model now contains 387 components and 1.36664 Jy
wmap "J1517-2422_X_2003_09_17_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6926 x 4.967 at 1.024 degrees (North through East)
! Clean map  min=-0.0047078  max=0.84175 Jy/beam
! Writing clean map to FITS file: J1517-2422_X_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.841755 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.77% of the data.
!  The x-axis pixel size should ideally be below 0.1897 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000781753 
device "J1517-2422_X_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1517-2422_X_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.278616 0.278616 0.557231 1.11446 2.22892 4.45785 8.9157 17.8314 35.6628 71.3256
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.841 
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.6926 x 4.967 at 1.024 degrees (North through East)
! Clean map  min=-0.0047078  max=0.84175 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1517-2422_X_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1517-2422_X_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1517-2422_X_2003_09_17_pus_uvs.log closed on Sun May 13 19:08:57 2007