! Started logfile: J1743-0350_X_1999_05_10_pus_uvs.log on Tue Jan 15 17:00:19 2008
obs J1743-0350_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1743-0350_X_1999_05_10_pus_uva.fits
! AN table 1: 76 integrations on 153 of 153 possible baselines.
! AN table 2: 78 integrations on 153 of 153 possible baselines.
! AN table 3: 30 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  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 1763 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1743-0350_X_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 = 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 1105 telescope corrections were flagged in sub-array 1.
!  A total of 977 telescope corrections were flagged in sub-array 2.
!  A total of 494 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 1105 telescope corrections were flagged in sub-array 1.
!  A total of 957 telescope corrections were flagged in sub-array 2.
!  A total of 482 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 1105 telescope corrections were flagged in sub-array 1.
!  A total of 957 telescope corrections were flagged in sub-array 2.
!  A total of 482 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 1135 telescope corrections were flagged in sub-array 1.
!  A total of 1000 telescope corrections were flagged in sub-array 2.
!  A total of 510 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=2.828500Jy  sigma=0.026365
! Fit after  self-cal, rms=2.160712Jy  sigma=0.021245
! 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 0.634% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.6257 mas, bmaj=1.152 mas, bpa=2.165 degrees
! Estimated noise=1784.98 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.25573 Jy
! Component: 100  -  total flux cleaned = 2.96073 Jy
! Total flux subtracted in 100 components = 2.96073 Jy
! Clean residual min=-0.115980 max=0.321696 Jy/beam
! Clean residual mean=0.004763 rms=0.040515 Jy/beam
! Combined flux in latest and established models = 2.96073 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 2.96073 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.676488Jy  sigma=0.006634
! Fit after  self-cal, rms=0.676753Jy  sigma=0.006633
! Inverting map 
! Your choice of large map pixels excluded 0.634% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.372682 Jy
! Component: 100  -  total flux cleaned = 0.586977 Jy
! Total flux subtracted in 100 components = 0.586977 Jy
! Clean residual min=-0.069096 max=0.131813 Jy/beam
! Clean residual mean=0.001870 rms=0.020654 Jy/beam
! Combined flux in latest and established models = 3.54771 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 15 components and 3.54771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434073Jy  sigma=0.003651
! Fit after  self-cal, rms=0.434003Jy  sigma=0.003648
! Inverting map 
! Your choice of large map pixels excluded 0.634% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Added new window around map position (0.4, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.142949 Jy
! Component: 100  -  total flux cleaned = 0.2366 Jy
! Total flux subtracted in 100 components = 0.2366 Jy
! Clean residual min=-0.065430 max=0.075274 Jy/beam
! Clean residual mean=0.000698 rms=0.015434 Jy/beam
! Combined flux in latest and established models = 3.78431 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 20 components and 3.78431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396801Jy  sigma=0.002963
! Fit after  self-cal, rms=0.395732Jy  sigma=0.002952
! Inverting map 
! Your choice of large map pixels excluded 0.634% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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 0.634% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7578 mas, bmaj=1.56 mas, bpa=-1.636 degrees
! Estimated noise=874.061 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.0595607 Jy
! Component: 100  -  total flux cleaned = 0.0774947 Jy
! Component: 150  -  total flux cleaned = 0.0812206 Jy
! Component: 200  -  total flux cleaned = 0.0855276 Jy
! Total flux subtracted in 200 components = 0.0855276 Jy
! Clean residual min=-0.053079 max=0.060474 Jy/beam
! Clean residual mean=-0.001786 rms=0.015486 Jy/beam
! Combined flux in latest and established models = 3.86984 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 27 components and 3.86984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387218Jy  sigma=0.002801
! Fit after  self-cal, rms=0.387203Jy  sigma=0.002800
! Inverting map 
! Your choice of large map pixels excluded 0.634% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 102 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.01     GC        1.04     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        1.00     LA        1.00     
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.03     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.95     GC        1.15     HH        1.28     
!   HN        0.97     KK        1.04     KP        0.98     LA        0.95     
!   MC        1.05     MK        0.99     NL        1.05     NY        1.00*    
!   ON        1.07     OV        0.96     PT        1.01     SC        1.03     
!   WF        1.30     WZ        1.05     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.41     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.96     
!   WF        1.30     WZ        1.20     
! 
!  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 102 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.04     LA        1.02     
!   MC        1.00*    MK        0.95     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.95     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.93     GC        1.14     HH        1.61     
!   HN        0.96     KK        0.98     KP        0.99     LA        0.96     
!   MC        1.06     MK        0.97     NL        1.00     NY        1.00*    
!   ON        1.10     OV        0.94     PT        0.93     SC        1.02     
!   WF        1.04     WZ        1.05     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.27     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.04     
!   WF        0.99     WZ        1.10     
! 
!  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 102 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.04     GC        1.11     HH        1.00*    
!   HN        1.00*    KK        1.04     KP        1.07     LA        1.04     
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.97     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.18     HH        1.58     
!   HN        0.99     KK        1.06     KP        1.03     LA        0.96     
!   MC        1.10     MK        0.99     NL        1.02     NY        1.00*    
!   ON        1.14     OV        0.98     PT        0.96     SC        1.05     
!   WF        1.06     WZ        1.08     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.49     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.10     
!   WF        0.98     WZ        1.10     
! 
!  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 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.03     GC        1.04     HH        1.00*    
!   HN        1.00*    KK        1.01     KP        1.07     LA        1.06     
!   MC        1.00*    MK        0.97     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.16     HH        1.72     
!   HN        0.99     KK        1.04     KP        1.02     LA        0.98     
!   MC        1.08     MK        1.00     NL        1.03     NY        1.00*    
!   ON        1.16     OV        0.99     PT        0.99     SC        1.01     
!   WF        1.06     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
!  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.387203Jy  sigma=0.002800
! Fit after  self-cal, rms=0.318814Jy  sigma=0.001815
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7744 mas, bmaj=1.695 mas, bpa=-2.534 degrees
! Estimated noise=907.305 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.0246323 Jy
! Component: 100  -  total flux cleaned = -0.0268397 Jy
! Component: 150  -  total flux cleaned = -0.0272505 Jy
! Component: 200  -  total flux cleaned = -0.02763 Jy
! Total flux subtracted in 200 components = -0.02763 Jy
! Clean residual min=-0.026856 max=0.024391 Jy/beam
! Clean residual mean=-0.000388 rms=0.007827 Jy/beam
! Combined flux in latest and established models = 3.84221 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 35 components and 3.84221 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316084Jy  sigma=0.001792
! Fit after  self-cal, rms=0.316763Jy  sigma=0.001790
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.316763Jy  sigma=0.001790
! Fit after  self-cal, rms=0.304420Jy  sigma=0.001651
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7772 mas, bmaj=1.697 mas, bpa=-2.381 degrees
! Estimated noise=908.455 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0160648 Jy
! Component: 100  -  total flux cleaned = -0.0179726 Jy
! Component: 150  -  total flux cleaned = -0.020278 Jy
! Component: 200  -  total flux cleaned = -0.020922 Jy
! Total flux subtracted in 200 components = -0.020922 Jy
! Clean residual min=-0.013744 max=0.012443 Jy/beam
! Clean residual mean=-0.000081 rms=0.003087 Jy/beam
! Combined flux in latest and established models = 3.82128 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 37 components and 3.82128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301681Jy  sigma=0.001636
! Fit after  self-cal, rms=0.301858Jy  sigma=0.001634
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.00449877 Jy
! Component: 100  -  total flux cleaned = -0.00420447 Jy
! Component: 150  -  total flux cleaned = -0.00368635 Jy
! Component: 200  -  total flux cleaned = -0.00321517 Jy
! Total flux subtracted in 200 components = -0.00321517 Jy
! Clean residual min=-0.013448 max=0.011209 Jy/beam
! Clean residual mean=-0.000021 rms=0.002942 Jy/beam
! Combined flux in latest and established models = 3.81807 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 41 components and 3.81807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300739Jy  sigma=0.001631
! Fit after  self-cal, rms=0.300681Jy  sigma=0.001631
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.300681Jy  sigma=0.001631
! Fit after  self-cal, rms=0.298717Jy  sigma=0.001624
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7781 mas, bmaj=1.695 mas, bpa=-2.323 degrees
! Estimated noise=909.138 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00809888 Jy
! Component: 100  -  total flux cleaned = -0.00993636 Jy
! Component: 150  -  total flux cleaned = -0.0110059 Jy
! Component: 200  -  total flux cleaned = -0.0114892 Jy
! Total flux subtracted in 200 components = -0.0114892 Jy
! Clean residual min=-0.011431 max=0.010616 Jy/beam
! Clean residual mean=0.000095 rms=0.002510 Jy/beam
! Combined flux in latest and established models = 3.80658 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 3.80658 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297596Jy  sigma=0.001619
! Fit after  self-cal, rms=0.297578Jy  sigma=0.001619
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.00118697 Jy
! Component: 100  -  total flux cleaned = -0.00139818 Jy
! Component: 150  -  total flux cleaned = -0.00160193 Jy
! Component: 200  -  total flux cleaned = -0.00140217 Jy
! Total flux subtracted in 200 components = -0.00140217 Jy
! Clean residual min=-0.011022 max=0.010006 Jy/beam
! Clean residual mean=0.000122 rms=0.002439 Jy/beam
! Combined flux in latest and established models = 3.80518 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 44 components and 3.80518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296947Jy  sigma=0.001617
! Fit after  self-cal, rms=0.296931Jy  sigma=0.001617
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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.296931Jy  sigma=0.001617
! Fit after  self-cal, rms=0.295969Jy  sigma=0.001614
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=2.229 mas, bmaj=2.994 mas, bpa=4.956 degrees
! Estimated noise=1141.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00427014 Jy
! Component: 100  -  total flux cleaned = -0.0045092 Jy
! Component: 150  -  total flux cleaned = -0.00482247 Jy
! Component: 200  -  total flux cleaned = -0.00508943 Jy
! Total flux subtracted in 200 components = -0.00508943 Jy
! Clean residual min=-0.006771 max=0.007117 Jy/beam
! Clean residual mean=0.000297 rms=0.002270 Jy/beam
! Combined flux in latest and established models = 3.80009 Jy
selfcal
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 46 components and 3.80009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295923Jy  sigma=0.001612
! Fit after  self-cal, rms=0.295843Jy  sigma=0.001612
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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 = -9.15189e-05 Jy
! Component: 100  -  total flux cleaned = -9.26969e-05 Jy
! Component: 150  -  total flux cleaned = -9.03125e-05 Jy
! Component: 200  -  total flux cleaned = -2.11022e-05 Jy
! Total flux subtracted in 200 components = -2.11022e-05 Jy
! Clean residual min=-0.006675 max=0.007152 Jy/beam
! Clean residual mean=0.000297 rms=0.002251 Jy/beam
! Combined flux in latest and established models = 3.80007 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 47 components and 3.80007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295834Jy  sigma=0.001612
! Fit after  self-cal, rms=0.295796Jy  sigma=0.001612
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7786 mas, bmaj=1.694 mas, bpa=-2.299 degrees
! Estimated noise=909.729 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7786 x 1.694 at -2.299 degrees (North through East)
! Clean map  min=-0.0082482  max=3.1299 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.295796Jy  sigma=0.001612
! Fit after  self-cal, rms=0.321585Jy  sigma=0.001353
! Inverting map and beam 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7783 mas, bmaj=1.696 mas, bpa=-2.369 degrees
! Estimated noise=909.45 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00630723 Jy
! Component: 100  -  total flux cleaned = -0.00774258 Jy
! Component: 150  -  total flux cleaned = -0.00837037 Jy
! Component: 200  -  total flux cleaned = -0.00875335 Jy
! Total flux subtracted in 200 components = -0.00875335 Jy
! Clean residual min=-0.009112 max=0.009819 Jy/beam
! Clean residual mean=0.000120 rms=0.002139 Jy/beam
! Combined flux in latest and established models = 3.79131 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 47 components and 3.79131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320893Jy  sigma=0.001349
! Fit after  self-cal, rms=0.320898Jy  sigma=0.001349
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Added new window around map position (-0.8, -0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00381346 Jy
! Component: 100  -  total flux cleaned = 0.00515342 Jy
! Component: 150  -  total flux cleaned = 0.00515256 Jy
! Component: 200  -  total flux cleaned = 0.00543312 Jy
! Total flux subtracted in 200 components = 0.00543312 Jy
! Clean residual min=-0.008328 max=0.006617 Jy/beam
! Clean residual mean=0.000016 rms=0.001910 Jy/beam
! Combined flux in latest and established models = 3.79675 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 62 components and 3.79675 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319850Jy  sigma=0.001342
! Fit after  self-cal, rms=0.319621Jy  sigma=0.001341
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319621Jy  sigma=0.001341
! Fit after  self-cal, rms=0.367114Jy  sigma=0.001340
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 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.6421 mas, bmaj=1.234 mas, bpa=-0.04962 degrees
! Estimated noise=1862.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.31153 Jy
! Component: 100  -  total flux cleaned = 2.975 Jy
! Component: 150  -  total flux cleaned = 3.30837 Jy
! Component: 200  -  total flux cleaned = 3.49685 Jy
! Total flux subtracted in 200 components = 3.49685 Jy
! Clean residual min=-0.044271 max=0.096657 Jy/beam
! Clean residual mean=0.001517 rms=0.013469 Jy/beam
! Combined flux in latest and established models = 3.49685 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 16 model components to the UV plane model.
! The established model now contains 16 components and 3.49685 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7788 mas, bmaj=1.696 mas, bpa=-2.356 degrees
! Estimated noise=910.076 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.145333 Jy
! Component: 100  -  total flux cleaned = 0.221519 Jy
! Component: 150  -  total flux cleaned = 0.263396 Jy
! Component: 200  -  total flux cleaned = 0.284914 Jy
! Total flux subtracted in 200 components = 0.284914 Jy
! Clean residual min=-0.013240 max=0.012618 Jy/beam
! Clean residual mean=0.000238 rms=0.002963 Jy/beam
! Combined flux in latest and established models = 3.78177 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 32 components and 3.78177 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 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 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=2.229 mas, bmaj=3 mas, bpa=4.744 degrees
! Estimated noise=1140.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101106 Jy
! Component: 100  -  total flux cleaned = 0.0114193 Jy
! Component: 150  -  total flux cleaned = 0.011672 Jy
! Component: 200  -  total flux cleaned = 0.0118661 Jy
! Total flux subtracted in 200 components = 0.0118661 Jy
! Clean residual min=-0.005412 max=0.005779 Jy/beam
! Clean residual mean=0.000053 rms=0.001852 Jy/beam
! Combined flux in latest and established models = 3.79363 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 = 7.33796e-05 Jy
! Component: 100  -  total flux cleaned = -6.88054e-05 Jy
! Component: 150  -  total flux cleaned = -0.000270416 Jy
! Component: 200  -  total flux cleaned = -0.000269386 Jy
! Total flux subtracted in 200 components = -0.000269386 Jy
! Clean residual min=-0.005446 max=0.005749 Jy/beam
! Clean residual mean=0.000068 rms=0.001826 Jy/beam
! Combined flux in latest and established models = 3.79336 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 51 components and 3.79336 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! Estimated beam: bmin=0.7788 mas, bmaj=1.696 mas, bpa=-2.356 degrees
! Estimated noise=910.076 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00788098 Jy
! Component: 100  -  total flux cleaned = -0.00791608 Jy
! Component: 150  -  total flux cleaned = -0.0062397 Jy
! Component: 200  -  total flux cleaned = -0.00572249 Jy
! Total flux subtracted in 200 components = -0.00572249 Jy
! Clean residual min=-0.011764 max=0.009357 Jy/beam
! Clean residual mean=0.000131 rms=0.002428 Jy/beam
! Combined flux in latest and established models = 3.78764 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 55 components and 3.78764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381399Jy  sigma=0.001384
! Fit after  self-cal, rms=0.381322Jy  sigma=0.001383
wmodel J1743-0350_X_1999_05_10_pus_map.mod
! Writing 55 model components to file: J1743-0350_X_1999_05_10_pus_map.mod
wobs J1743-0350_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1743-0350_X_1999_05_10_pus_uvs.fits
wwins J1743-0350_X_1999_05_10_pus_map.win
! wwins: Wrote 3 windows to J1743-0350_X_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 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00318017 Jy
! Component: 100  -  total flux cleaned = -0.00388153 Jy
! Component: 150  -  total flux cleaned = -0.00438828 Jy
! Component: 200  -  total flux cleaned = -0.00520731 Jy
! Component: 250  -  total flux cleaned = -0.00552464 Jy
! Component: 300  -  total flux cleaned = -0.00583452 Jy
! Component: 350  -  total flux cleaned = -0.00583304 Jy
! Component: 400  -  total flux cleaned = -0.00598247 Jy
! Component: 450  -  total flux cleaned = -0.0062738 Jy
! Component: 500  -  total flux cleaned = -0.00641734 Jy
! Component: 550  -  total flux cleaned = -0.00655917 Jy
! Component: 600  -  total flux cleaned = -0.00683835 Jy
! Component: 650  -  total flux cleaned = -0.00697518 Jy
! Component: 700  -  total flux cleaned = -0.00724645 Jy
! Component: 750  -  total flux cleaned = -0.00724501 Jy
! Component: 800  -  total flux cleaned = -0.00737843 Jy
! Component: 850  -  total flux cleaned = -0.00750992 Jy
! Component: 900  -  total flux cleaned = -0.00751002 Jy
! Component: 950  -  total flux cleaned = -0.0077667 Jy
! Component: 1000  -  total flux cleaned = -0.00789336 Jy
! Total flux subtracted in 1024 components = -0.00789299 Jy
! Clean residual min=-0.006474 max=0.006311 Jy/beam
! Clean residual mean=0.000250 rms=0.002012 Jy/beam
! Combined flux in latest and established models = 3.77975 Jy
keep
! Adding 46 model components to the UV plane model.
! The established model now contains 89 components and 3.77975 Jy
![Exited script file: muppet]
wmap "J1743-0350_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7788 x 1.696 at -2.356 degrees (North through East)
! Clean map  min=-0.0076428  max=3.1348 Jy/beam
! Writing clean map to FITS file: J1743-0350_X_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.13477 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.672% of the data.
!  The x-axis pixel size should ideally be below 0.1914 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00201137 
device "J1743-0350_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1743-0350_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.19249 0.19249 0.384981 0.769961 1.53992 3.07984 6.15969 12.3194 24.6388 49.2775 98.555
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.006 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.134 
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.7788 x 1.696 at -2.356 degrees (North through East)
! Clean map  min=-0.0076428  max=3.1348 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1743-0350_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1743-0350_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1743-0350_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 17:00:24 2008