! Started logfile: J0442-0017_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:33:48 2007
obs J0442-0017_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0442-0017_X_2001_04_09_pus_uva.fits
! AN table 1: 10 integrations on 190 of 190 possible baselines.
! AN table 2: 131 integrations on 190 of 190 possible baselines.
! AN table 3: 14 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0998981 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0442-0017
! 
! 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 1926 lines of history.
! 
! Reading 11768 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 J0442-0017_X_2001_04_09_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 200 telescope corrections were flagged in sub-array 1.
!  A total of 1907 telescope corrections were flagged in sub-array 2.
!  A total of 235 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 1907 telescope corrections were flagged in sub-array 2.
!  A total of 235 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 1907 telescope corrections were flagged in sub-array 2.
!  A total of 235 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 1907 telescope corrections were flagged in sub-array 2.
!  A total of 235 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.716045Jy  sigma=0.006325
! Fit after  self-cal, rms=0.468870Jy  sigma=0.003989
! 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 6.02% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.5683 mas, bmaj=1.719 mas, bpa=-2.783 degrees
! Estimated noise=1152.53 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.621285 Jy
! Component: 100  -  total flux cleaned = 0.825166 Jy
! Total flux subtracted in 100 components = 0.825166 Jy
! Clean residual min=-0.054730 max=0.212973 Jy/beam
! Clean residual mean=0.000520 rms=0.021234 Jy/beam
! Combined flux in latest and established models = 0.825166 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.825166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428174Jy  sigma=0.003900
! Fit after  self-cal, rms=0.428184Jy  sigma=0.003900
! Inverting map 
! Your choice of large map pixels excluded 6.02% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (0.8, 0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.188256 Jy
! Component: 100  -  total flux cleaned = 0.282932 Jy
! Total flux subtracted in 100 components = 0.282932 Jy
! Clean residual min=-0.042232 max=0.187901 Jy/beam
! Clean residual mean=0.000109 rms=0.014379 Jy/beam
! Combined flux in latest and established models = 1.1081 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 20 components and 1.1081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311200Jy  sigma=0.002676
! Fit after  self-cal, rms=0.292080Jy  sigma=0.002480
! Inverting map 
! Your choice of large map pixels excluded 6.02% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Added new window around map position (-1, -0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.131505 Jy
! Component: 100  -  total flux cleaned = 0.201971 Jy
! Total flux subtracted in 100 components = 0.201971 Jy
! Clean residual min=-0.032856 max=0.036153 Jy/beam
! Clean residual mean=-0.000168 rms=0.006528 Jy/beam
! Combined flux in latest and established models = 1.31007 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 26 components and 1.31007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218894Jy  sigma=0.001738
! Fit after  self-cal, rms=0.218200Jy  sigma=0.001733
! Inverting map 
! Your choice of large map pixels excluded 6.02% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0451784 Jy
! Component: 100  -  total flux cleaned = 0.0695231 Jy
! Total flux subtracted in 100 components = 0.0695231 Jy
! Clean residual min=-0.031436 max=0.020109 Jy/beam
! Clean residual mean=-0.000261 rms=0.005398 Jy/beam
! Combined flux in latest and established models = 1.37959 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 31 components and 1.37959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204697Jy  sigma=0.001601
! Fit after  self-cal, rms=0.204551Jy  sigma=0.001600
! Inverting map 
! Your choice of large map pixels excluded 6.02% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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 6.02% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.7178 mas, bmaj=2.24 mas, bpa=-2.905 degrees
! Estimated noise=751.026 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.0193777 Jy
! Component: 100  -  total flux cleaned = 0.0269169 Jy
! Component: 150  -  total flux cleaned = 0.0330851 Jy
! Component: 200  -  total flux cleaned = 0.0362182 Jy
! Total flux subtracted in 200 components = 0.0362182 Jy
! Clean residual min=-0.034630 max=0.018013 Jy/beam
! Clean residual mean=-0.001176 rms=0.006825 Jy/beam
! Combined flux in latest and established models = 1.41581 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 48 components and 1.41581 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196382Jy  sigma=0.001525
! Fit after  self-cal, rms=0.196133Jy  sigma=0.001523
! Inverting map 
! Your choice of large map pixels excluded 6.02% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.01     GC        0.87     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.92     KP        0.92     
!   LA        1.03     MA        1.03     MC        1.10     MK        0.93     
!   NL        0.95     NY        1.00*    OV        1.02     PT        1.02     
!   SC        1.01     TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.89     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.30     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.02     GC        0.91     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.92     KP        0.92     
!   LA        1.02     MA        1.02     MC        1.06     MK        0.98     
!   NL        0.92     NY        1.00*    OV        1.04     PT        1.02     
!   SC        1.03     TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.90     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.18     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.05     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.97     KP        0.85     
!   LA        1.05     MA        1.07     MC        1.13     MK        0.97     
!   NL        0.93     NY        1.00*    OV        1.01     PT        0.99     
!   SC        1.05     TS        1.00*    WF        1.06     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.07     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.05     GC        1.11     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.99     KP        1.06     
!   LA        1.04     MA        1.06     MC        1.12     MK        0.98     
!   NL        0.95     NY        1.00*    OV        1.00     PT        1.04     
!   SC        1.04     TS        1.00*    WF        1.07     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.19     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.05     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.92     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.196133Jy  sigma=0.001523
! Fit after  self-cal, rms=0.181778Jy  sigma=0.001381
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.7298 mas, bmaj=2.274 mas, bpa=-3.13 degrees
! Estimated noise=753.345 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.0089274 Jy
! Component: 100  -  total flux cleaned = 0.0101785 Jy
! Component: 150  -  total flux cleaned = 0.010696 Jy
! Component: 200  -  total flux cleaned = 0.011154 Jy
! Total flux subtracted in 200 components = 0.011154 Jy
! Clean residual min=-0.024341 max=0.012769 Jy/beam
! Clean residual mean=-0.000043 rms=0.004254 Jy/beam
! Combined flux in latest and established models = 1.42696 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 54 components and 1.42696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180558Jy  sigma=0.001374
! Fit after  self-cal, rms=0.180526Jy  sigma=0.001374
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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.180526Jy  sigma=0.001374
! Fit after  self-cal, rms=0.173112Jy  sigma=0.001311
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.7318 mas, bmaj=2.283 mas, bpa=-3.265 degrees
! Estimated noise=750.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0049992 Jy
! Component: 100  -  total flux cleaned = 0.00500279 Jy
! Component: 150  -  total flux cleaned = 0.00525436 Jy
! Component: 200  -  total flux cleaned = 0.00546573 Jy
! Total flux subtracted in 200 components = 0.00546573 Jy
! Clean residual min=-0.019895 max=0.008726 Jy/beam
! Clean residual mean=0.000126 rms=0.002767 Jy/beam
! Combined flux in latest and established models = 1.43243 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 59 components and 1.43243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172167Jy  sigma=0.001304
! Fit after  self-cal, rms=0.172114Jy  sigma=0.001304
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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.000534384 Jy
! Component: 100  -  total flux cleaned = 0.000171178 Jy
! Component: 150  -  total flux cleaned = -9.26838e-06 Jy
! Component: 200  -  total flux cleaned = -0.000171585 Jy
! Total flux subtracted in 200 components = -0.000171585 Jy
! Clean residual min=-0.019510 max=0.008508 Jy/beam
! Clean residual mean=0.000129 rms=0.002702 Jy/beam
! Combined flux in latest and established models = 1.43226 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 61 components and 1.43226 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171682Jy  sigma=0.001301
! Fit after  self-cal, rms=0.171660Jy  sigma=0.001301
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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.171660Jy  sigma=0.001301
! Fit after  self-cal, rms=0.171548Jy  sigma=0.001300
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.7322 mas, bmaj=2.286 mas, bpa=-3.281 degrees
! Estimated noise=749.836 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00186597 Jy
! Component: 100  -  total flux cleaned = 0.00150906 Jy
! Component: 150  -  total flux cleaned = 0.00119767 Jy
! Component: 200  -  total flux cleaned = 0.00104996 Jy
! Total flux subtracted in 200 components = 0.00104996 Jy
! Clean residual min=-0.018768 max=0.008605 Jy/beam
! Clean residual mean=0.000085 rms=0.002586 Jy/beam
! Combined flux in latest and established models = 1.43331 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 62 components and 1.43331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171156Jy  sigma=0.001297
! Fit after  self-cal, rms=0.171129Jy  sigma=0.001297
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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.000775906 Jy
! Component: 100  -  total flux cleaned = 0.000477251 Jy
! Component: 150  -  total flux cleaned = 0.000213462 Jy
! Component: 200  -  total flux cleaned = 8.40594e-05 Jy
! Total flux subtracted in 200 components = 8.40594e-05 Jy
! Clean residual min=-0.018430 max=0.008395 Jy/beam
! Clean residual mean=0.000086 rms=0.002546 Jy/beam
! Combined flux in latest and established models = 1.43339 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 63 components and 1.43339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170852Jy  sigma=0.001295
! Fit after  self-cal, rms=0.170835Jy  sigma=0.001295
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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.170835Jy  sigma=0.001295
! Fit after  self-cal, rms=0.170975Jy  sigma=0.001295
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=2.118 mas, bmaj=3.774 mas, bpa=-10.95 degrees
! Estimated noise=923.864 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0058124 Jy
! Component: 100  -  total flux cleaned = -0.00631423 Jy
! Component: 150  -  total flux cleaned = -0.00650862 Jy
! Component: 200  -  total flux cleaned = -0.00658735 Jy
! Total flux subtracted in 200 components = -0.00658735 Jy
! Clean residual min=-0.006061 max=0.005805 Jy/beam
! Clean residual mean=0.000354 rms=0.001865 Jy/beam
! Combined flux in latest and established models = 1.4268 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 71 components and 1.4268 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171143Jy  sigma=0.001295
! Fit after  self-cal, rms=0.171139Jy  sigma=0.001295
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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.000121822 Jy
! Component: 100  -  total flux cleaned = -0.000125309 Jy
! Component: 150  -  total flux cleaned = -0.000127147 Jy
! Component: 200  -  total flux cleaned = -7.3539e-05 Jy
! Total flux subtracted in 200 components = -7.3539e-05 Jy
! Clean residual min=-0.005948 max=0.005831 Jy/beam
! Clean residual mean=0.000357 rms=0.001856 Jy/beam
! Combined flux in latest and established models = 1.42673 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 75 components and 1.42673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171250Jy  sigma=0.001295
! Fit after  self-cal, rms=0.171248Jy  sigma=0.001295
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.7326 mas, bmaj=2.286 mas, bpa=-3.283 degrees
! Estimated noise=749.907 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7326 x 2.286 at -3.283 degrees (North through East)
! Clean map  min=-0.02015  max=0.79551 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.171248Jy  sigma=0.001295
! Fit after  self-cal, rms=0.180586Jy  sigma=0.001177
! Inverting map and beam 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.7331 mas, bmaj=2.287 mas, bpa=-3.309 degrees
! Estimated noise=750.358 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00244257 Jy
! Component: 100  -  total flux cleaned = 0.00210201 Jy
! Component: 150  -  total flux cleaned = 0.00195309 Jy
! Component: 200  -  total flux cleaned = 0.00196064 Jy
! Total flux subtracted in 200 components = 0.00196064 Jy
! Clean residual min=-0.017413 max=0.007933 Jy/beam
! Clean residual mean=0.000096 rms=0.002284 Jy/beam
! Combined flux in latest and established models = 1.42869 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 80 components and 1.42869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180238Jy  sigma=0.001175
! Fit after  self-cal, rms=0.180219Jy  sigma=0.001175
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000656396 Jy
! Component: 100  -  total flux cleaned = 0.000529831 Jy
! Component: 150  -  total flux cleaned = 0.000303615 Jy
! Component: 200  -  total flux cleaned = 0.000303763 Jy
! Total flux subtracted in 200 components = 0.000303763 Jy
! Clean residual min=-0.017378 max=0.007388 Jy/beam
! Clean residual mean=0.000092 rms=0.002267 Jy/beam
! Combined flux in latest and established models = 1.429 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 82 components and 1.429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179997Jy  sigma=0.001173
! Fit after  self-cal, rms=0.179984Jy  sigma=0.001173
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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.179984Jy  sigma=0.001173
! Fit after  self-cal, rms=0.179847Jy  sigma=0.001173
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 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.5752 mas, bmaj=1.72 mas, bpa=-3.132 degrees
! Estimated noise=1176.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.649966 Jy
! Component: 100  -  total flux cleaned = 0.915347 Jy
! Component: 150  -  total flux cleaned = 1.07926 Jy
! Component: 200  -  total flux cleaned = 1.1911 Jy
! Total flux subtracted in 200 components = 1.1911 Jy
! Clean residual min=-0.023459 max=0.061289 Jy/beam
! Clean residual mean=0.000242 rms=0.008866 Jy/beam
! Combined flux in latest and established models = 1.1911 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 1.1911 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.7332 mas, bmaj=2.288 mas, bpa=-3.303 degrees
! Estimated noise=749.865 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.111415 Jy
! Component: 100  -  total flux cleaned = 0.173164 Jy
! Component: 150  -  total flux cleaned = 0.209239 Jy
! Component: 200  -  total flux cleaned = 0.223254 Jy
! Total flux subtracted in 200 components = 0.223254 Jy
! Clean residual min=-0.022666 max=0.014386 Jy/beam
! Clean residual mean=0.000130 rms=0.003491 Jy/beam
! Combined flux in latest and established models = 1.41435 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 35 components and 1.41435 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 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 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=2.119 mas, bmaj=3.773 mas, bpa=-10.99 degrees
! Estimated noise=923.279 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00989374 Jy
! Component: 100  -  total flux cleaned = 0.00998303 Jy
! Component: 150  -  total flux cleaned = 0.0099598 Jy
! Component: 200  -  total flux cleaned = 0.0097532 Jy
! Total flux subtracted in 200 components = 0.0097532 Jy
! Clean residual min=-0.005800 max=0.004108 Jy/beam
! Clean residual mean=0.000252 rms=0.001364 Jy/beam
! Combined flux in latest and established models = 1.4241 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.000159149 Jy
! Component: 100  -  total flux cleaned = 0.000158665 Jy
! Component: 150  -  total flux cleaned = 0.000164941 Jy
! Component: 200  -  total flux cleaned = 0.000270766 Jy
! Total flux subtracted in 200 components = 0.000270766 Jy
! Clean residual min=-0.004406 max=0.003696 Jy/beam
! Clean residual mean=0.000259 rms=0.001235 Jy/beam
! Combined flux in latest and established models = 1.42437 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 56 components and 1.42437 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! Estimated beam: bmin=0.7332 mas, bmaj=2.288 mas, bpa=-3.303 degrees
! Estimated noise=749.865 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0055304 Jy
! Component: 100  -  total flux cleaned = 0.00591256 Jy
! Component: 150  -  total flux cleaned = 0.00592682 Jy
! Component: 200  -  total flux cleaned = 0.00540359 Jy
! Total flux subtracted in 200 components = 0.00540359 Jy
! Clean residual min=-0.018519 max=0.009616 Jy/beam
! Clean residual mean=0.000045 rms=0.002497 Jy/beam
! Combined flux in latest and established models = 1.42978 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 61 components and 1.42978 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182077Jy  sigma=0.001192
! Fit after  self-cal, rms=0.181893Jy  sigma=0.001190
wmodel J0442-0017_X_2001_04_09_pus_map.mod
! Writing 61 model components to file: J0442-0017_X_2001_04_09_pus_map.mod
wobs J0442-0017_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0442-0017_X_2001_04_09_pus_uvs.fits
wwins J0442-0017_X_2001_04_09_pus_map.win
! wwins: Wrote 3 windows to J0442-0017_X_2001_04_09_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 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00758755 Jy
! Component: 100  -  total flux cleaned = -0.0114995 Jy
! Component: 150  -  total flux cleaned = -0.0129229 Jy
! Component: 200  -  total flux cleaned = -0.0138216 Jy
! Component: 250  -  total flux cleaned = -0.0133488 Jy
! Component: 300  -  total flux cleaned = -0.0127507 Jy
! Component: 350  -  total flux cleaned = -0.0120506 Jy
! Component: 400  -  total flux cleaned = -0.0113901 Jy
! Component: 450  -  total flux cleaned = -0.0105107 Jy
! Component: 500  -  total flux cleaned = -0.00967243 Jy
! Component: 550  -  total flux cleaned = -0.00909841 Jy
! Component: 600  -  total flux cleaned = -0.00887683 Jy
! Component: 650  -  total flux cleaned = -0.0086612 Jy
! Component: 700  -  total flux cleaned = -0.00845332 Jy
! Component: 750  -  total flux cleaned = -0.00825198 Jy
! Component: 800  -  total flux cleaned = -0.00805893 Jy
! Component: 850  -  total flux cleaned = -0.00787049 Jy
! Component: 900  -  total flux cleaned = -0.00759461 Jy
! Component: 950  -  total flux cleaned = -0.00750294 Jy
! Component: 1000  -  total flux cleaned = -0.00723896 Jy
! Total flux subtracted in 1024 components = -0.00715339 Jy
! Clean residual min=-0.004556 max=0.004288 Jy/beam
! Clean residual mean=0.000134 rms=0.001460 Jy/beam
! Combined flux in latest and established models = 1.42262 Jy
keep
! Adding 27 model components to the UV plane model.
! The established model now contains 84 components and 1.42262 Jy
![Exited script file: muppet]
wmap "J0442-0017_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7332 x 2.288 at -3.303 degrees (North through East)
! Clean map  min=-0.024326  max=0.79302 Jy/beam
! Writing clean map to FITS file: J0442-0017_X_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.793019 
invert
! Inverting map 
! Your choice of large map pixels excluded 6.13% of the data.
!  The x-axis pixel size should ideally be below 0.1842 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00145996 
device "J0442-0017_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0442-0017_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.552303 0.552303 1.10461 2.20921 4.41842 8.83685 17.6737 35.3474 70.6948
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0043 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.793 
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.7332 x 2.288 at -3.303 degrees (North through East)
! Clean map  min=-0.024326  max=0.79302 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0442-0017_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0442-0017_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0442-0017_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:33:53 2007