! Started logfile: J1337-1257_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:40:11 2008
obs J1337-1257_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1337-1257_S_1999_05_10_pus_uva.fits
! AN table 1: 109 integrations on 153 of 153 possible baselines.
! AN table 2: 28 integrations on 153 of 153 possible baselines.
! AN table 3: 149 integrations on 153 of 153 possible baselines.
! AN table 4: 24 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0938225 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 1998 lines of history.
! 
! Reading 17800 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_05_10_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 1791 telescope corrections were flagged in sub-array 1.
!  A total of 293 telescope corrections were flagged in sub-array 2.
!  A total of 1972 telescope corrections were flagged in sub-array 3.
!  A total of 221 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1791 telescope corrections were flagged in sub-array 1.
!  A total of 293 telescope corrections were flagged in sub-array 2.
!  A total of 1972 telescope corrections were flagged in sub-array 3.
!  A total of 221 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1791 telescope corrections were flagged in sub-array 1.
!  A total of 293 telescope corrections were flagged in sub-array 2.
!  A total of 1972 telescope corrections were flagged in sub-array 3.
!  A total of 221 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1923 telescope corrections were flagged in sub-array 1.
!  A total of 293 telescope corrections were flagged in sub-array 2.
!  A total of 1972 telescope corrections were flagged in sub-array 3.
!  A total of 221 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.856861Jy  sigma=0.006315
! Fit after  self-cal, rms=0.481057Jy  sigma=0.003884
! 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=2.548 mas, bmaj=5.4 mas, bpa=-2.623 degrees
! Estimated noise=1338.42 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.92591 Jy
! Component: 100  -  total flux cleaned = 1.18909 Jy
! Total flux subtracted in 100 components = 1.18909 Jy
! Clean residual min=-0.037502 max=0.110064 Jy/beam
! Clean residual mean=0.001916 rms=0.013171 Jy/beam
! Combined flux in latest and established models = 1.18909 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 1.18909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365291Jy  sigma=0.002923
! Fit after  self-cal, rms=0.364937Jy  sigma=0.002922
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.122498 Jy
! Component: 100  -  total flux cleaned = 0.196732 Jy
! Total flux subtracted in 100 components = 0.196732 Jy
! Clean residual min=-0.034661 max=0.047896 Jy/beam
! Clean residual mean=0.001246 rms=0.010270 Jy/beam
! Combined flux in latest and established models = 1.38582 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 24 components and 1.38582 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289893Jy  sigma=0.002270
! Fit after  self-cal, rms=0.289611Jy  sigma=0.002268
! 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=3.588 mas, bmaj=7.884 mas, bpa=-2.735 degrees
! Estimated noise=695.821 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.087564 Jy
! Component: 100  -  total flux cleaned = 0.122631 Jy
! Component: 150  -  total flux cleaned = 0.139733 Jy
! Component: 200  -  total flux cleaned = 0.148793 Jy
! Total flux subtracted in 200 components = 0.148793 Jy
! Clean residual min=-0.020052 max=0.023863 Jy/beam
! Clean residual mean=0.000864 rms=0.006656 Jy/beam
! Combined flux in latest and established models = 1.53461 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 54 components and 1.53461 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266898Jy  sigma=0.002060
! Fit after  self-cal, rms=0.266839Jy  sigma=0.002059
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.96     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.07     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.02     
!   WF        1.00*    WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.04     GC        1.14     HH        1.00*    
!   HN        1.00*    KK        1.16     KP        1.16     LA        1.02     
!   MC        1.00*    MK        2.59     NL        1.07     NY        1.00*    
!   ON        1.00*    OV        1.07     PT        1.03     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.08     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.03     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.00     SC        1.01     
!   WF        0.96     WZ        1.00*    
! 
!  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.00*    HH        1.00*    
!   HN        1.06     KK        1.30     KP        1.02     LA        1.00     
!   MC        1.00*    MK        0.88     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.01     SC        1.04     
!   WF        1.16     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.99     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.02     
!   WF        1.00*    WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.07     GC        1.06     HH        1.00*    
!   HN        1.00*    KK        1.12     KP        1.03     LA        0.98     
!   MC        1.00*    MK        2.81     NL        1.08     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.02     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.02     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.07     KP        0.99     LA        0.94     
!   MC        1.00*    MK        1.06     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.98     SC        1.00     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.06     GC        1.00*    HH        1.00*    
!   HN        1.19     KK        1.25     KP        0.99     LA        0.98     
!   MC        1.00*    MK        0.94     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        0.99     SC        1.06     
!   WF        1.17     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.79     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.45     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.09     OV        1.00*    PT        1.00*    SC        1.04     
!   WF        1.00*    WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.05     GC        1.10     HH        1.00*    
!   HN        1.00*    KK        1.08     KP        1.02     LA        0.99     
!   MC        1.00*    MK        2.65     NL        1.07     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.03     KP        0.95     LA        0.96     
!   MC        1.00*    MK        1.00     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.93     SC        0.98     
!   WF        0.96     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.03     GC        1.00*    HH        1.00*    
!   HN        1.17     KK        1.23     KP        0.97     LA        1.00     
!   MC        1.00*    MK        0.88     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.94     SC        1.03     
!   WF        1.18     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.76     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.68     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.11     OV        1.00*    PT        1.00*    SC        1.11     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.04     GC        1.10     HH        1.00*    
!   HN        1.00*    KK        1.10     KP        1.02     LA        1.04     
!   MC        1.00*    MK        2.58     NL        1.07     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.04     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.03     KP        0.94     LA        0.97     
!   MC        1.00*    MK        0.98     NL        0.95     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.96     SC        0.99     
!   WF        0.96     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.18     KK        1.24     KP        1.00     LA        1.00     
!   MC        1.00*    MK        0.90     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.75     SC        1.03     
!   WF        1.26     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.266839Jy  sigma=0.002059
! Fit after  self-cal, rms=0.233974Jy  sigma=0.001490
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.573 mas, bmaj=8.136 mas, bpa=-2.386 degrees
! Estimated noise=710.074 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.00585613 Jy
! Component: 100  -  total flux cleaned = -0.00633735 Jy
! Component: 150  -  total flux cleaned = -0.00699285 Jy
! Component: 200  -  total flux cleaned = -0.00756572 Jy
! Total flux subtracted in 200 components = -0.00756572 Jy
! Clean residual min=-0.010353 max=0.011841 Jy/beam
! Clean residual mean=-0.000081 rms=0.002773 Jy/beam
! Combined flux in latest and established models = 1.52705 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 64 components and 1.52705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233482Jy  sigma=0.001486
! Fit after  self-cal, rms=0.234274Jy  sigma=0.001485
! 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.234274Jy  sigma=0.001485
! Fit after  self-cal, rms=0.233301Jy  sigma=0.001460
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.581 mas, bmaj=8.136 mas, bpa=-2.292 degrees
! Estimated noise=711.252 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00150715 Jy
! Component: 100  -  total flux cleaned = -0.00219617 Jy
! Component: 150  -  total flux cleaned = -0.00279868 Jy
! Component: 200  -  total flux cleaned = -0.00332131 Jy
! Total flux subtracted in 200 components = -0.00332131 Jy
! Clean residual min=-0.009026 max=0.011306 Jy/beam
! Clean residual mean=0.000049 rms=0.002442 Jy/beam
! Combined flux in latest and established models = 1.52373 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 65 components and 1.52373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232893Jy  sigma=0.001457
! Fit after  self-cal, rms=0.232928Jy  sigma=0.001457
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 (14.5, -27).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0105076 Jy
! Component: 100  -  total flux cleaned = 0.0146734 Jy
! Component: 150  -  total flux cleaned = 0.0159184 Jy
! Component: 200  -  total flux cleaned = 0.0165425 Jy
! Total flux subtracted in 200 components = 0.0165425 Jy
! Clean residual min=-0.008755 max=0.007882 Jy/beam
! Clean residual mean=-0.000273 rms=0.002029 Jy/beam
! Combined flux in latest and established models = 1.54027 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 78 components and 1.54027 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232458Jy  sigma=0.001451
! Fit after  self-cal, rms=0.232418Jy  sigma=0.001451
! 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.232418Jy  sigma=0.001451
! Fit after  self-cal, rms=0.233161Jy  sigma=0.001432
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.588 mas, bmaj=8.132 mas, bpa=-2.22 degrees
! Estimated noise=711.168 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00067101 Jy
! Component: 100  -  total flux cleaned = -9.89423e-05 Jy
! Component: 150  -  total flux cleaned = 0.000233099 Jy
! Component: 200  -  total flux cleaned = 0.000384555 Jy
! Total flux subtracted in 200 components = 0.000384555 Jy
! Clean residual min=-0.008171 max=0.007997 Jy/beam
! Clean residual mean=-0.000080 rms=0.001632 Jy/beam
! Combined flux in latest and established models = 1.54065 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 83 components and 1.54065 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232917Jy  sigma=0.001429
! Fit after  self-cal, rms=0.232977Jy  sigma=0.001429
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 (5.5, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00349651 Jy
! Component: 100  -  total flux cleaned = 0.0032922 Jy
! Component: 150  -  total flux cleaned = 0.00344648 Jy
! Component: 200  -  total flux cleaned = 0.00373524 Jy
! Total flux subtracted in 200 components = 0.00373524 Jy
! Clean residual min=-0.007055 max=0.004784 Jy/beam
! Clean residual mean=-0.000142 rms=0.001449 Jy/beam
! Combined flux in latest and established models = 1.54439 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 101 components and 1.54439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232614Jy  sigma=0.001426
! Fit after  self-cal, rms=0.232599Jy  sigma=0.001426
! 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.232599Jy  sigma=0.001426
! Fit after  self-cal, rms=0.233143Jy  sigma=0.001425
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.751 mas, bmaj=13.79 mas, bpa=-0.05649 degrees
! Estimated noise=855.398 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.26832e-06 Jy
! Component: 100  -  total flux cleaned = 0.000981684 Jy
! Component: 150  -  total flux cleaned = 0.00160885 Jy
! Component: 200  -  total flux cleaned = 0.00191291 Jy
! Total flux subtracted in 200 components = 0.00191291 Jy
! Clean residual min=-0.005361 max=0.004533 Jy/beam
! Clean residual mean=-0.000417 rms=0.001570 Jy/beam
! Combined flux in latest and established models = 1.5463 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 127 components and 1.5463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233059Jy  sigma=0.001424
! Fit after  self-cal, rms=0.233036Jy  sigma=0.001424
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.000698293 Jy
! Component: 100  -  total flux cleaned = 0.000905215 Jy
! Component: 150  -  total flux cleaned = 0.000831341 Jy
! Component: 200  -  total flux cleaned = 0.000832488 Jy
! Total flux subtracted in 200 components = 0.000832488 Jy
! Clean residual min=-0.005584 max=0.004182 Jy/beam
! Clean residual mean=-0.000452 rms=0.001506 Jy/beam
! Combined flux in latest and established models = 1.54713 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 144 components and 1.54713 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233010Jy  sigma=0.001423
! Fit after  self-cal, rms=0.232993Jy  sigma=0.001423
! 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=3.593 mas, bmaj=8.133 mas, bpa=-2.191 degrees
! Estimated noise=711.056 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.593 x 8.133 at -2.191 degrees (North through East)
! Clean map  min=-0.0064769  max=1.3015 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.232993Jy  sigma=0.001423
! Fit after  self-cal, rms=0.245032Jy  sigma=0.001134
! Inverting map and beam 
! Estimated beam: bmin=3.595 mas, bmaj=8.145 mas, bpa=-2.216 degrees
! Estimated noise=709.596 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00213945 Jy
! Component: 100  -  total flux cleaned = -0.0021401 Jy
! Component: 150  -  total flux cleaned = -0.00214366 Jy
! Component: 200  -  total flux cleaned = -0.00214868 Jy
! Total flux subtracted in 200 components = -0.00214868 Jy
! Clean residual min=-0.005609 max=0.003549 Jy/beam
! Clean residual mean=-0.000332 rms=0.001120 Jy/beam
! Combined flux in latest and established models = 1.54498 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 150 components and 1.54498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244925Jy  sigma=0.001132
! Fit after  self-cal, rms=0.244934Jy  sigma=0.001132
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000239049 Jy
! Component: 100  -  total flux cleaned = 0.000341126 Jy
! Component: 150  -  total flux cleaned = 0.000343019 Jy
! Component: 200  -  total flux cleaned = 0.000434063 Jy
! Total flux subtracted in 200 components = 0.000434063 Jy
! Clean residual min=-0.005427 max=0.003447 Jy/beam
! Clean residual mean=-0.000341 rms=0.001083 Jy/beam
! Combined flux in latest and established models = 1.54542 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 157 components and 1.54542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244863Jy  sigma=0.001131
! Fit after  self-cal, rms=0.244861Jy  sigma=0.001131
! 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.244861Jy  sigma=0.001131
! Fit after  self-cal, rms=0.246473Jy  sigma=0.001131
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.584 mas, bmaj=5.311 mas, bpa=-1.635 degrees
! Estimated noise=1412.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.965747 Jy
! Component: 100  -  total flux cleaned = 1.24676 Jy
! Component: 150  -  total flux cleaned = 1.36125 Jy
! Component: 200  -  total flux cleaned = 1.41776 Jy
! Total flux subtracted in 200 components = 1.41776 Jy
! Clean residual min=-0.011099 max=0.027705 Jy/beam
! Clean residual mean=0.000478 rms=0.003216 Jy/beam
! Combined flux in latest and established models = 1.41776 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 22 model components to the UV plane model.
! The established model now contains 22 components and 1.41776 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.599 mas, bmaj=8.143 mas, bpa=-2.191 degrees
! Estimated noise=709.308 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.0453668 Jy
! Component: 100  -  total flux cleaned = 0.0692955 Jy
! Component: 150  -  total flux cleaned = 0.0849063 Jy
! Component: 200  -  total flux cleaned = 0.0958181 Jy
! Total flux subtracted in 200 components = 0.0958181 Jy
! Clean residual min=-0.004644 max=0.006310 Jy/beam
! Clean residual mean=0.000229 rms=0.001702 Jy/beam
! Combined flux in latest and established models = 1.51358 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 56 components and 1.51358 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=7.757 mas, bmaj=13.8 mas, bpa=-0.03915 degrees
! Estimated noise=851.825 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113048 Jy
! Component: 100  -  total flux cleaned = 0.0181199 Jy
! Component: 150  -  total flux cleaned = 0.0224825 Jy
! Component: 200  -  total flux cleaned = 0.0251928 Jy
! Total flux subtracted in 200 components = 0.0251928 Jy
! Clean residual min=-0.004302 max=0.003899 Jy/beam
! Clean residual mean=-0.000456 rms=0.001411 Jy/beam
! Combined flux in latest and established models = 1.53877 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.000898784 Jy
! Component: 100  -  total flux cleaned = 0.00157637 Jy
! Component: 150  -  total flux cleaned = 0.00190319 Jy
! Component: 200  -  total flux cleaned = 0.00224782 Jy
! Total flux subtracted in 200 components = 0.00224782 Jy
! Clean residual min=-0.004283 max=0.003612 Jy/beam
! Clean residual mean=-0.000534 rms=0.001319 Jy/beam
! Combined flux in latest and established models = 1.54102 Jy
! Adding 89 model components to the UV plane model.
! The established model now contains 144 components and 1.54102 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.599 mas, bmaj=8.143 mas, bpa=-2.191 degrees
! Estimated noise=709.308 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000554833 Jy
! Component: 100  -  total flux cleaned = 0.000666971 Jy
! Component: 150  -  total flux cleaned = 0.000664325 Jy
! Component: 200  -  total flux cleaned = 0.000760374 Jy
! Total flux subtracted in 200 components = 0.000760374 Jy
! Clean residual min=-0.004270 max=0.003368 Jy/beam
! Clean residual mean=-0.000284 rms=0.001048 Jy/beam
! Combined flux in latest and established models = 1.54178 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 158 components and 1.54178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246684Jy  sigma=0.001131
! Fit after  self-cal, rms=0.246631Jy  sigma=0.001130
wmodel J1337-1257_S_1999_05_10_pus_map.mod
! Writing 158 model components to file: J1337-1257_S_1999_05_10_pus_map.mod
wobs J1337-1257_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1337-1257_S_1999_05_10_pus_uvs.fits
wwins J1337-1257_S_1999_05_10_pus_map.win
! wwins: Wrote 3 windows to J1337-1257_S_1999_05_10_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.00177675 Jy
! Component: 100  -  total flux cleaned = -0.0029543 Jy
! Component: 150  -  total flux cleaned = -0.00375074 Jy
! Component: 200  -  total flux cleaned = -0.00457355 Jy
! Component: 250  -  total flux cleaned = -0.00537094 Jy
! Component: 300  -  total flux cleaned = -0.00603599 Jy
! Component: 350  -  total flux cleaned = -0.00679026 Jy
! Component: 400  -  total flux cleaned = -0.00736849 Jy
! Component: 450  -  total flux cleaned = -0.00798581 Jy
! Component: 500  -  total flux cleaned = -0.00863974 Jy
! Component: 550  -  total flux cleaned = -0.00918157 Jy
! Component: 600  -  total flux cleaned = -0.00971317 Jy
! Component: 650  -  total flux cleaned = -0.0100934 Jy
! Component: 700  -  total flux cleaned = -0.0104677 Jy
! Component: 750  -  total flux cleaned = -0.0108817 Jy
! Component: 800  -  total flux cleaned = -0.0112441 Jy
! Component: 850  -  total flux cleaned = -0.0116459 Jy
! Component: 900  -  total flux cleaned = -0.011997 Jy
! Component: 950  -  total flux cleaned = -0.0122998 Jy
! Component: 1000  -  total flux cleaned = -0.0125991 Jy
! Component: 1050  -  total flux cleaned = -0.0128944 Jy
! Component: 1100  -  total flux cleaned = -0.0131443 Jy
! Component: 1150  -  total flux cleaned = -0.0134319 Jy
! Component: 1200  -  total flux cleaned = -0.0136351 Jy
! Component: 1250  -  total flux cleaned = -0.013956 Jy
! Component: 1300  -  total flux cleaned = -0.0142331 Jy
! Component: 1350  -  total flux cleaned = -0.0144679 Jy
! Component: 1400  -  total flux cleaned = -0.0146614 Jy
! Component: 1450  -  total flux cleaned = -0.0148527 Jy
! Component: 1500  -  total flux cleaned = -0.0150045 Jy
! Component: 1550  -  total flux cleaned = -0.0151919 Jy
! Component: 1600  -  total flux cleaned = -0.0153774 Jy
! Component: 1650  -  total flux cleaned = -0.0155611 Jy
! Component: 1700  -  total flux cleaned = -0.0157789 Jy
! Component: 1750  -  total flux cleaned = -0.0158149 Jy
! Component: 1800  -  total flux cleaned = -0.0159577 Jy
! Component: 1850  -  total flux cleaned = -0.0161346 Jy
! Component: 1900  -  total flux cleaned = -0.0162398 Jy
! Component: 1950  -  total flux cleaned = -0.016379 Jy
! Component: 2000  -  total flux cleaned = -0.0165514 Jy
! Total flux subtracted in 2048 components = -0.0166539 Jy
! Clean residual min=-0.002155 max=0.001802 Jy/beam
! Clean residual mean=-0.000081 rms=0.000673 Jy/beam
! Combined flux in latest and established models = 1.52513 Jy
keep
! Adding 120 model components to the UV plane model.
! The established model now contains 278 components and 1.52513 Jy
![Exited script file: muppet]
wmap "J1337-1257_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.599 x 8.143 at -2.191 degrees (North through East)
! Clean map  min=-0.0036638  max=1.3041 Jy/beam
! Writing clean map to FITS file: J1337-1257_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.30406 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000672229 
device "J1337-1257_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1337-1257_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.154646 0.154646 0.309293 0.618585 1.23717 2.47434 4.94868 9.89737 19.7947 39.5895 79.1789
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.304 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.599 x 8.143 at -2.191 degrees (North through East)
! Clean map  min=-0.0036638  max=1.3041 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1337-1257_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1337-1257_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1337-1257_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:40:22 2008