! Started logfile: J0050-0929_X_1999_12_20_pus_uvs.log on Tue Dec 18 11:05:42 2007
obs J0050-0929_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0050-0929_X_1999_12_20_pus_uva.fits
! AN table 1: 95 integrations on 190 of 190 possible baselines.
! AN table 2: 25 integrations on 190 of 190 possible baselines.
! AN table 3: 113 integrations on 190 of 190 possible baselines.
! AN table 4: 80 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0544476 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 2422 lines of history.
! 
! Reading 12952 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_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 1714 telescope corrections were flagged in sub-array 1.
!  A total of 488 telescope corrections were flagged in sub-array 2.
!  A total of 2007 telescope corrections were flagged in sub-array 3.
!  A total of 1187 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1717 telescope corrections were flagged in sub-array 1.
!  A total of 488 telescope corrections were flagged in sub-array 2.
!  A total of 2007 telescope corrections were flagged in sub-array 3.
!  A total of 1187 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1714 telescope corrections were flagged in sub-array 1.
!  A total of 488 telescope corrections were flagged in sub-array 2.
!  A total of 2007 telescope corrections were flagged in sub-array 3.
!  A total of 1187 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1714 telescope corrections were flagged in sub-array 1.
!  A total of 488 telescope corrections were flagged in sub-array 2.
!  A total of 2007 telescope corrections were flagged in sub-array 3.
!  A total of 1199 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.968951Jy  sigma=0.007996
! Fit after  self-cal, rms=0.487399Jy  sigma=0.003420
! 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.51% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.5513 mas, bmaj=1.327 mas, bpa=0.372 degrees
! Estimated noise=1304.28 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.512005 Jy
! Component: 100  -  total flux cleaned = 0.635616 Jy
! Total flux subtracted in 100 components = 0.635616 Jy
! Clean residual min=-0.045050 max=0.058215 Jy/beam
! Clean residual mean=0.001247 rms=0.013173 Jy/beam
! Combined flux in latest and established models = 0.635616 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.635616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350456Jy  sigma=0.002363
! Fit after  self-cal, rms=0.350290Jy  sigma=0.002363
! Inverting map 
! Your choice of large map pixels excluded 1.51% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.51% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6697 mas, bmaj=1.522 mas, bpa=-1.955 degrees
! Estimated noise=839.479 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.0695352 Jy
! Component: 100  -  total flux cleaned = 0.100078 Jy
! Component: 150  -  total flux cleaned = 0.115504 Jy
! Component: 200  -  total flux cleaned = 0.123393 Jy
! Total flux subtracted in 200 components = 0.123393 Jy
! Clean residual min=-0.037241 max=0.035702 Jy/beam
! Clean residual mean=-0.000595 rms=0.010040 Jy/beam
! Combined flux in latest and established models = 0.759009 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 0.759009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343416Jy  sigma=0.002164
! Fit after  self-cal, rms=0.343406Jy  sigma=0.002164
! Inverting map 
! Your choice of large map pixels excluded 1.51% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        4.75     GC        0.83     HH        1.00*    
!   HN        1.00*    KK        0.87     KP        0.97     LA        2.15     
!   MC        1.00*    MK        0.95     NY        1.00*    ON        1.00*    
!   OV        0.94     PT        1.14     SC        1.00*    TS        0.88     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.87     FD        0.93     GC        2.69     HH        1.00*    
!   HN        1.12     KK        1.02     KP        0.94     LA        0.93     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        0.92     PT        0.93     SC        0.82     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        1.00     NL        0.96     
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.84     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.14     MK        1.00*    NY        1.00*    ON        0.97     
!   OV        1.00*    PT        1.00*    SC        0.93     TS        1.00*    
!   WF        0.91     WZ        0.99     GN        1.00     NL        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        5.02     GC        0.84     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        0.94     LA        2.07     
!   MC        1.00*    MK        0.91     NY        1.00*    ON        1.00*    
!   OV        0.94     PT        1.14     SC        1.00*    TS        0.85     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.88     FD        0.91     GC        2.68     HH        1.00*    
!   HN        1.12     KK        0.99     KP        0.90     LA        0.93     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        0.91     PT        0.92     SC        0.78     TS        1.00*    
!   WF        1.00     WZ        1.00*    GN        0.97     NL        0.96     
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.86     
!   HN        0.99     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.07     MK        1.00*    NY        1.00*    ON        0.99     
!   OV        1.00*    PT        1.00*    SC        0.90     TS        1.00*    
!   WF        0.90     WZ        1.03     GN        0.98     NL        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        5.72     GC        0.86     HH        1.00*    
!   HN        1.00*    KK        0.90     KP        0.95     LA        2.28     
!   MC        1.00*    MK        0.93     NY        1.00*    ON        1.00*    
!   OV        0.93     PT        1.19     SC        1.00*    TS        0.87     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.84     FD        0.93     GC        2.63     HH        1.00*    
!   HN        1.15     KK        1.00     KP        0.92     LA        0.94     
!   MC        1.00*    MK        0.99     NY        1.00*    ON        1.00*    
!   OV        0.93     PT        0.93     SC        0.79     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        0.98     NL        0.96     
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.84     
!   HN        1.26     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.53     MK        1.00*    NY        1.00*    ON        1.49     
!   OV        1.00*    PT        1.00*    SC        1.91     TS        1.00*    
!   WF        1.13     WZ        1.36     GN        1.99     NL        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        5.63     GC        0.89     HH        1.00*    
!   HN        1.00*    KK        0.86     KP        0.94     LA        2.33     
!   MC        1.00*    MK        0.94     NY        1.00*    ON        1.00*    
!   OV        0.92     PT        1.17     SC        1.00*    TS        0.83     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.87     FD        0.92     GC        2.41     HH        1.00*    
!   HN        1.19     KK        1.00     KP        0.91     LA        0.95     
!   MC        1.00*    MK        0.96     NY        1.00*    ON        1.00*    
!   OV        0.92     PT        0.93     SC        0.78     TS        1.00*    
!   WF        0.96     WZ        1.00*    GN        1.01     NL        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.81     
!   HN        1.01     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.07     MK        1.00*    NY        1.00*    ON        1.03     
!   OV        1.00*    PT        1.00*    SC        0.89     TS        1.00*    
!   WF        1.68     WZ        1.04     GN        1.01     NL        1.00*    
! 
! 
! Fit before self-cal, rms=0.343406Jy  sigma=0.002164
! Fit after  self-cal, rms=0.605166Jy  sigma=0.001431
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6703 mas, bmaj=1.538 mas, bpa=-2.018 degrees
! Estimated noise=866.272 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.0088754 Jy
! Component: 100  -  total flux cleaned = 0.00883717 Jy
! Component: 150  -  total flux cleaned = 0.00880136 Jy
! Component: 200  -  total flux cleaned = 0.00861216 Jy
! Total flux subtracted in 200 components = 0.00861216 Jy
! Clean residual min=-0.010185 max=0.015611 Jy/beam
! Clean residual mean=0.002025 rms=0.004328 Jy/beam
! Combined flux in latest and established models = 0.767621 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 22 components and 0.767621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.604298Jy  sigma=0.001422
! Fit after  self-cal, rms=0.605902Jy  sigma=0.001419
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.605902Jy  sigma=0.001419
! Fit after  self-cal, rms=0.621031Jy  sigma=0.001414
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6665 mas, bmaj=1.536 mas, bpa=-2.305 degrees
! Estimated noise=868.114 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00696098 Jy
! Component: 100  -  total flux cleaned = 0.00672546 Jy
! Component: 150  -  total flux cleaned = 0.00674 Jy
! Component: 200  -  total flux cleaned = 0.00657114 Jy
! Total flux subtracted in 200 components = 0.00657114 Jy
! Clean residual min=-0.010103 max=0.014508 Jy/beam
! Clean residual mean=0.001967 rms=0.004059 Jy/beam
! Combined flux in latest and established models = 0.774192 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 24 components and 0.774192 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.620474Jy  sigma=0.001410
! Fit after  self-cal, rms=0.620704Jy  sigma=0.001410
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.000318694 Jy
! Component: 100  -  total flux cleaned = -0.000452889 Jy
! Component: 150  -  total flux cleaned = -0.000708685 Jy
! Component: 200  -  total flux cleaned = -0.000937553 Jy
! Total flux subtracted in 200 components = -0.000937553 Jy
! Clean residual min=-0.009763 max=0.014540 Jy/beam
! Clean residual mean=0.001991 rms=0.004026 Jy/beam
! Combined flux in latest and established models = 0.773255 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 26 components and 0.773255 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.620665Jy  sigma=0.001408
! Fit after  self-cal, rms=0.620683Jy  sigma=0.001408
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.620683Jy  sigma=0.001408
! Fit after  self-cal, rms=0.624647Jy  sigma=0.001405
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6635 mas, bmaj=1.537 mas, bpa=-2.519 degrees
! Estimated noise=870.553 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00554951 Jy
! Component: 100  -  total flux cleaned = 0.0053686 Jy
! Component: 150  -  total flux cleaned = 0.00522491 Jy
! Component: 200  -  total flux cleaned = 0.00509189 Jy
! Total flux subtracted in 200 components = 0.00509189 Jy
! Clean residual min=-0.009775 max=0.014172 Jy/beam
! Clean residual mean=0.001976 rms=0.003879 Jy/beam
! Combined flux in latest and established models = 0.778347 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 27 components and 0.778346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.624266Jy  sigma=0.001403
! Fit after  self-cal, rms=0.624293Jy  sigma=0.001403
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.0002676 Jy
! Component: 100  -  total flux cleaned = -0.000499337 Jy
! Component: 150  -  total flux cleaned = -0.000710151 Jy
! Component: 200  -  total flux cleaned = -0.000809666 Jy
! Total flux subtracted in 200 components = -0.000809666 Jy
! Clean residual min=-0.009526 max=0.014180 Jy/beam
! Clean residual mean=0.001994 rms=0.003857 Jy/beam
! Combined flux in latest and established models = 0.777537 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 27 components and 0.777537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.624264Jy  sigma=0.001402
! Fit after  self-cal, rms=0.624277Jy  sigma=0.001402
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.624277Jy  sigma=0.001402
! Fit after  self-cal, rms=0.625735Jy  sigma=0.001401
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=2.145 mas, bmaj=3.269 mas, bpa=1.525 degrees
! Estimated noise=1171.75 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00992671 Jy
! Component: 100  -  total flux cleaned = 0.0120754 Jy
! Component: 150  -  total flux cleaned = 0.0122752 Jy
! Component: 200  -  total flux cleaned = 0.0122692 Jy
! Total flux subtracted in 200 components = 0.0122692 Jy
! Clean residual min=-0.011335 max=0.024225 Jy/beam
! Clean residual mean=0.004815 rms=0.007514 Jy/beam
! Combined flux in latest and established models = 0.789806 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 30 components and 0.789806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.625178Jy  sigma=0.001403
! Fit after  self-cal, rms=0.625162Jy  sigma=0.001403
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.000108192 Jy
! Component: 100  -  total flux cleaned = 0.000115345 Jy
! Component: 150  -  total flux cleaned = 0.000107898 Jy
! Component: 200  -  total flux cleaned = 9.77698e-05 Jy
! Total flux subtracted in 200 components = 9.77699e-05 Jy
! Clean residual min=-0.011170 max=0.024122 Jy/beam
! Clean residual mean=0.004830 rms=0.007508 Jy/beam
! Combined flux in latest and established models = 0.789904 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 30 components and 0.789904 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.625197Jy  sigma=0.001404
! Fit after  self-cal, rms=0.625201Jy  sigma=0.001404
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6613 mas, bmaj=1.536 mas, bpa=-2.627 degrees
! Estimated noise=872.978 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6613 x 1.536 at -2.627 degrees (North through East)
! Clean map  min=-0.0086576  max=0.66185 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.625201Jy  sigma=0.001404
! Fit after  self-cal, rms=8.227095Jy  sigma=0.001285
! Inverting map and beam 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6576 mas, bmaj=1.539 mas, bpa=-2.742 degrees
! Estimated noise=874.919 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00232384 Jy
! Component: 100  -  total flux cleaned = 0.00201022 Jy
! Component: 150  -  total flux cleaned = 0.00181716 Jy
! Component: 200  -  total flux cleaned = 0.00163421 Jy
! Total flux subtracted in 200 components = 0.00163421 Jy
! Clean residual min=-0.008013 max=0.013341 Jy/beam
! Clean residual mean=0.001780 rms=0.003399 Jy/beam
! Combined flux in latest and established models = 0.791538 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 32 components and 0.791538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=8.227032Jy  sigma=0.001284
! Fit after  self-cal, rms=8.227037Jy  sigma=0.001284
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000176299 Jy
! Component: 100  -  total flux cleaned = -0.000414725 Jy
! Component: 150  -  total flux cleaned = -0.000558967 Jy
! Component: 200  -  total flux cleaned = -0.000697676 Jy
! Total flux subtracted in 200 components = -0.000697676 Jy
! Clean residual min=-0.007921 max=0.013316 Jy/beam
! Clean residual mean=0.001795 rms=0.003392 Jy/beam
! Combined flux in latest and established models = 0.79084 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 33 components and 0.79084 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=8.227022Jy  sigma=0.001284
! Fit after  self-cal, rms=8.226976Jy  sigma=0.001284
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=8.226976Jy  sigma=0.001284
! Fit after  self-cal, rms=9.189943Jy  sigma=0.001283
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.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.5343 mas, bmaj=1.453 mas, bpa=-0.3556 degrees
! Estimated noise=1232.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.517673 Jy
! Component: 100  -  total flux cleaned = 0.636278 Jy
! Component: 150  -  total flux cleaned = 0.687629 Jy
! Component: 200  -  total flux cleaned = 0.719741 Jy
! Total flux subtracted in 200 components = 0.719741 Jy
! Clean residual min=-0.010658 max=0.016926 Jy/beam
! Clean residual mean=0.000764 rms=0.003518 Jy/beam
! Combined flux in latest and established models = 0.719741 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 0.719741 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6572 mas, bmaj=1.536 mas, bpa=-2.666 degrees
! Estimated noise=878.682 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.0332027 Jy
! Component: 100  -  total flux cleaned = 0.0510157 Jy
! Component: 150  -  total flux cleaned = 0.0608547 Jy
! Component: 200  -  total flux cleaned = 0.0663756 Jy
! Total flux subtracted in 200 components = 0.0663756 Jy
! Clean residual min=-0.007576 max=0.013741 Jy/beam
! Clean residual mean=0.001954 rms=0.003429 Jy/beam
! Combined flux in latest and established models = 0.786116 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 26 components and 0.786116 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 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.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=2.145 mas, bmaj=3.273 mas, bpa=1.192 degrees
! Estimated noise=1187.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00871362 Jy
! Component: 100  -  total flux cleaned = 0.0109723 Jy
! Component: 150  -  total flux cleaned = 0.0111482 Jy
! Component: 200  -  total flux cleaned = 0.0113135 Jy
! Total flux subtracted in 200 components = 0.0113135 Jy
! Clean residual min=-0.010542 max=0.021268 Jy/beam
! Clean residual mean=0.004563 rms=0.006954 Jy/beam
! Combined flux in latest and established models = 0.79743 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000154338 Jy
! Component: 100  -  total flux cleaned = 0.000300158 Jy
! Component: 150  -  total flux cleaned = 0.000433659 Jy
! Component: 200  -  total flux cleaned = 0.000497742 Jy
! Total flux subtracted in 200 components = 0.000497742 Jy
! Clean residual min=-0.010612 max=0.021218 Jy/beam
! Clean residual mean=0.004533 rms=0.006939 Jy/beam
! Combined flux in latest and established models = 0.797928 Jy
! Adding 4 model components to the UV plane model.
! The established model now contains 27 components and 0.797928 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! Estimated beam: bmin=0.6572 mas, bmaj=1.536 mas, bpa=-2.666 degrees
! Estimated noise=878.682 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00505177 Jy
! Component: 100  -  total flux cleaned = -0.00547383 Jy
! Component: 150  -  total flux cleaned = -0.00562149 Jy
! Component: 200  -  total flux cleaned = -0.00572705 Jy
! Total flux subtracted in 200 components = -0.00572705 Jy
! Clean residual min=-0.007741 max=0.013139 Jy/beam
! Clean residual mean=0.001814 rms=0.003374 Jy/beam
! Combined flux in latest and established models = 0.792201 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 31 components and 0.792201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=9.189749Jy  sigma=0.001283
! Fit after  self-cal, rms=9.190095Jy  sigma=0.001283
wmodel J0050-0929_X_1999_12_20_pus_map.mod
! Writing 31 model components to file: J0050-0929_X_1999_12_20_pus_map.mod
wobs J0050-0929_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0050-0929_X_1999_12_20_pus_uvs.fits
wwins J0050-0929_X_1999_12_20_pus_map.win
! wwins: Wrote 1 windows to J0050-0929_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.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00566068 Jy
! Component: 100  -  total flux cleaned = 0.010647 Jy
! Component: 150  -  total flux cleaned = 0.0152985 Jy
! Component: 200  -  total flux cleaned = 0.0196971 Jy
! Component: 250  -  total flux cleaned = 0.0239001 Jy
! Component: 300  -  total flux cleaned = 0.0279474 Jy
! Component: 350  -  total flux cleaned = 0.0318528 Jy
! Component: 400  -  total flux cleaned = 0.0351795 Jy
! Component: 450  -  total flux cleaned = 0.0382588 Jy
! Component: 500  -  total flux cleaned = 0.0413892 Jy
! Component: 550  -  total flux cleaned = 0.0441556 Jy
! Component: 600  -  total flux cleaned = 0.0467149 Jy
! Component: 650  -  total flux cleaned = 0.0490798 Jy
! Component: 700  -  total flux cleaned = 0.0513915 Jy
! Component: 750  -  total flux cleaned = 0.0537778 Jy
! Component: 800  -  total flux cleaned = 0.055991 Jy
! Component: 850  -  total flux cleaned = 0.0582802 Jy
! Component: 900  -  total flux cleaned = 0.0605255 Jy
! Component: 950  -  total flux cleaned = 0.0622682 Jy
! Component: 1000  -  total flux cleaned = 0.0643246 Jy
! Total flux subtracted in 1024 components = 0.0653392 Jy
! Clean residual min=-0.005613 max=0.007460 Jy/beam
! Clean residual mean=0.000698 rms=0.002560 Jy/beam
! Combined flux in latest and established models = 0.85754 Jy
keep
! Adding 82 model components to the UV plane model.
! The established model now contains 113 components and 0.85754 Jy
![Exited script file: muppet]
wmap "J0050-0929_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6572 x 1.536 at -2.666 degrees (North through East)
! Clean map  min=-0.0074218  max=0.67235 Jy/beam
! Writing clean map to FITS file: J0050-0929_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 0.672354 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.52% of the data.
!  The x-axis pixel size should ideally be below 0.1903 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0025589 
device "J0050-0929_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0050-0929_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.14177 1.14177 2.28353 4.56706 9.13413 18.2683 36.5365 73.073
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0076 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.672 
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.6572 x 1.536 at -2.666 degrees (North through East)
! Clean map  min=-0.0074218  max=0.67235 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0050-0929_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0050-0929_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0050-0929_X_1999_12_20_pus_uvs.log closed on Tue Dec 18 11:05:50 2007