! Started logfile: J1337-1257_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:25:53 2008
obs J1337-1257_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J1337-1257_S_1999_03_08_pus_uva.fits
! AN table 1: 51 integrations on 190 of 190 possible baselines.
! AN table 2: 66 integrations on 190 of 190 possible baselines.
! AN table 3: 244 integrations on 190 of 190 possible baselines.
! AN table 4: 25 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.103122 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1337-1257
! 
! 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2332 lines of history.
! 
! Reading 30252 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.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1337-1257_S_1999_03_08_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.500x0.500 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 696 telescope corrections were flagged in sub-array 1.
!  A total of 1004 telescope corrections were flagged in sub-array 2.
!  A total of 3997 telescope corrections were flagged in sub-array 3.
!  A total of 300 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 696 telescope corrections were flagged in sub-array 1.
!  A total of 1004 telescope corrections were flagged in sub-array 2.
!  A total of 3997 telescope corrections were flagged in sub-array 3.
!  A total of 300 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 685 telescope corrections were flagged in sub-array 1.
!  A total of 1003 telescope corrections were flagged in sub-array 2.
!  A total of 3859 telescope corrections were flagged in sub-array 3.
!  A total of 300 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 685 telescope corrections were flagged in sub-array 1.
!  A total of 1003 telescope corrections were flagged in sub-array 2.
!  A total of 3859 telescope corrections were flagged in sub-array 3.
!  A total of 300 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.284052Jy  sigma=0.007765
! Fit after  self-cal, rms=0.583043Jy  sigma=0.003295
! 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 
! Estimated beam: bmin=1.982 mas, bmaj=4.147 mas, bpa=3.709 degrees
! Estimated noise=1261.16 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.962679 Jy
! Component: 100  -  total flux cleaned = 1.2418 Jy
! Total flux subtracted in 100 components = 1.2418 Jy
! Clean residual min=-0.034662 max=0.125144 Jy/beam
! Clean residual mean=0.000051 rms=0.012433 Jy/beam
! Combined flux in latest and established models = 1.2418 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.2418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.469025Jy  sigma=0.002287
! Fit after  self-cal, rms=0.469003Jy  sigma=0.002286
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.136925 Jy
! Component: 100  -  total flux cleaned = 0.210624 Jy
! Total flux subtracted in 100 components = 0.210624 Jy
! Clean residual min=-0.024877 max=0.041203 Jy/beam
! Clean residual mean=0.000012 rms=0.008300 Jy/beam
! Combined flux in latest and established models = 1.45242 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 25 components and 1.45242 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.415642Jy  sigma=0.001719
! Fit after  self-cal, rms=0.415565Jy  sigma=0.001718
! Inverting map 
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 
! Estimated beam: bmin=2.438 mas, bmaj=5.555 mas, bpa=-1.156 degrees
! Estimated noise=664.199 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.0612039 Jy
! Component: 100  -  total flux cleaned = 0.0900837 Jy
! Component: 150  -  total flux cleaned = 0.105021 Jy
! Component: 200  -  total flux cleaned = 0.112979 Jy
! Total flux subtracted in 200 components = 0.112979 Jy
! Clean residual min=-0.021295 max=0.023538 Jy/beam
! Clean residual mean=-0.000306 rms=0.005855 Jy/beam
! Combined flux in latest and established models = 1.5654 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 42 components and 1.5654 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.408418Jy  sigma=0.001625
! Fit after  self-cal, rms=0.408387Jy  sigma=0.001624
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HN        0.97     KP        1.00*    LA        1.00     NL        0.99     
!   OV        1.00*    PT        1.08     SC        1.04     WF        0.96     
!   GN        1.00     HH        1.00*    KK        1.00*    MC        0.92     
!   MK        1.00*    NY        1.00*    ON        1.06     WZ        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.09     GC        1.00*    GG        1.00*    
!   HN        0.95     KP        0.97     LA        1.00*    NL        1.01     
!   OV        0.99     PT        1.01     SC        0.96     WF        0.89     
!   GN        1.00     HH        1.00*    KK        1.07     MC        1.00*    
!   MK        0.93     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.96     GC        1.00*    GG        1.00*    
!   HN        0.97     KP        0.98     LA        0.98     NL        0.98     
!   OV        1.03     PT        1.01     SC        1.00     WF        0.96     
!   GN        0.95     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.14     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.01     GC        1.16     GG        1.00*    
!   HN        1.00*    KP        0.96     LA        1.00     NL        1.00*    
!   OV        1.02     PT        1.04     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.00     MC        1.00*    
!   MK        0.96     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.08     GC        1.00*    GG        1.00*    
!   HN        0.94     KP        1.00*    LA        1.03     NL        1.02     
!   OV        1.00*    PT        1.04     SC        1.09     WF        0.97     
!   GN        1.00     HH        1.00*    KK        1.00*    MC        1.17     
!   MK        1.00*    NY        1.00*    ON        1.00     WZ        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.81     GC        1.00*    GG        1.00*    
!   HN        0.94     KP        0.96     LA        1.00*    NL        0.96     
!   OV        0.95     PT        0.98     SC        1.00     WF        0.93     
!   GN        1.00     HH        1.00*    KK        1.02     MC        1.00*    
!   MK        0.95     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00     GC        1.00*    GG        1.00*    
!   HN        0.94     KP        0.97     LA        0.96     NL        0.98     
!   OV        1.03     PT        0.96     SC        1.05     WF        0.97     
!   GN        0.96     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.16     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.05     GC        1.17     GG        1.00*    
!   HN        1.00*    KP        1.01     LA        0.98     NL        1.00*    
!   OV        0.99     PT        1.05     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        0.96     MC        1.00*    
!   MK        0.97     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HN        1.20     KP        1.00*    LA        1.06     NL        0.99     
!   OV        1.00*    PT        1.01     SC        1.04     WF        0.98     
!   GN        1.00     HH        0.95     KK        1.00*    MC        2.56     
!   MK        1.00*    NY        1.00*    ON        1.02     WZ        0.93     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.71     GC        1.00*    GG        1.00*    
!   HN        1.15     KP        0.97     LA        1.00*    NL        0.99     
!   OV        0.96     PT        0.94     SC        0.95     WF        0.93     
!   GN        1.01     HH        1.00*    KK        1.04     MC        1.00*    
!   MK        0.94     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.98     GC        1.00*    GG        1.00*    
!   HN        1.20     KP        0.96     LA        0.97     NL        0.98     
!   OV        1.05     PT        0.96     SC        1.00     WF        0.97     
!   GN        0.96     HH        0.94     KK        1.00*    MC        0.91     
!   MK        1.00*    NY        1.00*    ON        1.04     WZ        1.05     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.02     GC        1.14     GG        1.00*    
!   HN        1.00*    KP        1.01     LA        1.01     NL        1.00*    
!   OV        1.01     PT        1.03     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        0.96     MC        1.00*    
!   MK        0.96     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HN        1.15     KP        1.00*    LA        1.06     NL        1.02     
!   OV        1.00*    PT        1.01     SC        1.05     WF        0.98     
!   GN        0.99     HH        1.08     KK        1.00*    MC        1.70     
!   MK        1.00*    NY        1.00*    ON        1.02     WZ        0.95     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        2.07     GC        1.00*    GG        1.00*    
!   HN        1.10     KP        0.97     LA        1.00*    NL        0.95     
!   OV        0.96     PT        0.89     SC        0.94     WF        0.94     
!   GN        1.00     HH        1.00*    KK        1.09     MC        1.00*    
!   MK        0.95     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.96     GC        1.00*    GG        1.00*    
!   HN        1.13     KP        0.97     LA        0.98     NL        0.99     
!   OV        1.06     PT        0.94     SC        1.00     WF        0.97     
!   GN        0.94     HH        1.01     KK        1.00*    MC        1.25     
!   MK        1.00*    NY        1.00*    ON        0.99     WZ        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.02     GC        1.14     GG        1.00*    
!   HN        1.00*    KP        1.02     LA        1.00     NL        1.00*    
!   OV        1.01     PT        1.10     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.01     MC        1.00*    
!   MK        0.97     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.408387Jy  sigma=0.001624
! Fit after  self-cal, rms=0.483237Jy  sigma=0.001370
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.49 mas, bmaj=5.646 mas, bpa=0.2827 degrees
! Estimated noise=673.233 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.00556477 Jy
! Component: 100  -  total flux cleaned = -0.00559011 Jy
! Component: 150  -  total flux cleaned = -0.00595139 Jy
! Component: 200  -  total flux cleaned = -0.00596125 Jy
! Total flux subtracted in 200 components = -0.00596125 Jy
! Clean residual min=-0.013460 max=0.011620 Jy/beam
! Clean residual mean=0.000494 rms=0.002406 Jy/beam
! Combined flux in latest and established models = 1.55944 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 51 components and 1.55944 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.482595Jy  sigma=0.001362
! Fit after  self-cal, rms=0.482925Jy  sigma=0.001362
! Inverting map 
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.482925Jy  sigma=0.001362
! Fit after  self-cal, rms=0.485266Jy  sigma=0.001355
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.506 mas, bmaj=5.656 mas, bpa=0.3117 degrees
! Estimated noise=673.888 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00571474 Jy
! Component: 100  -  total flux cleaned = -0.00604125 Jy
! Component: 150  -  total flux cleaned = -0.00633681 Jy
! Component: 200  -  total flux cleaned = -0.00660229 Jy
! Total flux subtracted in 200 components = -0.00660229 Jy
! Clean residual min=-0.010812 max=0.011654 Jy/beam
! Clean residual mean=0.000493 rms=0.002186 Jy/beam
! Combined flux in latest and established models = 1.55284 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 54 components and 1.55284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484855Jy  sigma=0.001350
! Fit after  self-cal, rms=0.484844Jy  sigma=0.001350
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (15.5, -23).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0111406 Jy
! Component: 100  -  total flux cleaned = 0.0148254 Jy
! Component: 150  -  total flux cleaned = 0.0158888 Jy
! Component: 200  -  total flux cleaned = 0.0170443 Jy
! Total flux subtracted in 200 components = 0.0170443 Jy
! Clean residual min=-0.011082 max=0.008551 Jy/beam
! Clean residual mean=0.000222 rms=0.001879 Jy/beam
! Combined flux in latest and established models = 1.56988 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 73 components and 1.56988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484528Jy  sigma=0.001345
! Fit after  self-cal, rms=0.484507Jy  sigma=0.001345
! Inverting map 
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.484507Jy  sigma=0.001345
! Fit after  self-cal, rms=0.487702Jy  sigma=0.001343
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.519 mas, bmaj=5.665 mas, bpa=0.3772 degrees
! Estimated noise=674.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0045179 Jy
! Component: 100  -  total flux cleaned = -0.00328093 Jy
! Component: 150  -  total flux cleaned = -0.00241391 Jy
! Component: 200  -  total flux cleaned = -0.0016386 Jy
! Total flux subtracted in 200 components = -0.0016386 Jy
! Clean residual min=-0.009543 max=0.007296 Jy/beam
! Clean residual mean=0.000257 rms=0.001688 Jy/beam
! Combined flux in latest and established models = 1.56824 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 75 components and 1.56824 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.487468Jy  sigma=0.001340
! Fit after  self-cal, rms=0.487451Jy  sigma=0.001340
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.00123983 Jy
! Component: 100  -  total flux cleaned = 0.00219378 Jy
! Component: 150  -  total flux cleaned = 0.00276907 Jy
! Component: 200  -  total flux cleaned = 0.00316604 Jy
! Total flux subtracted in 200 components = 0.00316604 Jy
! Clean residual min=-0.009059 max=0.007180 Jy/beam
! Clean residual mean=0.000206 rms=0.001632 Jy/beam
! Combined flux in latest and established models = 1.57141 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 81 components and 1.57141 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.487369Jy  sigma=0.001339
! Fit after  self-cal, rms=0.487356Jy  sigma=0.001339
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.487356Jy  sigma=0.001339
! Fit after  self-cal, rms=0.489760Jy  sigma=0.001338
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.984 mas, bmaj=12.12 mas, bpa=-13.37 degrees
! Estimated noise=865.241 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00268303 Jy
! Component: 100  -  total flux cleaned = -0.00205091 Jy
! Component: 150  -  total flux cleaned = -0.00171962 Jy
! Component: 200  -  total flux cleaned = -0.00147175 Jy
! Total flux subtracted in 200 components = -0.00147175 Jy
! Clean residual min=-0.005991 max=0.007768 Jy/beam
! Clean residual mean=0.000525 rms=0.002017 Jy/beam
! Combined flux in latest and established models = 1.56993 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 86 components and 1.56993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.489741Jy  sigma=0.001337
! Fit after  self-cal, rms=0.489689Jy  sigma=0.001337
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 = -3.10679e-05 Jy
! Component: 100  -  total flux cleaned = 4.22514e-05 Jy
! Component: 150  -  total flux cleaned = 0.000343439 Jy
! Component: 200  -  total flux cleaned = 0.000577261 Jy
! Total flux subtracted in 200 components = 0.000577261 Jy
! Clean residual min=-0.005871 max=0.007583 Jy/beam
! Clean residual mean=0.000503 rms=0.002007 Jy/beam
! Combined flux in latest and established models = 1.57051 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 89 components and 1.57051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.489713Jy  sigma=0.001337
! Fit after  self-cal, rms=0.489665Jy  sigma=0.001336
! Inverting map 
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 
! Estimated beam: bmin=2.529 mas, bmaj=5.669 mas, bpa=0.4495 degrees
! Estimated noise=675.046 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.529 x 5.669 at 0.4495 degrees (North through East)
! Clean map  min=-0.0078147  max=1.1986 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.489665Jy  sigma=0.001336
! Fit after  self-cal, rms=0.556423Jy  sigma=0.001211
! Inverting map and beam 
! Estimated beam: bmin=2.531 mas, bmaj=5.68 mas, bpa=0.3914 degrees
! Estimated noise=673.642 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00359865 Jy
! Component: 100  -  total flux cleaned = -0.00398159 Jy
! Component: 150  -  total flux cleaned = -0.00398727 Jy
! Component: 200  -  total flux cleaned = -0.00425469 Jy
! Total flux subtracted in 200 components = -0.00425469 Jy
! Clean residual min=-0.007470 max=0.005587 Jy/beam
! Clean residual mean=0.000176 rms=0.001388 Jy/beam
! Combined flux in latest and established models = 1.56626 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 92 components and 1.56626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556292Jy  sigma=0.001209
! Fit after  self-cal, rms=0.556269Jy  sigma=0.001209
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000136573 Jy
! Component: 100  -  total flux cleaned = -0.000243271 Jy
! Component: 150  -  total flux cleaned = -0.000338036 Jy
! Component: 200  -  total flux cleaned = -0.000252381 Jy
! Total flux subtracted in 200 components = -0.000252381 Jy
! Clean residual min=-0.006905 max=0.005698 Jy/beam
! Clean residual mean=0.000179 rms=0.001367 Jy/beam
! Combined flux in latest and established models = 1.566 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 100 components and 1.566 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556231Jy  sigma=0.001209
! Fit after  self-cal, rms=0.556222Jy  sigma=0.001209
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556222Jy  sigma=0.001209
! Fit after  self-cal, rms=0.558085Jy  sigma=0.001208
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 
! Estimated beam: bmin=2.037 mas, bmaj=4.197 mas, bpa=5.35 degrees
! Estimated noise=1358.99 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.987417 Jy
! Component: 100  -  total flux cleaned = 1.25683 Jy
! Component: 150  -  total flux cleaned = 1.37926 Jy
! Component: 200  -  total flux cleaned = 1.44039 Jy
! Total flux subtracted in 200 components = 1.44039 Jy
! Clean residual min=-0.014314 max=0.032076 Jy/beam
! Clean residual mean=0.000071 rms=0.003580 Jy/beam
! Combined flux in latest and established models = 1.44039 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 17 model components to the UV plane model.
! The established model now contains 17 components and 1.44039 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.539 mas, bmaj=5.683 mas, bpa=0.4567 degrees
! Estimated noise=673.909 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.0463328 Jy
! Component: 100  -  total flux cleaned = 0.0685277 Jy
! Component: 150  -  total flux cleaned = 0.0829248 Jy
! Component: 200  -  total flux cleaned = 0.0932658 Jy
! Total flux subtracted in 200 components = 0.0932658 Jy
! Clean residual min=-0.005528 max=0.011765 Jy/beam
! Clean residual mean=0.000645 rms=0.001766 Jy/beam
! Combined flux in latest and established models = 1.53366 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 47 components and 1.53366 Jy
! Inverting map 
! Added new window around map position (3, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.012349 Jy
! Component: 100  -  total flux cleaned = 0.0191265 Jy
! Component: 150  -  total flux cleaned = 0.0221553 Jy
! Component: 200  -  total flux cleaned = 0.0238134 Jy
! Total flux subtracted in 200 components = 0.0238134 Jy
! Clean residual min=-0.005206 max=0.005528 Jy/beam
! Clean residual mean=0.000287 rms=0.001301 Jy/beam
! Combined flux in latest and established models = 1.55747 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 71 components and 1.55747 Jy
! Inverting map 
! Added new window around map position (20.5, -47).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00462501 Jy
! Component: 100  -  total flux cleaned = 0.00603008 Jy
! Component: 150  -  total flux cleaned = 0.00701625 Jy
! Component: 200  -  total flux cleaned = 0.00806429 Jy
! Total flux subtracted in 200 components = 0.00806429 Jy
! Clean residual min=-0.005181 max=0.004565 Jy/beam
! Clean residual mean=0.000160 rms=0.001194 Jy/beam
! Combined flux in latest and established models = 1.56554 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 87 components and 1.56554 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.984 mas, bmaj=12.13 mas, bpa=-13.39 degrees
! Estimated noise=860.972 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00252989 Jy
! Component: 100  -  total flux cleaned = 0.00298598 Jy
! Component: 150  -  total flux cleaned = 0.00329016 Jy
! Component: 200  -  total flux cleaned = 0.00335818 Jy
! Total flux subtracted in 200 components = 0.00335818 Jy
! Clean residual min=-0.003839 max=0.004986 Jy/beam
! Clean residual mean=0.000256 rms=0.001452 Jy/beam
! Combined flux in latest and established models = 1.56889 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 = 6.46823e-05 Jy
! Component: 100  -  total flux cleaned = 0.000174271 Jy
! Component: 150  -  total flux cleaned = 0.000274278 Jy
! Component: 200  -  total flux cleaned = 0.00032032 Jy
! Total flux subtracted in 200 components = 0.00032032 Jy
! Clean residual min=-0.003853 max=0.005124 Jy/beam
! Clean residual mean=0.000244 rms=0.001436 Jy/beam
! Combined flux in latest and established models = 1.56921 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 106 components and 1.56921 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.539 mas, bmaj=5.683 mas, bpa=0.4567 degrees
! Estimated noise=673.909 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000331316 Jy
! Component: 100  -  total flux cleaned = 0.000455307 Jy
! Component: 150  -  total flux cleaned = 0.000457069 Jy
! Component: 200  -  total flux cleaned = 0.000456188 Jy
! Total flux subtracted in 200 components = 0.000456188 Jy
! Clean residual min=-0.005178 max=0.004574 Jy/beam
! Clean residual mean=0.000100 rms=0.001153 Jy/beam
! Combined flux in latest and established models = 1.56967 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 121 components and 1.56967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.557807Jy  sigma=0.001204
! Fit after  self-cal, rms=0.557781Jy  sigma=0.001204
wmodel J1337-1257_S_1999_03_08_pus_map.mod
! Writing 121 model components to file: J1337-1257_S_1999_03_08_pus_map.mod
wobs J1337-1257_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J1337-1257_S_1999_03_08_pus_uvs.fits
wwins J1337-1257_S_1999_03_08_pus_map.win
! wwins: Wrote 4 windows to J1337-1257_S_1999_03_08_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00153068 Jy
! Component: 100  -  total flux cleaned = -0.00219882 Jy
! Component: 150  -  total flux cleaned = -0.00220122 Jy
! Component: 200  -  total flux cleaned = -0.00212999 Jy
! Component: 250  -  total flux cleaned = -0.0020631 Jy
! Component: 300  -  total flux cleaned = -0.00199843 Jy
! Component: 350  -  total flux cleaned = -0.00168432 Jy
! Component: 400  -  total flux cleaned = -0.00131615 Jy
! Component: 450  -  total flux cleaned = -0.00107574 Jy
! Component: 500  -  total flux cleaned = -0.00084001 Jy
! Component: 550  -  total flux cleaned = -0.000551678 Jy
! Component: 600  -  total flux cleaned = -0.000438661 Jy
! Component: 650  -  total flux cleaned = -0.000215751 Jy
! Component: 700  -  total flux cleaned = -5.13002e-05 Jy
! Component: 750  -  total flux cleaned = 0.000111019 Jy
! Component: 800  -  total flux cleaned = 0.000324251 Jy
! Component: 850  -  total flux cleaned = 0.000482382 Jy
! Component: 900  -  total flux cleaned = 0.00074226 Jy
! Component: 950  -  total flux cleaned = 0.000947044 Jy
! Component: 1000  -  total flux cleaned = 0.00099765 Jy
! Component: 1050  -  total flux cleaned = 0.00109817 Jy
! Component: 1100  -  total flux cleaned = 0.00119758 Jy
! Component: 1150  -  total flux cleaned = 0.00129587 Jy
! Component: 1200  -  total flux cleaned = 0.00134451 Jy
! Component: 1250  -  total flux cleaned = 0.00148932 Jy
! Component: 1300  -  total flux cleaned = 0.00153689 Jy
! Component: 1350  -  total flux cleaned = 0.0015369 Jy
! Component: 1400  -  total flux cleaned = 0.00158381 Jy
! Component: 1450  -  total flux cleaned = 0.00158397 Jy
! Component: 1500  -  total flux cleaned = 0.00162995 Jy
! Component: 1550  -  total flux cleaned = 0.00167605 Jy
! Component: 1600  -  total flux cleaned = 0.00176669 Jy
! Component: 1650  -  total flux cleaned = 0.00176674 Jy
! Component: 1700  -  total flux cleaned = 0.00176679 Jy
! Component: 1750  -  total flux cleaned = 0.00185522 Jy
! Component: 1800  -  total flux cleaned = 0.00185534 Jy
! Component: 1850  -  total flux cleaned = 0.00185588 Jy
! Component: 1900  -  total flux cleaned = 0.00194212 Jy
! Component: 1950  -  total flux cleaned = 0.00198494 Jy
! Component: 2000  -  total flux cleaned = 0.00202749 Jy
! Total flux subtracted in 2048 components = 0.00211192 Jy
! Clean residual min=-0.002323 max=0.002928 Jy/beam
! Clean residual mean=0.000074 rms=0.000795 Jy/beam
! Combined flux in latest and established models = 1.57178 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 255 components and 1.57178 Jy
![Exited script file: muppet]
wmap "J1337-1257_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.539 x 5.683 at 0.4567 degrees (North through East)
! Clean map  min=-0.0041827  max=1.2002 Jy/beam
! Writing clean map to FITS file: J1337-1257_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.20016 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000797149 
device "J1337-1257_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J1337-1257_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.19926 0.19926 0.398521 0.797042 1.59408 3.18817 6.37633 12.7527 25.5053 51.0107
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.2 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.539 x 5.683 at 0.4567 degrees (North through East)
! Clean map  min=-0.0041827  max=1.2002 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1337-1257_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J1337-1257_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1337-1257_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:26:13 2008