! Started logfile: J0050-0929_X_1999_03_08_pus_uvs.log on Thu Jan  3 14:30:02 2008
obs J0050-0929_X_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0050-0929_X_1999_03_08_pus_uva.fits
! AN table 1: 392 integrations on 190 of 190 possible baselines.
! AN table 2: 32 integrations on 190 of 190 possible baselines.
! AN table 3: 63 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0459959 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0050-0929
! 
! 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 2464 lines of history.
! 
! Reading 17024 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 J0050-0929_X_1999_03_08_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 6517 telescope corrections were flagged in sub-array 1.
!  A total of 640 telescope corrections were flagged in sub-array 2.
!  A total of 1017 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 6514 telescope corrections were flagged in sub-array 1.
!  A total of 640 telescope corrections were flagged in sub-array 2.
!  A total of 1017 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 6517 telescope corrections were flagged in sub-array 1.
!  A total of 640 telescope corrections were flagged in sub-array 2.
!  A total of 1017 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 6517 telescope corrections were flagged in sub-array 1.
!  A total of 640 telescope corrections were flagged in sub-array 2.
!  A total of 1017 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.944194Jy  sigma=0.007050
! Fit after  self-cal, rms=0.358394Jy  sigma=0.002526
! 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.0547% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.6124 mas, bmaj=1.675 mas, bpa=-3.514 degrees
! Estimated noise=1182.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 = 0.738829 Jy
! Component: 100  -  total flux cleaned = 0.900387 Jy
! Total flux subtracted in 100 components = 0.900387 Jy
! Clean residual min=-0.044053 max=0.066544 Jy/beam
! Clean residual mean=0.000939 rms=0.015797 Jy/beam
! Combined flux in latest and established models = 0.900387 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.900387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374585Jy  sigma=0.002840
! Fit after  self-cal, rms=0.374666Jy  sigma=0.002840
! Inverting map 
! Your choice of large map pixels excluded 0.0547% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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.0547% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.785 mas, bmaj=2.52 mas, bpa=-5.646 degrees
! Estimated noise=668.859 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.123708 Jy
! Component: 100  -  total flux cleaned = 0.17411 Jy
! Component: 150  -  total flux cleaned = 0.195771 Jy
! Component: 200  -  total flux cleaned = 0.205925 Jy
! Total flux subtracted in 200 components = 0.205925 Jy
! Clean residual min=-0.048893 max=0.058694 Jy/beam
! Clean residual mean=-0.000910 rms=0.020502 Jy/beam
! Combined flux in latest and established models = 1.10631 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 24 components and 1.10631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344814Jy  sigma=0.002369
! Fit after  self-cal, rms=0.344766Jy  sigma=0.002368
! Inverting map 
! Your choice of large map pixels excluded 0.0547% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 723 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.96     GC        1.04     GG        1.00*    
!   HN        1.00     KP        0.98     LA        0.99     NL        1.13     
!   OV        0.97     PT        0.98     SC        0.95     WF        1.17     
!   GN        1.51     HH        1.00*    KK        0.90     MC        1.36     
!   MK        0.95     NY        1.00*    ON        1.11     WZ        0.89     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.03     KP        1.00*    LA        1.00*    NL        1.16     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.97     
!   GN        0.93     HH        1.00*    KK        1.00*    MC        1.06     
!   MK        1.00*    NY        1.00*    ON        1.12     WZ        0.83     
! 
! 
! Correcting IF 2.
!  A total of 723 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     GC        1.05     GG        1.00*    
!   HN        0.99     KP        0.99     LA        0.99     NL        1.10     
!   OV        0.97     PT        0.98     SC        0.98     WF        1.27     
!   GN        1.59     HH        1.00*    KK        0.91     MC        1.13     
!   MK        0.95     NY        1.00*    ON        1.02     WZ        0.79     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.07     KP        1.00*    LA        1.00*    NL        1.19     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.93     
!   GN        0.97     HH        1.00*    KK        1.00*    MC        1.05     
!   MK        1.00*    NY        1.00*    ON        1.56     WZ        0.82     
! 
! 
! Correcting IF 3.
!  A total of 723 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.97     GC        0.97     GG        1.00*    
!   HN        0.99     KP        0.99     LA        1.01     NL        1.20     
!   OV        0.98     PT        0.99     SC        1.01     WF        1.10     
!   GN        1.51     HH        1.00*    KK        0.91     MC        1.02     
!   MK        0.95     NY        1.00*    ON        1.06     WZ        0.80     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.05     KP        1.00*    LA        1.00*    NL        1.29     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.95     
!   GN        0.94     HH        1.00*    KK        1.00*    MC        1.03     
!   MK        1.00*    NY        1.00*    ON        1.13     WZ        0.82     
! 
! 
! Correcting IF 4.
!  A total of 723 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     GC        1.06     GG        1.00*    
!   HN        1.02     KP        0.99     LA        1.00     NL        1.08     
!   OV        0.98     PT        0.99     SC        0.99     WF        1.10     
!   GN        1.50     HH        1.00*    KK        0.89     MC        1.07     
!   MK        0.94     NY        1.00*    ON        1.01     WZ        0.79     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.04     KP        1.00*    LA        1.00*    NL        1.32     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        0.96     
!   GN        0.95     HH        1.00*    KK        1.00*    MC        1.04     
!   MK        1.00*    NY        1.00*    ON        5.90     WZ        0.85     
! 
! 
! Fit before self-cal, rms=0.344766Jy  sigma=0.002368
! Fit after  self-cal, rms=0.431184Jy  sigma=0.001972
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.7351 mas, bmaj=2.346 mas, bpa=-5.767 degrees
! Estimated noise=728.793 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.00926362 Jy
! Component: 100  -  total flux cleaned = -0.0092569 Jy
! Component: 150  -  total flux cleaned = -0.00924479 Jy
! Component: 200  -  total flux cleaned = -0.00888956 Jy
! Total flux subtracted in 200 components = -0.00888956 Jy
! Clean residual min=-0.030256 max=0.033920 Jy/beam
! Clean residual mean=0.000556 rms=0.010108 Jy/beam
! Combined flux in latest and established models = 1.09742 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 30 components and 1.09742 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430202Jy  sigma=0.001962
! Fit after  self-cal, rms=0.431201Jy  sigma=0.001961
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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.431201Jy  sigma=0.001961
! Fit after  self-cal, rms=1.243008Jy  sigma=0.002106
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.7393 mas, bmaj=2.322 mas, bpa=-5.839 degrees
! Estimated noise=769.68 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.050029 Jy
! Component: 100  -  total flux cleaned = 0.0637239 Jy
! Component: 150  -  total flux cleaned = 0.06489 Jy
! Component: 200  -  total flux cleaned = 0.0654073 Jy
! Total flux subtracted in 200 components = 0.0654073 Jy
! Clean residual min=-0.053938 max=0.026585 Jy/beam
! Clean residual mean=-0.000262 rms=0.012513 Jy/beam
! Combined flux in latest and established models = 1.16283 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 39 components and 1.16283 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.233470Jy  sigma=0.002127
! Fit after  self-cal, rms=1.240118Jy  sigma=0.002126
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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 = -3.71717e-05 Jy
! Component: 100  -  total flux cleaned = 0.000889726 Jy
! Component: 150  -  total flux cleaned = 0.00130606 Jy
! Component: 200  -  total flux cleaned = 0.00172462 Jy
! Total flux subtracted in 200 components = 0.00172462 Jy
! Clean residual min=-0.051229 max=0.027135 Jy/beam
! Clean residual mean=-0.000390 rms=0.012487 Jy/beam
! Combined flux in latest and established models = 1.16455 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 40 components and 1.16455 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.239349Jy  sigma=0.002122
! Fit after  self-cal, rms=1.239534Jy  sigma=0.002122
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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=1.239534Jy  sigma=0.002122
! Fit after  self-cal, rms=1.533609Jy  sigma=0.001277
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.7375 mas, bmaj=2.337 mas, bpa=-5.829 degrees
! Estimated noise=767.158 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00617421 Jy
! Component: 100  -  total flux cleaned = -0.00713931 Jy
! Component: 150  -  total flux cleaned = -0.00794971 Jy
! Component: 200  -  total flux cleaned = -0.008634 Jy
! Total flux subtracted in 200 components = -0.008634 Jy
! Clean residual min=-0.006157 max=0.006798 Jy/beam
! Clean residual mean=0.000713 rms=0.002152 Jy/beam
! Combined flux in latest and established models = 1.15592 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 40 components and 1.15592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.533710Jy  sigma=0.001272
! Fit after  self-cal, rms=1.535451Jy  sigma=0.001271
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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.000489548 Jy
! Component: 100  -  total flux cleaned = -0.00100243 Jy
! Component: 150  -  total flux cleaned = -0.0014402 Jy
! Component: 200  -  total flux cleaned = -0.00181815 Jy
! Total flux subtracted in 200 components = -0.00181815 Jy
! Clean residual min=-0.005596 max=0.006829 Jy/beam
! Clean residual mean=0.000733 rms=0.002100 Jy/beam
! Combined flux in latest and established models = 1.1541 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 41 components and 1.1541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.535467Jy  sigma=0.001270
! Fit after  self-cal, rms=1.535541Jy  sigma=0.001270
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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=1.535541Jy  sigma=0.001270
! Fit after  self-cal, rms=1.608505Jy  sigma=0.001268
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=2.162 mas, bmaj=4.205 mas, bpa=10.2 degrees
! Estimated noise=1030.27 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00446767 Jy
! Component: 100  -  total flux cleaned = -0.00573167 Jy
! Component: 150  -  total flux cleaned = -0.00581649 Jy
! Component: 200  -  total flux cleaned = -0.00589661 Jy
! Total flux subtracted in 200 components = -0.00589661 Jy
! Clean residual min=-0.006926 max=0.010717 Jy/beam
! Clean residual mean=0.001851 rms=0.003843 Jy/beam
! Combined flux in latest and established models = 1.1482 Jy
selfcal
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 41 components and 1.14821 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.608595Jy  sigma=0.001267
! Fit after  self-cal, rms=1.609394Jy  sigma=0.001267
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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 = -8.22377e-05 Jy
! Component: 100  -  total flux cleaned = -0.000158329 Jy
! Component: 150  -  total flux cleaned = -0.000231278 Jy
! Component: 200  -  total flux cleaned = -0.000299509 Jy
! Total flux subtracted in 200 components = -0.000299509 Jy
! Clean residual min=-0.006818 max=0.010617 Jy/beam
! Clean residual mean=0.001838 rms=0.003821 Jy/beam
! Combined flux in latest and established models = 1.14791 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 41 components and 1.14791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.609383Jy  sigma=0.001266
! Fit after  self-cal, rms=1.609391Jy  sigma=0.001266
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.7396 mas, bmaj=2.343 mas, bpa=-5.828 degrees
! Estimated noise=768.161 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7396 x 2.343 at -5.828 degrees (North through East)
! Clean map  min=-0.0050621  max=1.0669 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=1.609391Jy  sigma=0.001266
! Fit after  self-cal, rms=6.433743Jy  sigma=0.001166
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.7404 mas, bmaj=2.344 mas, bpa=-5.801 degrees
! Estimated noise=767.326 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00237587 Jy
! Component: 100  -  total flux cleaned = -0.00278272 Jy
! Component: 150  -  total flux cleaned = -0.00322227 Jy
! Component: 200  -  total flux cleaned = -0.00359947 Jy
! Total flux subtracted in 200 components = -0.00359947 Jy
! Clean residual min=-0.004752 max=0.005571 Jy/beam
! Clean residual mean=0.000606 rms=0.001730 Jy/beam
! Combined flux in latest and established models = 1.14431 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 42 components and 1.14431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.433739Jy  sigma=0.001165
! Fit after  self-cal, rms=6.433777Jy  sigma=0.001165
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000353865 Jy
! Component: 100  -  total flux cleaned = -0.000577885 Jy
! Component: 150  -  total flux cleaned = -0.000728129 Jy
! Component: 200  -  total flux cleaned = -0.000820484 Jy
! Total flux subtracted in 200 components = -0.000820484 Jy
! Clean residual min=-0.004451 max=0.005671 Jy/beam
! Clean residual mean=0.000625 rms=0.001711 Jy/beam
! Combined flux in latest and established models = 1.14349 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 44 components and 1.14349 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.433770Jy  sigma=0.001165
! Fit after  self-cal, rms=6.433757Jy  sigma=0.001165
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.433757Jy  sigma=0.001165
! Fit after  self-cal, rms=6.530881Jy  sigma=0.001164
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.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.6153 mas, bmaj=1.664 mas, bpa=-3.949 degrees
! Estimated noise=1301.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.815553 Jy
! Component: 100  -  total flux cleaned = 0.993807 Jy
! Component: 150  -  total flux cleaned = 1.04637 Jy
! Component: 200  -  total flux cleaned = 1.07695 Jy
! Total flux subtracted in 200 components = 1.07695 Jy
! Clean residual min=-0.009053 max=0.016023 Jy/beam
! Clean residual mean=0.000348 rms=0.002923 Jy/beam
! Combined flux in latest and established models = 1.07695 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 1.07695 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.7414 mas, bmaj=2.348 mas, bpa=-5.809 degrees
! Estimated noise=767.955 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.0304708 Jy
! Component: 100  -  total flux cleaned = 0.0459048 Jy
! Component: 150  -  total flux cleaned = 0.0542075 Jy
! Component: 200  -  total flux cleaned = 0.058756 Jy
! Total flux subtracted in 200 components = 0.058756 Jy
! Clean residual min=-0.003527 max=0.006220 Jy/beam
! Clean residual mean=0.000762 rms=0.001643 Jy/beam
! Combined flux in latest and established models = 1.13571 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 47 components and 1.13571 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 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.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=2.163 mas, bmaj=4.213 mas, bpa=10.22 degrees
! Estimated noise=1026.02 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0039405 Jy
! Component: 100  -  total flux cleaned = 0.00523305 Jy
! Component: 150  -  total flux cleaned = 0.00533973 Jy
! Component: 200  -  total flux cleaned = 0.00534012 Jy
! Total flux subtracted in 200 components = 0.00534012 Jy
! Clean residual min=-0.005859 max=0.009517 Jy/beam
! Clean residual mean=0.001524 rms=0.003231 Jy/beam
! Combined flux in latest and established models = 1.14105 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 = -2.34915e-05 Jy
! Component: 100  -  total flux cleaned = -2.57688e-05 Jy
! Component: 150  -  total flux cleaned = -2.60647e-05 Jy
! Component: 200  -  total flux cleaned = -4.7284e-05 Jy
! Total flux subtracted in 200 components = -4.7284e-05 Jy
! Clean residual min=-0.005864 max=0.009516 Jy/beam
! Clean residual mean=0.001526 rms=0.003228 Jy/beam
! Combined flux in latest and established models = 1.141 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 51 components and 1.141 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! Estimated beam: bmin=0.7414 mas, bmaj=2.348 mas, bpa=-5.809 degrees
! Estimated noise=767.955 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00107324 Jy
! Component: 100  -  total flux cleaned = -0.000925919 Jy
! Component: 150  -  total flux cleaned = -0.00076009 Jy
! Component: 200  -  total flux cleaned = -0.000577041 Jy
! Total flux subtracted in 200 components = -0.000577041 Jy
! Clean residual min=-0.003734 max=0.005901 Jy/beam
! Clean residual mean=0.000642 rms=0.001656 Jy/beam
! Combined flux in latest and established models = 1.14043 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 53 components and 1.14043 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.530833Jy  sigma=0.001163
! Fit after  self-cal, rms=6.530812Jy  sigma=0.001163
wmodel J0050-0929_X_1999_03_08_pus_map.mod
! Writing 53 model components to file: J0050-0929_X_1999_03_08_pus_map.mod
wobs J0050-0929_X_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0050-0929_X_1999_03_08_pus_uvs.fits
wwins J0050-0929_X_1999_03_08_pus_map.win
! wwins: Wrote 1 windows to J0050-0929_X_1999_03_08_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.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.0025411 Jy
! Component: 100  -  total flux cleaned = 0.00478378 Jy
! Component: 150  -  total flux cleaned = 0.00687217 Jy
! Component: 200  -  total flux cleaned = 0.00883109 Jy
! Component: 250  -  total flux cleaned = 0.0106818 Jy
! Component: 300  -  total flux cleaned = 0.0119513 Jy
! Component: 350  -  total flux cleaned = 0.0131773 Jy
! Component: 400  -  total flux cleaned = 0.0140387 Jy
! Component: 450  -  total flux cleaned = 0.0148154 Jy
! Component: 500  -  total flux cleaned = 0.0157038 Jy
! Component: 550  -  total flux cleaned = 0.0164517 Jy
! Component: 600  -  total flux cleaned = 0.0171261 Jy
! Component: 650  -  total flux cleaned = 0.0176686 Jy
! Component: 700  -  total flux cleaned = 0.0181435 Jy
! Component: 750  -  total flux cleaned = 0.0186705 Jy
! Component: 800  -  total flux cleaned = 0.0191895 Jy
! Component: 850  -  total flux cleaned = 0.0196446 Jy
! Component: 900  -  total flux cleaned = 0.0200377 Jy
! Component: 950  -  total flux cleaned = 0.0205359 Jy
! Component: 1000  -  total flux cleaned = 0.0209176 Jy
! Total flux subtracted in 1024 components = 0.0209717 Jy
! Clean residual min=-0.003232 max=0.003092 Jy/beam
! Clean residual mean=0.000225 rms=0.001264 Jy/beam
! Combined flux in latest and established models = 1.1614 Jy
keep
! Adding 84 model components to the UV plane model.
! The established model now contains 137 components and 1.1614 Jy
![Exited script file: muppet]
wmap "J0050-0929_X_1999_03_08_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7414 x 2.348 at -5.809 degrees (North through East)
! Clean map  min=-0.0039199  max=1.0675 Jy/beam
! Writing clean map to FITS file: J0050-0929_X_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.06745 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.0671% of the data.
!  The x-axis pixel size should ideally be below 0.1993 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00126336 
device "J0050-0929_X_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0050-0929_X_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.355058 0.355058 0.710116 1.42023 2.84046 5.68093 11.3619 22.7237 45.4474 90.8948
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0037 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.067 
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.7414 x 2.348 at -5.809 degrees (North through East)
! Clean map  min=-0.0039199  max=1.0675 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0050-0929_X_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0050-0929_X_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0050-0929_X_1999_03_08_pus_uvs.log closed on Thu Jan  3 14:30:19 2008