! Started logfile: J0231+1322_S_1999_12_20_pus_uvs.log on Thu Dec 20 14:49:14 2007
obs J0231+1322_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0231+1322_S_1999_12_20_pus_uva.fits
! AN table 1: 30 integrations on 190 of 190 possible baselines.
! AN table 2: 101 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.114705 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0231+1322
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2298 lines of history.
! 
! Reading 11420 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 J0231+1322_S_1999_12_20_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 437 telescope corrections were flagged in sub-array 1.
!  A total of 1563 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 437 telescope corrections were flagged in sub-array 1.
!  A total of 1563 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 437 telescope corrections were flagged in sub-array 1.
!  A total of 1563 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 437 telescope corrections were flagged in sub-array 1.
!  A total of 1563 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.557761Jy  sigma=0.004342
! Fit after  self-cal, rms=0.268719Jy  sigma=0.002206
! 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.168 mas, bmaj=4.928 mas, bpa=-0.8055 degrees
! Estimated noise=1105.6 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.650711 Jy
! Component: 100  -  total flux cleaned = 0.832268 Jy
! Total flux subtracted in 100 components = 0.832268 Jy
! Clean residual min=-0.018203 max=0.077446 Jy/beam
! Clean residual mean=0.000695 rms=0.005958 Jy/beam
! Combined flux in latest and established models = 0.832268 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.832268 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237529Jy  sigma=0.001866
! Fit after  self-cal, rms=0.237267Jy  sigma=0.001865
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0820825 Jy
! Component: 100  -  total flux cleaned = 0.121983 Jy
! Total flux subtracted in 100 components = 0.121983 Jy
! Clean residual min=-0.011693 max=0.019556 Jy/beam
! Clean residual mean=0.000399 rms=0.003310 Jy/beam
! Combined flux in latest and established models = 0.954251 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 17 components and 0.954251 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198305Jy  sigma=0.001465
! Fit after  self-cal, rms=0.197950Jy  sigma=0.001462
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0241416 Jy
! Component: 100  -  total flux cleaned = 0.0391844 Jy
! Total flux subtracted in 100 components = 0.0391844 Jy
! Clean residual min=-0.010224 max=0.019944 Jy/beam
! Clean residual mean=0.000305 rms=0.002932 Jy/beam
! Combined flux in latest and established models = 0.993435 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 31 components and 0.993435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192931Jy  sigma=0.001403
! Fit after  self-cal, rms=0.192861Jy  sigma=0.001403
! Inverting map 
! Added new window around map position (6, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0189202 Jy
! Component: 100  -  total flux cleaned = 0.0301506 Jy
! Total flux subtracted in 100 components = 0.0301506 Jy
! Clean residual min=-0.009380 max=0.014639 Jy/beam
! Clean residual mean=0.000253 rms=0.002694 Jy/beam
! Combined flux in latest and established models = 1.02359 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 36 components and 1.02359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190010Jy  sigma=0.001371
! Fit after  self-cal, rms=0.189779Jy  sigma=0.001370
! 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.571 mas, bmaj=5.813 mas, bpa=-2.362 degrees
! Estimated noise=808.276 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.0165877 Jy
! Component: 100  -  total flux cleaned = 0.0268707 Jy
! Component: 150  -  total flux cleaned = 0.0336838 Jy
! Component: 200  -  total flux cleaned = 0.0383593 Jy
! Total flux subtracted in 200 components = 0.0383593 Jy
! Clean residual min=-0.008971 max=0.014160 Jy/beam
! Clean residual mean=0.000849 rms=0.002854 Jy/beam
! Combined flux in latest and established models = 1.06194 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 61 components and 1.06194 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188346Jy  sigma=0.001351
! Fit after  self-cal, rms=0.188267Jy  sigma=0.001350
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.96     GC        1.11     HH        1.00*    
!   HN        1.09     KK        1.00*    KP        1.03     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        1.00     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        0.98     NL        1.00     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.02     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.02     KP        1.03     LA        1.01     
!   MC        1.00*    MK        1.02     NY        1.07     ON        1.00*    
!   OV        0.99     PT        1.03     SC        1.07     TS        1.00     
!   WF        0.98     WZ        1.00*    GN        0.95     NL        1.05     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.07     HH        1.00*    
!   HN        1.17     KK        1.00*    KP        1.03     LA        0.97     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.97     PT        0.96     SC        1.00     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        0.98     NL        0.99     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.05     GC        1.01     HH        1.00*    
!   HN        1.04     KK        0.95     KP        1.01     LA        0.99     
!   MC        1.00*    MK        1.00     NY        1.04     ON        1.00*    
!   OV        0.97     PT        1.00     SC        1.07     TS        1.04     
!   WF        0.98     WZ        1.00*    GN        0.96     NL        1.03     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.08     HH        1.00*    
!   HN        1.07     KK        1.00*    KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        0.94     SC        1.01     TS        1.00*    
!   WF        0.97     WZ        1.00*    GN        1.01     NL        0.97     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        0.99     HH        1.00*    
!   HN        1.02     KK        0.98     KP        1.00     LA        1.01     
!   MC        1.00*    MK        0.99     NY        1.06     ON        1.00*    
!   OV        1.00     PT        0.95     SC        1.08     TS        0.99     
!   WF        0.99     WZ        1.00*    GN        0.96     NL        1.01     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.97     GC        1.09     HH        1.00*    
!   HN        1.17     KK        1.00*    KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.99     SC        1.02     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        0.97     NL        0.96     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.01     GC        0.99     HH        1.00*    
!   HN        1.00     KK        0.99     KP        1.01     LA        1.02     
!   MC        1.00*    MK        1.02     NY        1.00     ON        1.00*    
!   OV        0.98     PT        0.87     SC        1.09     TS        1.00     
!   WF        0.95     WZ        1.00*    GN        0.96     NL        1.01     
! 
! 
! Fit before self-cal, rms=0.188267Jy  sigma=0.001350
! Fit after  self-cal, rms=0.182873Jy  sigma=0.001289
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.602 mas, bmaj=5.859 mas, bpa=-2.491 degrees
! Estimated noise=810.091 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 (26, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0123459 Jy
! Component: 100  -  total flux cleaned = 0.0195338 Jy
! Component: 150  -  total flux cleaned = 0.0237138 Jy
! Component: 200  -  total flux cleaned = 0.0249134 Jy
! Total flux subtracted in 200 components = 0.0249134 Jy
! Clean residual min=-0.006310 max=0.008071 Jy/beam
! Clean residual mean=0.000679 rms=0.001948 Jy/beam
! Combined flux in latest and established models = 1.08686 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 93 components and 1.08686 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.181854Jy  sigma=0.001280
! Fit after  self-cal, rms=0.181864Jy  sigma=0.001280
! 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.181864Jy  sigma=0.001280
! Fit after  self-cal, rms=0.180525Jy  sigma=0.001253
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.605 mas, bmaj=5.863 mas, bpa=-2.478 degrees
! Estimated noise=810.028 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00662694 Jy
! Component: 100  -  total flux cleaned = 0.00995599 Jy
! Component: 150  -  total flux cleaned = 0.0111784 Jy
! Component: 200  -  total flux cleaned = 0.0123332 Jy
! Total flux subtracted in 200 components = 0.0123332 Jy
! Clean residual min=-0.004230 max=0.007377 Jy/beam
! Clean residual mean=0.000704 rms=0.001423 Jy/beam
! Combined flux in latest and established models = 1.09919 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 124 components and 1.09919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180171Jy  sigma=0.001250
! Fit after  self-cal, rms=0.180160Jy  sigma=0.001250
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 (15.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0073552 Jy
! Component: 100  -  total flux cleaned = 0.0111837 Jy
! Component: 150  -  total flux cleaned = 0.0119079 Jy
! Component: 200  -  total flux cleaned = 0.0125906 Jy
! Total flux subtracted in 200 components = 0.0125906 Jy
! Clean residual min=-0.004289 max=0.006257 Jy/beam
! Clean residual mean=0.000644 rms=0.001273 Jy/beam
! Combined flux in latest and established models = 1.11178 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 153 components and 1.11178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179795Jy  sigma=0.001247
! Fit after  self-cal, rms=0.179779Jy  sigma=0.001246
! Inverting map 
! Added new window around map position (10, 63.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00541348 Jy
! Component: 100  -  total flux cleaned = 0.00743249 Jy
! Component: 150  -  total flux cleaned = 0.00901869 Jy
! Component: 200  -  total flux cleaned = 0.0105325 Jy
! Total flux subtracted in 200 components = 0.0105325 Jy
! Clean residual min=-0.004272 max=0.004965 Jy/beam
! Clean residual mean=0.000613 rms=0.001225 Jy/beam
! Combined flux in latest and established models = 1.12231 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 169 components and 1.12231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179547Jy  sigma=0.001245
! Fit after  self-cal, rms=0.179534Jy  sigma=0.001244
! 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.179534Jy  sigma=0.001244
! Fit after  self-cal, rms=0.179379Jy  sigma=0.001243
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.606 mas, bmaj=5.863 mas, bpa=-2.517 degrees
! Estimated noise=809.838 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00271 Jy
! Component: 100  -  total flux cleaned = 0.00421302 Jy
! Component: 150  -  total flux cleaned = 0.0051452 Jy
! Component: 200  -  total flux cleaned = 0.0061184 Jy
! Total flux subtracted in 200 components = 0.0061184 Jy
! Clean residual min=-0.003491 max=0.004954 Jy/beam
! Clean residual mean=0.000572 rms=0.001144 Jy/beam
! Combined flux in latest and established models = 1.12843 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 177 components and 1.12843 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179269Jy  sigma=0.001242
! Fit after  self-cal, rms=0.179267Jy  sigma=0.001242
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 (32, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00499652 Jy
! Component: 100  -  total flux cleaned = 0.00794213 Jy
! Component: 150  -  total flux cleaned = 0.00967913 Jy
! Component: 200  -  total flux cleaned = 0.0104634 Jy
! Total flux subtracted in 200 components = 0.0104634 Jy
! Clean residual min=-0.003577 max=0.004164 Jy/beam
! Clean residual mean=0.000523 rms=0.001100 Jy/beam
! Combined flux in latest and established models = 1.1389 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 199 components and 1.1389 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179071Jy  sigma=0.001241
! Fit after  self-cal, rms=0.179067Jy  sigma=0.001241
! 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.179067Jy  sigma=0.001241
! Fit after  self-cal, rms=0.179087Jy  sigma=0.001240
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.94 mas, bmaj=9.718 mas, bpa=-10.91 degrees
! Estimated noise=1078.58 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00434389 Jy
! Component: 100  -  total flux cleaned = 0.00714571 Jy
! Component: 150  -  total flux cleaned = 0.00896724 Jy
! Component: 200  -  total flux cleaned = 0.00977589 Jy
! Total flux subtracted in 200 components = 0.00977589 Jy
! Clean residual min=-0.004611 max=0.006708 Jy/beam
! Clean residual mean=0.001203 rms=0.001715 Jy/beam
! Combined flux in latest and established models = 1.14867 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 231 components and 1.14867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179024Jy  sigma=0.001240
! Fit after  self-cal, rms=0.179027Jy  sigma=0.001240
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.0012876 Jy
! Component: 100  -  total flux cleaned = 0.00181385 Jy
! Component: 150  -  total flux cleaned = 0.0021732 Jy
! Component: 200  -  total flux cleaned = 0.0024055 Jy
! Total flux subtracted in 200 components = 0.0024055 Jy
! Clean residual min=-0.004595 max=0.006685 Jy/beam
! Clean residual mean=0.001182 rms=0.001734 Jy/beam
! Combined flux in latest and established models = 1.15108 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 237 components and 1.15108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179009Jy  sigma=0.001240
! Fit after  self-cal, rms=0.179008Jy  sigma=0.001240
! 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.608 mas, bmaj=5.863 mas, bpa=-2.535 degrees
! Estimated noise=809.642 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.608 x 5.863 at -2.535 degrees (North through East)
! Clean map  min=-0.0035329  max=0.86478 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.179008Jy  sigma=0.001240
! Fit after  self-cal, rms=0.172204Jy  sigma=0.001166
! Inverting map and beam 
! Estimated beam: bmin=2.608 mas, bmaj=5.859 mas, bpa=-2.55 degrees
! Estimated noise=809.583 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000544342 Jy
! Component: 100  -  total flux cleaned = -0.000750711 Jy
! Component: 150  -  total flux cleaned = -0.000871668 Jy
! Component: 200  -  total flux cleaned = -0.000872315 Jy
! Total flux subtracted in 200 components = -0.000872315 Jy
! Clean residual min=-0.003403 max=0.004043 Jy/beam
! Clean residual mean=0.000468 rms=0.001051 Jy/beam
! Combined flux in latest and established models = 1.15021 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 259 components and 1.15021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172159Jy  sigma=0.001166
! Fit after  self-cal, rms=0.172159Jy  sigma=0.001166
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000106416 Jy
! Component: 100  -  total flux cleaned = 0.000210048 Jy
! Component: 150  -  total flux cleaned = 0.000308932 Jy
! Component: 200  -  total flux cleaned = 0.00040258 Jy
! Total flux subtracted in 200 components = 0.00040258 Jy
! Clean residual min=-0.003388 max=0.004063 Jy/beam
! Clean residual mean=0.000466 rms=0.001046 Jy/beam
! Combined flux in latest and established models = 1.15061 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 267 components and 1.15061 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172131Jy  sigma=0.001165
! Fit after  self-cal, rms=0.172130Jy  sigma=0.001165
! 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.172130Jy  sigma=0.001165
! Fit after  self-cal, rms=0.172145Jy  sigma=0.001165
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.182 mas, bmaj=4.94 mas, bpa=-1.105 degrees
! Estimated noise=1110.67 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.650719 Jy
! Component: 100  -  total flux cleaned = 0.83316 Jy
! Component: 150  -  total flux cleaned = 0.914989 Jy
! Component: 200  -  total flux cleaned = 0.954601 Jy
! Total flux subtracted in 200 components = 0.954601 Jy
! Clean residual min=-0.006932 max=0.020310 Jy/beam
! Clean residual mean=0.000386 rms=0.002422 Jy/beam
! Combined flux in latest and established models = 0.954601 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.954601 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.609 mas, bmaj=5.859 mas, bpa=-2.57 degrees
! Estimated noise=809.587 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.0413935 Jy
! Component: 100  -  total flux cleaned = 0.0660742 Jy
! Component: 150  -  total flux cleaned = 0.0844476 Jy
! Component: 200  -  total flux cleaned = 0.0992353 Jy
! Total flux subtracted in 200 components = 0.0992353 Jy
! Clean residual min=-0.005197 max=0.010055 Jy/beam
! Clean residual mean=0.000960 rms=0.002192 Jy/beam
! Combined flux in latest and established models = 1.05384 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 76 components and 1.05384 Jy
! Inverting map 
! Added new window around map position (9, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0123792 Jy
! Component: 100  -  total flux cleaned = 0.0225813 Jy
! Component: 150  -  total flux cleaned = 0.0312863 Jy
! Component: 200  -  total flux cleaned = 0.0388501 Jy
! Total flux subtracted in 200 components = 0.0388501 Jy
! Clean residual min=-0.004202 max=0.005755 Jy/beam
! Clean residual mean=0.000753 rms=0.001464 Jy/beam
! Combined flux in latest and established models = 1.09269 Jy
! Adding 81 model components to the UV plane model.
! The established model now contains 145 components and 1.09269 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.937 mas, bmaj=9.715 mas, bpa=-11.02 degrees
! Estimated noise=1078.74 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133986 Jy
! Component: 100  -  total flux cleaned = 0.0231679 Jy
! Component: 150  -  total flux cleaned = 0.0307695 Jy
! Component: 200  -  total flux cleaned = 0.0368313 Jy
! Total flux subtracted in 200 components = 0.0368313 Jy
! Clean residual min=-0.004451 max=0.006379 Jy/beam
! Clean residual mean=0.001404 rms=0.001769 Jy/beam
! Combined flux in latest and established models = 1.12952 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.00490193 Jy
! Component: 100  -  total flux cleaned = 0.00889072 Jy
! Component: 150  -  total flux cleaned = 0.0121494 Jy
! Component: 200  -  total flux cleaned = 0.0148234 Jy
! Total flux subtracted in 200 components = 0.0148234 Jy
! Clean residual min=-0.004384 max=0.006105 Jy/beam
! Clean residual mean=0.001235 rms=0.001619 Jy/beam
! Combined flux in latest and established models = 1.14434 Jy
! Adding 155 model components to the UV plane model.
! The established model now contains 285 components and 1.14434 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.609 mas, bmaj=5.859 mas, bpa=-2.57 degrees
! Estimated noise=809.587 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00195092 Jy
! Component: 100  -  total flux cleaned = 0.00282909 Jy
! Component: 150  -  total flux cleaned = 0.00345085 Jy
! Component: 200  -  total flux cleaned = 0.00387881 Jy
! Total flux subtracted in 200 components = 0.00387881 Jy
! Clean residual min=-0.003406 max=0.004095 Jy/beam
! Clean residual mean=0.000479 rms=0.001026 Jy/beam
! Combined flux in latest and established models = 1.14822 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 305 components and 1.14822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172231Jy  sigma=0.001166
! Fit after  self-cal, rms=0.172191Jy  sigma=0.001165
wmodel J0231+1322_S_1999_12_20_pus_map.mod
! Writing 305 model components to file: J0231+1322_S_1999_12_20_pus_map.mod
wobs J0231+1322_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0231+1322_S_1999_12_20_pus_uvs.fits
wwins J0231+1322_S_1999_12_20_pus_map.win
! wwins: Wrote 7 windows to J0231+1322_S_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00182328 Jy
! Component: 100  -  total flux cleaned = 0.00331928 Jy
! Component: 150  -  total flux cleaned = 0.00475062 Jy
! Component: 200  -  total flux cleaned = 0.00618872 Jy
! Component: 250  -  total flux cleaned = 0.00751875 Jy
! Component: 300  -  total flux cleaned = 0.00875358 Jy
! Component: 350  -  total flux cleaned = 0.00995625 Jy
! Component: 400  -  total flux cleaned = 0.0109645 Jy
! Component: 450  -  total flux cleaned = 0.0120087 Jy
! Component: 500  -  total flux cleaned = 0.01298 Jy
! Component: 550  -  total flux cleaned = 0.0139347 Jy
! Component: 600  -  total flux cleaned = 0.0148226 Jy
! Component: 650  -  total flux cleaned = 0.0157492 Jy
! Component: 700  -  total flux cleaned = 0.0166115 Jy
! Component: 750  -  total flux cleaned = 0.0173627 Jy
! Component: 800  -  total flux cleaned = 0.0182541 Jy
! Component: 850  -  total flux cleaned = 0.019037 Jy
! Component: 900  -  total flux cleaned = 0.0198111 Jy
! Component: 950  -  total flux cleaned = 0.0205768 Jy
! Component: 1000  -  total flux cleaned = 0.0214288 Jy
! Component: 1050  -  total flux cleaned = 0.0222247 Jy
! Component: 1100  -  total flux cleaned = 0.0230124 Jy
! Component: 1150  -  total flux cleaned = 0.0237464 Jy
! Component: 1200  -  total flux cleaned = 0.0244733 Jy
! Component: 1250  -  total flux cleaned = 0.0251034 Jy
! Component: 1300  -  total flux cleaned = 0.0258609 Jy
! Component: 1350  -  total flux cleaned = 0.0265673 Jy
! Component: 1400  -  total flux cleaned = 0.0273981 Jy
! Component: 1450  -  total flux cleaned = 0.0280912 Jy
! Component: 1500  -  total flux cleaned = 0.028821 Jy
! Component: 1550  -  total flux cleaned = 0.0295017 Jy
! Component: 1600  -  total flux cleaned = 0.0301347 Jy
! Component: 1650  -  total flux cleaned = 0.0308455 Jy
! Component: 1700  -  total flux cleaned = 0.0314259 Jy
! Component: 1750  -  total flux cleaned = 0.0321658 Jy
! Component: 1800  -  total flux cleaned = 0.0328181 Jy
! Component: 1850  -  total flux cleaned = 0.0335052 Jy
! Component: 1900  -  total flux cleaned = 0.0341868 Jy
! Component: 1950  -  total flux cleaned = 0.0347836 Jy
! Component: 2000  -  total flux cleaned = 0.0354155 Jy
! Total flux subtracted in 2048 components = 0.0360428 Jy
! Clean residual min=-0.002187 max=0.002551 Jy/beam
! Clean residual mean=0.000328 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 1.18426 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 463 components and 1.18426 Jy
![Exited script file: muppet]
wmap "J0231+1322_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.609 x 5.859 at -2.57 degrees (North through East)
! Clean map  min=-0.0028442  max=0.86538 Jy/beam
! Writing clean map to FITS file: J0231+1322_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.865384 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00076358 
device "J0231+1322_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0231+1322_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.264708 0.264708 0.529416 1.05883 2.11767 4.23533 8.47066 16.9413 33.8826 67.7653
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.865 
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.609 x 5.859 at -2.57 degrees (North through East)
! Clean map  min=-0.0028442  max=0.86538 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0231+1322_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0231+1322_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0231+1322_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 14:49:39 2007