! Started logfile: J1743-0350_S_1999_05_10_pus_uvs.log on Tue Jan 22 14:48:55 2008
obs J1743-0350_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1743-0350_S_1999_05_10_pus_uva.fits
! AN table 1: 45 integrations on 153 of 153 possible baselines.
! AN table 2: 70 integrations on 153 of 153 possible baselines.
! AN table 3: 69 integrations on 153 of 153 possible baselines.
! AN table 4: 10 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0843272 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1743-0350
! 
! 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 2002 lines of history.
! 
! Reading 10012 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 J1743-0350_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 628 telescope corrections were flagged in sub-array 1.
!  A total of 1130 telescope corrections were flagged in sub-array 2.
!  A total of 799 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 628 telescope corrections were flagged in sub-array 1.
!  A total of 1121 telescope corrections were flagged in sub-array 2.
!  A total of 800 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 628 telescope corrections were flagged in sub-array 1.
!  A total of 1160 telescope corrections were flagged in sub-array 2.
!  A total of 799 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 656 telescope corrections were flagged in sub-array 1.
!  A total of 1166 telescope corrections were flagged in sub-array 2.
!  A total of 844 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=3.183983Jy  sigma=0.025319
! Fit after  self-cal, rms=2.483303Jy  sigma=0.020340
! 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.223 mas, bmaj=4.202 mas, bpa=5.637 degrees
! Estimated noise=1819.63 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 = 2.5724 Jy
! Component: 100  -  total flux cleaned = 3.21898 Jy
! Total flux subtracted in 100 components = 3.21898 Jy
! Clean residual min=-0.074073 max=0.253545 Jy/beam
! Clean residual mean=0.000526 rms=0.025125 Jy/beam
! Combined flux in latest and established models = 3.21898 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 3.21898 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.545543Jy  sigma=0.004457
! Fit after  self-cal, rms=0.545514Jy  sigma=0.004457
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.26976 Jy
! Component: 100  -  total flux cleaned = 0.415801 Jy
! Total flux subtracted in 100 components = 0.415801 Jy
! Clean residual min=-0.044308 max=0.072622 Jy/beam
! Clean residual mean=0.000037 rms=0.014501 Jy/beam
! Combined flux in latest and established models = 3.63478 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 18 components and 3.63478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381488Jy  sigma=0.002796
! Fit after  self-cal, rms=0.381388Jy  sigma=0.002796
! 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.781 mas, bmaj=5.484 mas, bpa=0.3168 degrees
! Estimated noise=992.659 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.112156 Jy
! Component: 100  -  total flux cleaned = 0.164357 Jy
! Component: 150  -  total flux cleaned = 0.193531 Jy
! Component: 200  -  total flux cleaned = 0.198359 Jy
! Total flux subtracted in 200 components = 0.198359 Jy
! Clean residual min=-0.053628 max=0.041202 Jy/beam
! Clean residual mean=-0.000980 rms=0.012125 Jy/beam
! Combined flux in latest and established models = 3.83314 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 34 components and 3.83314 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358219Jy  sigma=0.002459
! Fit after  self-cal, rms=0.358217Jy  sigma=0.002459
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.03     GC        1.04     HH        1.11     
!   HN        1.00*    KK        1.00     KP        1.01     LA        1.03     
!   MC        1.00*    MK        0.95     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.05     PT        1.05     SC        1.06     
!   WF        0.98     WZ        1.02     
! 
!  A total of 90 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.04     HH        1.00*    
!   HN        1.00*    KK        1.01     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.95     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.12     HH        1.08     
!   HN        0.97     KK        1.04     KP        0.97     LA        0.99     
!   MC        1.07     MK        1.03     NL        0.99     NY        1.00*    
!   ON        1.04     OV        1.02     PT        1.00     SC        1.03     
!   WF        0.98     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        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*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.06     GC        1.02     HH        1.08     
!   HN        1.00*    KK        0.99     KP        1.03     LA        1.03     
!   MC        1.00*    MK        1.02     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.06     SC        1.01     
!   WF        1.02     WZ        1.01     
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.01     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.04     GC        1.09     HH        1.06     
!   HN        0.99     KK        1.03     KP        0.93     LA        0.96     
!   MC        0.98     MK        1.24     NL        1.00     NY        1.00*    
!   ON        1.06     OV        0.99     PT        1.01     SC        1.02     
!   WF        0.99     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        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*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.03     GC        0.99     HH        1.01     
!   HN        1.00*    KK        0.98     KP        0.96     LA        1.04     
!   MC        1.00*    MK        0.94     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00     SC        1.02     
!   WF        0.97     WZ        0.92     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.94     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.96     GC        1.08     HH        0.98     
!   HN        0.99     KK        1.00     KP        0.97     LA        0.97     
!   MC        1.08     MK        1.17     NL        1.01     NY        1.00*    
!   ON        1.02     OV        0.98     PT        0.96     SC        1.00     
!   WF        0.98     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        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*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.01     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.97     KP        1.03     LA        1.05     
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.12     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00     HH        1.00*    
!   HN        1.00*    KK        0.97     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.93     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.95     GC        1.07     HH        0.95     
!   HN        0.99     KK        1.00     KP        0.98     LA        0.98     
!   MC        1.42     MK        1.21     NL        1.02     NY        1.00*    
!   ON        1.02     OV        0.95     PT        1.01     SC        1.00     
!   WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        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*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.358217Jy  sigma=0.002459
! Fit after  self-cal, rms=0.306540Jy  sigma=0.001875
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.807 mas, bmaj=5.654 mas, bpa=0.2596 degrees
! Estimated noise=1019.65 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.0255696 Jy
! Component: 100  -  total flux cleaned = -0.028471 Jy
! Component: 150  -  total flux cleaned = -0.0284717 Jy
! Component: 200  -  total flux cleaned = -0.0285027 Jy
! Total flux subtracted in 200 components = -0.0285027 Jy
! Clean residual min=-0.027908 max=0.016661 Jy/beam
! Clean residual mean=-0.001077 rms=0.006359 Jy/beam
! Combined flux in latest and established models = 3.80464 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 3.80464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303893Jy  sigma=0.001854
! Fit after  self-cal, rms=0.303915Jy  sigma=0.001854
! 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.303915Jy  sigma=0.001854
! Fit after  self-cal, rms=0.293193Jy  sigma=0.001771
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.816 mas, bmaj=5.663 mas, bpa=0.3572 degrees
! Estimated noise=1019.83 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00940609 Jy
! Component: 100  -  total flux cleaned = -0.0119627 Jy
! Component: 150  -  total flux cleaned = -0.0137167 Jy
! Component: 200  -  total flux cleaned = -0.0151277 Jy
! Total flux subtracted in 200 components = -0.0151277 Jy
! Clean residual min=-0.012035 max=0.009658 Jy/beam
! Clean residual mean=-0.000501 rms=0.002380 Jy/beam
! Combined flux in latest and established models = 3.78951 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 49 components and 3.78951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292241Jy  sigma=0.001767
! Fit after  self-cal, rms=0.292337Jy  sigma=0.001767
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.00110334 Jy
! Component: 100  -  total flux cleaned = -0.00166392 Jy
! Component: 150  -  total flux cleaned = -0.00202522 Jy
! Component: 200  -  total flux cleaned = -0.00255723 Jy
! Total flux subtracted in 200 components = -0.00255723 Jy
! Clean residual min=-0.011167 max=0.009898 Jy/beam
! Clean residual mean=-0.000471 rms=0.002351 Jy/beam
! Combined flux in latest and established models = 3.78695 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 52 components and 3.78696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292148Jy  sigma=0.001767
! Fit after  self-cal, rms=0.292142Jy  sigma=0.001767
! 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.292142Jy  sigma=0.001767
! Fit after  self-cal, rms=0.292936Jy  sigma=0.001764
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.82 mas, bmaj=5.669 mas, bpa=0.372 degrees
! Estimated noise=1020.65 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00491041 Jy
! Component: 100  -  total flux cleaned = -0.00641905 Jy
! Component: 150  -  total flux cleaned = -0.00782341 Jy
! Component: 200  -  total flux cleaned = -0.00883923 Jy
! Total flux subtracted in 200 components = -0.00883923 Jy
! Clean residual min=-0.010453 max=0.008397 Jy/beam
! Clean residual mean=-0.000360 rms=0.002182 Jy/beam
! Combined flux in latest and established models = 3.77812 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 53 components and 3.77812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292553Jy  sigma=0.001762
! Fit after  self-cal, rms=0.292549Jy  sigma=0.001762
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.000780707 Jy
! Component: 100  -  total flux cleaned = -0.00131709 Jy
! Component: 150  -  total flux cleaned = -0.00169495 Jy
! Component: 200  -  total flux cleaned = -0.00195128 Jy
! Total flux subtracted in 200 components = -0.00195128 Jy
! Clean residual min=-0.009860 max=0.008585 Jy/beam
! Clean residual mean=-0.000336 rms=0.002165 Jy/beam
! Combined flux in latest and established models = 3.77616 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 54 components and 3.77616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292452Jy  sigma=0.001762
! Fit after  self-cal, rms=0.292451Jy  sigma=0.001762
! 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.292451Jy  sigma=0.001762
! Fit after  self-cal, rms=0.293034Jy  sigma=0.001761
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.474 mas, bmaj=10.12 mas, bpa=4.303 degrees
! Estimated noise=1317.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00518127 Jy
! Component: 100  -  total flux cleaned = -0.0054332 Jy
! Component: 150  -  total flux cleaned = -0.00543352 Jy
! Component: 200  -  total flux cleaned = -0.00549237 Jy
! Total flux subtracted in 200 components = -0.00549237 Jy
! Clean residual min=-0.010388 max=0.009023 Jy/beam
! Clean residual mean=-0.000725 rms=0.002643 Jy/beam
! Combined flux in latest and established models = 3.77067 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 55 components and 3.77067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292944Jy  sigma=0.001761
! Fit after  self-cal, rms=0.292939Jy  sigma=0.001760
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 = 9.15024e-08 Jy
! Component: 100  -  total flux cleaned = -8.31497e-05 Jy
! Component: 150  -  total flux cleaned = -0.000141391 Jy
! Component: 200  -  total flux cleaned = -0.000192183 Jy
! Total flux subtracted in 200 components = -0.000192183 Jy
! Clean residual min=-0.010277 max=0.008879 Jy/beam
! Clean residual mean=-0.000719 rms=0.002633 Jy/beam
! Combined flux in latest and established models = 3.77048 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 55 components and 3.77048 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292935Jy  sigma=0.001761
! Fit after  self-cal, rms=0.292940Jy  sigma=0.001760
! 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.823 mas, bmaj=5.674 mas, bpa=0.3813 degrees
! Estimated noise=1021.36 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.823 x 5.674 at 0.3813 degrees (North through East)
! Clean map  min=-0.0089601  max=3.4588 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.292940Jy  sigma=0.001760
! Fit after  self-cal, rms=0.253926Jy  sigma=0.001318
! Inverting map and beam 
! Estimated beam: bmin=2.824 mas, bmaj=5.678 mas, bpa=0.3766 degrees
! Estimated noise=1020.73 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0052298 Jy
! Component: 100  -  total flux cleaned = -0.00607922 Jy
! Component: 150  -  total flux cleaned = -0.00680687 Jy
! Component: 200  -  total flux cleaned = -0.00742847 Jy
! Total flux subtracted in 200 components = -0.00742847 Jy
! Clean residual min=-0.007295 max=0.008507 Jy/beam
! Clean residual mean=-0.000230 rms=0.001908 Jy/beam
! Combined flux in latest and established models = 3.76305 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 57 components and 3.76305 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253711Jy  sigma=0.001316
! Fit after  self-cal, rms=0.253698Jy  sigma=0.001316
! Inverting map 
! Added new window around map position (0.5, -8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00806448 Jy
! Component: 100  -  total flux cleaned = 0.00923581 Jy
! Component: 150  -  total flux cleaned = 0.00954701 Jy
! Component: 200  -  total flux cleaned = 0.00968014 Jy
! Total flux subtracted in 200 components = 0.00968014 Jy
! Clean residual min=-0.006705 max=0.007154 Jy/beam
! Clean residual mean=-0.000353 rms=0.001756 Jy/beam
! Combined flux in latest and established models = 3.77273 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 69 components and 3.77273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253334Jy  sigma=0.001313
! Fit after  self-cal, rms=0.253308Jy  sigma=0.001313
! 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.253308Jy  sigma=0.001313
! Fit after  self-cal, rms=0.253496Jy  sigma=0.001312
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.289 mas, bmaj=4.3 mas, bpa=5.154 degrees
! Estimated noise=1875.21 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.63564 Jy
! Component: 100  -  total flux cleaned = 3.27197 Jy
! Component: 150  -  total flux cleaned = 3.50348 Jy
! Component: 200  -  total flux cleaned = 3.61511 Jy
! Total flux subtracted in 200 components = 3.61511 Jy
! Clean residual min=-0.023429 max=0.053720 Jy/beam
! Clean residual mean=0.000119 rms=0.005972 Jy/beam
! Combined flux in latest and established models = 3.61511 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 11 model components to the UV plane model.
! The established model now contains 11 components and 3.61511 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.825 mas, bmaj=5.679 mas, bpa=0.387 degrees
! Estimated noise=1020.45 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.0759472 Jy
! Component: 100  -  total flux cleaned = 0.113369 Jy
! Component: 150  -  total flux cleaned = 0.133478 Jy
! Component: 200  -  total flux cleaned = 0.144388 Jy
! Total flux subtracted in 200 components = 0.144388 Jy
! Clean residual min=-0.008026 max=0.007635 Jy/beam
! Clean residual mean=-0.000163 rms=0.001986 Jy/beam
! Combined flux in latest and established models = 3.7595 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 26 components and 3.7595 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.474 mas, bmaj=10.12 mas, bpa=4.259 degrees
! Estimated noise=1314.66 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0070183 Jy
! Component: 100  -  total flux cleaned = 0.0096418 Jy
! Component: 150  -  total flux cleaned = 0.0103212 Jy
! Component: 200  -  total flux cleaned = 0.0106269 Jy
! Total flux subtracted in 200 components = 0.0106269 Jy
! Clean residual min=-0.006997 max=0.005441 Jy/beam
! Clean residual mean=-0.000757 rms=0.001751 Jy/beam
! Combined flux in latest and established models = 3.77013 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.000129092 Jy
! Component: 100  -  total flux cleaned = 0.00024037 Jy
! Component: 150  -  total flux cleaned = 0.00033835 Jy
! Component: 200  -  total flux cleaned = 0.000381647 Jy
! Total flux subtracted in 200 components = 0.000381647 Jy
! Clean residual min=-0.006794 max=0.005348 Jy/beam
! Clean residual mean=-0.000769 rms=0.001730 Jy/beam
! Combined flux in latest and established models = 3.77051 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 49 components and 3.77051 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.825 mas, bmaj=5.679 mas, bpa=0.387 degrees
! Estimated noise=1020.45 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00137755 Jy
! Component: 100  -  total flux cleaned = -0.00138463 Jy
! Component: 150  -  total flux cleaned = -0.000932719 Jy
! Component: 200  -  total flux cleaned = -0.000729468 Jy
! Total flux subtracted in 200 components = -0.000729468 Jy
! Clean residual min=-0.006763 max=0.006286 Jy/beam
! Clean residual mean=-0.000289 rms=0.001763 Jy/beam
! Combined flux in latest and established models = 3.76978 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 57 components and 3.76978 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253981Jy  sigma=0.001315
! Fit after  self-cal, rms=0.253927Jy  sigma=0.001315
wmodel J1743-0350_S_1999_05_10_pus_map.mod
! Writing 57 model components to file: J1743-0350_S_1999_05_10_pus_map.mod
wobs J1743-0350_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1743-0350_S_1999_05_10_pus_uvs.fits
wwins J1743-0350_S_1999_05_10_pus_map.win
! wwins: Wrote 2 windows to J1743-0350_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.00224897 Jy
! Component: 100  -  total flux cleaned = -0.0034073 Jy
! Component: 150  -  total flux cleaned = -0.00429193 Jy
! Component: 200  -  total flux cleaned = -0.00493232 Jy
! Component: 250  -  total flux cleaned = -0.00575707 Jy
! Component: 300  -  total flux cleaned = -0.00615791 Jy
! Component: 350  -  total flux cleaned = -0.00644831 Jy
! Component: 400  -  total flux cleaned = -0.00673197 Jy
! Component: 450  -  total flux cleaned = -0.00710315 Jy
! Component: 500  -  total flux cleaned = -0.00728607 Jy
! Component: 550  -  total flux cleaned = -0.00773557 Jy
! Component: 600  -  total flux cleaned = -0.00817566 Jy
! Component: 650  -  total flux cleaned = -0.00860872 Jy
! Component: 700  -  total flux cleaned = -0.00894894 Jy
! Component: 750  -  total flux cleaned = -0.0092846 Jy
! Component: 800  -  total flux cleaned = -0.00969697 Jy
! Component: 850  -  total flux cleaned = -0.00985932 Jy
! Component: 900  -  total flux cleaned = -0.0101798 Jy
! Component: 950  -  total flux cleaned = -0.0103383 Jy
! Component: 1000  -  total flux cleaned = -0.0105727 Jy
! Component: 1050  -  total flux cleaned = -0.0108804 Jy
! Component: 1100  -  total flux cleaned = -0.0111836 Jy
! Component: 1150  -  total flux cleaned = -0.0115574 Jy
! Component: 1200  -  total flux cleaned = -0.0118523 Jy
! Component: 1250  -  total flux cleaned = -0.0120716 Jy
! Component: 1300  -  total flux cleaned = -0.0124329 Jy
! Component: 1350  -  total flux cleaned = -0.0127181 Jy
! Component: 1400  -  total flux cleaned = -0.0129293 Jy
! Component: 1450  -  total flux cleaned = -0.0132087 Jy
! Component: 1500  -  total flux cleaned = -0.0134844 Jy
! Component: 1550  -  total flux cleaned = -0.0137577 Jy
! Component: 1600  -  total flux cleaned = -0.0140275 Jy
! Component: 1650  -  total flux cleaned = -0.0142947 Jy
! Component: 1700  -  total flux cleaned = -0.0146916 Jy
! Component: 1750  -  total flux cleaned = -0.0148877 Jy
! Component: 1800  -  total flux cleaned = -0.0151472 Jy
! Component: 1850  -  total flux cleaned = -0.0155324 Jy
! Component: 1900  -  total flux cleaned = -0.015723 Jy
! Component: 1950  -  total flux cleaned = -0.016038 Jy
! Component: 2000  -  total flux cleaned = -0.0163502 Jy
! Total flux subtracted in 2048 components = -0.0164739 Jy
! Clean residual min=-0.003903 max=0.003081 Jy/beam
! Clean residual mean=-0.000105 rms=0.001158 Jy/beam
! Combined flux in latest and established models = 3.7533 Jy
keep
! Adding 130 model components to the UV plane model.
! The established model now contains 187 components and 3.75331 Jy
![Exited script file: muppet]
wmap "J1743-0350_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.825 x 5.679 at 0.387 degrees (North through East)
! Clean map  min=-0.0054637  max=3.4644 Jy/beam
! Writing clean map to FITS file: J1743-0350_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 3.46437 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0011563 
device "J1743-0350_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1743-0350_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.100131 0.100131 0.200263 0.400525 0.80105 1.6021 3.2042 6.4084 12.8168 25.6336 51.2672
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0034 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.464 
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.825 x 5.679 at 0.387 degrees (North through East)
! Clean map  min=-0.0054637  max=3.4644 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1743-0350_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1743-0350_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1743-0350_S_1999_05_10_pus_uvs.log closed on Tue Jan 22 14:49:03 2008