! Started logfile: J1517-2422_X_2000_05_22_pus_uvs.log on Mon Nov 12 18:16:22 2007
obs J1517-2422_X_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1517-2422_X_2000_05_22_pus_uva.fits
! AN table 1: 57 integrations on 190 of 190 possible baselines.
! AN table 2: 118 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0634586 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 1884 lines of history.
! 
! Reading 8440 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_2000_05_22_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 1021 telescope corrections were flagged in sub-array 1.
!  A total of 1723 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 1021 telescope corrections were flagged in sub-array 1.
!  A total of 1723 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 1021 telescope corrections were flagged in sub-array 1.
!  A total of 1723 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 1021 telescope corrections were flagged in sub-array 1.
!  A total of 1723 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.220561Jy  sigma=0.013473
! Fit after  self-cal, rms=0.597721Jy  sigma=0.006959
! 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.775% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.5582 mas, bmaj=3.507 mas, bpa=2.603 degrees
! Estimated noise=1222.53 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.751906 Jy
! Component: 100  -  total flux cleaned = 1.05278 Jy
! Total flux subtracted in 100 components = 1.05278 Jy
! Clean residual min=-0.061413 max=0.159720 Jy/beam
! Clean residual mean=0.003287 rms=0.023892 Jy/beam
! Combined flux in latest and established models = 1.05278 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 1.05278 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.512928Jy  sigma=0.006066
! Fit after  self-cal, rms=0.511028Jy  sigma=0.006055
! Inverting map 
! Your choice of large map pixels excluded 0.775% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Added new window around map position (0.8, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.176469 Jy
! Component: 100  -  total flux cleaned = 0.283729 Jy
! Total flux subtracted in 100 components = 0.283729 Jy
! Clean residual min=-0.045601 max=0.115497 Jy/beam
! Clean residual mean=0.001877 rms=0.016106 Jy/beam
! Combined flux in latest and established models = 1.33651 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 33 components and 1.33651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358833Jy  sigma=0.004148
! Fit after  self-cal, rms=0.352111Jy  sigma=0.004111
! Inverting map 
! Your choice of large map pixels excluded 0.775% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Added new window around map position (1.8, -3.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.110012 Jy
! Component: 100  -  total flux cleaned = 0.179616 Jy
! Total flux subtracted in 100 components = 0.179616 Jy
! Clean residual min=-0.032489 max=0.058170 Jy/beam
! Clean residual mean=0.000976 rms=0.010885 Jy/beam
! Combined flux in latest and established models = 1.51613 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 55 components and 1.51613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268537Jy  sigma=0.003049
! Fit after  self-cal, rms=0.262272Jy  sigma=0.003005
! Inverting map 
! Your choice of large map pixels excluded 0.775% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.775% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.8566 mas, bmaj=4.449 mas, bpa=4.075 degrees
! Estimated noise=742.532 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.144397 Jy
! Component: 100  -  total flux cleaned = 0.22336 Jy
! Component: 150  -  total flux cleaned = 0.270385 Jy
! Component: 200  -  total flux cleaned = 0.299266 Jy
! Total flux subtracted in 200 components = 0.299266 Jy
! Clean residual min=-0.032814 max=0.050418 Jy/beam
! Clean residual mean=-0.001102 rms=0.015533 Jy/beam
! Combined flux in latest and established models = 1.8154 Jy
! Performing phase self-cal
! Adding 69 model components to the UV plane model.
! The established model now contains 105 components and 1.8154 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184827Jy  sigma=0.001923
! Fit after  self-cal, rms=0.180212Jy  sigma=0.001881
! Inverting map 
! Your choice of large map pixels excluded 0.775% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.17     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.06     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.00*    
!   NY        1.00*    OV        1.01     PT        0.99     SC        1.00*    
!   TS        0.93     WF        1.00*    WZ        1.00*    LA        1.07     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.00*    KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.96     
!   NY        1.00*    OV        0.99     PT        0.95     SC        0.96     
!   TS        1.00*    WF        1.04     WZ        1.00*    LA        0.97     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.22     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.00*    
!   NY        1.00*    OV        1.04     PT        0.95     SC        1.00*    
!   TS        0.94     WF        1.00*    WZ        1.00*    LA        1.03     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.08     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.00*    KP        0.95     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.01     
!   NY        1.00*    OV        1.03     PT        0.92     SC        0.98     
!   TS        1.00*    WF        1.06     WZ        1.00*    LA        0.93     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.19     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.07     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        1.00*    
!   NY        1.00*    OV        1.00     PT        0.99     SC        1.00*    
!   TS        0.93     WF        1.00*    WZ        1.00*    LA        1.08     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        1.01     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.00     PT        0.95     SC        1.00     
!   TS        1.00*    WF        1.07     WZ        1.00*    LA        0.97     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.20     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        1.06     
!   MA        1.00*    MC        1.00*    MK        1.07     NL        1.00*    
!   NY        1.00*    OV        0.98     PT        1.00     SC        1.00*    
!   TS        0.92     WF        1.00*    WZ        1.00*    LA        1.05     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.00*    KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00     
!   NY        1.00*    OV        1.01     PT        0.95     SC        1.00     
!   TS        1.00*    WF        1.01     WZ        1.00*    LA        0.95     
! 
! 
! Fit before self-cal, rms=0.180212Jy  sigma=0.001881
! Fit after  self-cal, rms=0.164042Jy  sigma=0.001539
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.8627 mas, bmaj=4.672 mas, bpa=3.486 degrees
! Estimated noise=743.795 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.00150816 Jy
! Component: 100  -  total flux cleaned = -0.0014817 Jy
! Component: 150  -  total flux cleaned = -0.00190066 Jy
! Component: 200  -  total flux cleaned = -0.00209265 Jy
! Total flux subtracted in 200 components = -0.00209265 Jy
! Clean residual min=-0.017778 max=0.034834 Jy/beam
! Clean residual mean=0.000580 rms=0.007727 Jy/beam
! Combined flux in latest and established models = 1.8133 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 111 components and 1.8133 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163320Jy  sigma=0.001529
! Fit after  self-cal, rms=0.163292Jy  sigma=0.001528
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.163292Jy  sigma=0.001528
! Fit after  self-cal, rms=0.163506Jy  sigma=0.001528
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.863 mas, bmaj=4.673 mas, bpa=3.49 degrees
! Estimated noise=744.033 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000215031 Jy
! Component: 100  -  total flux cleaned = -0.000563141 Jy
! Component: 150  -  total flux cleaned = -0.000881786 Jy
! Component: 200  -  total flux cleaned = -0.000884773 Jy
! Total flux subtracted in 200 components = -0.000884773 Jy
! Clean residual min=-0.017109 max=0.034750 Jy/beam
! Clean residual mean=0.000630 rms=0.007697 Jy/beam
! Combined flux in latest and established models = 1.81242 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 117 components and 1.81242 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163114Jy  sigma=0.001522
! Fit after  self-cal, rms=0.162986Jy  sigma=0.001522
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.2, -18.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0319386 Jy
! Component: 100  -  total flux cleaned = 0.0461111 Jy
! Component: 150  -  total flux cleaned = 0.0552865 Jy
! Component: 200  -  total flux cleaned = 0.0587413 Jy
! Total flux subtracted in 200 components = 0.0587413 Jy
! Clean residual min=-0.015701 max=0.020627 Jy/beam
! Clean residual mean=0.000155 rms=0.004598 Jy/beam
! Combined flux in latest and established models = 1.87116 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 148 components and 1.87116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156969Jy  sigma=0.001448
! Fit after  self-cal, rms=0.156680Jy  sigma=0.001444
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Added new window around map position (3, -6.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154619 Jy
! Component: 100  -  total flux cleaned = 0.0165868 Jy
! Component: 150  -  total flux cleaned = 0.0168934 Jy
! Component: 200  -  total flux cleaned = 0.0163263 Jy
! Total flux subtracted in 200 components = 0.0163263 Jy
! Clean residual min=-0.013106 max=0.013037 Jy/beam
! Clean residual mean=-0.000092 rms=0.004037 Jy/beam
! Combined flux in latest and established models = 1.88749 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 170 components and 1.88749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153902Jy  sigma=0.001420
! Fit after  self-cal, rms=0.153594Jy  sigma=0.001417
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.153594Jy  sigma=0.001417
! Fit after  self-cal, rms=0.152065Jy  sigma=0.001406
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.8612 mas, bmaj=4.668 mas, bpa=3.511 degrees
! Estimated noise=742.891 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0107667 Jy
! Component: 100  -  total flux cleaned = 0.0120264 Jy
! Component: 150  -  total flux cleaned = 0.0120354 Jy
! Component: 200  -  total flux cleaned = 0.0118125 Jy
! Total flux subtracted in 200 components = 0.0118125 Jy
! Clean residual min=-0.010718 max=0.011511 Jy/beam
! Clean residual mean=0.000277 rms=0.003219 Jy/beam
! Combined flux in latest and established models = 1.8993 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 192 components and 1.8993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150816Jy  sigma=0.001395
! Fit after  self-cal, rms=0.150717Jy  sigma=0.001394
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.001277 Jy
! Component: 100  -  total flux cleaned = 0.00188075 Jy
! Component: 150  -  total flux cleaned = 0.00151532 Jy
! Component: 200  -  total flux cleaned = 0.00134798 Jy
! Total flux subtracted in 200 components = 0.00134798 Jy
! Clean residual min=-0.010232 max=0.011540 Jy/beam
! Clean residual mean=0.000262 rms=0.003112 Jy/beam
! Combined flux in latest and established models = 1.90065 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 209 components and 1.90065 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150118Jy  sigma=0.001389
! Fit after  self-cal, rms=0.150053Jy  sigma=0.001389
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.150053Jy  sigma=0.001389
! Fit after  self-cal, rms=0.149539Jy  sigma=0.001387
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=2.878 mas, bmaj=6.176 mas, bpa=0.3988 degrees
! Estimated noise=886.414 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00433529 Jy
! Component: 100  -  total flux cleaned = 0.00465115 Jy
! Component: 150  -  total flux cleaned = 0.00402554 Jy
! Component: 200  -  total flux cleaned = 0.00348437 Jy
! Total flux subtracted in 200 components = 0.00348437 Jy
! Clean residual min=-0.010476 max=0.014474 Jy/beam
! Clean residual mean=0.000517 rms=0.003930 Jy/beam
! Combined flux in latest and established models = 1.90413 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 226 components and 1.90413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149066Jy  sigma=0.001384
! Fit after  self-cal, rms=0.149014Jy  sigma=0.001383
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.0010272 Jy
! Component: 100  -  total flux cleaned = 0.00070751 Jy
! Component: 150  -  total flux cleaned = 0.000274622 Jy
! Component: 200  -  total flux cleaned = -0.000118291 Jy
! Total flux subtracted in 200 components = -0.000118291 Jy
! Clean residual min=-0.009476 max=0.014017 Jy/beam
! Clean residual mean=0.000512 rms=0.003699 Jy/beam
! Combined flux in latest and established models = 1.90401 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 234 components and 1.90401 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148832Jy  sigma=0.001382
! Fit after  self-cal, rms=0.148796Jy  sigma=0.001382
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.8609 mas, bmaj=4.668 mas, bpa=3.518 degrees
! Estimated noise=742.722 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8609 x 4.668 at 3.518 degrees (North through East)
! Clean map  min=-0.014297  max=1.0376 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.148796Jy  sigma=0.001382
! Fit after  self-cal, rms=0.135653Jy  sigma=0.001204
! Inverting map and beam 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.8594 mas, bmaj=4.669 mas, bpa=3.544 degrees
! Estimated noise=740.618 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0018212 Jy
! Component: 100  -  total flux cleaned = 0.00127944 Jy
! Component: 150  -  total flux cleaned = 0.00111347 Jy
! Component: 200  -  total flux cleaned = 0.000971518 Jy
! Total flux subtracted in 200 components = 0.000971518 Jy
! Clean residual min=-0.008172 max=0.009159 Jy/beam
! Clean residual mean=0.000271 rms=0.002365 Jy/beam
! Combined flux in latest and established models = 1.90498 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 264 components and 1.90499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135166Jy  sigma=0.001198
! Fit after  self-cal, rms=0.135127Jy  sigma=0.001198
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000999104 Jy
! Component: 100  -  total flux cleaned = 0.00100371 Jy
! Component: 150  -  total flux cleaned = 0.000763401 Jy
! Component: 200  -  total flux cleaned = 0.000761788 Jy
! Total flux subtracted in 200 components = 0.000761788 Jy
! Clean residual min=-0.007922 max=0.009219 Jy/beam
! Clean residual mean=0.000266 rms=0.002310 Jy/beam
! Combined flux in latest and established models = 1.90575 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 279 components and 1.90575 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134866Jy  sigma=0.001195
! Fit after  self-cal, rms=0.134844Jy  sigma=0.001195
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.134844Jy  sigma=0.001195
! Fit after  self-cal, rms=0.134686Jy  sigma=0.001194
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.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.5536 mas, bmaj=3.885 mas, bpa=1.579 degrees
! Estimated noise=1246.85 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.772918 Jy
! Component: 100  -  total flux cleaned = 1.09362 Jy
! Component: 150  -  total flux cleaned = 1.28357 Jy
! Component: 200  -  total flux cleaned = 1.41203 Jy
! Total flux subtracted in 200 components = 1.41203 Jy
! Clean residual min=-0.029936 max=0.071120 Jy/beam
! Clean residual mean=0.002255 rms=0.012568 Jy/beam
! Combined flux in latest and established models = 1.41203 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 31 model components to the UV plane model.
! The established model now contains 31 components and 1.41203 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.8601 mas, bmaj=4.67 mas, bpa=3.542 degrees
! Estimated noise=740.777 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.188389 Jy
! Component: 100  -  total flux cleaned = 0.286086 Jy
! Component: 150  -  total flux cleaned = 0.342174 Jy
! Component: 200  -  total flux cleaned = 0.381102 Jy
! Total flux subtracted in 200 components = 0.381102 Jy
! Clean residual min=-0.016796 max=0.024771 Jy/beam
! Clean residual mean=0.001410 rms=0.008254 Jy/beam
! Combined flux in latest and established models = 1.79313 Jy
! Adding 88 model components to the UV plane model.
! The established model now contains 113 components and 1.79313 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 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.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=2.876 mas, bmaj=6.177 mas, bpa=0.4418 degrees
! Estimated noise=885.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0441867 Jy
! Component: 100  -  total flux cleaned = 0.0719999 Jy
! Component: 150  -  total flux cleaned = 0.0897013 Jy
! Component: 200  -  total flux cleaned = 0.096035 Jy
! Total flux subtracted in 200 components = 0.096035 Jy
! Clean residual min=-0.013136 max=0.013175 Jy/beam
! Clean residual mean=0.000852 rms=0.005014 Jy/beam
! Combined flux in latest and established models = 1.88917 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.00413077 Jy
! Component: 100  -  total flux cleaned = 0.00773321 Jy
! Component: 150  -  total flux cleaned = 0.010105 Jy
! Component: 200  -  total flux cleaned = 0.012473 Jy
! Total flux subtracted in 200 components = 0.012473 Jy
! Clean residual min=-0.010301 max=0.012652 Jy/beam
! Clean residual mean=0.000656 rms=0.003856 Jy/beam
! Combined flux in latest and established models = 1.90164 Jy
! Adding 99 model components to the UV plane model.
! The established model now contains 199 components and 1.90164 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! Estimated beam: bmin=0.8601 mas, bmaj=4.67 mas, bpa=3.542 degrees
! Estimated noise=740.777 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00250789 Jy
! Component: 100  -  total flux cleaned = 0.00329423 Jy
! Component: 150  -  total flux cleaned = 0.0039636 Jy
! Component: 200  -  total flux cleaned = 0.00472737 Jy
! Total flux subtracted in 200 components = 0.00472737 Jy
! Clean residual min=-0.008556 max=0.010394 Jy/beam
! Clean residual mean=0.000260 rms=0.002490 Jy/beam
! Combined flux in latest and established models = 1.90637 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 225 components and 1.90637 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134877Jy  sigma=0.001203
! Fit after  self-cal, rms=0.134603Jy  sigma=0.001197
wmodel J1517-2422_X_2000_05_22_pus_map.mod
! Writing 225 model components to file: J1517-2422_X_2000_05_22_pus_map.mod
wobs J1517-2422_X_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1517-2422_X_2000_05_22_pus_uvs.fits
wwins J1517-2422_X_2000_05_22_pus_map.win
! wwins: Wrote 5 windows to J1517-2422_X_2000_05_22_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.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00135108 Jy
! Component: 100  -  total flux cleaned = 0.00163566 Jy
! Component: 150  -  total flux cleaned = 0.00199259 Jy
! Component: 200  -  total flux cleaned = 0.00244732 Jy
! Component: 250  -  total flux cleaned = 0.00287741 Jy
! Component: 300  -  total flux cleaned = 0.00308066 Jy
! Component: 350  -  total flux cleaned = 0.00317814 Jy
! Component: 400  -  total flux cleaned = 0.00336275 Jy
! Component: 450  -  total flux cleaned = 0.00309839 Jy
! Component: 500  -  total flux cleaned = 0.00309889 Jy
! Component: 550  -  total flux cleaned = 0.00301855 Jy
! Component: 600  -  total flux cleaned = 0.00309944 Jy
! Component: 650  -  total flux cleaned = 0.00340476 Jy
! Component: 700  -  total flux cleaned = 0.00377846 Jy
! Component: 750  -  total flux cleaned = 0.00406924 Jy
! Component: 800  -  total flux cleaned = 0.00456932 Jy
! Component: 850  -  total flux cleaned = 0.00491975 Jy
! Component: 900  -  total flux cleaned = 0.0054669 Jy
! Component: 950  -  total flux cleaned = 0.00593467 Jy
! Component: 1000  -  total flux cleaned = 0.0063282 Jy
! Component: 1050  -  total flux cleaned = 0.00671309 Jy
! Component: 1100  -  total flux cleaned = 0.00690244 Jy
! Component: 1150  -  total flux cleaned = 0.00708829 Jy
! Component: 1200  -  total flux cleaned = 0.00727242 Jy
! Component: 1250  -  total flux cleaned = 0.00751502 Jy
! Component: 1300  -  total flux cleaned = 0.00769568 Jy
! Component: 1350  -  total flux cleaned = 0.00799363 Jy
! Component: 1400  -  total flux cleaned = 0.0081706 Jy
! Component: 1450  -  total flux cleaned = 0.00846417 Jy
! Component: 1500  -  total flux cleaned = 0.00881445 Jy
! Component: 1550  -  total flux cleaned = 0.00916367 Jy
! Component: 1600  -  total flux cleaned = 0.0095693 Jy
! Component: 1650  -  total flux cleaned = 0.00968543 Jy
! Component: 1700  -  total flux cleaned = 0.00991594 Jy
! Component: 1750  -  total flux cleaned = 0.0100311 Jy
! Component: 1800  -  total flux cleaned = 0.0101467 Jy
! Component: 1850  -  total flux cleaned = 0.0102625 Jy
! Component: 1900  -  total flux cleaned = 0.0104364 Jy
! Component: 1950  -  total flux cleaned = 0.0106114 Jy
! Component: 2000  -  total flux cleaned = 0.0107284 Jy
! Total flux subtracted in 2048 components = 0.0109052 Jy
! Clean residual min=-0.003161 max=0.003478 Jy/beam
! Clean residual mean=0.000179 rms=0.001113 Jy/beam
! Combined flux in latest and established models = 1.91727 Jy
keep
! Adding 129 model components to the UV plane model.
! The established model now contains 354 components and 1.91727 Jy
![Exited script file: muppet]
wmap "J1517-2422_X_2000_05_22_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8601 x 4.67 at 3.542 degrees (North through East)
! Clean map  min=-0.011528  max=1.0394 Jy/beam
! Writing clean map to FITS file: J1517-2422_X_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.03936 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.788% of the data.
!  The x-axis pixel size should ideally be below 0.19 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00106494 
device "J1517-2422_X_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1517-2422_X_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.307384 0.307384 0.614767 1.22953 2.45907 4.91814 9.83627 19.6725 39.3451 78.6902
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0031 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.039 
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.8601 x 4.67 at 3.542 degrees (North through East)
! Clean map  min=-0.011528  max=1.0394 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1517-2422_X_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1517-2422_X_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1517-2422_X_2000_05_22_pus_uvs.log closed on Mon Nov 12 18:16:32 2007