! Started logfile: J1743-0350_X_1999_12_20_pus_uvs.log on Mon Dec 17 17:12:51 2007
obs J1743-0350_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1743-0350_X_1999_12_20_pus_uva.fits
! AN table 1: 38 integrations on 190 of 190 possible baselines.
! AN table 2: 191 integrations on 190 of 190 possible baselines.
! AN table 3: 115 integrations on 190 of 190 possible baselines.
! AN table 4: 76 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0684336 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2511 lines of history.
! 
! Reading 21844 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1743-0350_X_1999_12_20_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 623 telescope corrections were flagged in sub-array 1.
!  A total of 3493 telescope corrections were flagged in sub-array 2.
!  A total of 1868 telescope corrections were flagged in sub-array 3.
!  A total of 1048 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 623 telescope corrections were flagged in sub-array 1.
!  A total of 3493 telescope corrections were flagged in sub-array 2.
!  A total of 1868 telescope corrections were flagged in sub-array 3.
!  A total of 1048 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 623 telescope corrections were flagged in sub-array 1.
!  A total of 3493 telescope corrections were flagged in sub-array 2.
!  A total of 1868 telescope corrections were flagged in sub-array 3.
!  A total of 1048 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 623 telescope corrections were flagged in sub-array 1.
!  A total of 3493 telescope corrections were flagged in sub-array 2.
!  A total of 1868 telescope corrections were flagged in sub-array 3.
!  A total of 1048 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.375595Jy  sigma=0.022673
! Fit after  self-cal, rms=1.641638Jy  sigma=0.016748
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.28% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.5881 mas, bmaj=1.468 mas, bpa=-0.7786 degrees
! Estimated noise=879.234 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 = 1.7332 Jy
! Component: 100  -  total flux cleaned = 2.30207 Jy
! Total flux subtracted in 100 components = 2.30207 Jy
! Clean residual min=-0.078102 max=0.268182 Jy/beam
! Clean residual mean=0.002844 rms=0.027862 Jy/beam
! Combined flux in latest and established models = 2.30207 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 2.30207 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.699732Jy  sigma=0.006772
! Fit after  self-cal, rms=0.699514Jy  sigma=0.006771
! Inverting map 
! Your choice of large map pixels excluded 1.28% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.311989 Jy
! Component: 100  -  total flux cleaned = 0.510814 Jy
! Total flux subtracted in 100 components = 0.510814 Jy
! Clean residual min=-0.060005 max=0.107537 Jy/beam
! Clean residual mean=0.001316 rms=0.017390 Jy/beam
! Combined flux in latest and established models = 2.81288 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 21 components and 2.81288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.486031Jy  sigma=0.004057
! Fit after  self-cal, rms=0.485835Jy  sigma=0.004055
! Inverting map 
! Your choice of large map pixels excluded 1.28% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.134415 Jy
! Component: 100  -  total flux cleaned = 0.226034 Jy
! Total flux subtracted in 100 components = 0.226034 Jy
! Clean residual min=-0.057322 max=0.074962 Jy/beam
! Clean residual mean=0.000655 rms=0.014548 Jy/beam
! Combined flux in latest and established models = 3.03892 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 25 components and 3.03892 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437657Jy  sigma=0.003327
! Fit after  self-cal, rms=0.437649Jy  sigma=0.003326
! Inverting map 
! Your choice of large map pixels excluded 1.28% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.28% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.7358 mas, bmaj=1.833 mas, bpa=-4.456 degrees
! Estimated noise=534.613 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.0888212 Jy
! Component: 100  -  total flux cleaned = 0.130853 Jy
! Component: 150  -  total flux cleaned = 0.15091 Jy
! Component: 200  -  total flux cleaned = 0.159205 Jy
! Total flux subtracted in 200 components = 0.159205 Jy
! Clean residual min=-0.037144 max=0.059797 Jy/beam
! Clean residual mean=-0.000291 rms=0.012526 Jy/beam
! Combined flux in latest and established models = 3.19812 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 29 components and 3.19812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424444Jy  sigma=0.003082
! Fit after  self-cal, rms=0.424436Jy  sigma=0.003082
! Inverting map 
! Your choice of large map pixels excluded 1.28% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
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        0.93     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.04     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.10     
!   OV        1.00*    PT        1.15     SC        1.00     TS        1.00*    
!   WF        0.91     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        0.90     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.05     LA        1.02     
!   MC        1.64     MK        1.03     NY        1.00*    ON        0.98     
!   OV        1.01     PT        1.00     SC        1.00*    TS        1.03     
!   WF        1.00*    WZ        0.98     GN        1.00*    NL        1.41     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.96     GC        1.51     HH        1.00*    
!   HN        0.96     KK        1.18     KP        0.97     LA        0.98     
!   MC        1.09     MK        1.01     NY        1.00*    ON        0.92     
!   OV        0.97     PT        1.01     SC        0.99     TS        1.00*    
!   WF        0.97     WZ        0.88     GN        0.99     NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.98     GC        0.97     HH        1.00*    
!   HN        1.04     KK        0.97     KP        1.00     LA        0.99     
!   MC        1.00*    MK        0.95     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.01     SC        1.09     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        1.03     NL        0.99     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.04     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        3.82     
!   OV        1.00*    PT        1.14     SC        0.95     TS        1.00*    
!   WF        0.92     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        0.86     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.00     LA        1.02     
!   MC        1.52     MK        1.05     NY        1.00*    ON        0.96     
!   OV        1.01     PT        1.00     SC        1.00*    TS        1.01     
!   WF        1.00*    WZ        0.96     GN        1.00*    NL        1.40     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.96     GC        1.44     HH        1.00*    
!   HN        0.95     KK        1.17     KP        0.92     LA        0.98     
!   MC        1.07     MK        1.02     NY        1.00*    ON        0.92     
!   OV        0.98     PT        1.00     SC        0.94     TS        1.00*    
!   WF        0.97     WZ        0.87     GN        0.99     NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.99     GC        0.94     HH        1.00*    
!   HN        1.01     KK        0.96     KP        0.95     LA        0.99     
!   MC        1.00*    MK        0.96     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        1.00     SC        1.03     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        1.02     NL        0.99     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.00*    LA        1.04     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.05     
!   OV        1.00*    PT        1.15     SC        0.96     TS        1.00*    
!   WF        0.92     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.02     GC        0.91     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.02     LA        1.02     
!   MC        1.57     MK        1.06     NY        1.00*    ON        0.88     
!   OV        1.01     PT        1.01     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        0.95     GN        1.00*    NL        1.43     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.97     GC        1.48     HH        1.00*    
!   HN        0.97     KK        1.18     KP        0.94     LA        0.98     
!   MC        1.05     MK        1.02     NY        1.00*    ON        0.94     
!   OV        0.98     PT        1.01     SC        0.94     TS        1.00*    
!   WF        0.98     WZ        0.89     GN        0.98     NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.99     GC        0.97     HH        1.00*    
!   HN        1.06     KK        0.96     KP        0.98     LA        0.99     
!   MC        1.00*    MK        0.97     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.01     SC        1.05     TS        1.00*    
!   WF        1.02     WZ        1.00*    GN        1.02     NL        0.99     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.05     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.10     
!   OV        1.00*    PT        1.15     SC        0.97     TS        1.00*    
!   WF        0.91     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        0.90     HH        1.00*    
!   HN        1.00*    KK        1.00     KP        1.01     LA        1.03     
!   MC        1.50     MK        1.37     NY        1.00*    ON        0.98     
!   OV        1.01     PT        1.01     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        0.97     GN        1.00*    NL        1.46     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.96     GC        1.49     HH        1.00*    
!   HN        0.97     KK        1.20     KP        0.94     LA        0.99     
!   MC        1.07     MK        0.98     NY        1.00*    ON        0.93     
!   OV        0.98     PT        1.00     SC        0.95     TS        1.00*    
!   WF        0.97     WZ        0.89     GN        0.99     NL        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.99     GC        0.99     HH        1.00*    
!   HN        1.05     KK        0.97     KP        0.96     LA        1.00     
!   MC        1.00*    MK        0.94     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        1.00     SC        1.03     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        1.04     NL        1.01     
! 
! 
! Fit before self-cal, rms=0.424436Jy  sigma=0.003082
! Fit after  self-cal, rms=0.349534Jy  sigma=0.001939
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.738 mas, bmaj=1.843 mas, bpa=-4.88 degrees
! Estimated noise=536.68 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.0140323 Jy
! Component: 100  -  total flux cleaned = -0.0153482 Jy
! Component: 150  -  total flux cleaned = -0.0160804 Jy
! Component: 200  -  total flux cleaned = -0.016716 Jy
! Total flux subtracted in 200 components = -0.016716 Jy
! Clean residual min=-0.015686 max=0.021781 Jy/beam
! Clean residual mean=0.000506 rms=0.005046 Jy/beam
! Combined flux in latest and established models = 3.1814 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 34 components and 3.1814 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347624Jy  sigma=0.001922
! Fit after  self-cal, rms=0.347637Jy  sigma=0.001922
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347637Jy  sigma=0.001922
! Fit after  self-cal, rms=0.334021Jy  sigma=0.001589
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.7422 mas, bmaj=1.856 mas, bpa=-4.792 degrees
! Estimated noise=538.381 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0131367 Jy
! Component: 100  -  total flux cleaned = -0.0148 Jy
! Component: 150  -  total flux cleaned = -0.0158293 Jy
! Component: 200  -  total flux cleaned = -0.0164767 Jy
! Total flux subtracted in 200 components = -0.0164767 Jy
! Clean residual min=-0.009078 max=0.012411 Jy/beam
! Clean residual mean=0.000841 rms=0.003019 Jy/beam
! Combined flux in latest and established models = 3.16493 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 38 components and 3.16493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332985Jy  sigma=0.001577
! Fit after  self-cal, rms=0.333422Jy  sigma=0.001576
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.5959e-05 Jy
! Component: 100  -  total flux cleaned = 6.62115e-05 Jy
! Component: 150  -  total flux cleaned = -7.15844e-05 Jy
! Component: 200  -  total flux cleaned = -0.000322586 Jy
! Total flux subtracted in 200 components = -0.000322586 Jy
! Clean residual min=-0.008883 max=0.012082 Jy/beam
! Clean residual mean=0.000844 rms=0.002996 Jy/beam
! Combined flux in latest and established models = 3.16461 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 3.1646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333284Jy  sigma=0.001574
! Fit after  self-cal, rms=0.333295Jy  sigma=0.001574
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333295Jy  sigma=0.001574
! Fit after  self-cal, rms=0.952009Jy  sigma=0.001507
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.7427 mas, bmaj=1.862 mas, bpa=-4.854 degrees
! Estimated noise=538.852 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00840485 Jy
! Component: 100  -  total flux cleaned = -0.00937674 Jy
! Component: 150  -  total flux cleaned = -0.0101461 Jy
! Component: 200  -  total flux cleaned = -0.0106204 Jy
! Total flux subtracted in 200 components = -0.0106204 Jy
! Clean residual min=-0.007350 max=0.010494 Jy/beam
! Clean residual mean=0.000696 rms=0.002306 Jy/beam
! Combined flux in latest and established models = 3.15398 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 42 components and 3.15398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.951827Jy  sigma=0.001501
! Fit after  self-cal, rms=0.951842Jy  sigma=0.001501
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.4, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00495405 Jy
! Component: 100  -  total flux cleaned = 0.00603983 Jy
! Component: 150  -  total flux cleaned = 0.00604348 Jy
! Component: 200  -  total flux cleaned = 0.00548407 Jy
! Total flux subtracted in 200 components = 0.00548407 Jy
! Clean residual min=-0.006842 max=0.009280 Jy/beam
! Clean residual mean=0.000614 rms=0.002210 Jy/beam
! Combined flux in latest and established models = 3.15947 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 55 components and 3.15947 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.951665Jy  sigma=0.001494
! Fit after  self-cal, rms=0.951670Jy  sigma=0.001494
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.951670Jy  sigma=0.001494
! Fit after  self-cal, rms=0.951499Jy  sigma=0.001491
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=2.119 mas, bmaj=3.14 mas, bpa=9.073 degrees
! Estimated noise=713.696 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00335929 Jy
! Component: 100  -  total flux cleaned = -0.00337738 Jy
! Component: 150  -  total flux cleaned = -0.00338695 Jy
! Component: 200  -  total flux cleaned = -0.0032109 Jy
! Total flux subtracted in 200 components = -0.0032109 Jy
! Clean residual min=-0.005811 max=0.010869 Jy/beam
! Clean residual mean=0.001404 rms=0.002920 Jy/beam
! Combined flux in latest and established models = 3.15626 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 61 components and 3.15626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.951445Jy  sigma=0.001489
! Fit after  self-cal, rms=0.951446Jy  sigma=0.001489
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000431873 Jy
! Component: 100  -  total flux cleaned = 0.000838715 Jy
! Component: 150  -  total flux cleaned = 0.00118069 Jy
! Component: 200  -  total flux cleaned = 0.00130469 Jy
! Total flux subtracted in 200 components = 0.00130469 Jy
! Clean residual min=-0.005895 max=0.010803 Jy/beam
! Clean residual mean=0.001357 rms=0.002875 Jy/beam
! Combined flux in latest and established models = 3.15756 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 67 components and 3.15756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.951443Jy  sigma=0.001489
! Fit after  self-cal, rms=0.951434Jy  sigma=0.001489
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.743 mas, bmaj=1.867 mas, bpa=-4.892 degrees
! Estimated noise=539.178 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.743 x 1.867 at -4.892 degrees (North through East)
! Clean map  min=-0.0059435  max=2.4843 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.951434Jy  sigma=0.001489
! Fit after  self-cal, rms=1.033327Jy  sigma=0.001251
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.7429 mas, bmaj=1.869 mas, bpa=-4.92 degrees
! Estimated noise=538.824 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00504857 Jy
! Component: 100  -  total flux cleaned = -0.00631645 Jy
! Component: 150  -  total flux cleaned = -0.00649755 Jy
! Component: 200  -  total flux cleaned = -0.00681979 Jy
! Total flux subtracted in 200 components = -0.00681979 Jy
! Clean residual min=-0.006092 max=0.008772 Jy/beam
! Clean residual mean=0.000473 rms=0.001998 Jy/beam
! Combined flux in latest and established models = 3.15074 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 69 components and 3.15074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.033236Jy  sigma=0.001246
! Fit after  self-cal, rms=1.033232Jy  sigma=0.001246
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Added new window around map position (7.2, -4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00774781 Jy
! Component: 100  -  total flux cleaned = 0.00903743 Jy
! Component: 150  -  total flux cleaned = 0.00935254 Jy
! Component: 200  -  total flux cleaned = 0.00949461 Jy
! Total flux subtracted in 200 components = 0.00949461 Jy
! Clean residual min=-0.006561 max=0.008078 Jy/beam
! Clean residual mean=0.000327 rms=0.001872 Jy/beam
! Combined flux in latest and established models = 3.16024 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 81 components and 3.16024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.033067Jy  sigma=0.001242
! Fit after  self-cal, rms=1.032995Jy  sigma=0.001242
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.032995Jy  sigma=0.001242
! Fit after  self-cal, rms=1.027845Jy  sigma=0.001240
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.6114 mas, bmaj=1.484 mas, bpa=-2.041 degrees
! Estimated noise=940.436 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.78733 Jy
! Component: 100  -  total flux cleaned = 2.32311 Jy
! Component: 150  -  total flux cleaned = 2.60762 Jy
! Component: 200  -  total flux cleaned = 2.78448 Jy
! Total flux subtracted in 200 components = 2.78448 Jy
! Clean residual min=-0.026303 max=0.094882 Jy/beam
! Clean residual mean=0.001210 rms=0.010466 Jy/beam
! Combined flux in latest and established models = 2.78448 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 20 model components to the UV plane model.
! The established model now contains 20 components and 2.78448 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.7429 mas, bmaj=1.871 mas, bpa=-4.944 degrees
! Estimated noise=538.734 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.167064 Jy
! Component: 100  -  total flux cleaned = 0.252518 Jy
! Component: 150  -  total flux cleaned = 0.299473 Jy
! Component: 200  -  total flux cleaned = 0.327654 Jy
! Total flux subtracted in 200 components = 0.327654 Jy
! Clean residual min=-0.009084 max=0.018197 Jy/beam
! Clean residual mean=0.001041 rms=0.003066 Jy/beam
! Combined flux in latest and established models = 3.11214 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 43 components and 3.11214 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Added new window around map position (-1.2, -0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0164238 Jy
! Component: 100  -  total flux cleaned = 0.0225543 Jy
! Component: 150  -  total flux cleaned = 0.0258441 Jy
! Component: 200  -  total flux cleaned = 0.0288661 Jy
! Total flux subtracted in 200 components = 0.0288661 Jy
! Clean residual min=-0.008112 max=0.009277 Jy/beam
! Clean residual mean=0.000591 rms=0.002390 Jy/beam
! Combined flux in latest and established models = 3.141 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 56 components and 3.141 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=2.121 mas, bmaj=3.144 mas, bpa=8.953 degrees
! Estimated noise=712.044 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00921674 Jy
! Component: 100  -  total flux cleaned = 0.0147676 Jy
! Component: 150  -  total flux cleaned = 0.0185375 Jy
! Component: 200  -  total flux cleaned = 0.0198125 Jy
! Total flux subtracted in 200 components = 0.0198125 Jy
! Clean residual min=-0.004704 max=0.010203 Jy/beam
! Clean residual mean=0.000752 rms=0.002286 Jy/beam
! Combined flux in latest and established models = 3.16081 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)
! Added new window around map position (-7, 4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00934973 Jy
! Component: 100  -  total flux cleaned = 0.0146085 Jy
! Component: 150  -  total flux cleaned = 0.0175302 Jy
! Component: 200  -  total flux cleaned = 0.0179754 Jy
! Total flux subtracted in 200 components = 0.0179754 Jy
! Clean residual min=-0.004908 max=0.004618 Jy/beam
! Clean residual mean=0.000065 rms=0.001424 Jy/beam
! Combined flux in latest and established models = 3.17879 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 97 components and 3.17879 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! Estimated beam: bmin=0.7429 mas, bmaj=1.871 mas, bpa=-4.944 degrees
! Estimated noise=538.734 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00602747 Jy
! Component: 100  -  total flux cleaned = -0.00557938 Jy
! Component: 150  -  total flux cleaned = -0.00517844 Jy
! Component: 200  -  total flux cleaned = -0.00517599 Jy
! Total flux subtracted in 200 components = -0.00517599 Jy
! Clean residual min=-0.007382 max=0.006361 Jy/beam
! Clean residual mean=0.000116 rms=0.001937 Jy/beam
! Combined flux in latest and established models = 3.17361 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 102 components and 3.17361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.028678Jy  sigma=0.001277
! Fit after  self-cal, rms=1.028504Jy  sigma=0.001275
wmodel J1743-0350_X_1999_12_20_pus_map.mod
! Writing 102 model components to file: J1743-0350_X_1999_12_20_pus_map.mod
wobs J1743-0350_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1743-0350_X_1999_12_20_pus_uvs.fits
wwins J1743-0350_X_1999_12_20_pus_map.win
! wwins: Wrote 5 windows to J1743-0350_X_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00105142 Jy
! Component: 100  -  total flux cleaned = -0.00179331 Jy
! Component: 150  -  total flux cleaned = -0.00215217 Jy
! Component: 200  -  total flux cleaned = -0.00262177 Jy
! Component: 250  -  total flux cleaned = -0.00285278 Jy
! Component: 300  -  total flux cleaned = -0.00342029 Jy
! Component: 350  -  total flux cleaned = -0.00341876 Jy
! Component: 400  -  total flux cleaned = -0.00363927 Jy
! Component: 450  -  total flux cleaned = -0.00374738 Jy
! Component: 500  -  total flux cleaned = -0.00385443 Jy
! Component: 550  -  total flux cleaned = -0.00364335 Jy
! Component: 600  -  total flux cleaned = -0.00364332 Jy
! Component: 650  -  total flux cleaned = -0.00364314 Jy
! Component: 700  -  total flux cleaned = -0.00344019 Jy
! Component: 750  -  total flux cleaned = -0.0034401 Jy
! Component: 800  -  total flux cleaned = -0.00324202 Jy
! Component: 850  -  total flux cleaned = -0.00294845 Jy
! Component: 900  -  total flux cleaned = -0.00285309 Jy
! Component: 950  -  total flux cleaned = -0.00285348 Jy
! Component: 1000  -  total flux cleaned = -0.00275839 Jy
! Total flux subtracted in 1024 components = -0.00257057 Jy
! Clean residual min=-0.004677 max=0.004719 Jy/beam
! Clean residual mean=0.000152 rms=0.001676 Jy/beam
! Combined flux in latest and established models = 3.17104 Jy
keep
! Adding 49 model components to the UV plane model.
! The established model now contains 138 components and 3.17104 Jy
![Exited script file: muppet]
wmap "J1743-0350_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7429 x 1.871 at -4.944 degrees (North through East)
! Clean map  min=-0.0056783  max=2.4898 Jy/beam
! Writing clean map to FITS file: J1743-0350_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.48979 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.3% of the data.
!  The x-axis pixel size should ideally be below 0.1864 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00167547 
device "J1743-0350_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1743-0350_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.20188 0.20188 0.403761 0.807521 1.61504 3.23008 6.46017 12.9203 25.8407 51.6814
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.005 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.489 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7429 x 1.871 at -4.944 degrees (North through East)
! Clean map  min=-0.0056783  max=2.4898 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1743-0350_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1743-0350_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1743-0350_X_1999_12_20_pus_uvs.log closed on Mon Dec 17 17:13:03 2007