! Started logfile: J0339-0146_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:13:41 2008
obs J0339-0146_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0339-0146_S_2001_10_29_pus_uva.fits
! AN table 1: 10 integrations on 153 of 153 possible baselines.
! AN table 2: 106 integrations on 153 of 153 possible baselines.
! AN table 3: 260 integrations on 153 of 153 possible baselines.
! AN table 4: 20 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.124464 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0339-0146
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 30164 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 J0339-0146_S_2001_10_29_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 150 telescope corrections were flagged in sub-array 1.
!  A total of 1376 telescope corrections were flagged in sub-array 2.
!  A total of 3081 telescope corrections were flagged in sub-array 3.
!  A total of 321 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  A total of 1376 telescope corrections were flagged in sub-array 2.
!  A total of 3081 telescope corrections were flagged in sub-array 3.
!  A total of 321 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  A total of 1376 telescope corrections were flagged in sub-array 2.
!  A total of 3081 telescope corrections were flagged in sub-array 3.
!  A total of 321 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  A total of 1376 telescope corrections were flagged in sub-array 2.
!  A total of 3518 telescope corrections were flagged in sub-array 3.
!  A total of 360 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.966022Jy  sigma=0.007466
! Fit after  self-cal, rms=0.559051Jy  sigma=0.004285
! 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=1.761 mas, bmaj=3.659 mas, bpa=8.201 degrees
! Estimated noise=1120.8 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.824712 Jy
! Component: 100  -  total flux cleaned = 1.12548 Jy
! Total flux subtracted in 100 components = 1.12548 Jy
! Clean residual min=-0.041856 max=0.144131 Jy/beam
! Clean residual mean=0.001633 rms=0.014942 Jy/beam
! Combined flux in latest and established models = 1.12548 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.12548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461157Jy  sigma=0.003562
! Fit after  self-cal, rms=0.457106Jy  sigma=0.003534
! Inverting map 
! Added new window around map position (2, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.172161 Jy
! Component: 100  -  total flux cleaned = 0.278961 Jy
! Total flux subtracted in 100 components = 0.278961 Jy
! Clean residual min=-0.022723 max=0.060709 Jy/beam
! Clean residual mean=0.000846 rms=0.007915 Jy/beam
! Combined flux in latest and established models = 1.40444 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 22 components and 1.40444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317933Jy  sigma=0.002294
! Fit after  self-cal, rms=0.315901Jy  sigma=0.002279
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0767791 Jy
! Component: 100  -  total flux cleaned = 0.128029 Jy
! Total flux subtracted in 100 components = 0.128029 Jy
! Clean residual min=-0.016243 max=0.036525 Jy/beam
! Clean residual mean=0.000486 rms=0.005371 Jy/beam
! Combined flux in latest and established models = 1.53247 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 33 components and 1.53247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275227Jy  sigma=0.001891
! Fit after  self-cal, rms=0.274243Jy  sigma=0.001883
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0402013 Jy
! Component: 100  -  total flux cleaned = 0.0675103 Jy
! Total flux subtracted in 100 components = 0.0675103 Jy
! Clean residual min=-0.014159 max=0.021777 Jy/beam
! Clean residual mean=0.000297 rms=0.004353 Jy/beam
! Combined flux in latest and established models = 1.59998 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 37 components and 1.59998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260750Jy  sigma=0.001747
! Fit after  self-cal, rms=0.260358Jy  sigma=0.001744
! 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=2.317 mas, bmaj=5.395 mas, bpa=5.123 degrees
! Estimated noise=564.883 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.051606 Jy
! Component: 100  -  total flux cleaned = 0.0783002 Jy
! Component: 150  -  total flux cleaned = 0.0927478 Jy
! Component: 200  -  total flux cleaned = 0.10065 Jy
! Total flux subtracted in 200 components = 0.10065 Jy
! Clean residual min=-0.015234 max=0.018574 Jy/beam
! Clean residual mean=0.000042 rms=0.004698 Jy/beam
! Combined flux in latest and established models = 1.70063 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 50 components and 1.70063 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251440Jy  sigma=0.001653
! Fit after  self-cal, rms=0.251208Jy  sigma=0.001651
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.02     KP        0.86     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.98     
!   OV        0.95     PT        0.95     SC        0.99     TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.00     KK        1.05     KP        0.98     LA        0.99     
!   MA        1.33     MC        0.97     MK        1.05     NL        0.98     
!   OV        1.00     PT        0.99     SC        0.98     TS        0.94     
!   WF        0.92     WZ        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.91     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.12     MC        0.95     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.12     
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        0.99     KP        0.94     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.00     
!   OV        0.98     PT        0.95     SC        1.00     TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.05     
!   HN        0.99     KK        1.05     KP        0.89     LA        0.97     
!   MA        1.55     MC        0.92     MK        1.04     NL        0.99     
!   OV        1.03     PT        0.98     SC        0.98     TS        0.97     
!   WF        0.96     WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.90     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.87     MC        0.94     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.02     
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.01     KP        0.95     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.00     
!   OV        1.00     PT        1.05     SC        1.01     TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.05     
!   HN        1.00     KK        1.01     KP        1.00     LA        0.98     
!   MA        1.02     MC        0.97     MK        1.02     NL        1.01     
!   OV        1.03     PT        1.01     SC        0.98     TS        0.96     
!   WF        1.07     WZ        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.96     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.03     MC        0.94     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.02     
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        0.98     KP        0.97     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.04     
!   OV        0.97     PT        1.96     SC        1.02     TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.01     KK        1.01     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        1.04     
!   OV        1.01     PT        1.02     SC        1.00     TS        0.96     
!   WF        0.96     WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        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*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.251208Jy  sigma=0.001651
! Fit after  self-cal, rms=0.251819Jy  sigma=0.001445
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.344 mas, bmaj=5.438 mas, bpa=5.351 degrees
! Estimated noise=573.343 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 (6, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0109115 Jy
! Component: 100  -  total flux cleaned = 0.012767 Jy
! Component: 150  -  total flux cleaned = 0.0127499 Jy
! Component: 200  -  total flux cleaned = 0.0128729 Jy
! Total flux subtracted in 200 components = 0.0128729 Jy
! Clean residual min=-0.008791 max=0.007134 Jy/beam
! Clean residual mean=0.000042 rms=0.001921 Jy/beam
! Combined flux in latest and established models = 1.7135 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 65 components and 1.7135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251340Jy  sigma=0.001440
! Fit after  self-cal, rms=0.251700Jy  sigma=0.001439
! 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.251700Jy  sigma=0.001439
! Fit after  self-cal, rms=0.261448Jy  sigma=0.001416
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.359 mas, bmaj=5.44 mas, bpa=5.51 degrees
! Estimated noise=575.484 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00414995 Jy
! Component: 100  -  total flux cleaned = 0.0045762 Jy
! Component: 150  -  total flux cleaned = 0.00525289 Jy
! Component: 200  -  total flux cleaned = 0.00568595 Jy
! Total flux subtracted in 200 components = 0.00568595 Jy
! Clean residual min=-0.006534 max=0.005256 Jy/beam
! Clean residual mean=0.000083 rms=0.001345 Jy/beam
! Combined flux in latest and established models = 1.71919 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 82 components and 1.71919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261123Jy  sigma=0.001413
! Fit after  self-cal, rms=0.261185Jy  sigma=0.001413
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.00108213 Jy
! Component: 100  -  total flux cleaned = 0.00147792 Jy
! Component: 150  -  total flux cleaned = 0.00170986 Jy
! Component: 200  -  total flux cleaned = 0.00170456 Jy
! Total flux subtracted in 200 components = 0.00170456 Jy
! Clean residual min=-0.006531 max=0.005146 Jy/beam
! Clean residual mean=0.000069 rms=0.001297 Jy/beam
! Combined flux in latest and established models = 1.72089 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 90 components and 1.72089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261045Jy  sigma=0.001412
! Fit after  self-cal, rms=0.261041Jy  sigma=0.001412
! 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.261041Jy  sigma=0.001412
! Fit after  self-cal, rms=0.263336Jy  sigma=0.001410
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.366 mas, bmaj=5.444 mas, bpa=5.574 degrees
! Estimated noise=576.728 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00196837 Jy
! Component: 100  -  total flux cleaned = 0.00222755 Jy
! Component: 150  -  total flux cleaned = 0.00259017 Jy
! Component: 200  -  total flux cleaned = 0.00290928 Jy
! Total flux subtracted in 200 components = 0.00290928 Jy
! Clean residual min=-0.004767 max=0.004975 Jy/beam
! Clean residual mean=0.000073 rms=0.001200 Jy/beam
! Combined flux in latest and established models = 1.7238 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 93 components and 1.7238 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263179Jy  sigma=0.001409
! Fit after  self-cal, rms=0.263180Jy  sigma=0.001409
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.000656215 Jy
! Component: 100  -  total flux cleaned = 0.000855226 Jy
! Component: 150  -  total flux cleaned = 0.00111617 Jy
! Component: 200  -  total flux cleaned = 0.00134358 Jy
! Total flux subtracted in 200 components = 0.00134358 Jy
! Clean residual min=-0.004677 max=0.004878 Jy/beam
! Clean residual mean=0.000061 rms=0.001172 Jy/beam
! Combined flux in latest and established models = 1.72514 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 97 components and 1.72514 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263098Jy  sigma=0.001409
! Fit after  self-cal, rms=0.263096Jy  sigma=0.001409
! 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.263096Jy  sigma=0.001409
! Fit after  self-cal, rms=0.264174Jy  sigma=0.001408
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.581 mas, bmaj=12.89 mas, bpa=-9.006 degrees
! Estimated noise=738.366 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0039693 Jy
! Component: 100  -  total flux cleaned = 0.00447872 Jy
! Component: 150  -  total flux cleaned = 0.00443139 Jy
! Component: 200  -  total flux cleaned = 0.00443211 Jy
! Total flux subtracted in 200 components = 0.00443211 Jy
! Clean residual min=-0.004239 max=0.006322 Jy/beam
! Clean residual mean=0.000093 rms=0.001681 Jy/beam
! Combined flux in latest and established models = 1.72958 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 112 components and 1.72958 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264164Jy  sigma=0.001408
! Fit after  self-cal, rms=0.264158Jy  sigma=0.001408
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.000300738 Jy
! Component: 100  -  total flux cleaned = 0.000309777 Jy
! Component: 150  -  total flux cleaned = 0.000313512 Jy
! Component: 200  -  total flux cleaned = 0.000313402 Jy
! Total flux subtracted in 200 components = 0.000313402 Jy
! Clean residual min=-0.004054 max=0.006052 Jy/beam
! Clean residual mean=0.000088 rms=0.001699 Jy/beam
! Combined flux in latest and established models = 1.72989 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 120 components and 1.72989 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264146Jy  sigma=0.001408
! Fit after  self-cal, rms=0.264142Jy  sigma=0.001408
! 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=2.371 mas, bmaj=5.446 mas, bpa=5.61 degrees
! Estimated noise=577.724 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.371 x 5.446 at 5.61 degrees (North through East)
! Clean map  min=-0.0042908  max=1.2055 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.264142Jy  sigma=0.001408
! Fit after  self-cal, rms=0.268928Jy  sigma=0.001172
! Inverting map and beam 
! Estimated beam: bmin=2.366 mas, bmaj=5.446 mas, bpa=5.625 degrees
! Estimated noise=576.776 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00148044 Jy
! Component: 100  -  total flux cleaned = 0.0013151 Jy
! Component: 150  -  total flux cleaned = 0.00124231 Jy
! Component: 200  -  total flux cleaned = 0.00110203 Jy
! Total flux subtracted in 200 components = 0.00110203 Jy
! Clean residual min=-0.003746 max=0.004491 Jy/beam
! Clean residual mean=0.000086 rms=0.001023 Jy/beam
! Combined flux in latest and established models = 1.73099 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 130 components and 1.73099 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268863Jy  sigma=0.001172
! Fit after  self-cal, rms=0.268859Jy  sigma=0.001172
! Inverting map 
! Added new window around map position (34, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00412225 Jy
! Component: 100  -  total flux cleaned = 0.00567489 Jy
! Component: 150  -  total flux cleaned = 0.00636873 Jy
! Component: 200  -  total flux cleaned = 0.00670691 Jy
! Total flux subtracted in 200 components = 0.00670691 Jy
! Clean residual min=-0.003590 max=0.003502 Jy/beam
! Clean residual mean=0.000050 rms=0.000887 Jy/beam
! Combined flux in latest and established models = 1.7377 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 141 components and 1.7377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268774Jy  sigma=0.001171
! Fit after  self-cal, rms=0.268769Jy  sigma=0.001171
! 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.268769Jy  sigma=0.001171
! Fit after  self-cal, rms=0.268868Jy  sigma=0.001171
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=1.774 mas, bmaj=3.633 mas, bpa=8.259 degrees
! Estimated noise=1152.05 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.836593 Jy
! Component: 100  -  total flux cleaned = 1.15615 Jy
! Component: 150  -  total flux cleaned = 1.3326 Jy
! Component: 200  -  total flux cleaned = 1.4414 Jy
! Total flux subtracted in 200 components = 1.4414 Jy
! Clean residual min=-0.016418 max=0.058102 Jy/beam
! Clean residual mean=0.000832 rms=0.006426 Jy/beam
! Combined flux in latest and established models = 1.4414 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 21 model components to the UV plane model.
! The established model now contains 21 components and 1.4414 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=5.446 mas, bpa=5.645 degrees
! Estimated noise=576.776 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.128421 Jy
! Component: 100  -  total flux cleaned = 0.192005 Jy
! Component: 150  -  total flux cleaned = 0.226618 Jy
! Component: 200  -  total flux cleaned = 0.247393 Jy
! Total flux subtracted in 200 components = 0.247393 Jy
! Clean residual min=-0.004919 max=0.011287 Jy/beam
! Clean residual mean=0.000462 rms=0.002275 Jy/beam
! Combined flux in latest and established models = 1.68879 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 65 components and 1.68879 Jy
! Inverting map 
! Added new window around map position (-2, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133545 Jy
! Component: 100  -  total flux cleaned = 0.022432 Jy
! Component: 150  -  total flux cleaned = 0.0291307 Jy
! Component: 200  -  total flux cleaned = 0.0342764 Jy
! Total flux subtracted in 200 components = 0.0342764 Jy
! Clean residual min=-0.003759 max=0.004091 Jy/beam
! Clean residual mean=0.000165 rms=0.001091 Jy/beam
! Combined flux in latest and established models = 1.72307 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 86 components and 1.72307 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.572 mas, bmaj=12.89 mas, bpa=-9.029 degrees
! Estimated noise=738.106 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00626031 Jy
! Component: 100  -  total flux cleaned = 0.0102034 Jy
! Component: 150  -  total flux cleaned = 0.0130295 Jy
! Component: 200  -  total flux cleaned = 0.0151531 Jy
! Total flux subtracted in 200 components = 0.0151531 Jy
! Clean residual min=-0.002926 max=0.004068 Jy/beam
! Clean residual mean=0.000125 rms=0.001128 Jy/beam
! Combined flux in latest and established models = 1.73822 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.00128139 Jy
! Component: 100  -  total flux cleaned = 0.00211084 Jy
! Component: 150  -  total flux cleaned = 0.00284951 Jy
! Component: 200  -  total flux cleaned = 0.00346439 Jy
! Total flux subtracted in 200 components = 0.00346439 Jy
! Clean residual min=-0.002705 max=0.003678 Jy/beam
! Clean residual mean=0.000073 rms=0.000990 Jy/beam
! Combined flux in latest and established models = 1.74169 Jy
! Adding 77 model components to the UV plane model.
! The established model now contains 157 components and 1.74169 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=5.446 mas, bpa=5.645 degrees
! Estimated noise=576.776 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000316348 Jy
! Component: 100  -  total flux cleaned = -0.000317614 Jy
! Component: 150  -  total flux cleaned = -0.000155909 Jy
! Component: 200  -  total flux cleaned = -0.000231568 Jy
! Total flux subtracted in 200 components = -0.000231568 Jy
! Clean residual min=-0.003080 max=0.003189 Jy/beam
! Clean residual mean=0.000038 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 1.74146 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 170 components and 1.74146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268893Jy  sigma=0.001170
! Fit after  self-cal, rms=0.268833Jy  sigma=0.001170
wmodel J0339-0146_S_2001_10_29_pus_map.mod
! Writing 170 model components to file: J0339-0146_S_2001_10_29_pus_map.mod
wobs J0339-0146_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0339-0146_S_2001_10_29_pus_uvs.fits
wwins J0339-0146_S_2001_10_29_pus_map.win
! wwins: Wrote 5 windows to J0339-0146_S_2001_10_29_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.000138285 Jy
! Component: 100  -  total flux cleaned = -0.000355122 Jy
! Component: 150  -  total flux cleaned = -0.000661302 Jy
! Component: 200  -  total flux cleaned = -0.000858128 Jy
! Component: 250  -  total flux cleaned = -0.0011398 Jy
! Component: 300  -  total flux cleaned = -0.00136585 Jy
! Component: 350  -  total flux cleaned = -0.00162822 Jy
! Component: 400  -  total flux cleaned = -0.00175687 Jy
! Component: 450  -  total flux cleaned = -0.0019653 Jy
! Component: 500  -  total flux cleaned = -0.00208701 Jy
! Component: 550  -  total flux cleaned = -0.00212695 Jy
! Component: 600  -  total flux cleaned = -0.00216573 Jy
! Component: 650  -  total flux cleaned = -0.00220465 Jy
! Component: 700  -  total flux cleaned = -0.00228019 Jy
! Component: 750  -  total flux cleaned = -0.00231703 Jy
! Component: 800  -  total flux cleaned = -0.00235305 Jy
! Component: 850  -  total flux cleaned = -0.00231755 Jy
! Component: 900  -  total flux cleaned = -0.00242272 Jy
! Component: 950  -  total flux cleaned = -0.00245708 Jy
! Component: 1000  -  total flux cleaned = -0.00235513 Jy
! Component: 1050  -  total flux cleaned = -0.00242243 Jy
! Component: 1100  -  total flux cleaned = -0.00228969 Jy
! Component: 1150  -  total flux cleaned = -0.00225693 Jy
! Component: 1200  -  total flux cleaned = -0.00219265 Jy
! Component: 1250  -  total flux cleaned = -0.00219254 Jy
! Component: 1300  -  total flux cleaned = -0.00216111 Jy
! Component: 1350  -  total flux cleaned = -0.00213009 Jy
! Component: 1400  -  total flux cleaned = -0.00203824 Jy
! Component: 1450  -  total flux cleaned = -0.00209872 Jy
! Component: 1500  -  total flux cleaned = -0.00194772 Jy
! Component: 1550  -  total flux cleaned = -0.00182825 Jy
! Component: 1600  -  total flux cleaned = -0.00171005 Jy
! Component: 1650  -  total flux cleaned = -0.00173914 Jy
! Component: 1700  -  total flux cleaned = -0.00156444 Jy
! Component: 1750  -  total flux cleaned = -0.00142052 Jy
! Component: 1800  -  total flux cleaned = -0.0013635 Jy
! Component: 1850  -  total flux cleaned = -0.00119328 Jy
! Component: 1900  -  total flux cleaned = -0.00113683 Jy
! Component: 1950  -  total flux cleaned = -0.00099674 Jy
! Component: 2000  -  total flux cleaned = -0.00088524 Jy
! Total flux subtracted in 2048 components = -0.000802376 Jy
! Clean residual min=-0.001553 max=0.001628 Jy/beam
! Clean residual mean=0.000026 rms=0.000501 Jy/beam
! Combined flux in latest and established models = 1.74065 Jy
keep
! Adding 129 model components to the UV plane model.
! The established model now contains 298 components and 1.74065 Jy
![Exited script file: muppet]
wmap "J0339-0146_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 5.446 at 5.645 degrees (North through East)
! Clean map  min=-0.0028383  max=1.2071 Jy/beam
! Writing clean map to FITS file: J0339-0146_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.20708 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000500856 
device "J0339-0146_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0339-0146_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.12448 0.12448 0.24896 0.49792 0.99584 1.99168 3.98336 7.96672 15.9334 31.8669 63.7338
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.207 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 5.446 at 5.645 degrees (North through East)
! Clean map  min=-0.0028383  max=1.2071 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0339-0146_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0339-0146_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0339-0146_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:13:57 2008