! Started logfile: J1316-3338_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:32:52 2008
obs J1316-3338_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J1316-3338_X_1998_10_01_pus_uva.fits
! AN table 1: 37 integrations on 136 of 136 possible baselines.
! AN table 2: 37 integrations on 136 of 136 possible baselines.
! AN table 3: 32 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.129093 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1316-3338
! 
! 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.40798e+09        4e+06          1        4e+06
!  02        2  8.47798e+09        4e+06          1        4e+06
!  03        3  8.79298e+09        4e+06          1        4e+06
!  04        4  8.89798e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 2049 lines of history.
! 
! Reading 7444 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1316-3338_X_1998_10_01_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 = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 629 telescope corrections were flagged in sub-array 1.
!  A total of 312 telescope corrections were flagged in sub-array 2.
!  A total of 366 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 629 telescope corrections were flagged in sub-array 1.
!  A total of 312 telescope corrections were flagged in sub-array 2.
!  A total of 366 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 629 telescope corrections were flagged in sub-array 1.
!  A total of 312 telescope corrections were flagged in sub-array 2.
!  A total of 366 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 629 telescope corrections were flagged in sub-array 1.
!  A total of 312 telescope corrections were flagged in sub-array 2.
!  A total of 366 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.756350Jy  sigma=0.005133
! Fit after  self-cal, rms=0.703458Jy  sigma=0.004663
! 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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6568 mas, bmaj=2.041 mas, bpa=-0.9678 degrees
! Estimated noise=1545.22 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.412355 Jy
! Component: 100  -  total flux cleaned = 0.523675 Jy
! Total flux subtracted in 100 components = 0.523676 Jy
! Clean residual min=-0.027455 max=0.081993 Jy/beam
! Clean residual mean=0.002314 rms=0.012561 Jy/beam
! Combined flux in latest and established models = 0.523676 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 0.523676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.566738Jy  sigma=0.002805
! Fit after  self-cal, rms=0.566780Jy  sigma=0.002805
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Added new window around map position (-1, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0799371 Jy
! Component: 100  -  total flux cleaned = 0.12946 Jy
! Total flux subtracted in 100 components = 0.12946 Jy
! Clean residual min=-0.022411 max=0.038901 Jy/beam
! Clean residual mean=0.001322 rms=0.007644 Jy/beam
! Combined flux in latest and established models = 0.653135 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 24 components and 0.653135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.550770Jy  sigma=0.002467
! Fit after  self-cal, rms=0.550373Jy  sigma=0.002460
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.7824 mas, bmaj=2.386 mas, bpa=-2.674 degrees
! Estimated noise=916.425 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.0564227 Jy
! Component: 100  -  total flux cleaned = 0.0861246 Jy
! Component: 150  -  total flux cleaned = 0.103155 Jy
! Component: 200  -  total flux cleaned = 0.113491 Jy
! Total flux subtracted in 200 components = 0.113491 Jy
! Clean residual min=-0.009063 max=0.019784 Jy/beam
! Clean residual mean=0.001674 rms=0.004169 Jy/beam
! Combined flux in latest and established models = 0.766626 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 48 components and 0.766626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.545021Jy  sigma=0.002341
! Fit after  self-cal, rms=0.544859Jy  sigma=0.002336
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        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*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.01     GC        1.00*    HN        1.00*    
!   KK        1.02     KP        0.98     LA        1.00     MK        1.01     
!   NL        1.02     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        0.99     SC        1.00     WF        1.00*    MC        1.00*    
!   GN        1.09     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.07     GC        1.00*    HN        1.00*    
!   KK        0.95     KP        1.00*    LA        1.00     MK        1.06     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.00     
!   PT        1.01     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        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*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        1.00*    HN        1.00*    
!   KK        0.98     KP        0.99     LA        0.98     MK        0.97     
!   NL        1.07     NY        1.00*    ON        1.00*    OV        1.01     
!   PT        0.98     SC        0.96     WF        1.00*    MC        1.00*    
!   GN        1.12     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.06     GC        1.00*    HN        1.00*    
!   KK        1.00     KP        1.00*    LA        0.97     MK        0.99     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.00     
!   PT        0.99     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        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*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        1.00*    HN        1.00*    
!   KK        1.00     KP        1.00     LA        0.94     MK        1.04     
!   NL        1.06     NY        1.00*    ON        1.00*    OV        0.97     
!   PT        1.00     SC        1.06     WF        1.00*    MC        1.00*    
!   GN        1.10     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.03     GC        1.00*    HN        1.00*    
!   KK        0.96     KP        1.00*    LA        0.97     MK        1.02     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.00     
!   PT        0.98     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        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*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.96     GC        1.00*    HN        1.00*    
!   KK        0.99     KP        0.96     LA        0.94     MK        0.98     
!   NL        1.10     NY        1.00*    ON        1.00*    OV        0.97     
!   PT        0.98     SC        0.95     WF        1.00*    MC        1.00*    
!   GN        1.11     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.05     GC        1.00*    HN        1.00*    
!   KK        0.99     KP        1.00*    LA        0.99     MK        1.00     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        0.95     
!   PT        0.91     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.544859Jy  sigma=0.002336
! Fit after  self-cal, rms=0.537898Jy  sigma=0.002315
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.7851 mas, bmaj=2.379 mas, bpa=-2.604 degrees
! Estimated noise=912.379 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.00519844 Jy
! Component: 100  -  total flux cleaned = 0.00536077 Jy
! Component: 150  -  total flux cleaned = 0.00561592 Jy
! Component: 200  -  total flux cleaned = 0.00543375 Jy
! Total flux subtracted in 200 components = 0.00543375 Jy
! Clean residual min=-0.008400 max=0.012733 Jy/beam
! Clean residual mean=0.000576 rms=0.003104 Jy/beam
! Combined flux in latest and established models = 0.77206 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 57 components and 0.77206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.537808Jy  sigma=0.002313
! Fit after  self-cal, rms=0.537919Jy  sigma=0.002313
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.537919Jy  sigma=0.002313
! Fit after  self-cal, rms=0.536662Jy  sigma=0.002313
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.7848 mas, bmaj=2.38 mas, bpa=-2.592 degrees
! Estimated noise=911.486 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00258768 Jy
! Component: 100  -  total flux cleaned = 0.00248962 Jy
! Component: 150  -  total flux cleaned = 0.0023467 Jy
! Component: 200  -  total flux cleaned = 0.00228285 Jy
! Total flux subtracted in 200 components = 0.00228285 Jy
! Clean residual min=-0.007597 max=0.012813 Jy/beam
! Clean residual mean=0.000650 rms=0.003020 Jy/beam
! Combined flux in latest and established models = 0.774343 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 62 components and 0.774343 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.536624Jy  sigma=0.002312
! Fit after  self-cal, rms=0.536626Jy  sigma=0.002312
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.00059377 Jy
! Component: 100  -  total flux cleaned = 0.000589612 Jy
! Component: 150  -  total flux cleaned = 0.000588454 Jy
! Component: 200  -  total flux cleaned = 0.000484101 Jy
! Total flux subtracted in 200 components = 0.000484101 Jy
! Clean residual min=-0.007265 max=0.012771 Jy/beam
! Clean residual mean=0.000636 rms=0.003001 Jy/beam
! Combined flux in latest and established models = 0.774827 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 64 components and 0.774827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.536602Jy  sigma=0.002312
! Fit after  self-cal, rms=0.536608Jy  sigma=0.002311
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Added new window around map position (-3.4, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0118647 Jy
! Component: 100  -  total flux cleaned = 0.0178566 Jy
! Component: 150  -  total flux cleaned = 0.0194499 Jy
! Component: 200  -  total flux cleaned = 0.0210697 Jy
! Total flux subtracted in 200 components = 0.0210697 Jy
! Clean residual min=-0.007352 max=0.009372 Jy/beam
! Clean residual mean=0.000060 rms=0.002463 Jy/beam
! Combined flux in latest and established models = 0.795897 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 79 components and 0.795897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.536354Jy  sigma=0.002306
! Fit after  self-cal, rms=0.536275Jy  sigma=0.002306
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.536275Jy  sigma=0.002306
! Fit after  self-cal, rms=0.531694Jy  sigma=0.002305
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.7845 mas, bmaj=2.377 mas, bpa=-2.526 degrees
! Estimated noise=908.614 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00458303 Jy
! Component: 100  -  total flux cleaned = 0.00587521 Jy
! Component: 150  -  total flux cleaned = 0.00707805 Jy
! Component: 200  -  total flux cleaned = 0.00765314 Jy
! Total flux subtracted in 200 components = 0.00765314 Jy
! Clean residual min=-0.006593 max=0.009138 Jy/beam
! Clean residual mean=0.000201 rms=0.002243 Jy/beam
! Combined flux in latest and established models = 0.80355 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 92 components and 0.80355 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.531652Jy  sigma=0.002304
! Fit after  self-cal, rms=0.531610Jy  sigma=0.002304
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.00078322 Jy
! Component: 100  -  total flux cleaned = 0.00112087 Jy
! Component: 150  -  total flux cleaned = 0.00135831 Jy
! Component: 200  -  total flux cleaned = 0.00158523 Jy
! Total flux subtracted in 200 components = 0.00158523 Jy
! Clean residual min=-0.006355 max=0.008993 Jy/beam
! Clean residual mean=0.000156 rms=0.002230 Jy/beam
! Combined flux in latest and established models = 0.805135 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 100 components and 0.805135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.531577Jy  sigma=0.002304
! Fit after  self-cal, rms=0.531572Jy  sigma=0.002304
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.531572Jy  sigma=0.002304
! Fit after  self-cal, rms=0.529854Jy  sigma=0.002304
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=2.3 mas, bmaj=7.343 mas, bpa=9.184 degrees
! Estimated noise=1183.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00242876 Jy
! Component: 100  -  total flux cleaned = 0.00297213 Jy
! Component: 150  -  total flux cleaned = 0.00303531 Jy
! Component: 200  -  total flux cleaned = 0.00303244 Jy
! Total flux subtracted in 200 components = 0.00303244 Jy
! Clean residual min=-0.005940 max=0.012850 Jy/beam
! Clean residual mean=0.000629 rms=0.003287 Jy/beam
! Combined flux in latest and established models = 0.808168 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 110 components and 0.808168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.529852Jy  sigma=0.002303
! Fit after  self-cal, rms=0.529835Jy  sigma=0.002303
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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 = 2.62093e-05 Jy
! Component: 100  -  total flux cleaned = 0.000127229 Jy
! Component: 150  -  total flux cleaned = 0.000127236 Jy
! Component: 200  -  total flux cleaned = 0.000125924 Jy
! Total flux subtracted in 200 components = 0.000125924 Jy
! Clean residual min=-0.006076 max=0.012750 Jy/beam
! Clean residual mean=0.000619 rms=0.003282 Jy/beam
! Combined flux in latest and established models = 0.808294 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 113 components and 0.808294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.529824Jy  sigma=0.002303
! Fit after  self-cal, rms=0.529823Jy  sigma=0.002303
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.7845 mas, bmaj=2.377 mas, bpa=-2.493 degrees
! Estimated noise=907.569 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7845 x 2.377 at -2.493 degrees (North through East)
! Clean map  min=-0.0068991  max=0.5612 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.529823Jy  sigma=0.002303
! Fit after  self-cal, rms=0.353138Jy  sigma=0.002110
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.7842 mas, bmaj=2.377 mas, bpa=-2.472 degrees
! Estimated noise=904.549 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.02166e-05 Jy
! Component: 100  -  total flux cleaned = 6.53219e-05 Jy
! Component: 150  -  total flux cleaned = 6.40304e-05 Jy
! Component: 200  -  total flux cleaned = 0.000194903 Jy
! Total flux subtracted in 200 components = 0.000194903 Jy
! Clean residual min=-0.005941 max=0.008385 Jy/beam
! Clean residual mean=0.000339 rms=0.002037 Jy/beam
! Combined flux in latest and established models = 0.808488 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 122 components and 0.808488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353092Jy  sigma=0.002109
! Fit after  self-cal, rms=0.353094Jy  sigma=0.002109
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -5.99764e-06 Jy
! Component: 100  -  total flux cleaned = 0.000170605 Jy
! Component: 150  -  total flux cleaned = 0.000227076 Jy
! Component: 200  -  total flux cleaned = 0.000280552 Jy
! Total flux subtracted in 200 components = 0.000280552 Jy
! Clean residual min=-0.005981 max=0.008355 Jy/beam
! Clean residual mean=0.000332 rms=0.002025 Jy/beam
! Combined flux in latest and established models = 0.808769 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 124 components and 0.808769 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353069Jy  sigma=0.002109
! Fit after  self-cal, rms=0.353070Jy  sigma=0.002109
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.353070Jy  sigma=0.002109
! Fit after  self-cal, rms=0.363341Jy  sigma=0.002109
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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6597 mas, bmaj=2.037 mas, bpa=-0.6514 degrees
! Estimated noise=1535.35 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.408697 Jy
! Component: 100  -  total flux cleaned = 0.530348 Jy
! Component: 150  -  total flux cleaned = 0.605463 Jy
! Component: 200  -  total flux cleaned = 0.654841 Jy
! Total flux subtracted in 200 components = 0.654841 Jy
! Clean residual min=-0.016919 max=0.027773 Jy/beam
! Clean residual mean=0.001360 rms=0.006323 Jy/beam
! Combined flux in latest and established models = 0.654841 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 24 model components to the UV plane model.
! The established model now contains 24 components and 0.654841 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.7846 mas, bmaj=2.379 mas, bpa=-2.442 degrees
! Estimated noise=904.114 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.0513213 Jy
! Component: 100  -  total flux cleaned = 0.07868 Jy
! Component: 150  -  total flux cleaned = 0.0963364 Jy
! Component: 200  -  total flux cleaned = 0.109541 Jy
! Total flux subtracted in 200 components = 0.109541 Jy
! Clean residual min=-0.007067 max=0.010446 Jy/beam
! Clean residual mean=0.001570 rms=0.003096 Jy/beam
! Combined flux in latest and established models = 0.764382 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 67 components and 0.764382 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=2.297 mas, bmaj=7.342 mas, bpa=9.145 degrees
! Estimated noise=1180.65 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0172574 Jy
! Component: 100  -  total flux cleaned = 0.0277761 Jy
! Component: 150  -  total flux cleaned = 0.0344911 Jy
! Component: 200  -  total flux cleaned = 0.038817 Jy
! Total flux subtracted in 200 components = 0.038817 Jy
! Clean residual min=-0.006335 max=0.012164 Jy/beam
! Clean residual mean=0.001141 rms=0.003106 Jy/beam
! Combined flux in latest and established models = 0.803199 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.00279499 Jy
! Component: 100  -  total flux cleaned = 0.00410724 Jy
! Component: 150  -  total flux cleaned = 0.00448655 Jy
! Component: 200  -  total flux cleaned = 0.00477167 Jy
! Total flux subtracted in 200 components = 0.00477167 Jy
! Clean residual min=-0.006335 max=0.011891 Jy/beam
! Clean residual mean=0.000851 rms=0.003006 Jy/beam
! Combined flux in latest and established models = 0.807971 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 97 components and 0.807971 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.7846 mas, bmaj=2.379 mas, bpa=-2.442 degrees
! Estimated noise=904.114 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00330566 Jy
! Component: 100  -  total flux cleaned = -0.00245643 Jy
! Component: 150  -  total flux cleaned = -0.0015846 Jy
! Component: 200  -  total flux cleaned = -0.00114004 Jy
! Total flux subtracted in 200 components = -0.00114004 Jy
! Clean residual min=-0.006738 max=0.008369 Jy/beam
! Clean residual mean=0.000420 rms=0.002131 Jy/beam
! Combined flux in latest and established models = 0.806831 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 109 components and 0.806831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363474Jy  sigma=0.002111
! Fit after  self-cal, rms=0.363469Jy  sigma=0.002111
wmodel J1316-3338_X_1998_10_01_pus_map.mod
! Writing 109 model components to file: J1316-3338_X_1998_10_01_pus_map.mod
wobs J1316-3338_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J1316-3338_X_1998_10_01_pus_uvs.fits
wwins J1316-3338_X_1998_10_01_pus_map.win
! wwins: Wrote 3 windows to J1316-3338_X_1998_10_01_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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00147756 Jy
! Component: 100  -  total flux cleaned = 0.00124641 Jy
! Component: 150  -  total flux cleaned = 0.00146301 Jy
! Component: 200  -  total flux cleaned = 0.0017617 Jy
! Component: 250  -  total flux cleaned = 0.00232337 Jy
! Component: 300  -  total flux cleaned = 0.00250113 Jy
! Component: 350  -  total flux cleaned = 0.0027587 Jy
! Component: 400  -  total flux cleaned = 0.00308779 Jy
! Component: 450  -  total flux cleaned = 0.00348357 Jy
! Component: 500  -  total flux cleaned = 0.00386772 Jy
! Component: 550  -  total flux cleaned = 0.0043139 Jy
! Component: 600  -  total flux cleaned = 0.00445742 Jy
! Component: 650  -  total flux cleaned = 0.00480874 Jy
! Component: 700  -  total flux cleaned = 0.00508175 Jy
! Component: 750  -  total flux cleaned = 0.0054156 Jy
! Component: 800  -  total flux cleaned = 0.00561159 Jy
! Component: 850  -  total flux cleaned = 0.00599269 Jy
! Component: 900  -  total flux cleaned = 0.00630165 Jy
! Component: 950  -  total flux cleaned = 0.00666325 Jy
! Component: 1000  -  total flux cleaned = 0.00695879 Jy
! Total flux subtracted in 1024 components = 0.00713351 Jy
! Clean residual min=-0.003859 max=0.002971 Jy/beam
! Clean residual mean=0.000196 rms=0.001279 Jy/beam
! Combined flux in latest and established models = 0.813965 Jy
keep
! Adding 62 model components to the UV plane model.
! The established model now contains 171 components and 0.813965 Jy
![Exited script file: muppet]
wmap "J1316-3338_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7846 x 2.379 at -2.442 degrees (North through East)
! Clean map  min=-0.0065632  max=0.55532 Jy/beam
! Writing clean map to FITS file: J1316-3338_X_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.555321 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00127521 
device "J1316-3338_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J1316-3338_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.688904 0.688904 1.37781 2.75562 5.51123 11.0225 22.0449 44.0899 88.1797
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0038 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.555 
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.7846 x 2.379 at -2.442 degrees (North through East)
! Clean map  min=-0.0065632  max=0.55532 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1316-3338_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J1316-3338_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1316-3338_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:32:56 2008