! Started logfile: J1517-2422_X_2001_10_29_pus_uvs.log on Tue Feb 26 11:36:46 2008
obs J1517-2422_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1517-2422_X_2001_10_29_pus_uva.fits
! AN table 1: 80 integrations on 153 of 153 possible baselines.
! AN table 2: 125 integrations on 153 of 153 possible baselines.
! AN table 3: 555 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0412711 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1517-2422
! 
! 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 1978 lines of history.
! 
! Reading 19196 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
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1517-2422_X_2001_10_29_pus]
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 1407 telescope corrections were flagged in sub-array 1.
!  A total of 1646 telescope corrections were flagged in sub-array 2.
!  A total of 9190 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1405 telescope corrections were flagged in sub-array 1.
!  A total of 1647 telescope corrections were flagged in sub-array 2.
!  A total of 9190 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1404 telescope corrections were flagged in sub-array 1.
!  A total of 1647 telescope corrections were flagged in sub-array 2.
!  A total of 9190 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1405 telescope corrections were flagged in sub-array 1.
!  A total of 1647 telescope corrections were flagged in sub-array 2.
!  A total of 9192 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.470549Jy  sigma=0.004052
! Fit after  self-cal, rms=0.459722Jy  sigma=0.003963
! 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 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.5844 mas, bmaj=1.289 mas, bpa=0.6779 degrees
! Estimated noise=2306.55 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.85616 Jy
! Component: 100  -  total flux cleaned = 1.10907 Jy
! Total flux subtracted in 100 components = 1.10907 Jy
! Clean residual min=-0.051066 max=0.123312 Jy/beam
! Clean residual mean=0.002760 rms=0.015764 Jy/beam
! Combined flux in latest and established models = 1.10907 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 18 components and 1.10907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382425Jy  sigma=0.003303
! Fit after  self-cal, rms=0.382122Jy  sigma=0.003300
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Added new window around map position (0, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.135483 Jy
! Component: 100  -  total flux cleaned = 0.215118 Jy
! Total flux subtracted in 100 components = 0.215118 Jy
! Clean residual min=-0.033942 max=0.078893 Jy/beam
! Clean residual mean=0.001930 rms=0.010141 Jy/beam
! Combined flux in latest and established models = 1.32419 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 30 components and 1.32419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271030Jy  sigma=0.002207
! Fit after  self-cal, rms=0.269767Jy  sigma=0.002195
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Added new window around map position (0.6, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0729966 Jy
! Component: 100  -  total flux cleaned = 0.117406 Jy
! Total flux subtracted in 100 components = 0.117406 Jy
! Clean residual min=-0.030023 max=0.048286 Jy/beam
! Clean residual mean=0.001459 rms=0.008277 Jy/beam
! Combined flux in latest and established models = 1.4416 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 37 components and 1.4416 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227003Jy  sigma=0.001735
! Fit after  self-cal, rms=0.226058Jy  sigma=0.001729
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.9209 mas, bmaj=2.764 mas, bpa=-8.162 degrees
! Estimated noise=778.301 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.0894645 Jy
! Component: 100  -  total flux cleaned = 0.140517 Jy
! Component: 150  -  total flux cleaned = 0.171234 Jy
! Component: 200  -  total flux cleaned = 0.189969 Jy
! Total flux subtracted in 200 components = 0.189969 Jy
! Clean residual min=-0.019070 max=0.050719 Jy/beam
! Clean residual mean=0.005780 rms=0.011103 Jy/beam
! Combined flux in latest and established models = 1.63157 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 53 components and 1.63157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192467Jy  sigma=0.001319
! Fit after  self-cal, rms=0.190550Jy  sigma=0.001303
! Inverting map 
! Your choice of large map pixels excluded 1.63% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.88     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.14     MC        0.97     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.97     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.08     
!   OV        1.00     PT        0.98     SC        0.82     TS        1.01     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.19     
!   HN        1.07     KK        1.00*    KP        1.02     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.01     
!   OV        1.00*    PT        0.97     SC        1.06     TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.89     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.14     MC        0.98     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.97     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.09     
!   OV        1.00     PT        0.97     SC        0.77     TS        1.00     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.20     
!   HN        1.07     KK        1.00*    KP        1.02     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.01     
!   OV        1.00*    PT        0.97     SC        1.07     TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.14     MC        0.98     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.01     KP        0.97     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.09     
!   OV        1.01     PT        0.97     SC        0.74     TS        1.01     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.13     
!   HN        1.07     KK        1.00*    KP        1.03     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00     
!   OV        1.00*    PT        0.97     SC        1.06     TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.91     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.13     MC        0.99     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.02     KP        0.97     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.09     
!   OV        1.01     PT        0.97     SC        0.77     TS        1.01     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.20     
!   HN        1.07     KK        1.00*    KP        1.03     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00     
!   OV        1.00*    PT        0.97     SC        1.06     TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.190550Jy  sigma=0.001303
! Fit after  self-cal, rms=0.195652Jy  sigma=0.001227
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.9231 mas, bmaj=2.883 mas, bpa=-8.307 degrees
! Estimated noise=778.445 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.00553595 Jy
! Component: 100  -  total flux cleaned = 0.0066257 Jy
! Component: 150  -  total flux cleaned = 0.00691913 Jy
! Component: 200  -  total flux cleaned = 0.00716962 Jy
! Total flux subtracted in 200 components = 0.00716962 Jy
! Clean residual min=-0.016672 max=0.034190 Jy/beam
! Clean residual mean=0.004001 rms=0.007362 Jy/beam
! Combined flux in latest and established models = 1.63874 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 61 components and 1.63874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194600Jy  sigma=0.001213
! Fit after  self-cal, rms=0.194442Jy  sigma=0.001211
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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.194442Jy  sigma=0.001211
! Fit after  self-cal, rms=0.193465Jy  sigma=0.001204
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.9217 mas, bmaj=2.887 mas, bpa=-8.34 degrees
! Estimated noise=778.008 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0028898 Jy
! Component: 100  -  total flux cleaned = 0.00367076 Jy
! Component: 150  -  total flux cleaned = 0.00385909 Jy
! Component: 200  -  total flux cleaned = 0.00401366 Jy
! Total flux subtracted in 200 components = 0.00401366 Jy
! Clean residual min=-0.016504 max=0.031246 Jy/beam
! Clean residual mean=0.003427 rms=0.006926 Jy/beam
! Combined flux in latest and established models = 1.64275 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 62 components and 1.64275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.193001Jy  sigma=0.001197
! Fit after  self-cal, rms=0.192725Jy  sigma=0.001195
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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 (5.4, -12.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0309228 Jy
! Component: 100  -  total flux cleaned = 0.0418246 Jy
! Component: 150  -  total flux cleaned = 0.0434983 Jy
! Component: 200  -  total flux cleaned = 0.0449735 Jy
! Total flux subtracted in 200 components = 0.0449735 Jy
! Clean residual min=-0.014591 max=0.023813 Jy/beam
! Clean residual mean=0.001721 rms=0.005371 Jy/beam
! Combined flux in latest and established models = 1.68772 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 89 components and 1.68772 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185881Jy  sigma=0.001137
! Fit after  self-cal, rms=0.184858Jy  sigma=0.001129
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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.184858Jy  sigma=0.001129
! Fit after  self-cal, rms=0.182275Jy  sigma=0.001119
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.9219 mas, bmaj=2.886 mas, bpa=-8.396 degrees
! Estimated noise=776.545 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0193556 Jy
! Component: 100  -  total flux cleaned = 0.0247533 Jy
! Component: 150  -  total flux cleaned = 0.0259192 Jy
! Component: 200  -  total flux cleaned = 0.0266056 Jy
! Total flux subtracted in 200 components = 0.0266056 Jy
! Clean residual min=-0.011889 max=0.019054 Jy/beam
! Clean residual mean=0.001692 rms=0.004213 Jy/beam
! Combined flux in latest and established models = 1.71433 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 96 components and 1.71433 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179153Jy  sigma=0.001094
! Fit after  self-cal, rms=0.178588Jy  sigma=0.001090
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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.0067549 Jy
! Component: 100  -  total flux cleaned = 0.00807584 Jy
! Component: 150  -  total flux cleaned = 0.00835685 Jy
! Component: 200  -  total flux cleaned = 0.00911573 Jy
! Total flux subtracted in 200 components = 0.00911573 Jy
! Clean residual min=-0.012345 max=0.015345 Jy/beam
! Clean residual mean=0.001349 rms=0.003917 Jy/beam
! Combined flux in latest and established models = 1.72344 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 106 components and 1.72344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177287Jy  sigma=0.001080
! Fit after  self-cal, rms=0.177060Jy  sigma=0.001079
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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.177060Jy  sigma=0.001079
! Fit after  self-cal, rms=0.174725Jy  sigma=0.001072
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=2.257 mas, bmaj=6.347 mas, bpa=-17.18 degrees
! Estimated noise=905.249 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.015026 Jy
! Component: 100  -  total flux cleaned = 0.0157534 Jy
! Component: 150  -  total flux cleaned = 0.0167069 Jy
! Component: 200  -  total flux cleaned = 0.0174969 Jy
! Total flux subtracted in 200 components = 0.0174969 Jy
! Clean residual min=-0.008855 max=0.014917 Jy/beam
! Clean residual mean=0.002498 rms=0.004024 Jy/beam
! Combined flux in latest and established models = 1.74094 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 121 components and 1.74094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173926Jy  sigma=0.001065
! Fit after  self-cal, rms=0.173427Jy  sigma=0.001062
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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.00420346 Jy
! Component: 100  -  total flux cleaned = 0.00498339 Jy
! Component: 150  -  total flux cleaned = 0.00541882 Jy
! Component: 200  -  total flux cleaned = 0.00578684 Jy
! Total flux subtracted in 200 components = 0.00578684 Jy
! Clean residual min=-0.008241 max=0.013402 Jy/beam
! Clean residual mean=0.002109 rms=0.003839 Jy/beam
! Combined flux in latest and established models = 1.74673 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 128 components and 1.74673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173574Jy  sigma=0.001063
! Fit after  self-cal, rms=0.173368Jy  sigma=0.001062
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.9219 mas, bmaj=2.882 mas, bpa=-8.451 degrees
! Estimated noise=776.527 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9219 x 2.882 at -8.451 degrees (North through East)
! Clean map  min=-0.020024  max=1.1962 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.173368Jy  sigma=0.001062
! Fit after  self-cal, rms=0.171423Jy  sigma=0.001042
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.9232 mas, bmaj=2.888 mas, bpa=-8.488 degrees
! Estimated noise=776.873 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0069362 Jy
! Component: 100  -  total flux cleaned = 0.00792606 Jy
! Component: 150  -  total flux cleaned = 0.00876263 Jy
! Component: 200  -  total flux cleaned = 0.00951342 Jy
! Total flux subtracted in 200 components = 0.00951342 Jy
! Clean residual min=-0.008055 max=0.012510 Jy/beam
! Clean residual mean=0.001091 rms=0.002744 Jy/beam
! Combined flux in latest and established models = 1.75624 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 139 components and 1.75624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170532Jy  sigma=0.001036
! Fit after  self-cal, rms=0.170439Jy  sigma=0.001036
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Added new window around map position (3.8, -5.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00818024 Jy
! Component: 100  -  total flux cleaned = 0.00917823 Jy
! Component: 150  -  total flux cleaned = 0.00891009 Jy
! Component: 200  -  total flux cleaned = 0.00865503 Jy
! Total flux subtracted in 200 components = 0.00865503 Jy
! Clean residual min=-0.008331 max=0.009294 Jy/beam
! Clean residual mean=0.000754 rms=0.002505 Jy/beam
! Combined flux in latest and established models = 1.7649 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 155 components and 1.7649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169043Jy  sigma=0.001024
! Fit after  self-cal, rms=0.168919Jy  sigma=0.001024
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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.168919Jy  sigma=0.001024
! Fit after  self-cal, rms=0.167854Jy  sigma=0.001020
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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.5872 mas, bmaj=1.355 mas, bpa=-0.7727 degrees
! Estimated noise=2316.35 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.858088 Jy
! Component: 100  -  total flux cleaned = 1.11585 Jy
! Component: 150  -  total flux cleaned = 1.25415 Jy
! Component: 200  -  total flux cleaned = 1.34519 Jy
! Total flux subtracted in 200 components = 1.34519 Jy
! Clean residual min=-0.028585 max=0.054640 Jy/beam
! Clean residual mean=0.001859 rms=0.009710 Jy/beam
! Combined flux in latest and established models = 1.34519 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 25 model components to the UV plane model.
! The established model now contains 25 components and 1.34519 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.9232 mas, bmaj=2.886 mas, bpa=-8.546 degrees
! Estimated noise=777.281 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.150568 Jy
! Component: 100  -  total flux cleaned = 0.233478 Jy
! Component: 150  -  total flux cleaned = 0.288162 Jy
! Component: 200  -  total flux cleaned = 0.325957 Jy
! Total flux subtracted in 200 components = 0.325957 Jy
! Clean residual min=-0.010397 max=0.026786 Jy/beam
! Clean residual mean=0.004521 rms=0.006765 Jy/beam
! Combined flux in latest and established models = 1.67114 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 80 components and 1.67114 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=2.249 mas, bmaj=6.329 mas, bpa=-17.15 degrees
! Estimated noise=908.099 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0398762 Jy
! Component: 100  -  total flux cleaned = 0.063048 Jy
! Component: 150  -  total flux cleaned = 0.0780946 Jy
! Component: 200  -  total flux cleaned = 0.0881873 Jy
! Total flux subtracted in 200 components = 0.0881873 Jy
! Clean residual min=-0.006597 max=0.011303 Jy/beam
! Clean residual mean=0.002233 rms=0.002761 Jy/beam
! Combined flux in latest and established models = 1.75933 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.00516268 Jy
! Component: 100  -  total flux cleaned = 0.00659642 Jy
! Component: 150  -  total flux cleaned = 0.00790231 Jy
! Component: 200  -  total flux cleaned = 0.00928217 Jy
! Total flux subtracted in 200 components = 0.00928217 Jy
! Clean residual min=-0.005725 max=0.010657 Jy/beam
! Clean residual mean=0.001622 rms=0.002511 Jy/beam
! Combined flux in latest and established models = 1.76861 Jy
! Adding 72 model components to the UV plane model.
! The established model now contains 137 components and 1.76861 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.9232 mas, bmaj=2.886 mas, bpa=-8.546 degrees
! Estimated noise=777.281 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00070056 Jy
! Component: 100  -  total flux cleaned = 0.00199967 Jy
! Component: 150  -  total flux cleaned = 0.00316445 Jy
! Component: 200  -  total flux cleaned = 0.00401093 Jy
! Total flux subtracted in 200 components = 0.00401093 Jy
! Clean residual min=-0.008238 max=0.010050 Jy/beam
! Clean residual mean=0.000741 rms=0.002152 Jy/beam
! Combined flux in latest and established models = 1.77262 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 156 components and 1.77262 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167588Jy  sigma=0.001017
! Fit after  self-cal, rms=0.166415Jy  sigma=0.001011
wmodel J1517-2422_X_2001_10_29_pus_map.mod
! Writing 156 model components to file: J1517-2422_X_2001_10_29_pus_map.mod
wobs J1517-2422_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1517-2422_X_2001_10_29_pus_uvs.fits
wwins J1517-2422_X_2001_10_29_pus_map.win
! wwins: Wrote 5 windows to J1517-2422_X_2001_10_29_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 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00388945 Jy
! Component: 100  -  total flux cleaned = 0.00623294 Jy
! Component: 150  -  total flux cleaned = 0.00749946 Jy
! Component: 200  -  total flux cleaned = 0.00845532 Jy
! Component: 250  -  total flux cleaned = 0.00969864 Jy
! Component: 300  -  total flux cleaned = 0.0104551 Jy
! Component: 350  -  total flux cleaned = 0.0114875 Jy
! Component: 400  -  total flux cleaned = 0.0122772 Jy
! Component: 450  -  total flux cleaned = 0.0130336 Jy
! Component: 500  -  total flux cleaned = 0.0133997 Jy
! Component: 550  -  total flux cleaned = 0.0139339 Jy
! Component: 600  -  total flux cleaned = 0.0143668 Jy
! Component: 650  -  total flux cleaned = 0.0147897 Jy
! Component: 700  -  total flux cleaned = 0.0154502 Jy
! Component: 750  -  total flux cleaned = 0.0159344 Jy
! Component: 800  -  total flux cleaned = 0.0162511 Jy
! Component: 850  -  total flux cleaned = 0.0167184 Jy
! Component: 900  -  total flux cleaned = 0.017177 Jy
! Component: 950  -  total flux cleaned = 0.0176266 Jy
! Component: 1000  -  total flux cleaned = 0.0180681 Jy
! Component: 1050  -  total flux cleaned = 0.018358 Jy
! Component: 1100  -  total flux cleaned = 0.0187868 Jy
! Component: 1150  -  total flux cleaned = 0.0192084 Jy
! Component: 1200  -  total flux cleaned = 0.0195539 Jy
! Component: 1250  -  total flux cleaned = 0.0200307 Jy
! Component: 1300  -  total flux cleaned = 0.0204325 Jy
! Component: 1350  -  total flux cleaned = 0.0206968 Jy
! Component: 1400  -  total flux cleaned = 0.0211529 Jy
! Component: 1450  -  total flux cleaned = 0.0214741 Jy
! Component: 1500  -  total flux cleaned = 0.0217911 Jy
! Component: 1550  -  total flux cleaned = 0.0220414 Jy
! Component: 1600  -  total flux cleaned = 0.0222878 Jy
! Component: 1650  -  total flux cleaned = 0.0225928 Jy
! Component: 1700  -  total flux cleaned = 0.0227736 Jy
! Component: 1750  -  total flux cleaned = 0.0229524 Jy
! Component: 1800  -  total flux cleaned = 0.0231891 Jy
! Component: 1850  -  total flux cleaned = 0.023423 Jy
! Component: 1900  -  total flux cleaned = 0.0235391 Jy
! Component: 1950  -  total flux cleaned = 0.0237681 Jy
! Component: 2000  -  total flux cleaned = 0.0239944 Jy
! Total flux subtracted in 2048 components = 0.0241058 Jy
! Clean residual min=-0.002790 max=0.003567 Jy/beam
! Clean residual mean=0.000166 rms=0.001007 Jy/beam
! Combined flux in latest and established models = 1.79673 Jy
keep
! Adding 88 model components to the UV plane model.
! The established model now contains 242 components and 1.79673 Jy
![Exited script file: muppet]
wmap "J1517-2422_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9232 x 2.886 at -8.546 degrees (North through East)
! Clean map  min=-0.013652  max=1.1891 Jy/beam
! Writing clean map to FITS file: J1517-2422_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.18912 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.64% of the data.
!  The x-axis pixel size should ideally be below 0.1709 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00100876 
device "J1517-2422_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1517-2422_X_2001_10_29_pus_map.eps/VPS'
loglevs 0.509
! The new contour levels are:
!  -0.509 0.509 1.018 2.036 4.072 8.144 16.288 32.576 65.152
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.003 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.189 
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.9232 x 2.886 at -8.546 degrees (North through East)
! Clean map  min=-0.013652  max=1.1891 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1517-2422_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1517-2422_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1517-2422_X_2001_10_29_pus_uvs.log closed on Tue Feb 26 11:37:04 2008