! Started logfile: J0325+2224_S_1999_12_20_pus_uvs.log on Thu Dec 20 14:52:00 2007
obs J0325+2224_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0325+2224_S_1999_12_20_pus_uva.fits
! AN table 1: 203 integrations on 190 of 190 possible baselines.
! AN table 2: 109 integrations on 190 of 190 possible baselines.
! AN table 3: 123 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.224005 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0325+2224
! 
! 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 74056 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 J0325+2224_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 2143 telescope corrections were flagged in sub-array 1.
!  A total of 1140 telescope corrections were flagged in sub-array 2.
!  A total of 1757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2076 telescope corrections were flagged in sub-array 1.
!  A total of 1140 telescope corrections were flagged in sub-array 2.
!  A total of 1757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2316 telescope corrections were flagged in sub-array 1.
!  A total of 1140 telescope corrections were flagged in sub-array 2.
!  A total of 1757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2081 telescope corrections were flagged in sub-array 1.
!  A total of 1140 telescope corrections were flagged in sub-array 2.
!  A total of 1757 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.996738Jy  sigma=0.007385
! Fit after  self-cal, rms=0.392171Jy  sigma=0.002221
! 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.986 mas, bmaj=3.276 mas, bpa=-0.05369 degrees
! Estimated noise=839.285 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.584181 Jy
! Component: 100  -  total flux cleaned = 0.729941 Jy
! Total flux subtracted in 100 components = 0.729941 Jy
! Clean residual min=-0.015881 max=0.061789 Jy/beam
! Clean residual mean=0.000292 rms=0.004986 Jy/beam
! Combined flux in latest and established models = 0.729941 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.729941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326708Jy  sigma=0.001783
! Fit after  self-cal, rms=0.326527Jy  sigma=0.001782
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0676917 Jy
! Component: 100  -  total flux cleaned = 0.103687 Jy
! Total flux subtracted in 100 components = 0.103687 Jy
! Clean residual min=-0.012569 max=0.026141 Jy/beam
! Clean residual mean=0.000184 rms=0.003174 Jy/beam
! Combined flux in latest and established models = 0.833628 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 19 components and 0.833628 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308373Jy  sigma=0.001499
! Fit after  self-cal, rms=0.308092Jy  sigma=0.001498
! Inverting map 
! Added new window around map position (3, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0281359 Jy
! Component: 100  -  total flux cleaned = 0.0465252 Jy
! Total flux subtracted in 100 components = 0.0465252 Jy
! Clean residual min=-0.010713 max=0.013425 Jy/beam
! Clean residual mean=0.000133 rms=0.002690 Jy/beam
! Combined flux in latest and established models = 0.880153 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 29 components and 0.880153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304563Jy  sigma=0.001436
! Fit after  self-cal, rms=0.304295Jy  sigma=0.001434
! 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.428 mas, bmaj=4.434 mas, bpa=-4.648 degrees
! Estimated noise=366.712 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.0234777 Jy
! Component: 100  -  total flux cleaned = 0.0363927 Jy
! Component: 150  -  total flux cleaned = 0.0441349 Jy
! Component: 200  -  total flux cleaned = 0.0489253 Jy
! Total flux subtracted in 200 components = 0.0489253 Jy
! Clean residual min=-0.008782 max=0.009661 Jy/beam
! Clean residual mean=-0.000235 rms=0.002226 Jy/beam
! Combined flux in latest and established models = 0.929078 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 52 components and 0.929078 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302987Jy  sigma=0.001405
! Fit after  self-cal, rms=0.302840Jy  sigma=0.001403
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        1.06     HH        0.98     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        0.96     
!   MC        0.99     MK        1.00*    NY        1.02     ON        1.02     
!   OV        1.01     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.04     WZ        0.94     GN        1.00*    NL        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.02     KP        1.06     LA        0.99     
!   MC        1.00*    MK        1.02     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.01     SC        1.05     TS        1.00*    
!   WF        1.04     WZ        1.00*    GN        1.01     NL        0.97     
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.96     GC        0.97     HH        1.00*    
!   HN        1.10     KK        1.01     KP        0.94     LA        0.96     
!   MC        1.00*    MK        1.00     NY        1.02     ON        1.00*    
!   OV        1.01     PT        0.98     SC        1.00*    TS        0.99     
!   WF        1.08     WZ        1.00*    GN        1.24     NL        0.98     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.04     HH        1.02     
!   HN        1.10     KK        1.00*    KP        1.00*    LA        0.96     
!   MC        1.22     MK        1.00*    NY        0.98     ON        1.00     
!   OV        0.99     PT        0.97     SC        1.01     TS        1.00*    
!   WF        1.02     WZ        0.96     GN        1.00*    NL        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        0.91     KP        1.01     LA        0.98     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        0.99     SC        1.04     TS        1.00*    
!   WF        1.04     WZ        1.00*    GN        1.00     NL        0.97     
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.02     GC        0.98     HH        1.00*    
!   HN        1.16     KK        0.95     KP        0.91     LA        0.95     
!   MC        1.00*    MK        0.99     NY        1.03     ON        1.00*    
!   OV        0.98     PT        0.95     SC        1.00*    TS        1.00     
!   WF        1.08     WZ        1.00*    GN        1.24     NL        0.97     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.06     HH        0.93     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.01     ON        1.00     
!   OV        1.01     PT        0.96     SC        1.02     TS        1.00*    
!   WF        1.03     WZ        0.98     GN        1.00*    NL        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        0.93     KP        0.99     LA        1.00     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.97     SC        1.06     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.01     NL        0.95     
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.99     GC        0.96     HH        1.00*    
!   HN        1.14     KK        0.99     KP        0.86     LA        0.98     
!   MC        1.00*    MK        0.96     NY        1.03     ON        1.00*    
!   OV        1.02     PT        0.96     SC        1.00*    TS        0.95     
!   WF        1.09     WZ        1.00*    GN        1.24     NL        0.95     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.98     GC        1.03     HH        1.01     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        1.00     
!   MC        1.22     MK        1.00*    NY        1.00     ON        0.99     
!   OV        0.97     PT        0.99     SC        1.02     TS        1.00*    
!   WF        1.04     WZ        0.98     GN        1.00*    NL        0.96     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        0.93     KP        1.00     LA        1.01     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.09     SC        1.04     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        0.99     NL        0.95     
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.89     FD        0.97     GC        0.97     HH        1.00*    
!   HN        1.10     KK        0.94     KP        0.93     LA        0.97     
!   MC        1.00*    MK        0.99     NY        1.01     ON        1.00*    
!   OV        0.97     PT        1.11     SC        1.00*    TS        0.97     
!   WF        1.09     WZ        1.00*    GN        1.23     NL        0.96     
! 
! 
! Fit before self-cal, rms=0.302840Jy  sigma=0.001403
! Fit after  self-cal, rms=0.310582Jy  sigma=0.001338
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.444 mas, bmaj=4.458 mas, bpa=-4.827 degrees
! Estimated noise=368.569 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (6, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00968291 Jy
! Component: 100  -  total flux cleaned = 0.0102475 Jy
! Component: 150  -  total flux cleaned = 0.0102415 Jy
! Component: 200  -  total flux cleaned = 0.0101329 Jy
! Total flux subtracted in 200 components = 0.0101329 Jy
! Clean residual min=-0.003783 max=0.005502 Jy/beam
! Clean residual mean=0.000153 rms=0.001064 Jy/beam
! Combined flux in latest and established models = 0.939211 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 69 components and 0.939211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310137Jy  sigma=0.001335
! Fit after  self-cal, rms=0.310231Jy  sigma=0.001334
! Inverting map 
! Added new window around map position (16, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00503176 Jy
! Component: 100  -  total flux cleaned = 0.00650705 Jy
! Component: 150  -  total flux cleaned = 0.00670945 Jy
! Component: 200  -  total flux cleaned = 0.00670818 Jy
! Total flux subtracted in 200 components = 0.00670818 Jy
! Clean residual min=-0.003602 max=0.003994 Jy/beam
! Clean residual mean=0.000087 rms=0.000972 Jy/beam
! Combined flux in latest and established models = 0.945919 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 90 components and 0.945919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310077Jy  sigma=0.001333
! Fit after  self-cal, rms=0.310064Jy  sigma=0.001333
! 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.310064Jy  sigma=0.001333
! Fit after  self-cal, rms=0.311609Jy  sigma=0.001318
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.459 mas, bmaj=4.451 mas, bpa=-4.945 degrees
! Estimated noise=369.022 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.42584e-05 Jy
! Component: 100  -  total flux cleaned = 0.000388553 Jy
! Component: 150  -  total flux cleaned = 0.00055154 Jy
! Component: 200  -  total flux cleaned = 0.000767232 Jy
! Total flux subtracted in 200 components = 0.000767232 Jy
! Clean residual min=-0.003246 max=0.002755 Jy/beam
! Clean residual mean=0.000062 rms=0.000671 Jy/beam
! Combined flux in latest and established models = 0.946686 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 100 components and 0.946686 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311528Jy  sigma=0.001317
! Fit after  self-cal, rms=0.311694Jy  sigma=0.001317
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.000390403 Jy
! Component: 100  -  total flux cleaned = 0.00070883 Jy
! Component: 150  -  total flux cleaned = 0.000992074 Jy
! Component: 200  -  total flux cleaned = 0.00129859 Jy
! Total flux subtracted in 200 components = 0.00129859 Jy
! Clean residual min=-0.003139 max=0.002640 Jy/beam
! Clean residual mean=0.000048 rms=0.000658 Jy/beam
! Combined flux in latest and established models = 0.947985 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 109 components and 0.947985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311657Jy  sigma=0.001317
! Fit after  self-cal, rms=0.311653Jy  sigma=0.001317
! 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.311653Jy  sigma=0.001317
! Fit after  self-cal, rms=0.312336Jy  sigma=0.001316
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.464 mas, bmaj=4.451 mas, bpa=-4.955 degrees
! Estimated noise=369.21 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000331144 Jy
! Component: 100  -  total flux cleaned = -0.000193096 Jy
! Component: 150  -  total flux cleaned = -7.39099e-05 Jy
! Component: 200  -  total flux cleaned = 0.000183687 Jy
! Total flux subtracted in 200 components = 0.000183687 Jy
! Clean residual min=-0.002858 max=0.002527 Jy/beam
! Clean residual mean=0.000039 rms=0.000632 Jy/beam
! Combined flux in latest and established models = 0.948169 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 115 components and 0.948169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312292Jy  sigma=0.001316
! Fit after  self-cal, rms=0.312294Jy  sigma=0.001316
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.000251673 Jy
! Component: 100  -  total flux cleaned = 0.00047788 Jy
! Component: 150  -  total flux cleaned = 0.000642398 Jy
! Component: 200  -  total flux cleaned = 0.000758275 Jy
! Total flux subtracted in 200 components = 0.000758275 Jy
! Clean residual min=-0.002819 max=0.002482 Jy/beam
! Clean residual mean=0.000032 rms=0.000625 Jy/beam
! Combined flux in latest and established models = 0.948927 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 123 components and 0.948927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312274Jy  sigma=0.001316
! Fit after  self-cal, rms=0.312274Jy  sigma=0.001316
! 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.312274Jy  sigma=0.001316
! Fit after  self-cal, rms=0.312839Jy  sigma=0.001316
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.933 mas, bmaj=9.16 mas, bpa=-15.45 degrees
! Estimated noise=477.307 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000794566 Jy
! Component: 100  -  total flux cleaned = 0.00100127 Jy
! Component: 150  -  total flux cleaned = 0.00100297 Jy
! Component: 200  -  total flux cleaned = 0.000982096 Jy
! Total flux subtracted in 200 components = 0.000982096 Jy
! Clean residual min=-0.002876 max=0.003222 Jy/beam
! Clean residual mean=0.000054 rms=0.000823 Jy/beam
! Combined flux in latest and established models = 0.949909 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 141 components and 0.949909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312826Jy  sigma=0.001315
! Fit after  self-cal, rms=0.312823Jy  sigma=0.001315
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.000133436 Jy
! Component: 100  -  total flux cleaned = 0.000159173 Jy
! Component: 150  -  total flux cleaned = 0.000195536 Jy
! Component: 200  -  total flux cleaned = 0.000195006 Jy
! Total flux subtracted in 200 components = 0.000195006 Jy
! Clean residual min=-0.002849 max=0.003151 Jy/beam
! Clean residual mean=0.000050 rms=0.000822 Jy/beam
! Combined flux in latest and established models = 0.950104 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 150 components and 0.950104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312818Jy  sigma=0.001315
! Fit after  self-cal, rms=0.312819Jy  sigma=0.001315
! 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.468 mas, bmaj=4.451 mas, bpa=-4.969 degrees
! Estimated noise=369.436 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.468 x 4.451 at -4.969 degrees (North through East)
! Clean map  min=-0.0023334  max=0.77752 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.312819Jy  sigma=0.001315
! Fit after  self-cal, rms=0.429262Jy  sigma=0.001215
! Inverting map and beam 
! Estimated beam: bmin=2.47 mas, bmaj=4.456 mas, bpa=-4.984 degrees
! Estimated noise=369.113 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000841236 Jy
! Component: 100  -  total flux cleaned = -0.000890011 Jy
! Component: 150  -  total flux cleaned = -0.00093403 Jy
! Component: 200  -  total flux cleaned = -0.000975082 Jy
! Total flux subtracted in 200 components = -0.000975082 Jy
! Clean residual min=-0.002366 max=0.001983 Jy/beam
! Clean residual mean=0.000018 rms=0.000515 Jy/beam
! Combined flux in latest and established models = 0.949129 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 160 components and 0.949129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429238Jy  sigma=0.001215
! Fit after  self-cal, rms=0.429240Jy  sigma=0.001215
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.473e-05 Jy
! Component: 100  -  total flux cleaned = 3.65296e-05 Jy
! Component: 150  -  total flux cleaned = -3.73153e-07 Jy
! Component: 200  -  total flux cleaned = -0.000104576 Jy
! Total flux subtracted in 200 components = -0.000104576 Jy
! Clean residual min=-0.002350 max=0.001950 Jy/beam
! Clean residual mean=0.000018 rms=0.000511 Jy/beam
! Combined flux in latest and established models = 0.949025 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 165 components and 0.949024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429232Jy  sigma=0.001215
! Fit after  self-cal, rms=0.429229Jy  sigma=0.001215
! 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.429229Jy  sigma=0.001215
! Fit after  self-cal, rms=0.429870Jy  sigma=0.001215
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.009 mas, bmaj=3.296 mas, bpa=-0.3947 degrees
! Estimated noise=846.874 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.588115 Jy
! Component: 100  -  total flux cleaned = 0.73243 Jy
! Component: 150  -  total flux cleaned = 0.797148 Jy
! Component: 200  -  total flux cleaned = 0.835509 Jy
! Total flux subtracted in 200 components = 0.835509 Jy
! Clean residual min=-0.007256 max=0.020722 Jy/beam
! Clean residual mean=0.000136 rms=0.002132 Jy/beam
! Combined flux in latest and established models = 0.835509 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.835509 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.473 mas, bmaj=4.458 mas, bpa=-4.993 degrees
! Estimated noise=369.065 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.041053 Jy
! Component: 100  -  total flux cleaned = 0.0632508 Jy
! Component: 150  -  total flux cleaned = 0.0763121 Jy
! Component: 200  -  total flux cleaned = 0.0847918 Jy
! Total flux subtracted in 200 components = 0.0847918 Jy
! Clean residual min=-0.002241 max=0.005514 Jy/beam
! Clean residual mean=0.000281 rms=0.000865 Jy/beam
! Combined flux in latest and established models = 0.920301 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 50 components and 0.920301 Jy
! Inverting map 
! Added new window around map position (10.5, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00636726 Jy
! Component: 100  -  total flux cleaned = 0.0111296 Jy
! Component: 150  -  total flux cleaned = 0.0148615 Jy
! Component: 200  -  total flux cleaned = 0.0178533 Jy
! Total flux subtracted in 200 components = 0.0178533 Jy
! Clean residual min=-0.001990 max=0.002301 Jy/beam
! Clean residual mean=0.000113 rms=0.000558 Jy/beam
! Combined flux in latest and established models = 0.938154 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 84 components and 0.938154 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.933 mas, bmaj=9.165 mas, bpa=-15.54 degrees
! Estimated noise=475.58 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00386871 Jy
! Component: 100  -  total flux cleaned = 0.00610075 Jy
! Component: 150  -  total flux cleaned = 0.00748515 Jy
! Component: 200  -  total flux cleaned = 0.00836474 Jy
! Total flux subtracted in 200 components = 0.00836474 Jy
! Clean residual min=-0.002356 max=0.002081 Jy/beam
! Clean residual mean=0.000095 rms=0.000598 Jy/beam
! Combined flux in latest and established models = 0.946519 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.000569674 Jy
! Component: 100  -  total flux cleaned = 0.000766432 Jy
! Component: 150  -  total flux cleaned = 0.000871833 Jy
! Component: 200  -  total flux cleaned = 0.000917008 Jy
! Total flux subtracted in 200 components = 0.000917008 Jy
! Clean residual min=-0.002365 max=0.002082 Jy/beam
! Clean residual mean=0.000072 rms=0.000596 Jy/beam
! Combined flux in latest and established models = 0.947436 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 133 components and 0.947436 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.473 mas, bmaj=4.458 mas, bpa=-4.993 degrees
! Estimated noise=369.065 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000352794 Jy
! Component: 100  -  total flux cleaned = -0.000466111 Jy
! Component: 150  -  total flux cleaned = -0.00036659 Jy
! Component: 200  -  total flux cleaned = -0.000225808 Jy
! Total flux subtracted in 200 components = -0.000225808 Jy
! Clean residual min=-0.002066 max=0.002163 Jy/beam
! Clean residual mean=0.000028 rms=0.000497 Jy/beam
! Combined flux in latest and established models = 0.94721 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 145 components and 0.94721 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429897Jy  sigma=0.001215
! Fit after  self-cal, rms=0.429876Jy  sigma=0.001215
wmodel J0325+2224_S_1999_12_20_pus_map.mod
! Writing 145 model components to file: J0325+2224_S_1999_12_20_pus_map.mod
wobs J0325+2224_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0325+2224_S_1999_12_20_pus_uvs.fits
wwins J0325+2224_S_1999_12_20_pus_map.win
! wwins: Wrote 5 windows to J0325+2224_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.00042207 Jy
! Component: 100  -  total flux cleaned = 0.000951886 Jy
! Component: 150  -  total flux cleaned = 0.00135453 Jy
! Component: 200  -  total flux cleaned = 0.00164533 Jy
! Component: 250  -  total flux cleaned = 0.00202129 Jy
! Component: 300  -  total flux cleaned = 0.00226516 Jy
! Component: 350  -  total flux cleaned = 0.00247381 Jy
! Component: 400  -  total flux cleaned = 0.00259018 Jy
! Component: 450  -  total flux cleaned = 0.00273322 Jy
! Component: 500  -  total flux cleaned = 0.00290203 Jy
! Component: 550  -  total flux cleaned = 0.0030954 Jy
! Component: 600  -  total flux cleaned = 0.00323153 Jy
! Component: 650  -  total flux cleaned = 0.00336598 Jy
! Component: 700  -  total flux cleaned = 0.00352427 Jy
! Component: 750  -  total flux cleaned = 0.00357609 Jy
! Component: 800  -  total flux cleaned = 0.00362773 Jy
! Component: 850  -  total flux cleaned = 0.00370372 Jy
! Component: 900  -  total flux cleaned = 0.00367851 Jy
! Component: 950  -  total flux cleaned = 0.00367845 Jy
! Component: 1000  -  total flux cleaned = 0.00365389 Jy
! Component: 1050  -  total flux cleaned = 0.00365357 Jy
! Component: 1100  -  total flux cleaned = 0.00365339 Jy
! Component: 1150  -  total flux cleaned = 0.00365337 Jy
! Component: 1200  -  total flux cleaned = 0.00362983 Jy
! Component: 1250  -  total flux cleaned = 0.00360668 Jy
! Component: 1300  -  total flux cleaned = 0.00360667 Jy
! Component: 1350  -  total flux cleaned = 0.00353815 Jy
! Component: 1400  -  total flux cleaned = 0.00351548 Jy
! Component: 1450  -  total flux cleaned = 0.00349271 Jy
! Component: 1500  -  total flux cleaned = 0.00342558 Jy
! Component: 1550  -  total flux cleaned = 0.00340357 Jy
! Component: 1600  -  total flux cleaned = 0.00340357 Jy
! Component: 1650  -  total flux cleaned = 0.00335987 Jy
! Component: 1700  -  total flux cleaned = 0.00329472 Jy
! Component: 1750  -  total flux cleaned = 0.00335951 Jy
! Component: 1800  -  total flux cleaned = 0.00333785 Jy
! Component: 1850  -  total flux cleaned = 0.00333778 Jy
! Component: 1900  -  total flux cleaned = 0.00333774 Jy
! Component: 1950  -  total flux cleaned = 0.00331679 Jy
! Component: 2000  -  total flux cleaned = 0.00331684 Jy
! Total flux subtracted in 2048 components = 0.00335834 Jy
! Clean residual min=-0.001183 max=0.001244 Jy/beam
! Clean residual mean=0.000007 rms=0.000393 Jy/beam
! Combined flux in latest and established models = 0.950569 Jy
keep
! Adding 146 model components to the UV plane model.
! The established model now contains 291 components and 0.950569 Jy
![Exited script file: muppet]
wmap "J0325+2224_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.473 x 4.458 at -4.993 degrees (North through East)
! Clean map  min=-0.0017321  max=0.77943 Jy/beam
! Writing clean map to FITS file: J0325+2224_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.779434 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00039326 
device "J0325+2224_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0325+2224_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.151364 0.151364 0.302728 0.605456 1.21091 2.42182 4.84364 9.68729 19.3746 38.7492 77.4983
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.779 
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.473 x 4.458 at -4.993 degrees (North through East)
! Clean map  min=-0.0017321  max=0.77943 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0325+2224_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0325+2224_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0325+2224_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 14:52:53 2007