! Started logfile: J0339-0146_S_1999_05_10_pus_uvs.log on Tue Jan 22 14:23:42 2008
obs J0339-0146_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0339-0146_S_1999_05_10_pus_uva.fits
! AN table 1: 50 integrations on 153 of 153 possible baselines.
! AN table 2: 112 integrations on 153 of 153 possible baselines.
! AN table 3: 51 integrations on 153 of 153 possible baselines.
! AN table 4: 62 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.184076 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.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 2002 lines of history.
! 
! Reading 30980 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_1999_05_10_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 686 telescope corrections were flagged in sub-array 1.
!  A total of 1417 telescope corrections were flagged in sub-array 2.
!  A total of 498 telescope corrections were flagged in sub-array 3.
!  A total of 430 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 686 telescope corrections were flagged in sub-array 1.
!  A total of 1417 telescope corrections were flagged in sub-array 2.
!  A total of 498 telescope corrections were flagged in sub-array 3.
!  A total of 430 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 686 telescope corrections were flagged in sub-array 1.
!  A total of 1446 telescope corrections were flagged in sub-array 2.
!  A total of 498 telescope corrections were flagged in sub-array 3.
!  A total of 430 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 686 telescope corrections were flagged in sub-array 1.
!  A total of 1525 telescope corrections were flagged in sub-array 2.
!  A total of 498 telescope corrections were flagged in sub-array 3.
!  A total of 439 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.163324Jy  sigma=0.009828
! Fit after  self-cal, rms=0.885888Jy  sigma=0.008023
! 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.475 mas, bmaj=4.234 mas, bpa=2.338 degrees
! Estimated noise=1280.74 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 = 1.21229 Jy
! Component: 100  -  total flux cleaned = 1.63791 Jy
! Total flux subtracted in 100 components = 1.63791 Jy
! Clean residual min=-0.046694 max=0.189643 Jy/beam
! Clean residual mean=0.001570 rms=0.016820 Jy/beam
! Combined flux in latest and established models = 1.63791 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.63791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434147Jy  sigma=0.003870
! Fit after  self-cal, rms=0.432716Jy  sigma=0.003862
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.211671 Jy
! Component: 100  -  total flux cleaned = 0.326384 Jy
! Total flux subtracted in 100 components = 0.326384 Jy
! Clean residual min=-0.028706 max=0.063064 Jy/beam
! Clean residual mean=0.000586 rms=0.007739 Jy/beam
! Combined flux in latest and established models = 1.9643 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 24 components and 1.9643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271607Jy  sigma=0.002190
! Fit after  self-cal, rms=0.270979Jy  sigma=0.002187
! Inverting map 
! Added new window around map position (3, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0721927 Jy
! Component: 100  -  total flux cleaned = 0.11878 Jy
! Total flux subtracted in 100 components = 0.11878 Jy
! Clean residual min=-0.022979 max=0.031239 Jy/beam
! Clean residual mean=0.000224 rms=0.005700 Jy/beam
! Combined flux in latest and established models = 2.08308 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 39 components and 2.08308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242385Jy  sigma=0.001820
! Fit after  self-cal, rms=0.241751Jy  sigma=0.001815
! 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.282 mas, bmaj=6.865 mas, bpa=-8.356 degrees
! Estimated noise=491.237 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.0575553 Jy
! Component: 100  -  total flux cleaned = 0.0907157 Jy
! Component: 150  -  total flux cleaned = 0.111633 Jy
! Component: 200  -  total flux cleaned = 0.125012 Jy
! Total flux subtracted in 200 components = 0.125012 Jy
! Clean residual min=-0.018192 max=0.020575 Jy/beam
! Clean residual mean=-0.000414 rms=0.005001 Jy/beam
! Combined flux in latest and established models = 2.20809 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 60 components and 2.20809 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231322Jy  sigma=0.001642
! Fit after  self-cal, rms=0.230933Jy  sigma=0.001639
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.05     GC        1.00*    HH        1.05     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.98     NY        1.00*    
!   ON        1.04     OV        1.00*    PT        1.00*    SC        1.03     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.02     HH        1.13     
!   HN        1.13     KK        1.02     KP        1.02     LA        1.01     
!   MC        1.01     MK        0.96     NL        0.99     NY        1.05     
!   ON        1.03     OV        1.03     PT        1.02     SC        1.00*    
!   WF        1.17     WZ        1.04     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.01     LA        1.00     
!   MC        1.00*    MK        1.02     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.01     SC        1.02     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.98     GC        1.09     HH        1.00*    
!   HN        1.02     KK        1.02     KP        1.01     LA        1.00     
!   MC        1.00*    MK        0.98     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00     SC        1.01     
!   WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.12     GC        1.00*    HH        1.12     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.05     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.03     GC        1.00     HH        1.05     
!   HN        1.17     KK        1.00     KP        1.01     LA        0.99     
!   MC        0.98     MK        1.03     NL        1.00     NY        1.08     
!   ON        1.05     OV        0.99     PT        1.00     SC        1.00*    
!   WF        1.15     WZ        1.04     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        1.00     LA        0.95     
!   MC        1.00*    MK        1.14     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.98     SC        1.02     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.02     GC        1.07     HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.00     LA        0.97     
!   MC        1.00*    MK        1.06     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.01     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.07     GC        1.00*    HH        0.97     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.06     OV        1.00*    PT        1.00*    SC        1.05     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        1.03     HH        1.18     
!   HN        1.16     KK        0.95     KP        1.02     LA        1.02     
!   MC        1.09     MK        0.95     NL        1.00     NY        1.14     
!   ON        1.12     OV        0.99     PT        0.98     SC        1.00*    
!   WF        1.15     WZ        1.06     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        1.00     LA        0.97     
!   MC        1.00*    MK        1.07     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.97     SC        1.01     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.99     GC        1.06     HH        1.00*    
!   HN        1.01     KK        0.98     KP        1.05     LA        1.00     
!   MC        1.00*    MK        0.98     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.92     SC        1.03     
!   WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.06     GC        1.00*    HH        0.99     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.05     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        1.01     HH        1.14     
!   HN        1.16     KK        0.97     KP        1.01     LA        1.01     
!   MC        0.86     MK        0.96     NL        1.02     NY        1.18     
!   ON        1.07     OV        0.98     PT        1.08     SC        1.00*    
!   WF        1.14     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.89     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.99     LA        0.98     
!   MC        1.00*    MK        1.07     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.98     SC        1.02     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.97     GC        1.06     HH        1.00*    
!   HN        0.99     KK        0.98     KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.99     SC        1.03     
!   WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.230933Jy  sigma=0.001639
! Fit after  self-cal, rms=0.209717Jy  sigma=0.001399
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.294 mas, bmaj=6.953 mas, bpa=-8.403 degrees
! Estimated noise=492.085 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 (8, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00494348 Jy
! Component: 100  -  total flux cleaned = 0.00583231 Jy
! Component: 150  -  total flux cleaned = 0.006735 Jy
! Component: 200  -  total flux cleaned = 0.00704538 Jy
! Total flux subtracted in 200 components = 0.00704538 Jy
! Clean residual min=-0.006961 max=0.004914 Jy/beam
! Clean residual mean=0.000136 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 2.21514 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 79 components and 2.21514 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209282Jy  sigma=0.001395
! Fit after  self-cal, rms=0.209384Jy  sigma=0.001394
! 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.209384Jy  sigma=0.001394
! Fit after  self-cal, rms=0.209483Jy  sigma=0.001394
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.292 mas, bmaj=6.953 mas, bpa=-8.428 degrees
! Estimated noise=491.947 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0021805 Jy
! Component: 100  -  total flux cleaned = 0.00263324 Jy
! Component: 150  -  total flux cleaned = 0.00301786 Jy
! Component: 200  -  total flux cleaned = 0.00324819 Jy
! Total flux subtracted in 200 components = 0.00324819 Jy
! Clean residual min=-0.006275 max=0.004265 Jy/beam
! Clean residual mean=0.000137 rms=0.001109 Jy/beam
! Combined flux in latest and established models = 2.21838 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 85 components and 2.21838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209267Jy  sigma=0.001392
! Fit after  self-cal, rms=0.209246Jy  sigma=0.001392
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.000685331 Jy
! Component: 100  -  total flux cleaned = 0.000893459 Jy
! Component: 150  -  total flux cleaned = 0.00109017 Jy
! Component: 200  -  total flux cleaned = 0.00118181 Jy
! Total flux subtracted in 200 components = 0.00118181 Jy
! Clean residual min=-0.005642 max=0.004176 Jy/beam
! Clean residual mean=0.000126 rms=0.001066 Jy/beam
! Combined flux in latest and established models = 2.21957 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 89 components and 2.21957 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209119Jy  sigma=0.001391
! Fit after  self-cal, rms=0.209103Jy  sigma=0.001391
! 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.209103Jy  sigma=0.001391
! Fit after  self-cal, rms=0.209300Jy  sigma=0.001391
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.291 mas, bmaj=6.953 mas, bpa=-8.441 degrees
! Estimated noise=492.024 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179696 Jy
! Component: 100  -  total flux cleaned = 0.0018947 Jy
! Component: 150  -  total flux cleaned = 0.0020646 Jy
! Component: 200  -  total flux cleaned = 0.00222149 Jy
! Total flux subtracted in 200 components = 0.00222149 Jy
! Clean residual min=-0.005340 max=0.004118 Jy/beam
! Clean residual mean=0.000108 rms=0.001039 Jy/beam
! Combined flux in latest and established models = 2.22179 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 94 components and 2.22179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209196Jy  sigma=0.001390
! Fit after  self-cal, rms=0.209184Jy  sigma=0.001390
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.000176152 Jy
! Component: 100  -  total flux cleaned = 0.000246554 Jy
! Component: 150  -  total flux cleaned = 0.00038228 Jy
! Component: 200  -  total flux cleaned = 0.000508051 Jy
! Total flux subtracted in 200 components = 0.000508051 Jy
! Clean residual min=-0.004869 max=0.004153 Jy/beam
! Clean residual mean=0.000103 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 2.22229 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 97 components and 2.22229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209118Jy  sigma=0.001390
! Fit after  self-cal, rms=0.209110Jy  sigma=0.001390
! 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.209110Jy  sigma=0.001390
! Fit after  self-cal, rms=0.209224Jy  sigma=0.001389
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.777 mas, bmaj=11.17 mas, bpa=-2.923 degrees
! Estimated noise=604.216 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00123142 Jy
! Component: 100  -  total flux cleaned = 0.0015255 Jy
! Component: 150  -  total flux cleaned = 0.00165045 Jy
! Component: 200  -  total flux cleaned = 0.00175903 Jy
! Total flux subtracted in 200 components = 0.00175903 Jy
! Clean residual min=-0.004750 max=0.006385 Jy/beam
! Clean residual mean=0.000190 rms=0.001450 Jy/beam
! Combined flux in latest and established models = 2.22405 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 105 components and 2.22405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209205Jy  sigma=0.001389
! Fit after  self-cal, rms=0.209196Jy  sigma=0.001389
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 (25.5, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548654 Jy
! Component: 100  -  total flux cleaned = 0.00688209 Jy
! Component: 150  -  total flux cleaned = 0.00728203 Jy
! Component: 200  -  total flux cleaned = 0.00742519 Jy
! Total flux subtracted in 200 components = 0.00742519 Jy
! Clean residual min=-0.003537 max=0.003591 Jy/beam
! Clean residual mean=0.000049 rms=0.001082 Jy/beam
! Combined flux in latest and established models = 2.23148 Jy
! Performing phase self-cal
! Adding 57 model components to the UV plane model.
! The established model now contains 161 components and 2.23148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209129Jy  sigma=0.001388
! Fit after  self-cal, rms=0.209120Jy  sigma=0.001388
! 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.291 mas, bmaj=6.954 mas, bpa=-8.447 degrees
! Estimated noise=492.182 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.291 x 6.954 at -8.447 degrees (North through East)
! Clean map  min=-0.0038862  max=1.6938 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.209120Jy  sigma=0.001388
! Fit after  self-cal, rms=0.185101Jy  sigma=0.001129
! Inverting map and beam 
! Estimated beam: bmin=3.29 mas, bmaj=6.953 mas, bpa=-8.433 degrees
! Estimated noise=491.784 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00176393 Jy
! Component: 100  -  total flux cleaned = 0.00227689 Jy
! Component: 150  -  total flux cleaned = 0.00254562 Jy
! Component: 200  -  total flux cleaned = 0.00262912 Jy
! Total flux subtracted in 200 components = 0.00262912 Jy
! Clean residual min=-0.003320 max=0.002852 Jy/beam
! Clean residual mean=-0.000022 rms=0.000730 Jy/beam
! Combined flux in latest and established models = 2.23411 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 188 components and 2.23411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184966Jy  sigma=0.001128
! Fit after  self-cal, rms=0.184966Jy  sigma=0.001128
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000329536 Jy
! Component: 100  -  total flux cleaned = 0.000328571 Jy
! Component: 150  -  total flux cleaned = 0.000256333 Jy
! Component: 200  -  total flux cleaned = 0.000258658 Jy
! Total flux subtracted in 200 components = 0.000258658 Jy
! Clean residual min=-0.003149 max=0.002704 Jy/beam
! Clean residual mean=-0.000024 rms=0.000696 Jy/beam
! Combined flux in latest and established models = 2.23437 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 201 components and 2.23437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184889Jy  sigma=0.001127
! Fit after  self-cal, rms=0.184891Jy  sigma=0.001127
! 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.184891Jy  sigma=0.001127
! Fit after  self-cal, rms=0.184810Jy  sigma=0.001127
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.483 mas, bmaj=4.322 mas, bpa=1.983 degrees
! Estimated noise=1297.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.22506 Jy
! Component: 100  -  total flux cleaned = 1.65608 Jy
! Component: 150  -  total flux cleaned = 1.86716 Jy
! Component: 200  -  total flux cleaned = 1.97966 Jy
! Total flux subtracted in 200 components = 1.97966 Jy
! Clean residual min=-0.016409 max=0.057405 Jy/beam
! Clean residual mean=0.000767 rms=0.005875 Jy/beam
! Combined flux in latest and established models = 1.97966 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 22 model components to the UV plane model.
! The established model now contains 22 components and 1.97966 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.29 mas, bmaj=6.953 mas, bpa=-8.43 degrees
! Estimated noise=491.706 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.102314 Jy
! Component: 100  -  total flux cleaned = 0.152959 Jy
! Component: 150  -  total flux cleaned = 0.181285 Jy
! Component: 200  -  total flux cleaned = 0.198785 Jy
! Total flux subtracted in 200 components = 0.198785 Jy
! Clean residual min=-0.004117 max=0.011042 Jy/beam
! Clean residual mean=0.000526 rms=0.001853 Jy/beam
! Combined flux in latest and established models = 2.17845 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 65 components and 2.17845 Jy
! Inverting map 
! Added new window around map position (0, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0119493 Jy
! Component: 100  -  total flux cleaned = 0.0202332 Jy
! Component: 150  -  total flux cleaned = 0.0266586 Jy
! Component: 200  -  total flux cleaned = 0.0319613 Jy
! Total flux subtracted in 200 components = 0.0319613 Jy
! Clean residual min=-0.003236 max=0.004059 Jy/beam
! Clean residual mean=0.000212 rms=0.001000 Jy/beam
! Combined flux in latest and established models = 2.21041 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 98 components and 2.21041 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.779 mas, bmaj=11.17 mas, bpa=-2.952 degrees
! Estimated noise=603.532 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00647389 Jy
! Component: 100  -  total flux cleaned = 0.0111179 Jy
! Component: 150  -  total flux cleaned = 0.0146574 Jy
! Component: 200  -  total flux cleaned = 0.0170906 Jy
! Total flux subtracted in 200 components = 0.0170906 Jy
! Clean residual min=-0.003072 max=0.002794 Jy/beam
! Clean residual mean=0.000111 rms=0.000923 Jy/beam
! Combined flux in latest and established models = 2.2275 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.00142005 Jy
! Component: 100  -  total flux cleaned = 0.00224907 Jy
! Component: 150  -  total flux cleaned = 0.00271086 Jy
! Component: 200  -  total flux cleaned = 0.00317787 Jy
! Total flux subtracted in 200 components = 0.00317787 Jy
! Clean residual min=-0.002835 max=0.002669 Jy/beam
! Clean residual mean=0.000042 rms=0.000813 Jy/beam
! Combined flux in latest and established models = 2.23068 Jy
! Adding 124 model components to the UV plane model.
! The established model now contains 214 components and 2.23068 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.29 mas, bmaj=6.953 mas, bpa=-8.43 degrees
! Estimated noise=491.706 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00234539 Jy
! Component: 100  -  total flux cleaned = -0.00223466 Jy
! Component: 150  -  total flux cleaned = -0.00203519 Jy
! Component: 200  -  total flux cleaned = -0.00166597 Jy
! Total flux subtracted in 200 components = -0.00166597 Jy
! Clean residual min=-0.002916 max=0.002709 Jy/beam
! Clean residual mean=0.000034 rms=0.000681 Jy/beam
! Combined flux in latest and established models = 2.22901 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 240 components and 2.22901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185651Jy  sigma=0.001128
! Fit after  self-cal, rms=0.185282Jy  sigma=0.001128
wmodel J0339-0146_S_1999_05_10_pus_map.mod
! Writing 240 model components to file: J0339-0146_S_1999_05_10_pus_map.mod
wobs J0339-0146_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0339-0146_S_1999_05_10_pus_uvs.fits
wwins J0339-0146_S_1999_05_10_pus_map.win
! wwins: Wrote 5 windows to J0339-0146_S_1999_05_10_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.000244301 Jy
! Component: 100  -  total flux cleaned = -0.000332092 Jy
! Component: 150  -  total flux cleaned = -0.000415475 Jy
! Component: 200  -  total flux cleaned = -0.000253242 Jy
! Component: 250  -  total flux cleaned = -0.000291689 Jy
! Component: 300  -  total flux cleaned = -0.000290671 Jy
! Component: 350  -  total flux cleaned = -0.000326493 Jy
! Component: 400  -  total flux cleaned = -0.000326442 Jy
! Component: 450  -  total flux cleaned = -0.000362071 Jy
! Component: 500  -  total flux cleaned = -0.000430966 Jy
! Component: 550  -  total flux cleaned = -0.000397326 Jy
! Component: 600  -  total flux cleaned = -0.000364358 Jy
! Component: 650  -  total flux cleaned = -0.000299092 Jy
! Component: 700  -  total flux cleaned = -0.000363423 Jy
! Component: 750  -  total flux cleaned = -0.000268072 Jy
! Component: 800  -  total flux cleaned = -0.000268122 Jy
! Component: 850  -  total flux cleaned = -0.000206315 Jy
! Component: 900  -  total flux cleaned = -8.50385e-05 Jy
! Component: 950  -  total flux cleaned = -5.53225e-05 Jy
! Component: 1000  -  total flux cleaned = 3.37888e-05 Jy
! Component: 1050  -  total flux cleaned = 9.24509e-05 Jy
! Component: 1100  -  total flux cleaned = 0.000208327 Jy
! Component: 1150  -  total flux cleaned = 0.000208057 Jy
! Component: 1200  -  total flux cleaned = 0.000264738 Jy
! Component: 1250  -  total flux cleaned = 0.000320993 Jy
! Component: 1300  -  total flux cleaned = 0.00037676 Jy
! Component: 1350  -  total flux cleaned = 0.000404577 Jy
! Component: 1400  -  total flux cleaned = 0.000513997 Jy
! Component: 1450  -  total flux cleaned = 0.000540977 Jy
! Component: 1500  -  total flux cleaned = 0.000568036 Jy
! Component: 1550  -  total flux cleaned = 0.000621634 Jy
! Component: 1600  -  total flux cleaned = 0.00067504 Jy
! Component: 1650  -  total flux cleaned = 0.000754199 Jy
! Component: 1700  -  total flux cleaned = 0.000780205 Jy
! Component: 1750  -  total flux cleaned = 0.000883986 Jy
! Component: 1800  -  total flux cleaned = 0.000884156 Jy
! Component: 1850  -  total flux cleaned = 0.00101205 Jy
! Component: 1900  -  total flux cleaned = 0.00106247 Jy
! Component: 1950  -  total flux cleaned = 0.00108738 Jy
! Component: 2000  -  total flux cleaned = 0.00118743 Jy
! Total flux subtracted in 2048 components = 0.0012369 Jy
! Clean residual min=-0.001598 max=0.001659 Jy/beam
! Clean residual mean=0.000022 rms=0.000483 Jy/beam
! Combined flux in latest and established models = 2.23025 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 377 components and 2.23025 Jy
![Exited script file: muppet]
wmap "J0339-0146_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.29 x 6.953 at -8.43 degrees (North through East)
! Clean map  min=-0.0027351  max=1.6974 Jy/beam
! Writing clean map to FITS file: J0339-0146_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.69741 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00048354 
device "J0339-0146_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0339-0146_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.085461 0.085461 0.170922 0.341844 0.683688 1.36738 2.73475 5.4695 10.939 21.878 43.756 87.512
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.697 
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.29 x 6.953 at -8.43 degrees (North through East)
! Clean map  min=-0.0027351  max=1.6974 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0339-0146_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0339-0146_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0339-0146_S_1999_05_10_pus_uvs.log closed on Tue Jan 22 14:23:56 2008