! Started logfile: J1743-0350_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:28:49 2008
obs J1743-0350_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1743-0350_S_2001_10_29_pus_uva.fits
! AN table 1: 146 integrations on 153 of 153 possible baselines.
! AN table 2: 12 integrations on 153 of 153 possible baselines.
! AN table 3: 48 integrations on 153 of 153 possible baselines.
! AN table 4: 74 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0894258 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 15324 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_2001_10_29_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 1824 telescope corrections were flagged in sub-array 1.
!  A total of 183 telescope corrections were flagged in sub-array 2.
!  A total of 665 telescope corrections were flagged in sub-array 3.
!  A total of 1000 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1824 telescope corrections were flagged in sub-array 1.
!  A total of 183 telescope corrections were flagged in sub-array 2.
!  A total of 665 telescope corrections were flagged in sub-array 3.
!  A total of 1000 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1824 telescope corrections were flagged in sub-array 1.
!  A total of 183 telescope corrections were flagged in sub-array 2.
!  A total of 665 telescope corrections were flagged in sub-array 3.
!  A total of 1000 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1944 telescope corrections were flagged in sub-array 1.
!  A total of 183 telescope corrections were flagged in sub-array 2.
!  A total of 724 telescope corrections were flagged in sub-array 3.
!  A total of 1103 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.640748Jy  sigma=0.019745
! Fit after  self-cal, rms=2.380373Jy  sigma=0.018090
! 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.064 mas, bmaj=3.984 mas, bpa=-0.9517 degrees
! Estimated noise=1473.35 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.48945 Jy
! Component: 100  -  total flux cleaned = 3.09446 Jy
! Total flux subtracted in 100 components = 3.09446 Jy
! Clean residual min=-0.073565 max=0.242692 Jy/beam
! Clean residual mean=-0.000148 rms=0.024830 Jy/beam
! Combined flux in latest and established models = 3.09446 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 3.09446 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.564122Jy  sigma=0.003899
! Fit after  self-cal, rms=0.564193Jy  sigma=0.003899
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.265188 Jy
! Component: 100  -  total flux cleaned = 0.412757 Jy
! Total flux subtracted in 100 components = 0.412757 Jy
! Clean residual min=-0.049690 max=0.074258 Jy/beam
! Clean residual mean=-0.000241 rms=0.013027 Jy/beam
! Combined flux in latest and established models = 3.50722 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 24 components and 3.50722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404092Jy  sigma=0.002341
! Fit after  self-cal, rms=0.403989Jy  sigma=0.002341
! 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.353 mas, bmaj=6.287 mas, bpa=-1.499 degrees
! Estimated noise=799.309 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.0829081 Jy
! Component: 100  -  total flux cleaned = 0.119453 Jy
! Component: 150  -  total flux cleaned = 0.137111 Jy
! Component: 200  -  total flux cleaned = 0.140246 Jy
! Total flux subtracted in 200 components = 0.140246 Jy
! Clean residual min=-0.032220 max=0.029208 Jy/beam
! Clean residual mean=-0.000989 rms=0.007364 Jy/beam
! Combined flux in latest and established models = 3.64746 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 33 components and 3.64746 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.392289Jy  sigma=0.002165
! Fit after  self-cal, rms=0.392314Jy  sigma=0.002165
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.12     
!   HN        1.18     KK        1.00     KP        0.99     LA        1.01     
!   MA        0.95     MC        0.96     MK        0.99     NL        0.96     
!   OV        1.00     PT        1.04     SC        1.01     TS        0.98     
!   WF        1.01     WZ        1.03     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.11     
!   HN        1.08     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.12     MC        0.95     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.04     TS        1.00*    
!   WF        0.99     WZ        1.01     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.05     
!   HN        0.96     KK        1.00*    KP        1.02     LA        1.00     
!   MA        0.97     MC        1.01     MK        1.07     NL        0.96     
!   OV        0.99     PT        1.00     SC        1.01     TS        1.14     
!   WF        1.05     WZ        1.17     
! 
! 
! Correcting IF 2.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.09     
!   HN        1.05     KK        1.00     KP        0.98     LA        0.98     
!   MA        1.29     MC        0.97     MK        0.99     NL        0.98     
!   OV        1.03     PT        1.01     SC        1.01     TS        1.00     
!   WF        1.01     WZ        0.99     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.18     
!   HN        0.98     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.79     MC        1.01     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.00*    
!   WF        0.97     WZ        1.00     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.08     
!   HN        0.95     KK        1.00*    KP        0.96     LA        0.98     
!   MA        1.06     MC        0.99     MK        1.09     NL        0.97     
!   OV        1.01     PT        0.98     SC        1.01     TS        1.15     
!   WF        1.01     WZ        1.12     
! 
! 
! Correcting IF 3.
!  A total of 96 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.08     
!   HN        1.08     KK        0.99     KP        1.02     LA        0.97     
!   MA        0.97     MC        0.98     MK        0.95     NL        0.97     
!   OV        1.02     PT        1.02     SC        1.01     TS        0.99     
!   WF        0.98     WZ        1.00     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.08     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.03     MC        0.95     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.00*    
!   WF        1.00     WZ        1.00     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.17     
!   HN        0.96     KK        1.00*    KP        1.03     LA        0.97     
!   MA        1.08     MC        0.99     MK        1.02     NL        0.92     
!   OV        1.03     PT        0.96     SC        0.97     TS        1.14     
!   WF        1.17     WZ        1.12     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        0.95     KP        1.02     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.01     
!   OV        1.01     PT        1.02     SC        1.01     TS        1.00     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.04     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.00*    
!   WF        0.98     WZ        0.99     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        1.00*    KP        1.00     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.07     NL        1.00     
!   OV        0.99     PT        1.00     SC        1.00     TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.392314Jy  sigma=0.002165
! Fit after  self-cal, rms=0.365797Jy  sigma=0.001833
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.362 mas, bmaj=6.455 mas, bpa=-1.645 degrees
! Estimated noise=811.683 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.00181197 Jy
! Component: 100  -  total flux cleaned = 0.00249104 Jy
! Component: 150  -  total flux cleaned = 0.0028578 Jy
! Component: 200  -  total flux cleaned = 0.0031788 Jy
! Total flux subtracted in 200 components = 0.0031788 Jy
! Clean residual min=-0.019604 max=0.016131 Jy/beam
! Clean residual mean=-0.000152 rms=0.004445 Jy/beam
! Combined flux in latest and established models = 3.65064 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 40 components and 3.65064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365502Jy  sigma=0.001831
! Fit after  self-cal, rms=0.365642Jy  sigma=0.001830
! 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.365642Jy  sigma=0.001830
! Fit after  self-cal, rms=0.359612Jy  sigma=0.001747
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.365 mas, bmaj=6.456 mas, bpa=-1.622 degrees
! Estimated noise=812.342 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00175577 Jy
! Component: 100  -  total flux cleaned = -0.00176235 Jy
! Component: 150  -  total flux cleaned = -0.00162186 Jy
! Component: 200  -  total flux cleaned = -0.00162119 Jy
! Total flux subtracted in 200 components = -0.00162119 Jy
! Clean residual min=-0.007741 max=0.008667 Jy/beam
! Clean residual mean=-0.000066 rms=0.001910 Jy/beam
! Combined flux in latest and established models = 3.64902 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 45 components and 3.64902 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359381Jy  sigma=0.001746
! Fit after  self-cal, rms=0.359366Jy  sigma=0.001746
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 (-2.5, -20.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00336764 Jy
! Component: 100  -  total flux cleaned = 0.00288522 Jy
! Component: 150  -  total flux cleaned = 0.00268224 Jy
! Component: 200  -  total flux cleaned = 0.00267297 Jy
! Total flux subtracted in 200 components = 0.00267297 Jy
! Clean residual min=-0.007725 max=0.006744 Jy/beam
! Clean residual mean=-0.000094 rms=0.001804 Jy/beam
! Combined flux in latest and established models = 3.65169 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 57 components and 3.65169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358915Jy  sigma=0.001744
! Fit after  self-cal, rms=0.358889Jy  sigma=0.001743
! 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.358889Jy  sigma=0.001743
! Fit after  self-cal, rms=0.358332Jy  sigma=0.001743
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.366 mas, bmaj=6.457 mas, bpa=-1.629 degrees
! Estimated noise=812.414 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000147192 Jy
! Component: 100  -  total flux cleaned = -0.000146036 Jy
! Component: 150  -  total flux cleaned = -0.000321142 Jy
! Component: 200  -  total flux cleaned = -0.000145089 Jy
! Total flux subtracted in 200 components = -0.000145089 Jy
! Clean residual min=-0.006942 max=0.006686 Jy/beam
! Clean residual mean=-0.000060 rms=0.001749 Jy/beam
! Combined flux in latest and established models = 3.65155 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 65 components and 3.65155 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358051Jy  sigma=0.001742
! Fit after  self-cal, rms=0.358021Jy  sigma=0.001742
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.000166057 Jy
! Component: 100  -  total flux cleaned = 1.17219e-05 Jy
! Component: 150  -  total flux cleaned = 1.73147e-05 Jy
! Component: 200  -  total flux cleaned = 0.000174397 Jy
! Total flux subtracted in 200 components = 0.000174397 Jy
! Clean residual min=-0.006625 max=0.006707 Jy/beam
! Clean residual mean=-0.000063 rms=0.001728 Jy/beam
! Combined flux in latest and established models = 3.65172 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 67 components and 3.65172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357790Jy  sigma=0.001741
! Fit after  self-cal, rms=0.357778Jy  sigma=0.001741
! 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.357778Jy  sigma=0.001741
! Fit after  self-cal, rms=0.356990Jy  sigma=0.001741
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.657 mas, bmaj=11.82 mas, bpa=-5.576 degrees
! Estimated noise=1105.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000125783 Jy
! Component: 100  -  total flux cleaned = 0.000428563 Jy
! Component: 150  -  total flux cleaned = 0.000558145 Jy
! Component: 200  -  total flux cleaned = 0.00055748 Jy
! Total flux subtracted in 200 components = 0.00055748 Jy
! Clean residual min=-0.005652 max=0.004517 Jy/beam
! Clean residual mean=-0.000142 rms=0.001702 Jy/beam
! Combined flux in latest and established models = 3.65228 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 75 components and 3.65228 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357029Jy  sigma=0.001741
! Fit after  self-cal, rms=0.357010Jy  sigma=0.001741
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.000149652 Jy
! Component: 100  -  total flux cleaned = 0.00045393 Jy
! Component: 150  -  total flux cleaned = 0.000454105 Jy
! Component: 200  -  total flux cleaned = 0.000453275 Jy
! Total flux subtracted in 200 components = 0.000453275 Jy
! Clean residual min=-0.005577 max=0.004261 Jy/beam
! Clean residual mean=-0.000156 rms=0.001682 Jy/beam
! Combined flux in latest and established models = 3.65273 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 81 components and 3.65273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357032Jy  sigma=0.001741
! Fit after  self-cal, rms=0.357027Jy  sigma=0.001741
! 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.367 mas, bmaj=6.455 mas, bpa=-1.636 degrees
! Estimated noise=812.43 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 6.455 at -1.636 degrees (North through East)
! Clean map  min=-0.0076321  max=3.2986 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.357027Jy  sigma=0.001741
! Fit after  self-cal, rms=0.311005Jy  sigma=0.001330
! Inverting map and beam 
! Estimated beam: bmin=2.368 mas, bmaj=6.442 mas, bpa=-1.646 degrees
! Estimated noise=812.097 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000632717 Jy
! Component: 100  -  total flux cleaned = -0.00118298 Jy
! Component: 150  -  total flux cleaned = -0.0013055 Jy
! Component: 200  -  total flux cleaned = -0.00130417 Jy
! Total flux subtracted in 200 components = -0.00130417 Jy
! Clean residual min=-0.005091 max=0.005478 Jy/beam
! Clean residual mean=-0.000042 rms=0.001435 Jy/beam
! Combined flux in latest and established models = 3.65143 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 91 components and 3.65143 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310855Jy  sigma=0.001329
! Fit after  self-cal, rms=0.310832Jy  sigma=0.001329
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000255309 Jy
! Component: 100  -  total flux cleaned = 0.000156021 Jy
! Component: 150  -  total flux cleaned = 0.000252151 Jy
! Component: 200  -  total flux cleaned = 0.000249175 Jy
! Total flux subtracted in 200 components = 0.000249175 Jy
! Clean residual min=-0.005101 max=0.005596 Jy/beam
! Clean residual mean=-0.000044 rms=0.001415 Jy/beam
! Combined flux in latest and established models = 3.65168 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 92 components and 3.65168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310735Jy  sigma=0.001329
! Fit after  self-cal, rms=0.310714Jy  sigma=0.001329
! 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.310714Jy  sigma=0.001329
! Fit after  self-cal, rms=0.309555Jy  sigma=0.001329
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.1 mas, bmaj=4.082 mas, bpa=-1.901 degrees
! Estimated noise=1556.73 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.52028 Jy
! Component: 100  -  total flux cleaned = 3.10565 Jy
! Component: 150  -  total flux cleaned = 3.34243 Jy
! Component: 200  -  total flux cleaned = 3.46803 Jy
! Total flux subtracted in 200 components = 3.46803 Jy
! Clean residual min=-0.024739 max=0.062796 Jy/beam
! Clean residual mean=-0.000014 rms=0.007396 Jy/beam
! Combined flux in latest and established models = 3.46803 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 18 model components to the UV plane model.
! The established model now contains 18 components and 3.46803 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.369 mas, bmaj=6.441 mas, bpa=-1.656 degrees
! Estimated noise=812.215 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.0946862 Jy
! Component: 100  -  total flux cleaned = 0.136565 Jy
! Component: 150  -  total flux cleaned = 0.157868 Jy
! Component: 200  -  total flux cleaned = 0.168855 Jy
! Total flux subtracted in 200 components = 0.168855 Jy
! Clean residual min=-0.007821 max=0.013258 Jy/beam
! Clean residual mean=0.000083 rms=0.002072 Jy/beam
! Combined flux in latest and established models = 3.63689 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 36 components and 3.63689 Jy
! Inverting map 
! Added new window around map position (0.5, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00856363 Jy
! Component: 100  -  total flux cleaned = 0.0108546 Jy
! Component: 150  -  total flux cleaned = 0.0122409 Jy
! Component: 200  -  total flux cleaned = 0.0124901 Jy
! Total flux subtracted in 200 components = 0.0124901 Jy
! Clean residual min=-0.006232 max=0.006963 Jy/beam
! Clean residual mean=-0.000035 rms=0.001665 Jy/beam
! Combined flux in latest and established models = 3.64938 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 52 components and 3.64938 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.654 mas, bmaj=11.82 mas, bpa=-5.603 degrees
! Estimated noise=1105.11 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00136522 Jy
! Component: 100  -  total flux cleaned = 0.00207844 Jy
! Component: 150  -  total flux cleaned = 0.00224632 Jy
! Component: 200  -  total flux cleaned = 0.00247307 Jy
! Total flux subtracted in 200 components = 0.00247307 Jy
! Clean residual min=-0.005045 max=0.005541 Jy/beam
! Clean residual mean=-0.000147 rms=0.001737 Jy/beam
! Combined flux in latest and established models = 3.65185 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.000136497 Jy
! Component: 100  -  total flux cleaned = 0.000324202 Jy
! Component: 150  -  total flux cleaned = 0.00038063 Jy
! Component: 200  -  total flux cleaned = 0.000432324 Jy
! Total flux subtracted in 200 components = 0.000432324 Jy
! Clean residual min=-0.004982 max=0.005212 Jy/beam
! Clean residual mean=-0.000159 rms=0.001712 Jy/beam
! Combined flux in latest and established models = 3.65228 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 64 components and 3.65228 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.369 mas, bmaj=6.441 mas, bpa=-1.656 degrees
! Estimated noise=812.215 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00101481 Jy
! Component: 100  -  total flux cleaned = -0.000818737 Jy
! Component: 150  -  total flux cleaned = -0.000823264 Jy
! Component: 200  -  total flux cleaned = -0.000824517 Jy
! Total flux subtracted in 200 components = -0.000824517 Jy
! Clean residual min=-0.005917 max=0.006613 Jy/beam
! Clean residual mean=-0.000057 rms=0.001540 Jy/beam
! Combined flux in latest and established models = 3.65146 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 74 components and 3.65146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310694Jy  sigma=0.001334
! Fit after  self-cal, rms=0.310688Jy  sigma=0.001334
wmodel J1743-0350_S_2001_10_29_pus_map.mod
! Writing 74 model components to file: J1743-0350_S_2001_10_29_pus_map.mod
wobs J1743-0350_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1743-0350_S_2001_10_29_pus_uvs.fits
wwins J1743-0350_S_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J1743-0350_S_2001_10_29_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.00184733 Jy
! Component: 100  -  total flux cleaned = 0.00277101 Jy
! Component: 150  -  total flux cleaned = 0.00366116 Jy
! Component: 200  -  total flux cleaned = 0.00442353 Jy
! Component: 250  -  total flux cleaned = 0.00470051 Jy
! Component: 300  -  total flux cleaned = 0.00505993 Jy
! Component: 350  -  total flux cleaned = 0.00523575 Jy
! Component: 400  -  total flux cleaned = 0.00566555 Jy
! Component: 450  -  total flux cleaned = 0.00591884 Jy
! Component: 500  -  total flux cleaned = 0.00616618 Jy
! Component: 550  -  total flux cleaned = 0.00632698 Jy
! Component: 600  -  total flux cleaned = 0.00640714 Jy
! Component: 650  -  total flux cleaned = 0.00656401 Jy
! Component: 700  -  total flux cleaned = 0.00664055 Jy
! Component: 750  -  total flux cleaned = 0.00664048 Jy
! Component: 800  -  total flux cleaned = 0.0067901 Jy
! Component: 850  -  total flux cleaned = 0.00686367 Jy
! Component: 900  -  total flux cleaned = 0.00693704 Jy
! Component: 950  -  total flux cleaned = 0.00722427 Jy
! Component: 1000  -  total flux cleaned = 0.00743754 Jy
! Component: 1050  -  total flux cleaned = 0.00771743 Jy
! Component: 1100  -  total flux cleaned = 0.00799361 Jy
! Component: 1150  -  total flux cleaned = 0.00806197 Jy
! Component: 1200  -  total flux cleaned = 0.00819754 Jy
! Component: 1250  -  total flux cleaned = 0.00826549 Jy
! Component: 1300  -  total flux cleaned = 0.00833229 Jy
! Component: 1350  -  total flux cleaned = 0.00833268 Jy
! Component: 1400  -  total flux cleaned = 0.00839865 Jy
! Component: 1450  -  total flux cleaned = 0.00846421 Jy
! Component: 1500  -  total flux cleaned = 0.00852892 Jy
! Component: 1550  -  total flux cleaned = 0.00865619 Jy
! Component: 1600  -  total flux cleaned = 0.00865629 Jy
! Component: 1650  -  total flux cleaned = 0.00871919 Jy
! Component: 1700  -  total flux cleaned = 0.00871934 Jy
! Component: 1750  -  total flux cleaned = 0.00865801 Jy
! Component: 1800  -  total flux cleaned = 0.0087804 Jy
! Component: 1850  -  total flux cleaned = 0.00871907 Jy
! Component: 1900  -  total flux cleaned = 0.00859837 Jy
! Component: 1950  -  total flux cleaned = 0.00865891 Jy
! Component: 2000  -  total flux cleaned = 0.00847992 Jy
! Total flux subtracted in 2048 components = 0.00842088 Jy
! Clean residual min=-0.003418 max=0.002956 Jy/beam
! Clean residual mean=-0.000151 rms=0.001066 Jy/beam
! Combined flux in latest and established models = 3.65988 Jy
keep
! Adding 125 model components to the UV plane model.
! The established model now contains 198 components and 3.65988 Jy
![Exited script file: muppet]
wmap "J1743-0350_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.369 x 6.441 at -1.656 degrees (North through East)
! Clean map  min=-0.0066422  max=3.3025 Jy/beam
! Writing clean map to FITS file: J1743-0350_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 3.30246 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00106378 
device "J1743-0350_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1743-0350_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0966347 0.0966347 0.193269 0.386539 0.773078 1.54616 3.09231 6.18462 12.3692 24.7385 49.477 98.9539
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0031 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.302 
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.369 x 6.441 at -1.656 degrees (North through East)
! Clean map  min=-0.0066422  max=3.3025 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1743-0350_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1743-0350_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1743-0350_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:28:59 2008