! Started logfile: J1507-1652_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:25:30 2008
obs J1507-1652_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1507-1652_S_2001_10_29_pus_uva.fits
! AN table 1: 114 integrations on 153 of 153 possible baselines.
! AN table 2: 86 integrations on 153 of 153 possible baselines.
! AN table 3: 158 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.058075 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1507-1652
! 
! 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 12724 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 J1507-1652_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 1584 telescope corrections were flagged in sub-array 1.
!  A total of 1112 telescope corrections were flagged in sub-array 2.
!  A total of 2450 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1584 telescope corrections were flagged in sub-array 1.
!  A total of 1112 telescope corrections were flagged in sub-array 2.
!  A total of 2450 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1584 telescope corrections were flagged in sub-array 1.
!  A total of 1112 telescope corrections were flagged in sub-array 2.
!  A total of 2450 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1584 telescope corrections were flagged in sub-array 1.
!  A total of 1159 telescope corrections were flagged in sub-array 2.
!  A total of 2674 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.793626Jy  sigma=0.012162
! Fit after  self-cal, rms=1.324489Jy  sigma=0.008693
! 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.898 mas, bmaj=4.029 mas, bpa=7.219 degrees
! Estimated noise=1915.31 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.38604 Jy
! Component: 100  -  total flux cleaned = 1.90126 Jy
! Total flux subtracted in 100 components = 1.90126 Jy
! Clean residual min=-0.075463 max=0.239550 Jy/beam
! Clean residual mean=0.001118 rms=0.026100 Jy/beam
! Combined flux in latest and established models = 1.90126 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 1.90126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.719084Jy  sigma=0.004117
! Fit after  self-cal, rms=0.716820Jy  sigma=0.004103
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.273273 Jy
! Component: 100  -  total flux cleaned = 0.427872 Jy
! Total flux subtracted in 100 components = 0.427872 Jy
! Clean residual min=-0.046132 max=0.080597 Jy/beam
! Clean residual mean=0.000165 rms=0.013548 Jy/beam
! Combined flux in latest and established models = 2.32913 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 30 components and 2.32913 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.536323Jy  sigma=0.002460
! Fit after  self-cal, rms=0.535179Jy  sigma=0.002448
! Inverting map 
! Added new window around map position (2, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.101342 Jy
! Component: 100  -  total flux cleaned = 0.167921 Jy
! Total flux subtracted in 100 components = 0.167921 Jy
! Clean residual min=-0.035397 max=0.049393 Jy/beam
! Clean residual mean=-0.000194 rms=0.010381 Jy/beam
! Combined flux in latest and established models = 2.49705 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 40 components and 2.49705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.501204Jy  sigma=0.002062
! Fit after  self-cal, rms=0.501003Jy  sigma=0.002059
! 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.871 mas, bmaj=5.092 mas, bpa=5.346 degrees
! Estimated noise=999.717 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.0827612 Jy
! Component: 100  -  total flux cleaned = 0.124188 Jy
! Component: 150  -  total flux cleaned = 0.146114 Jy
! Component: 200  -  total flux cleaned = 0.150248 Jy
! Total flux subtracted in 200 components = 0.150248 Jy
! Clean residual min=-0.023158 max=0.035365 Jy/beam
! Clean residual mean=0.002323 rms=0.007418 Jy/beam
! Combined flux in latest and established models = 2.6473 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 63 components and 2.6473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.488964Jy  sigma=0.001897
! Fit after  self-cal, rms=0.488868Jy  sigma=0.001896
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.93     KK        1.00*    KP        0.99     LA        0.94     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        0.96     
!   OV        0.95     PT        0.95     SC        0.98     TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.92     
!   HN        0.98     KK        1.00*    KP        1.02     LA        1.00*    
!   MA        2.00     MC        1.03     MK        1.00*    NL        0.98     
!   OV        1.00*    PT        1.01     SC        0.98     TS        1.00*    
!   WF        0.78     WZ        1.10     
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        0.89     
!   HN        1.00*    KK        0.99     KP        1.01     LA        1.01     
!   MA        1.46     MC        1.04     MK        0.98     NL        1.00     
!   OV        1.00     PT        1.02     SC        1.10     TS        1.00*    
!   WF        1.00*    WZ        1.12     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.00*    KP        1.10     LA        0.92     
!   MA        1.00*    MC        1.00*    MK        1.08     NL        0.98     
!   OV        0.98     PT        0.93     SC        0.98     TS        1.00*    
!   WF        0.99     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.96     
!   HN        0.99     KK        1.00*    KP        1.07     LA        1.00*    
!   MA        3.67     MC        1.00     MK        1.00*    NL        0.99     
!   OV        1.00*    PT        1.00     SC        1.00     TS        1.00*    
!   WF        0.97     WZ        1.08     
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        0.91     
!   HN        1.00*    KK        0.98     KP        0.99     LA        0.98     
!   MA        1.73     MC        0.93     MK        1.00     NL        1.02     
!   OV        1.02     PT        1.00     SC        1.03     TS        1.00*    
!   WF        1.00*    WZ        1.11     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        0.98     LA        0.92     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.98     
!   OV        1.00     PT        0.95     SC        0.99     TS        1.00*    
!   WF        1.34     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.12     
!   HN        0.99     KK        1.00*    KP        1.03     LA        1.00*    
!   MA        1.12     MC        1.16     MK        1.00*    NL        1.01     
!   OV        1.00*    PT        1.03     SC        1.00     TS        1.00*    
!   WF        1.01     WZ        1.10     
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        0.96     
!   HN        1.00*    KK        0.99     KP        1.00     LA        1.00     
!   MA        1.29     MC        0.99     MK        0.95     NL        1.00     
!   OV        1.02     PT        1.02     SC        1.07     TS        1.00*    
!   WF        1.00*    WZ        1.07     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        0.99     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.07     NL        1.03     
!   OV        0.99     PT        0.86     SC        1.00     TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.03     
!   HN        1.00     KK        1.00*    KP        1.03     LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.04     
!   OV        1.00*    PT        1.03     SC        1.01     TS        1.00*    
!   WF        1.00     WZ        1.06     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.01     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.04     
!   OV        1.01     PT        1.01     SC        1.06     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.488868Jy  sigma=0.001896
! Fit after  self-cal, rms=0.674679Jy  sigma=0.001601
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.896 mas, bmaj=5.993 mas, bpa=3.872 degrees
! Estimated noise=1029.25 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.00633056 Jy
! Component: 100  -  total flux cleaned = 0.00597475 Jy
! Component: 150  -  total flux cleaned = 0.0056437 Jy
! Component: 200  -  total flux cleaned = 0.00534649 Jy
! Total flux subtracted in 200 components = 0.00534649 Jy
! Clean residual min=-0.010758 max=0.012536 Jy/beam
! Clean residual mean=0.001236 rms=0.002896 Jy/beam
! Combined flux in latest and established models = 2.65265 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 70 components and 2.65265 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.674274Jy  sigma=0.001595
! Fit after  self-cal, rms=0.675195Jy  sigma=0.001594
! 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.675195Jy  sigma=0.001594
! Fit after  self-cal, rms=0.682340Jy  sigma=0.001593
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.893 mas, bmaj=5.981 mas, bpa=3.999 degrees
! Estimated noise=1027.6 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0030224 Jy
! Component: 100  -  total flux cleaned = 0.00273693 Jy
! Component: 150  -  total flux cleaned = 0.00249202 Jy
! Component: 200  -  total flux cleaned = 0.00225814 Jy
! Total flux subtracted in 200 components = 0.00225814 Jy
! Clean residual min=-0.009064 max=0.012128 Jy/beam
! Clean residual mean=0.001216 rms=0.002753 Jy/beam
! Combined flux in latest and established models = 2.65491 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 72 components and 2.65491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.682051Jy  sigma=0.001590
! Fit after  self-cal, rms=0.682019Jy  sigma=0.001590
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, 49).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101316 Jy
! Component: 100  -  total flux cleaned = 0.0129043 Jy
! Component: 150  -  total flux cleaned = 0.0139831 Jy
! Component: 200  -  total flux cleaned = 0.0141778 Jy
! Total flux subtracted in 200 components = 0.0141778 Jy
! Clean residual min=-0.007799 max=0.009437 Jy/beam
! Clean residual mean=0.000932 rms=0.002400 Jy/beam
! Combined flux in latest and established models = 2.66909 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 87 components and 2.66909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.681693Jy  sigma=0.001586
! Fit after  self-cal, rms=0.681672Jy  sigma=0.001586
! 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.681672Jy  sigma=0.001586
! Fit after  self-cal, rms=0.680358Jy  sigma=0.001586
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.892 mas, bmaj=5.971 mas, bpa=4.112 degrees
! Estimated noise=1026.56 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0020723 Jy
! Component: 100  -  total flux cleaned = 0.00269881 Jy
! Component: 150  -  total flux cleaned = 0.0032564 Jy
! Component: 200  -  total flux cleaned = 0.0037741 Jy
! Total flux subtracted in 200 components = 0.0037741 Jy
! Clean residual min=-0.007331 max=0.009132 Jy/beam
! Clean residual mean=0.000935 rms=0.002320 Jy/beam
! Combined flux in latest and established models = 2.67286 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 91 components and 2.67286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.680155Jy  sigma=0.001584
! Fit after  self-cal, rms=0.680128Jy  sigma=0.001584
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.00027837 Jy
! Component: 100  -  total flux cleaned = 0.00028029 Jy
! Component: 150  -  total flux cleaned = 0.000429115 Jy
! Component: 200  -  total flux cleaned = 0.000572001 Jy
! Total flux subtracted in 200 components = 0.000572001 Jy
! Clean residual min=-0.007319 max=0.008918 Jy/beam
! Clean residual mean=0.000924 rms=0.002272 Jy/beam
! Combined flux in latest and established models = 2.67343 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 96 components and 2.67343 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.679986Jy  sigma=0.001583
! Fit after  self-cal, rms=0.679969Jy  sigma=0.001583
! 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.679969Jy  sigma=0.001583
! Fit after  self-cal, rms=0.679527Jy  sigma=0.001583
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.601 mas, bmaj=11.41 mas, bpa=1.379 degrees
! Estimated noise=1341.03 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000982184 Jy
! Component: 100  -  total flux cleaned = 0.00230148 Jy
! Component: 150  -  total flux cleaned = 0.00322372 Jy
! Component: 200  -  total flux cleaned = 0.00387963 Jy
! Total flux subtracted in 200 components = 0.00387963 Jy
! Clean residual min=-0.008421 max=0.010393 Jy/beam
! Clean residual mean=0.002181 rms=0.003085 Jy/beam
! Combined flux in latest and established models = 2.67731 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 113 components and 2.67731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.679541Jy  sigma=0.001583
! Fit after  self-cal, rms=0.679544Jy  sigma=0.001583
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.000126803 Jy
! Component: 100  -  total flux cleaned = 0.000203543 Jy
! Component: 150  -  total flux cleaned = 0.000479334 Jy
! Component: 200  -  total flux cleaned = 0.000634129 Jy
! Total flux subtracted in 200 components = 0.000634129 Jy
! Clean residual min=-0.008012 max=0.010058 Jy/beam
! Clean residual mean=0.002142 rms=0.003000 Jy/beam
! Combined flux in latest and established models = 2.67794 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 123 components and 2.67794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.679575Jy  sigma=0.001583
! Fit after  self-cal, rms=0.679571Jy  sigma=0.001583
! 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.891 mas, bmaj=5.967 mas, bpa=4.186 degrees
! Estimated noise=1026.18 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.891 x 5.967 at 4.186 degrees (North through East)
! Clean map  min=-0.0077476  max=1.9425 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.679571Jy  sigma=0.001583
! Fit after  self-cal, rms=0.505742Jy  sigma=0.001219
! Inverting map and beam 
! Estimated beam: bmin=2.891 mas, bmaj=5.961 mas, bpa=4.127 degrees
! Estimated noise=1026.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.28266e-06 Jy
! Component: 100  -  total flux cleaned = -0.000363348 Jy
! Component: 150  -  total flux cleaned = -0.000698796 Jy
! Component: 200  -  total flux cleaned = -0.000848398 Jy
! Total flux subtracted in 200 components = -0.000848398 Jy
! Clean residual min=-0.005911 max=0.007772 Jy/beam
! Clean residual mean=0.000839 rms=0.001878 Jy/beam
! Combined flux in latest and established models = 2.6771 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 136 components and 2.6771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505592Jy  sigma=0.001217
! Fit after  self-cal, rms=0.505573Jy  sigma=0.001217
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.84146e-05 Jy
! Component: 100  -  total flux cleaned = -0.00019638 Jy
! Component: 150  -  total flux cleaned = -0.000197104 Jy
! Component: 200  -  total flux cleaned = -0.000559541 Jy
! Total flux subtracted in 200 components = -0.000559541 Jy
! Clean residual min=-0.005995 max=0.007479 Jy/beam
! Clean residual mean=0.000858 rms=0.001842 Jy/beam
! Combined flux in latest and established models = 2.67654 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 138 components and 2.67654 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505489Jy  sigma=0.001216
! Fit after  self-cal, rms=0.505482Jy  sigma=0.001216
! 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.505482Jy  sigma=0.001216
! Fit after  self-cal, rms=0.502095Jy  sigma=0.001216
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.942 mas, bmaj=3.976 mas, bpa=8.232 degrees
! Estimated noise=2046.29 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.44725 Jy
! Component: 100  -  total flux cleaned = 1.96556 Jy
! Component: 150  -  total flux cleaned = 2.22633 Jy
! Component: 200  -  total flux cleaned = 2.37228 Jy
! Total flux subtracted in 200 components = 2.37228 Jy
! Clean residual min=-0.034153 max=0.074232 Jy/beam
! Clean residual mean=0.000620 rms=0.009284 Jy/beam
! Combined flux in latest and established models = 2.37228 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 33 model components to the UV plane model.
! The established model now contains 33 components and 2.37228 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.891 mas, bmaj=5.956 mas, bpa=4.179 degrees
! Estimated noise=1026.08 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.13434 Jy
! Component: 100  -  total flux cleaned = 0.202876 Jy
! Component: 150  -  total flux cleaned = 0.240876 Jy
! Component: 200  -  total flux cleaned = 0.262447 Jy
! Total flux subtracted in 200 components = 0.262447 Jy
! Clean residual min=-0.008979 max=0.014481 Jy/beam
! Clean residual mean=0.001677 rms=0.002861 Jy/beam
! Combined flux in latest and established models = 2.63472 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 58 components and 2.63472 Jy
! Inverting map 
! Added new window around map position (0, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0146 Jy
! Component: 100  -  total flux cleaned = 0.0202093 Jy
! Component: 150  -  total flux cleaned = 0.0251588 Jy
! Component: 200  -  total flux cleaned = 0.0284657 Jy
! Total flux subtracted in 200 components = 0.0284657 Jy
! Clean residual min=-0.006660 max=0.009324 Jy/beam
! Clean residual mean=0.001085 rms=0.002103 Jy/beam
! Combined flux in latest and established models = 2.66319 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 78 components and 2.66319 Jy
! Inverting map 
! Added new window around map position (-7, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00877794 Jy
! Component: 100  -  total flux cleaned = 0.0105759 Jy
! Component: 150  -  total flux cleaned = 0.0121737 Jy
! Component: 200  -  total flux cleaned = 0.0134171 Jy
! Total flux subtracted in 200 components = 0.0134171 Jy
! Clean residual min=-0.006665 max=0.007845 Jy/beam
! Clean residual mean=0.000785 rms=0.001791 Jy/beam
! Combined flux in latest and established models = 2.67661 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 97 components and 2.67661 Jy
! Inverting map 
! Added new window around map position (38, -12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00762239 Jy
! Component: 100  -  total flux cleaned = 0.0110562 Jy
! Component: 150  -  total flux cleaned = 0.0128629 Jy
! Component: 200  -  total flux cleaned = 0.0135464 Jy
! Total flux subtracted in 200 components = 0.0135464 Jy
! Clean residual min=-0.006048 max=0.005698 Jy/beam
! Clean residual mean=0.000514 rms=0.001612 Jy/beam
! Combined flux in latest and established models = 2.69015 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 117 components and 2.69015 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=6.606 mas, bmaj=11.4 mas, bpa=1.341 degrees
! Estimated noise=1340.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00483055 Jy
! Component: 100  -  total flux cleaned = 0.0073201 Jy
! Component: 150  -  total flux cleaned = 0.00938226 Jy
! Component: 200  -  total flux cleaned = 0.0107783 Jy
! Total flux subtracted in 200 components = 0.0107783 Jy
! Clean residual min=-0.004909 max=0.006487 Jy/beam
! Clean residual mean=0.000764 rms=0.001977 Jy/beam
! Combined flux in latest and established models = 2.70093 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.000992333 Jy
! Component: 100  -  total flux cleaned = 0.00160919 Jy
! Component: 150  -  total flux cleaned = 0.00216813 Jy
! Component: 200  -  total flux cleaned = 0.00260405 Jy
! Total flux subtracted in 200 components = 0.00260405 Jy
! Clean residual min=-0.004773 max=0.006451 Jy/beam
! Clean residual mean=0.000631 rms=0.001909 Jy/beam
! Combined flux in latest and established models = 2.70354 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 158 components and 2.70354 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.891 mas, bmaj=5.956 mas, bpa=4.179 degrees
! Estimated noise=1026.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0010101 Jy
! Component: 100  -  total flux cleaned = -0.0013243 Jy
! Component: 150  -  total flux cleaned = -0.00175837 Jy
! Component: 200  -  total flux cleaned = -0.00203332 Jy
! Total flux subtracted in 200 components = -0.00203332 Jy
! Clean residual min=-0.005621 max=0.005132 Jy/beam
! Clean residual mean=0.000294 rms=0.001431 Jy/beam
! Combined flux in latest and established models = 2.7015 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 169 components and 2.7015 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.501324Jy  sigma=0.001212
! Fit after  self-cal, rms=0.501253Jy  sigma=0.001211
wmodel J1507-1652_S_2001_10_29_pus_map.mod
! Writing 169 model components to file: J1507-1652_S_2001_10_29_pus_map.mod
wobs J1507-1652_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1507-1652_S_2001_10_29_pus_uvs.fits
wwins J1507-1652_S_2001_10_29_pus_map.win
! wwins: Wrote 6 windows to J1507-1652_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.000437477 Jy
! Component: 100  -  total flux cleaned = 0.000899069 Jy
! Component: 150  -  total flux cleaned = 0.00150864 Jy
! Component: 200  -  total flux cleaned = 0.00184221 Jy
! Component: 250  -  total flux cleaned = 0.00192242 Jy
! Component: 300  -  total flux cleaned = 0.00200154 Jy
! Component: 350  -  total flux cleaned = 0.00215456 Jy
! Component: 400  -  total flux cleaned = 0.00222864 Jy
! Component: 450  -  total flux cleaned = 0.00244708 Jy
! Component: 500  -  total flux cleaned = 0.00280321 Jy
! Component: 550  -  total flux cleaned = 0.00301333 Jy
! Component: 600  -  total flux cleaned = 0.00328943 Jy
! Component: 650  -  total flux cleaned = 0.00342605 Jy
! Component: 700  -  total flux cleaned = 0.00376159 Jy
! Component: 750  -  total flux cleaned = 0.00396049 Jy
! Component: 800  -  total flux cleaned = 0.00428678 Jy
! Component: 850  -  total flux cleaned = 0.00441534 Jy
! Component: 900  -  total flux cleaned = 0.0046067 Jy
! Component: 950  -  total flux cleaned = 0.00485901 Jy
! Component: 1000  -  total flux cleaned = 0.00517 Jy
! Component: 1050  -  total flux cleaned = 0.00541581 Jy
! Component: 1100  -  total flux cleaned = 0.00559799 Jy
! Component: 1150  -  total flux cleaned = 0.00571802 Jy
! Component: 1200  -  total flux cleaned = 0.00577781 Jy
! Component: 1250  -  total flux cleaned = 0.0060139 Jy
! Component: 1300  -  total flux cleaned = 0.00613081 Jy
! Component: 1350  -  total flux cleaned = 0.00630464 Jy
! Component: 1400  -  total flux cleaned = 0.00653355 Jy
! Component: 1450  -  total flux cleaned = 0.00659003 Jy
! Component: 1500  -  total flux cleaned = 0.00675887 Jy
! Component: 1550  -  total flux cleaned = 0.00692591 Jy
! Component: 1600  -  total flux cleaned = 0.00703585 Jy
! Component: 1650  -  total flux cleaned = 0.00714483 Jy
! Component: 1700  -  total flux cleaned = 0.00719886 Jy
! Component: 1750  -  total flux cleaned = 0.00725308 Jy
! Component: 1800  -  total flux cleaned = 0.00746676 Jy
! Component: 1850  -  total flux cleaned = 0.00751977 Jy
! Component: 1900  -  total flux cleaned = 0.00762496 Jy
! Component: 1950  -  total flux cleaned = 0.00778124 Jy
! Component: 2000  -  total flux cleaned = 0.00788436 Jy
! Total flux subtracted in 2048 components = 0.00798671 Jy
! Clean residual min=-0.003248 max=0.002919 Jy/beam
! Clean residual mean=0.000137 rms=0.000931 Jy/beam
! Combined flux in latest and established models = 2.70949 Jy
keep
! Adding 116 model components to the UV plane model.
! The established model now contains 285 components and 2.70949 Jy
![Exited script file: muppet]
wmap "J1507-1652_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.891 x 5.956 at 4.179 degrees (North through East)
! Clean map  min=-0.0053544  max=1.9418 Jy/beam
! Writing clean map to FITS file: J1507-1652_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.94179 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000927396 
device "J1507-1652_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1507-1652_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.14328 0.14328 0.28656 0.57312 1.14624 2.29248 4.58496 9.16992 18.3398 36.6797 73.3593
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0027 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.941 
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.891 x 5.956 at 4.179 degrees (North through East)
! Clean map  min=-0.0053544  max=1.9418 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1507-1652_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1507-1652_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1507-1652_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:25:43 2008