! Started logfile: J0825+0309_S_1999_12_20_pus_uvs.log on Thu Dec 20 15:01:55 2007
obs J0825+0309_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0825+0309_S_1999_12_20_pus_uva.fits
! AN table 1: 166 integrations on 190 of 190 possible baselines.
! AN table 2: 11 integrations on 190 of 190 possible baselines.
! AN table 3: 247 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.170817 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0825+0309
! 
! 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 55044 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 J0825+0309_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 2263 telescope corrections were flagged in sub-array 1.
!  A total of 220 telescope corrections were flagged in sub-array 2.
!  A total of 2866 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2263 telescope corrections were flagged in sub-array 1.
!  A total of 220 telescope corrections were flagged in sub-array 2.
!  A total of 2866 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2352 telescope corrections were flagged in sub-array 1.
!  A total of 220 telescope corrections were flagged in sub-array 2.
!  A total of 2912 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2263 telescope corrections were flagged in sub-array 1.
!  A total of 220 telescope corrections were flagged in sub-array 2.
!  A total of 2866 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.765231Jy  sigma=0.006089
! Fit after  self-cal, rms=0.312253Jy  sigma=0.002090
! 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.125 mas, bmaj=5.703 mas, bpa=-3.553 degrees
! Estimated noise=739.978 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.71189 Jy
! Component: 100  -  total flux cleaned = 0.905052 Jy
! Total flux subtracted in 100 components = 0.905052 Jy
! Clean residual min=-0.018212 max=0.087037 Jy/beam
! Clean residual mean=0.000193 rms=0.006539 Jy/beam
! Combined flux in latest and established models = 0.905052 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.905052 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315838Jy  sigma=0.002283
! Fit after  self-cal, rms=0.315713Jy  sigma=0.002282
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0979475 Jy
! Component: 100  -  total flux cleaned = 0.155515 Jy
! Total flux subtracted in 100 components = 0.155515 Jy
! Clean residual min=-0.012356 max=0.030920 Jy/beam
! Clean residual mean=0.000113 rms=0.003593 Jy/beam
! Combined flux in latest and established models = 1.06057 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 19 components and 1.06057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270041Jy  sigma=0.001636
! Fit after  self-cal, rms=0.269897Jy  sigma=0.001635
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0388588 Jy
! Component: 100  -  total flux cleaned = 0.0651223 Jy
! Total flux subtracted in 100 components = 0.0651223 Jy
! Clean residual min=-0.011167 max=0.015891 Jy/beam
! Clean residual mean=0.000079 rms=0.002810 Jy/beam
! Combined flux in latest and established models = 1.12569 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 25 components and 1.12569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261395Jy  sigma=0.001491
! Fit after  self-cal, rms=0.261342Jy  sigma=0.001490
! 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.666 mas, bmaj=7.272 mas, bpa=-3.787 degrees
! Estimated noise=348.907 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.0285754 Jy
! Component: 100  -  total flux cleaned = 0.0431064 Jy
! Component: 150  -  total flux cleaned = 0.0511028 Jy
! Component: 200  -  total flux cleaned = 0.0555447 Jy
! Total flux subtracted in 200 components = 0.0555447 Jy
! Clean residual min=-0.007882 max=0.015884 Jy/beam
! Clean residual mean=0.000208 rms=0.002553 Jy/beam
! Combined flux in latest and established models = 1.18123 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 60 components and 1.18123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258995Jy  sigma=0.001442
! Fit after  self-cal, rms=0.258957Jy  sigma=0.001441
! Inverting map 
! Added new window around map position (6, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.014929 Jy
! Component: 100  -  total flux cleaned = 0.0160642 Jy
! Component: 150  -  total flux cleaned = 0.0158075 Jy
! Component: 200  -  total flux cleaned = 0.0153861 Jy
! Total flux subtracted in 200 components = 0.0153861 Jy
! Clean residual min=-0.007665 max=0.008726 Jy/beam
! Clean residual mean=0.000135 rms=0.002258 Jy/beam
! Combined flux in latest and established models = 1.19662 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 83 components and 1.19662 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258012Jy  sigma=0.001429
! Fit after  self-cal, rms=0.257869Jy  sigma=0.001427
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.98     LA        1.01     
!   MC        0.93     MK        0.99     NY        1.07     ON        1.03     
!   OV        0.98     PT        1.04     SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        0.98     GN        1.12     NL        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.06     HH        1.00*    
!   HN        0.97     KK        0.99     KP        0.95     LA        0.99     
!   MC        1.16     MK        1.01     NY        1.00*    ON        1.12     
!   OV        0.98     PT        1.01     SC        1.01     TS        1.00*    
!   WF        1.00     WZ        0.98     GN        1.00     NL        0.98     
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.04     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        1.01     LA        0.98     
!   MC        0.84     MK        0.97     NY        1.03     ON        1.02     
!   OV        0.98     PT        1.02     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.05     GN        1.13     NL        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.03     GC        1.05     HH        1.00*    
!   HN        1.03     KK        0.93     KP        0.99     LA        0.97     
!   MC        1.28     MK        0.99     NY        1.00*    ON        1.14     
!   OV        0.96     PT        0.99     SC        1.01     TS        1.00*    
!   WF        0.99     WZ        0.99     GN        0.99     NL        0.98     
! 
! 
! Correcting IF 3.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.03     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.00     LA        1.02     
!   MC        1.00*    MK        0.97     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.07     SC        1.00*    TS        0.97     
!   WF        1.00*    WZ        1.00*    GN        1.10     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.08     HH        1.00*    
!   HN        1.02     KK        0.98     KP        1.04     LA        1.00     
!   MC        1.00*    MK        0.99     NY        1.00*    ON        1.12     
!   OV        1.00     PT        0.97     SC        1.04     TS        1.00*    
!   WF        1.00     WZ        1.03     GN        1.02     NL        0.97     
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.01     LA        1.01     
!   MC        1.37     MK        1.01     NY        1.13     ON        0.90     
!   OV        0.97     PT        1.10     SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.05     GN        1.13     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00     GC        1.07     HH        1.00*    
!   HN        1.01     KK        0.99     KP        0.99     LA        1.00     
!   MC        1.51     MK        1.03     NY        1.00*    ON        1.10     
!   OV        0.96     PT        1.06     SC        1.04     TS        1.00*    
!   WF        1.01     WZ        1.05     GN        1.01     NL        0.96     
! 
! 
! Fit before self-cal, rms=0.257869Jy  sigma=0.001427
! Fit after  self-cal, rms=0.260453Jy  sigma=0.001352
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.68 mas, bmaj=7.321 mas, bpa=-3.927 degrees
! Estimated noise=350.527 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.00669851 Jy
! Component: 100  -  total flux cleaned = 0.00724823 Jy
! Component: 150  -  total flux cleaned = 0.00738281 Jy
! Component: 200  -  total flux cleaned = 0.00750231 Jy
! Total flux subtracted in 200 components = 0.00750231 Jy
! Clean residual min=-0.003968 max=0.004439 Jy/beam
! Clean residual mean=0.000261 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 1.20412 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 104 components and 1.20412 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260170Jy  sigma=0.001348
! Fit after  self-cal, rms=0.260340Jy  sigma=0.001347
! 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.260340Jy  sigma=0.001347
! Fit after  self-cal, rms=0.259634Jy  sigma=0.001319
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.681 mas, bmaj=7.315 mas, bpa=-3.965 degrees
! Estimated noise=350.967 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00204674 Jy
! Component: 100  -  total flux cleaned = 0.00237156 Jy
! Component: 150  -  total flux cleaned = 0.00281414 Jy
! Component: 200  -  total flux cleaned = 0.00296991 Jy
! Total flux subtracted in 200 components = 0.00296991 Jy
! Clean residual min=-0.002365 max=0.003067 Jy/beam
! Clean residual mean=0.000150 rms=0.000638 Jy/beam
! Combined flux in latest and established models = 1.20709 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 118 components and 1.20709 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259548Jy  sigma=0.001318
! Fit after  self-cal, rms=0.259558Jy  sigma=0.001318
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 (14.5, 54).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179676 Jy
! Component: 100  -  total flux cleaned = 0.00276573 Jy
! Component: 150  -  total flux cleaned = 0.00332004 Jy
! Component: 200  -  total flux cleaned = 0.00369803 Jy
! Total flux subtracted in 200 components = 0.00369803 Jy
! Clean residual min=-0.002173 max=0.002550 Jy/beam
! Clean residual mean=0.000141 rms=0.000606 Jy/beam
! Combined flux in latest and established models = 1.21079 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 130 components and 1.21079 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259500Jy  sigma=0.001317
! Fit after  self-cal, rms=0.259500Jy  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.259500Jy  sigma=0.001317
! Fit after  self-cal, rms=0.259880Jy  sigma=0.001314
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.684 mas, bmaj=7.315 mas, bpa=-3.976 degrees
! Estimated noise=350.989 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000243155 Jy
! Component: 100  -  total flux cleaned = 0.000389921 Jy
! Component: 150  -  total flux cleaned = 0.000519248 Jy
! Component: 200  -  total flux cleaned = 0.00069209 Jy
! Total flux subtracted in 200 components = 0.00069209 Jy
! Clean residual min=-0.001887 max=0.002180 Jy/beam
! Clean residual mean=0.000118 rms=0.000549 Jy/beam
! Combined flux in latest and established models = 1.21148 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 133 components and 1.21148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259840Jy  sigma=0.001313
! Fit after  self-cal, rms=0.259845Jy  sigma=0.001313
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.000386331 Jy
! Component: 100  -  total flux cleaned = 0.000651302 Jy
! Component: 150  -  total flux cleaned = 0.000845231 Jy
! Component: 200  -  total flux cleaned = 0.000983449 Jy
! Total flux subtracted in 200 components = 0.000983449 Jy
! Clean residual min=-0.001819 max=0.002106 Jy/beam
! Clean residual mean=0.000114 rms=0.000539 Jy/beam
! Combined flux in latest and established models = 1.21247 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 139 components and 1.21247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259820Jy  sigma=0.001313
! Fit after  self-cal, rms=0.259820Jy  sigma=0.001313
! 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.259820Jy  sigma=0.001313
! Fit after  self-cal, rms=0.259984Jy  sigma=0.001313
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.363 mas, bmaj=11.33 mas, bpa=0.3028 degrees
! Estimated noise=453.052 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00131936 Jy
! Component: 100  -  total flux cleaned = 0.00157886 Jy
! Component: 150  -  total flux cleaned = 0.0017909 Jy
! Component: 200  -  total flux cleaned = 0.00197441 Jy
! Total flux subtracted in 200 components = 0.00197441 Jy
! Clean residual min=-0.001780 max=0.002409 Jy/beam
! Clean residual mean=0.000243 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 1.21444 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 153 components and 1.21444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259978Jy  sigma=0.001313
! Fit after  self-cal, rms=0.259979Jy  sigma=0.001313
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.000214381 Jy
! Component: 100  -  total flux cleaned = 0.000418126 Jy
! Component: 150  -  total flux cleaned = 0.000577476 Jy
! Component: 200  -  total flux cleaned = 0.000722263 Jy
! Total flux subtracted in 200 components = 0.000722263 Jy
! Clean residual min=-0.001750 max=0.002441 Jy/beam
! Clean residual mean=0.000236 rms=0.000636 Jy/beam
! Combined flux in latest and established models = 1.21516 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 164 components and 1.21516 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259975Jy  sigma=0.001313
! Fit after  self-cal, rms=0.259974Jy  sigma=0.001313
! 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.686 mas, bmaj=7.319 mas, bpa=-3.991 degrees
! Estimated noise=351.155 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.686 x 7.319 at -3.991 degrees (North through East)
! Clean map  min=-0.0022212  max=0.98581 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.259974Jy  sigma=0.001313
! Fit after  self-cal, rms=0.295005Jy  sigma=0.001185
! Inverting map and beam 
! Estimated beam: bmin=2.686 mas, bmaj=7.321 mas, bpa=-3.999 degrees
! Estimated noise=351.007 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000681807 Jy
! Component: 100  -  total flux cleaned = -0.000633161 Jy
! Component: 150  -  total flux cleaned = -0.00063537 Jy
! Component: 200  -  total flux cleaned = -0.000676171 Jy
! Total flux subtracted in 200 components = -0.000676171 Jy
! Clean residual min=-0.001585 max=0.001820 Jy/beam
! Clean residual mean=0.000096 rms=0.000471 Jy/beam
! Combined flux in latest and established models = 1.21449 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 177 components and 1.21449 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294978Jy  sigma=0.001184
! Fit after  self-cal, rms=0.294983Jy  sigma=0.001184
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000141471 Jy
! Component: 100  -  total flux cleaned = 0.00017696 Jy
! Component: 150  -  total flux cleaned = 0.000175887 Jy
! Component: 200  -  total flux cleaned = 0.00017656 Jy
! Total flux subtracted in 200 components = 0.00017656 Jy
! Clean residual min=-0.001579 max=0.001763 Jy/beam
! Clean residual mean=0.000094 rms=0.000466 Jy/beam
! Combined flux in latest and established models = 1.21466 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 186 components and 1.21466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294971Jy  sigma=0.001184
! Fit after  self-cal, rms=0.294971Jy  sigma=0.001184
! 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.294971Jy  sigma=0.001184
! Fit after  self-cal, rms=0.319353Jy  sigma=0.001184
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.15 mas, bmaj=5.725 mas, bpa=-3.675 degrees
! Estimated noise=752.601 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.722876 Jy
! Component: 100  -  total flux cleaned = 0.915716 Jy
! Component: 150  -  total flux cleaned = 1.01257 Jy
! Component: 200  -  total flux cleaned = 1.06591 Jy
! Total flux subtracted in 200 components = 1.06591 Jy
! Clean residual min=-0.008112 max=0.027867 Jy/beam
! Clean residual mean=0.000126 rms=0.002636 Jy/beam
! Combined flux in latest and established models = 1.06591 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 23 model components to the UV plane model.
! The established model now contains 23 components and 1.06591 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.687 mas, bmaj=7.324 mas, bpa=-4.024 degrees
! Estimated noise=350.972 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.0550771 Jy
! Component: 100  -  total flux cleaned = 0.0860175 Jy
! Component: 150  -  total flux cleaned = 0.105634 Jy
! Component: 200  -  total flux cleaned = 0.118618 Jy
! Total flux subtracted in 200 components = 0.118618 Jy
! Clean residual min=-0.003159 max=0.007286 Jy/beam
! Clean residual mean=0.000229 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 1.18453 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 74 components and 1.18453 Jy
! Inverting map 
! Added new window around map position (-2, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00883769 Jy
! Component: 100  -  total flux cleaned = 0.0150358 Jy
! Component: 150  -  total flux cleaned = 0.01841 Jy
! Component: 200  -  total flux cleaned = 0.0198069 Jy
! Total flux subtracted in 200 components = 0.0198069 Jy
! Clean residual min=-0.002413 max=0.002538 Jy/beam
! Clean residual mean=0.000129 rms=0.000608 Jy/beam
! Combined flux in latest and established models = 1.20434 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 97 components and 1.20434 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.362 mas, bmaj=11.32 mas, bpa=0.2461 degrees
! Estimated noise=452.704 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00435659 Jy
! Component: 100  -  total flux cleaned = 0.006729 Jy
! Component: 150  -  total flux cleaned = 0.00846118 Jy
! Component: 200  -  total flux cleaned = 0.00956975 Jy
! Total flux subtracted in 200 components = 0.00956975 Jy
! Clean residual min=-0.001521 max=0.002053 Jy/beam
! Clean residual mean=0.000205 rms=0.000547 Jy/beam
! Combined flux in latest and established models = 1.21391 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.000631342 Jy
! Component: 100  -  total flux cleaned = 0.00115022 Jy
! Component: 150  -  total flux cleaned = 0.00152626 Jy
! Component: 200  -  total flux cleaned = 0.00174955 Jy
! Total flux subtracted in 200 components = 0.00174955 Jy
! Clean residual min=-0.001519 max=0.002042 Jy/beam
! Clean residual mean=0.000190 rms=0.000524 Jy/beam
! Combined flux in latest and established models = 1.21566 Jy
! Adding 79 model components to the UV plane model.
! The established model now contains 172 components and 1.21566 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.687 mas, bmaj=7.324 mas, bpa=-4.024 degrees
! Estimated noise=350.972 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00137359 Jy
! Component: 100  -  total flux cleaned = -0.00117853 Jy
! Component: 150  -  total flux cleaned = -0.000742411 Jy
! Component: 200  -  total flux cleaned = -0.000506146 Jy
! Total flux subtracted in 200 components = -0.000506146 Jy
! Clean residual min=-0.001670 max=0.002017 Jy/beam
! Clean residual mean=0.000082 rms=0.000492 Jy/beam
! Combined flux in latest and established models = 1.21515 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 179 components and 1.21515 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319463Jy  sigma=0.001186
! Fit after  self-cal, rms=0.319434Jy  sigma=0.001185
wmodel J0825+0309_S_1999_12_20_pus_map.mod
! Writing 179 model components to file: J0825+0309_S_1999_12_20_pus_map.mod
wobs J0825+0309_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0825+0309_S_1999_12_20_pus_uvs.fits
wwins J0825+0309_S_1999_12_20_pus_map.win
! wwins: Wrote 4 windows to J0825+0309_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.000899501 Jy
! Component: 100  -  total flux cleaned = 0.0015134 Jy
! Component: 150  -  total flux cleaned = 0.00203301 Jy
! Component: 200  -  total flux cleaned = 0.00241505 Jy
! Component: 250  -  total flux cleaned = 0.00267082 Jy
! Component: 300  -  total flux cleaned = 0.00294871 Jy
! Component: 350  -  total flux cleaned = 0.00324904 Jy
! Component: 400  -  total flux cleaned = 0.0035984 Jy
! Component: 450  -  total flux cleaned = 0.0039429 Jy
! Component: 500  -  total flux cleaned = 0.0042828 Jy
! Component: 550  -  total flux cleaned = 0.00459263 Jy
! Component: 600  -  total flux cleaned = 0.00489835 Jy
! Component: 650  -  total flux cleaned = 0.0052003 Jy
! Component: 700  -  total flux cleaned = 0.00552333 Jy
! Component: 750  -  total flux cleaned = 0.00581786 Jy
! Component: 800  -  total flux cleaned = 0.00615754 Jy
! Component: 850  -  total flux cleaned = 0.00642125 Jy
! Component: 900  -  total flux cleaned = 0.00663506 Jy
! Component: 950  -  total flux cleaned = 0.0068468 Jy
! Component: 1000  -  total flux cleaned = 0.00705632 Jy
! Component: 1050  -  total flux cleaned = 0.00728697 Jy
! Component: 1100  -  total flux cleaned = 0.00749265 Jy
! Component: 1150  -  total flux cleaned = 0.00762866 Jy
! Component: 1200  -  total flux cleaned = 0.00789801 Jy
! Component: 1250  -  total flux cleaned = 0.0080761 Jy
! Component: 1300  -  total flux cleaned = 0.00829663 Jy
! Component: 1350  -  total flux cleaned = 0.0084936 Jy
! Component: 1400  -  total flux cleaned = 0.0086455 Jy
! Component: 1450  -  total flux cleaned = 0.00879654 Jy
! Component: 1500  -  total flux cleaned = 0.00898913 Jy
! Component: 1550  -  total flux cleaned = 0.00920123 Jy
! Component: 1600  -  total flux cleaned = 0.00930631 Jy
! Component: 1650  -  total flux cleaned = 0.00947369 Jy
! Component: 1700  -  total flux cleaned = 0.00957762 Jy
! Component: 1750  -  total flux cleaned = 0.00978388 Jy
! Component: 1800  -  total flux cleaned = 0.00988653 Jy
! Component: 1850  -  total flux cleaned = 0.00994769 Jy
! Component: 1900  -  total flux cleaned = 0.0100894 Jy
! Component: 1950  -  total flux cleaned = 0.0102102 Jy
! Component: 2000  -  total flux cleaned = 0.0103103 Jy
! Total flux subtracted in 2048 components = 0.0104295 Jy
! Clean residual min=-0.000994 max=0.001271 Jy/beam
! Clean residual mean=0.000047 rms=0.000395 Jy/beam
! Combined flux in latest and established models = 1.22558 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 313 components and 1.22558 Jy
![Exited script file: muppet]
wmap "J0825+0309_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.687 x 7.324 at -4.024 degrees (North through East)
! Clean map  min=-0.0015634  max=0.98883 Jy/beam
! Writing clean map to FITS file: J0825+0309_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.988833 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000396125 
device "J0825+0309_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0825+0309_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.12018 0.12018 0.240359 0.480719 0.961438 1.92288 3.84575 7.6915 15.383 30.766 61.532
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.988 
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.687 x 7.324 at -4.024 degrees (North through East)
! Clean map  min=-0.0015634  max=0.98883 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0825+0309_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0825+0309_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0825+0309_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 15:02:29 2007