! Started logfile: J0241-0815_S_1999_12_20_pus_uvs.log on Thu Dec 20 14:51:33 2007
obs J0241-0815_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0241-0815_S_1999_12_20_pus_uva.fits
! AN table 1: 60 integrations on 190 of 190 possible baselines.
! AN table 2: 33 integrations on 190 of 190 possible baselines.
! AN table 3: 186 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.112752 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0241-0815
! 
! 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2298 lines of history.
! 
! Reading 23908 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0241-0815_S_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 = 512x512 pixels with 0.500x0.500 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 802 telescope corrections were flagged in sub-array 1.
!  A total of 525 telescope corrections were flagged in sub-array 2.
!  A total of 2639 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 802 telescope corrections were flagged in sub-array 1.
!  A total of 525 telescope corrections were flagged in sub-array 2.
!  A total of 2639 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 802 telescope corrections were flagged in sub-array 1.
!  A total of 525 telescope corrections were flagged in sub-array 2.
!  A total of 2639 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 802 telescope corrections were flagged in sub-array 1.
!  A total of 525 telescope corrections were flagged in sub-array 2.
!  A total of 2639 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.846874Jy  sigma=0.006708
! Fit after  self-cal, rms=0.546056Jy  sigma=0.004313
! 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 
! Estimated beam: bmin=2.003 mas, bmaj=4.997 mas, bpa=8.149 degrees
! Estimated noise=984.79 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.438342 Jy
! Component: 100  -  total flux cleaned = 0.647751 Jy
! Total flux subtracted in 100 components = 0.647751 Jy
! Clean residual min=-0.032517 max=0.127006 Jy/beam
! Clean residual mean=0.000249 rms=0.012860 Jy/beam
! Combined flux in latest and established models = 0.647751 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.647751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434081Jy  sigma=0.003757
! Fit after  self-cal, rms=0.432912Jy  sigma=0.003749
! Inverting map 
! Added new window around map position (2.5, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.134447 Jy
! Component: 100  -  total flux cleaned = 0.22244 Jy
! Total flux subtracted in 100 components = 0.22244 Jy
! Clean residual min=-0.023431 max=0.090008 Jy/beam
! Clean residual mean=0.000204 rms=0.008811 Jy/beam
! Combined flux in latest and established models = 0.87019 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 24 components and 0.87019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328419Jy  sigma=0.002774
! Fit after  self-cal, rms=0.326697Jy  sigma=0.002763
! Inverting map 
! Added new window around map position (7, 4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0871976 Jy
! Component: 100  -  total flux cleaned = 0.14776 Jy
! Total flux subtracted in 100 components = 0.14776 Jy
! Clean residual min=-0.016146 max=0.072474 Jy/beam
! Clean residual mean=0.000157 rms=0.006339 Jy/beam
! Combined flux in latest and established models = 1.01795 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 41 components and 1.01795 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267389Jy  sigma=0.002211
! Fit after  self-cal, rms=0.264547Jy  sigma=0.002187
! Inverting map 
! Added new window around map position (-3, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0640807 Jy
! Component: 100  -  total flux cleaned = 0.109628 Jy
! Total flux subtracted in 100 components = 0.109628 Jy
! Clean residual min=-0.013107 max=0.026542 Jy/beam
! Clean residual mean=0.000129 rms=0.004392 Jy/beam
! Combined flux in latest and established models = 1.12758 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 58 components and 1.12758 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227697Jy  sigma=0.001829
! Fit after  self-cal, rms=0.227374Jy  sigma=0.001827
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0373958 Jy
! Component: 100  -  total flux cleaned = 0.0661236 Jy
! Total flux subtracted in 100 components = 0.0661236 Jy
! Clean residual min=-0.011458 max=0.020659 Jy/beam
! Clean residual mean=0.000109 rms=0.003533 Jy/beam
! Combined flux in latest and established models = 1.1937 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 73 components and 1.1937 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210544Jy  sigma=0.001658
! Fit after  self-cal, rms=0.210357Jy  sigma=0.001656
! Inverting map 
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 
! Estimated beam: bmin=3.053 mas, bmaj=7.131 mas, bpa=3.465 degrees
! Estimated noise=570.756 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.0608945 Jy
! Component: 100  -  total flux cleaned = 0.0983804 Jy
! Component: 150  -  total flux cleaned = 0.122813 Jy
! Component: 200  -  total flux cleaned = 0.13905 Jy
! Total flux subtracted in 200 components = 0.13905 Jy
! Clean residual min=-0.009787 max=0.036769 Jy/beam
! Clean residual mean=0.000299 rms=0.004697 Jy/beam
! Combined flux in latest and established models = 1.33275 Jy
! Performing phase self-cal
! Adding 77 model components to the UV plane model.
! The established model now contains 134 components and 1.33275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192494Jy  sigma=0.001464
! Fit after  self-cal, rms=0.192089Jy  sigma=0.001460
! Inverting map 
! Added new window around map position (-18, -7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0297778 Jy
! Component: 100  -  total flux cleaned = 0.0447748 Jy
! Component: 150  -  total flux cleaned = 0.0554595 Jy
! Component: 200  -  total flux cleaned = 0.0633742 Jy
! Total flux subtracted in 200 components = 0.0633742 Jy
! Clean residual min=-0.007321 max=0.011363 Jy/beam
! Clean residual mean=0.000087 rms=0.002862 Jy/beam
! Combined flux in latest and established models = 1.39613 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 167 components and 1.39613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187625Jy  sigma=0.001413
! Fit after  self-cal, rms=0.187144Jy  sigma=0.001409
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.94     GC        1.00*    HH        0.92     
!   HN        1.00*    KK        1.00*    KP        1.07     LA        1.03     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.01     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.03     GC        1.02     HH        1.00*    
!   HN        1.00*    KK        1.05     KP        1.09     LA        1.00     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.04     SC        1.00*    TS        1.04     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.19     
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        1.02     HH        1.00*    
!   HN        1.02     KK        0.95     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.04     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.01     SC        1.02     TS        1.00*    
!   WF        1.05     WZ        1.00*    GN        0.97     NL        1.02     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00     GC        1.00*    HH        0.97     
!   HN        1.00*    KK        1.00*    KP        1.02     LA        1.01     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.98     PT        1.01     SC        0.98     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.06     GC        0.99     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        1.05     LA        0.99     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00     SC        1.00*    TS        1.04     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.20     
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.11     KK        0.90     KP        1.01     LA        0.97     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        0.99     SC        0.99     TS        1.00*    
!   WF        1.05     WZ        1.00*    GN        0.99     NL        1.02     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.95     GC        1.00*    HH        1.01     
!   HN        1.00*    KK        1.00*    KP        1.01     LA        1.04     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        0.97     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.03     GC        1.01     HH        1.00*    
!   HN        1.00*    KK        1.00     KP        1.00     LA        1.01     
!   MC        1.00*    MK        0.93     NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        0.97     SC        1.00*    TS        1.18     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.19     
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GC        0.98     HH        1.00*    
!   HN        1.01     KK        0.95     KP        1.02     LA        0.99     
!   MC        1.00*    MK        0.99     NY        1.00*    ON        1.00*    
!   OV        1.01     PT        0.96     SC        1.01     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        0.96     NL        0.97     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        0.88     
!   HN        1.00*    KK        1.00*    KP        1.01     LA        1.03     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.02     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        0.96     HH        1.00*    
!   HN        1.00*    KK        0.90     KP        1.03     LA        1.00     
!   MC        1.00*    MK        1.05     NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        0.85     SC        1.00*    TS        1.12     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.14     
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        0.95     HH        1.00*    
!   HN        1.07     KK        0.93     KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.03     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.03     SC        1.03     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        0.96     NL        0.97     
! 
! 
! Fit before self-cal, rms=0.187144Jy  sigma=0.001409
! Fit after  self-cal, rms=0.181917Jy  sigma=0.001370
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.073 mas, bmaj=7.116 mas, bpa=4.124 degrees
! Estimated noise=573.058 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.00796795 Jy
! Component: 100  -  total flux cleaned = 0.0108367 Jy
! Component: 150  -  total flux cleaned = 0.0125231 Jy
! Component: 200  -  total flux cleaned = 0.0134621 Jy
! Total flux subtracted in 200 components = 0.0134621 Jy
! Clean residual min=-0.004724 max=0.008611 Jy/beam
! Clean residual mean=0.000256 rms=0.001749 Jy/beam
! Combined flux in latest and established models = 1.40959 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 192 components and 1.40959 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.181541Jy  sigma=0.001366
! Fit after  self-cal, rms=0.181583Jy  sigma=0.001366
! Inverting map 
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.181583Jy  sigma=0.001366
! Fit after  self-cal, rms=0.180038Jy  sigma=0.001345
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.072 mas, bmaj=7.104 mas, bpa=4.276 degrees
! Estimated noise=572.785 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0042021 Jy
! Component: 100  -  total flux cleaned = 0.0062111 Jy
! Component: 150  -  total flux cleaned = 0.00732046 Jy
! Component: 200  -  total flux cleaned = 0.00772162 Jy
! Total flux subtracted in 200 components = 0.00772162 Jy
! Clean residual min=-0.004356 max=0.007681 Jy/beam
! Clean residual mean=0.000158 rms=0.001378 Jy/beam
! Combined flux in latest and established models = 1.41731 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 218 components and 1.41731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179904Jy  sigma=0.001344
! Fit after  self-cal, rms=0.179895Jy  sigma=0.001343
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (14, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00619593 Jy
! Component: 100  -  total flux cleaned = 0.006992 Jy
! Component: 150  -  total flux cleaned = 0.00739809 Jy
! Component: 200  -  total flux cleaned = 0.0077473 Jy
! Total flux subtracted in 200 components = 0.0077473 Jy
! Clean residual min=-0.003990 max=0.006946 Jy/beam
! Clean residual mean=0.000129 rms=0.001184 Jy/beam
! Combined flux in latest and established models = 1.42506 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 244 components and 1.42506 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179659Jy  sigma=0.001341
! Fit after  self-cal, rms=0.179633Jy  sigma=0.001341
! Inverting map 
! Added new window around map position (-10, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0044145 Jy
! Component: 100  -  total flux cleaned = 0.00469356 Jy
! Component: 150  -  total flux cleaned = 0.00469398 Jy
! Component: 200  -  total flux cleaned = 0.00459895 Jy
! Total flux subtracted in 200 components = 0.00459895 Jy
! Clean residual min=-0.003852 max=0.004254 Jy/beam
! Clean residual mean=0.000115 rms=0.001064 Jy/beam
! Combined flux in latest and established models = 1.42966 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 271 components and 1.42966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179426Jy  sigma=0.001339
! Fit after  self-cal, rms=0.179410Jy  sigma=0.001339
! Inverting map 
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.179410Jy  sigma=0.001339
! Fit after  self-cal, rms=0.179472Jy  sigma=0.001338
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.061 mas, bmaj=7.063 mas, bpa=4.521 degrees
! Estimated noise=572.537 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0044856 Jy
! Component: 100  -  total flux cleaned = 0.00710835 Jy
! Component: 150  -  total flux cleaned = 0.00812573 Jy
! Component: 200  -  total flux cleaned = 0.00852096 Jy
! Total flux subtracted in 200 components = 0.00852096 Jy
! Clean residual min=-0.003587 max=0.003689 Jy/beam
! Clean residual mean=0.000091 rms=0.000951 Jy/beam
! Combined flux in latest and established models = 1.43818 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 292 components and 1.43818 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179320Jy  sigma=0.001337
! Fit after  self-cal, rms=0.179309Jy  sigma=0.001337
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000364188 Jy
! Component: 100  -  total flux cleaned = 0.000573663 Jy
! Component: 150  -  total flux cleaned = 0.000573419 Jy
! Component: 200  -  total flux cleaned = 0.000636295 Jy
! Total flux subtracted in 200 components = 0.000636295 Jy
! Clean residual min=-0.003502 max=0.003628 Jy/beam
! Clean residual mean=0.000089 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 1.43881 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 302 components and 1.43881 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179260Jy  sigma=0.001336
! Fit after  self-cal, rms=0.179257Jy  sigma=0.001336
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.179257Jy  sigma=0.001336
! Fit after  self-cal, rms=0.179296Jy  sigma=0.001336
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.659 mas, bmaj=14.15 mas, bpa=-3.024 degrees
! Estimated noise=694.707 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332987 Jy
! Component: 100  -  total flux cleaned = 0.00455391 Jy
! Component: 150  -  total flux cleaned = 0.00491863 Jy
! Component: 200  -  total flux cleaned = 0.00501529 Jy
! Total flux subtracted in 200 components = 0.00501529 Jy
! Clean residual min=-0.004297 max=0.005015 Jy/beam
! Clean residual mean=0.000137 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 1.44383 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 327 components and 1.44383 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179252Jy  sigma=0.001335
! Fit after  self-cal, rms=0.179248Jy  sigma=0.001335
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.00015525 Jy
! Component: 100  -  total flux cleaned = 2.2572e-05 Jy
! Component: 150  -  total flux cleaned = -1.19596e-05 Jy
! Component: 200  -  total flux cleaned = -4.39128e-05 Jy
! Total flux subtracted in 200 components = -4.39128e-05 Jy
! Clean residual min=-0.004167 max=0.004959 Jy/beam
! Clean residual mean=0.000138 rms=0.001244 Jy/beam
! Combined flux in latest and established models = 1.44378 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 336 components and 1.44378 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179236Jy  sigma=0.001335
! Fit after  self-cal, rms=0.179234Jy  sigma=0.001335
! Inverting map 
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 
! Estimated beam: bmin=3.058 mas, bmaj=7.048 mas, bpa=4.606 degrees
! Estimated noise=572.376 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.058 x 7.048 at 4.606 degrees (North through East)
! Clean map  min=-0.0031294  max=0.65253 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.179234Jy  sigma=0.001335
! Fit after  self-cal, rms=0.177180Jy  sigma=0.001199
! Inverting map and beam 
! Estimated beam: bmin=3.061 mas, bmaj=7.055 mas, bpa=4.44 degrees
! Estimated noise=572.191 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00213152 Jy
! Component: 100  -  total flux cleaned = 0.00260298 Jy
! Component: 150  -  total flux cleaned = 0.00272231 Jy
! Component: 200  -  total flux cleaned = 0.00283235 Jy
! Total flux subtracted in 200 components = 0.00283235 Jy
! Clean residual min=-0.002998 max=0.003098 Jy/beam
! Clean residual mean=0.000086 rms=0.000775 Jy/beam
! Combined flux in latest and established models = 1.44662 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 345 components and 1.44662 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177128Jy  sigma=0.001198
! Fit after  self-cal, rms=0.177134Jy  sigma=0.001198
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00011227 Jy
! Component: 100  -  total flux cleaned = 0.000112069 Jy
! Component: 150  -  total flux cleaned = 0.000161046 Jy
! Component: 200  -  total flux cleaned = 0.000161007 Jy
! Total flux subtracted in 200 components = 0.000161007 Jy
! Clean residual min=-0.002990 max=0.003077 Jy/beam
! Clean residual mean=0.000085 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 1.44678 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 351 components and 1.44678 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177106Jy  sigma=0.001198
! Fit after  self-cal, rms=0.177106Jy  sigma=0.001198
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177106Jy  sigma=0.001198
! Fit after  self-cal, rms=0.177037Jy  sigma=0.001198
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 
! Estimated beam: bmin=2.004 mas, bmaj=4.92 mas, bpa=9.38 degrees
! Estimated noise=991.123 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.43865 Jy
! Component: 100  -  total flux cleaned = 0.652696 Jy
! Component: 150  -  total flux cleaned = 0.794423 Jy
! Component: 200  -  total flux cleaned = 0.90221 Jy
! Total flux subtracted in 200 components = 0.90221 Jy
! Clean residual min=-0.024252 max=0.063437 Jy/beam
! Clean residual mean=0.000179 rms=0.008019 Jy/beam
! Combined flux in latest and established models = 0.90221 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 32 model components to the UV plane model.
! The established model now contains 32 components and 0.90221 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.057 mas, bmaj=7.044 mas, bpa=4.489 degrees
! Estimated noise=572.142 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.180121 Jy
! Component: 100  -  total flux cleaned = 0.286187 Jy
! Component: 150  -  total flux cleaned = 0.351887 Jy
! Component: 200  -  total flux cleaned = 0.397378 Jy
! Total flux subtracted in 200 components = 0.397378 Jy
! Clean residual min=-0.010286 max=0.026057 Jy/beam
! Clean residual mean=0.000499 rms=0.005868 Jy/beam
! Combined flux in latest and established models = 1.29959 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 74 components and 1.29959 Jy
! Inverting map 
! Added new window around map position (9.5, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0330733 Jy
! Component: 100  -  total flux cleaned = 0.0579016 Jy
! Component: 150  -  total flux cleaned = 0.0769401 Jy
! Component: 200  -  total flux cleaned = 0.0916579 Jy
! Total flux subtracted in 200 components = 0.0916579 Jy
! Clean residual min=-0.004628 max=0.008708 Jy/beam
! Clean residual mean=0.000243 rms=0.002310 Jy/beam
! Combined flux in latest and established models = 1.39125 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 118 components and 1.39125 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.654 mas, bmaj=14.16 mas, bpa=-3.086 degrees
! Estimated noise=695.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0190626 Jy
! Component: 100  -  total flux cleaned = 0.0312639 Jy
! Component: 150  -  total flux cleaned = 0.0394461 Jy
! Component: 200  -  total flux cleaned = 0.0450565 Jy
! Total flux subtracted in 200 components = 0.0450565 Jy
! Clean residual min=-0.004292 max=0.003576 Jy/beam
! Clean residual mean=0.000232 rms=0.001359 Jy/beam
! Combined flux in latest and established models = 1.4363 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.00392175 Jy
! Component: 100  -  total flux cleaned = 0.00672102 Jy
! Component: 150  -  total flux cleaned = 0.00875385 Jy
! Component: 200  -  total flux cleaned = 0.0102484 Jy
! Total flux subtracted in 200 components = 0.0102484 Jy
! Clean residual min=-0.003724 max=0.003927 Jy/beam
! Clean residual mean=0.000168 rms=0.001043 Jy/beam
! Combined flux in latest and established models = 1.44655 Jy
! Adding 181 model components to the UV plane model.
! The established model now contains 285 components and 1.44655 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.057 mas, bmaj=7.044 mas, bpa=4.489 degrees
! Estimated noise=572.142 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00137629 Jy
! Component: 100  -  total flux cleaned = 0.00153572 Jy
! Component: 150  -  total flux cleaned = 0.00167768 Jy
! Component: 200  -  total flux cleaned = 0.00174523 Jy
! Total flux subtracted in 200 components = 0.00174523 Jy
! Clean residual min=-0.003051 max=0.003179 Jy/beam
! Clean residual mean=0.000078 rms=0.000784 Jy/beam
! Combined flux in latest and established models = 1.4483 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 303 components and 1.4483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177091Jy  sigma=0.001198
! Fit after  self-cal, rms=0.177059Jy  sigma=0.001198
wmodel J0241-0815_S_1999_12_20_pus_map.mod
! Writing 303 model components to file: J0241-0815_S_1999_12_20_pus_map.mod
wobs J0241-0815_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0241-0815_S_1999_12_20_pus_uvs.fits
wwins J0241-0815_S_1999_12_20_pus_map.win
! wwins: Wrote 8 windows to J0241-0815_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000471498 Jy
! Component: 100  -  total flux cleaned = 0.000577885 Jy
! Component: 150  -  total flux cleaned = 0.000823164 Jy
! Component: 200  -  total flux cleaned = 0.000962097 Jy
! Component: 250  -  total flux cleaned = 0.000960941 Jy
! Component: 300  -  total flux cleaned = 0.000962526 Jy
! Component: 350  -  total flux cleaned = 0.0010477 Jy
! Component: 400  -  total flux cleaned = 0.00112886 Jy
! Component: 450  -  total flux cleaned = 0.00116906 Jy
! Component: 500  -  total flux cleaned = 0.00128622 Jy
! Component: 550  -  total flux cleaned = 0.00143789 Jy
! Component: 600  -  total flux cleaned = 0.00151189 Jy
! Component: 650  -  total flux cleaned = 0.00165684 Jy
! Component: 700  -  total flux cleaned = 0.00179974 Jy
! Component: 750  -  total flux cleaned = 0.00190489 Jy
! Component: 800  -  total flux cleaned = 0.00207612 Jy
! Component: 850  -  total flux cleaned = 0.00217663 Jy
! Component: 900  -  total flux cleaned = 0.00220905 Jy
! Component: 950  -  total flux cleaned = 0.00220795 Jy
! Component: 1000  -  total flux cleaned = 0.00220766 Jy
! Component: 1050  -  total flux cleaned = 0.00223865 Jy
! Component: 1100  -  total flux cleaned = 0.00220784 Jy
! Component: 1150  -  total flux cleaned = 0.00229996 Jy
! Component: 1200  -  total flux cleaned = 0.00242058 Jy
! Component: 1250  -  total flux cleaned = 0.00256919 Jy
! Component: 1300  -  total flux cleaned = 0.00250991 Jy
! Component: 1350  -  total flux cleaned = 0.00259734 Jy
! Component: 1400  -  total flux cleaned = 0.0027417 Jy
! Component: 1450  -  total flux cleaned = 0.00285573 Jy
! Component: 1500  -  total flux cleaned = 0.00299702 Jy
! Component: 1550  -  total flux cleaned = 0.00316467 Jy
! Component: 1600  -  total flux cleaned = 0.00324771 Jy
! Component: 1650  -  total flux cleaned = 0.0033299 Jy
! Component: 1700  -  total flux cleaned = 0.00341137 Jy
! Component: 1750  -  total flux cleaned = 0.00338437 Jy
! Component: 1800  -  total flux cleaned = 0.00357209 Jy
! Component: 1850  -  total flux cleaned = 0.00365157 Jy
! Component: 1900  -  total flux cleaned = 0.00362525 Jy
! Component: 1950  -  total flux cleaned = 0.00370411 Jy
! Component: 2000  -  total flux cleaned = 0.00383387 Jy
! Total flux subtracted in 2048 components = 0.00391123 Jy
! Clean residual min=-0.001515 max=0.001511 Jy/beam
! Clean residual mean=0.000038 rms=0.000503 Jy/beam
! Combined flux in latest and established models = 1.45221 Jy
keep
! Adding 129 model components to the UV plane model.
! The established model now contains 432 components and 1.45221 Jy
![Exited script file: muppet]
wmap "J0241-0815_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.057 x 7.044 at 4.489 degrees (North through East)
! Clean map  min=-0.0025062  max=0.65368 Jy/beam
! Writing clean map to FITS file: J0241-0815_S_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.653683 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000502786 
device "J0241-0815_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0241-0815_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.230748 0.230748 0.461495 0.922991 1.84598 3.69196 7.38393 14.7679 29.5357 59.0714
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.653 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.057 x 7.044 at 4.489 degrees (North through East)
! Clean map  min=-0.0025062  max=0.65368 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0241-0815_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0241-0815_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0241-0815_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 14:51:59 2007