! Started logfile: J2236+2828_X_2000_05_22_pus_uvs.log on Mon Nov 12 16:36:41 2007
obs J2236+2828_X_2000_05_22_pus_uva.fits
! Reading UV FITS file: J2236+2828_X_2000_05_22_pus_uva.fits
! AN table 1: 225 integrations on 190 of 190 possible baselines.
! AN table 2: 163 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.135852 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2236+2828
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1884 lines of history.
! 
! Reading 40060 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J2236+2828_X_2000_05_22_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 = 256x256 pixels with 0.200x0.200 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 3208 telescope corrections were flagged in sub-array 1.
!  A total of 2357 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 3208 telescope corrections were flagged in sub-array 1.
!  A total of 2357 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 3208 telescope corrections were flagged in sub-array 1.
!  A total of 2357 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 3208 telescope corrections were flagged in sub-array 1.
!  A total of 2357 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.647882Jy  sigma=0.006836
! Fit after  self-cal, rms=0.384157Jy  sigma=0.004142
! 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 
! Your choice of large map pixels excluded 5.41% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.5513 mas, bmaj=0.8833 mas, bpa=-8.104 degrees
! Estimated noise=602.784 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.632873 Jy
! Component: 100  -  total flux cleaned = 0.843454 Jy
! Total flux subtracted in 100 components = 0.843454 Jy
! Clean residual min=-0.024510 max=0.095389 Jy/beam
! Clean residual mean=0.000102 rms=0.008503 Jy/beam
! Combined flux in latest and established models = 0.843454 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.843454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276907Jy  sigma=0.003112
! Fit after  self-cal, rms=0.276171Jy  sigma=0.003109
! Inverting map 
! Your choice of large map pixels excluded 5.41% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.107757 Jy
! Component: 100  -  total flux cleaned = 0.172528 Jy
! Total flux subtracted in 100 components = 0.172528 Jy
! Clean residual min=-0.017914 max=0.034573 Jy/beam
! Clean residual mean=0.000055 rms=0.004785 Jy/beam
! Combined flux in latest and established models = 1.01598 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 16 components and 1.01598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226725Jy  sigma=0.002320
! Fit after  self-cal, rms=0.226269Jy  sigma=0.002318
! Inverting map 
! Your choice of large map pixels excluded 5.41% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0437666 Jy
! Component: 100  -  total flux cleaned = 0.0729664 Jy
! Total flux subtracted in 100 components = 0.0729664 Jy
! Clean residual min=-0.016929 max=0.015935 Jy/beam
! Clean residual mean=0.000034 rms=0.003710 Jy/beam
! Combined flux in latest and established models = 1.08895 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 1.08895 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218787Jy  sigma=0.002141
! Fit after  self-cal, rms=0.218599Jy  sigma=0.002141
! Inverting map 
! Your choice of large map pixels excluded 5.41% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
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 
! Your choice of large map pixels excluded 5.41% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.6049 mas, bmaj=1.114 mas, bpa=-10.15 degrees
! Estimated noise=364.149 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.0254341 Jy
! Component: 100  -  total flux cleaned = 0.0390974 Jy
! Component: 150  -  total flux cleaned = 0.0471203 Jy
! Component: 200  -  total flux cleaned = 0.0519309 Jy
! Total flux subtracted in 200 components = 0.0519309 Jy
! Clean residual min=-0.020771 max=0.014593 Jy/beam
! Clean residual mean=0.000059 rms=0.004829 Jy/beam
! Combined flux in latest and established models = 1.14088 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 27 components and 1.14088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217562Jy  sigma=0.002082
! Fit after  self-cal, rms=0.217451Jy  sigma=0.002082
! Inverting map 
! Your choice of large map pixels excluded 5.41% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 87 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.93     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.98     KP        0.95     
!   MA        1.63     MC        1.41     MK        1.02     NL        0.97     
!   NY        1.02     OV        0.94     PT        0.96     SC        0.94     
!   TS        1.08     WF        1.02     WZ        1.03     LA        0.99     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.08     KK        1.00     KP        1.01     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.98     
!   NY        1.05     OV        0.95     PT        0.99     SC        1.00*    
!   TS        0.84     WF        1.02     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 87 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.97     KP        0.91     
!   MA        1.72     MC        1.41     MK        1.01     NL        1.00     
!   NY        1.05     OV        0.97     PT        0.92     SC        0.95     
!   TS        1.09     WF        1.02     WZ        1.06     LA        0.95     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.08     KK        1.00     KP        0.96     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.01     
!   NY        1.06     OV        0.99     PT        0.97     SC        1.00*    
!   TS        0.85     WF        1.06     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 87 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.97     KP        0.96     
!   MA        1.77     MC        1.33     MK        1.05     NL        0.98     
!   NY        1.04     OV        0.96     PT        0.95     SC        0.95     
!   TS        1.08     WF        1.06     WZ        1.12     LA        1.00     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.10     KK        0.97     KP        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.00     
!   NY        1.05     OV        0.97     PT        0.99     SC        1.00*    
!   TS        0.84     WF        1.06     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 87 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.95     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00     KP        0.95     
!   MA        1.72     MC        1.33     MK        1.08     NL        1.00     
!   NY        1.04     OV        0.95     PT        0.96     SC        0.97     
!   TS        1.09     WF        1.01     WZ        1.12     LA        0.97     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.09     KK        1.00     KP        1.00     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.02     
!   NY        1.04     OV        0.97     PT        1.00     SC        1.00*    
!   TS        0.86     WF        1.05     WZ        1.00*    LA        1.00*    
! 
! 
! Fit before self-cal, rms=0.217451Jy  sigma=0.002082
! Fit after  self-cal, rms=0.223834Jy  sigma=0.001755
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.6231 mas, bmaj=1.123 mas, bpa=-9.971 degrees
! Estimated noise=370.726 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.00990246 Jy
! Component: 100  -  total flux cleaned = -0.0113691 Jy
! Component: 150  -  total flux cleaned = -0.012489 Jy
! Component: 200  -  total flux cleaned = -0.0133496 Jy
! Total flux subtracted in 200 components = -0.0133496 Jy
! Clean residual min=-0.006618 max=0.007069 Jy/beam
! Clean residual mean=-0.000033 rms=0.001842 Jy/beam
! Combined flux in latest and established models = 1.12753 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 29 components and 1.12753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222649Jy  sigma=0.001740
! Fit after  self-cal, rms=0.223061Jy  sigma=0.001740
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
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.223061Jy  sigma=0.001740
! Fit after  self-cal, rms=0.224842Jy  sigma=0.001721
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.6273 mas, bmaj=1.125 mas, bpa=-10.13 degrees
! Estimated noise=371.788 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00508381 Jy
! Component: 100  -  total flux cleaned = -0.00625834 Jy
! Component: 150  -  total flux cleaned = -0.00716401 Jy
! Component: 200  -  total flux cleaned = -0.00800587 Jy
! Total flux subtracted in 200 components = -0.00800587 Jy
! Clean residual min=-0.004893 max=0.006127 Jy/beam
! Clean residual mean=0.000022 rms=0.001448 Jy/beam
! Combined flux in latest and established models = 1.11952 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 29 components and 1.11952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224452Jy  sigma=0.001716
! Fit after  self-cal, rms=0.224505Jy  sigma=0.001716
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
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 (-1, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0039649 Jy
! Component: 100  -  total flux cleaned = 0.00455929 Jy
! Component: 150  -  total flux cleaned = 0.00491817 Jy
! Component: 200  -  total flux cleaned = 0.00522299 Jy
! Total flux subtracted in 200 components = 0.00522299 Jy
! Clean residual min=-0.004669 max=0.004601 Jy/beam
! Clean residual mean=-0.000001 rms=0.001404 Jy/beam
! Combined flux in latest and established models = 1.12475 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 43 components and 1.12475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224370Jy  sigma=0.001714
! Fit after  self-cal, rms=0.224340Jy  sigma=0.001713
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
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.224340Jy  sigma=0.001713
! Fit after  self-cal, rms=0.226791Jy  sigma=0.001710
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.631 mas, bmaj=1.125 mas, bpa=-10.18 degrees
! Estimated noise=372.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00203799 Jy
! Component: 100  -  total flux cleaned = -0.002202 Jy
! Component: 150  -  total flux cleaned = -0.00193863 Jy
! Component: 200  -  total flux cleaned = -0.00171386 Jy
! Total flux subtracted in 200 components = -0.00171386 Jy
! Clean residual min=-0.004637 max=0.004185 Jy/beam
! Clean residual mean=-0.000019 rms=0.001281 Jy/beam
! Combined flux in latest and established models = 1.12303 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 49 components and 1.12303 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226654Jy  sigma=0.001708
! Fit after  self-cal, rms=0.226673Jy  sigma=0.001708
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
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 = 1.6813e-05 Jy
! Component: 100  -  total flux cleaned = 0.000415519 Jy
! Component: 150  -  total flux cleaned = 0.000755991 Jy
! Component: 200  -  total flux cleaned = 0.000903651 Jy
! Total flux subtracted in 200 components = 0.000903651 Jy
! Clean residual min=-0.004259 max=0.004088 Jy/beam
! Clean residual mean=-0.000023 rms=0.001263 Jy/beam
! Combined flux in latest and established models = 1.12394 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 53 components and 1.12394 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226615Jy  sigma=0.001707
! Fit after  self-cal, rms=0.226607Jy  sigma=0.001707
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.226607Jy  sigma=0.001707
! Fit after  self-cal, rms=0.228147Jy  sigma=0.001706
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=2.29 mas, bmaj=2.503 mas, bpa=10.23 degrees
! Estimated noise=507.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000173355 Jy
! Component: 100  -  total flux cleaned = -9.21165e-05 Jy
! Component: 150  -  total flux cleaned = -0.000149291 Jy
! Component: 200  -  total flux cleaned = -0.000142808 Jy
! Total flux subtracted in 200 components = -0.000142808 Jy
! Clean residual min=-0.005387 max=0.004736 Jy/beam
! Clean residual mean=-0.000153 rms=0.002401 Jy/beam
! Combined flux in latest and established models = 1.12379 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 65 components and 1.12379 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228125Jy  sigma=0.001706
! Fit after  self-cal, rms=0.228125Jy  sigma=0.001706
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
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.000387702 Jy
! Component: 100  -  total flux cleaned = 0.000477243 Jy
! Component: 150  -  total flux cleaned = 0.00044193 Jy
! Component: 200  -  total flux cleaned = 0.000441596 Jy
! Total flux subtracted in 200 components = 0.000441596 Jy
! Clean residual min=-0.005285 max=0.004626 Jy/beam
! Clean residual mean=-0.000159 rms=0.002406 Jy/beam
! Combined flux in latest and established models = 1.12424 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 72 components and 1.12424 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228125Jy  sigma=0.001706
! Fit after  self-cal, rms=0.228119Jy  sigma=0.001706
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
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 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.6332 mas, bmaj=1.125 mas, bpa=-10.2 degrees
! Estimated noise=373.687 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6332 x 1.125 at -10.2 degrees (North through East)
! Clean map  min=-0.004413  max=0.86614 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.228119Jy  sigma=0.001706
! Fit after  self-cal, rms=38.225513Jy  sigma=0.001359
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.6283 mas, bmaj=1.126 mas, bpa=-10.4 degrees
! Estimated noise=371.316 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00261382 Jy
! Component: 100  -  total flux cleaned = 0.00305962 Jy
! Component: 150  -  total flux cleaned = 0.003357 Jy
! Component: 200  -  total flux cleaned = 0.00361067 Jy
! Total flux subtracted in 200 components = 0.00361067 Jy
! Clean residual min=-0.002062 max=0.002152 Jy/beam
! Clean residual mean=0.000003 rms=0.000556 Jy/beam
! Combined flux in latest and established models = 1.12785 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 82 components and 1.12785 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=38.225529Jy  sigma=0.001358
! Fit after  self-cal, rms=38.223541Jy  sigma=0.001358
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000556062 Jy
! Component: 100  -  total flux cleaned = 0.000771323 Jy
! Component: 150  -  total flux cleaned = 0.000772149 Jy
! Component: 200  -  total flux cleaned = 0.000772655 Jy
! Total flux subtracted in 200 components = 0.000772655 Jy
! Clean residual min=-0.002060 max=0.002123 Jy/beam
! Clean residual mean=-0.000000 rms=0.000538 Jy/beam
! Combined flux in latest and established models = 1.12862 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 87 components and 1.12862 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=38.223541Jy  sigma=0.001357
! Fit after  self-cal, rms=38.221325Jy  sigma=0.001357
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=38.221325Jy  sigma=0.001357
! Fit after  self-cal, rms=28.139206Jy  sigma=0.001357
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 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.5667 mas, bmaj=0.8854 mas, bpa=-8.474 degrees
! Estimated noise=618.366 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.645828 Jy
! Component: 100  -  total flux cleaned = 0.847562 Jy
! Component: 150  -  total flux cleaned = 0.945248 Jy
! Component: 200  -  total flux cleaned = 1.00027 Jy
! Total flux subtracted in 200 components = 1.00027 Jy
! Clean residual min=-0.008084 max=0.028692 Jy/beam
! Clean residual mean=0.000044 rms=0.002889 Jy/beam
! Combined flux in latest and established models = 1.00027 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 13 model components to the UV plane model.
! The established model now contains 13 components and 1.00027 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.6277 mas, bmaj=1.127 mas, bpa=-10.44 degrees
! Estimated noise=371.26 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.0515415 Jy
! Component: 100  -  total flux cleaned = 0.0786964 Jy
! Component: 150  -  total flux cleaned = 0.0950133 Jy
! Component: 200  -  total flux cleaned = 0.105528 Jy
! Total flux subtracted in 200 components = 0.105528 Jy
! Clean residual min=-0.003026 max=0.006373 Jy/beam
! Clean residual mean=0.000090 rms=0.001028 Jy/beam
! Combined flux in latest and established models = 1.1058 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 38 components and 1.1058 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Added new window around map position (-2, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00731109 Jy
! Component: 100  -  total flux cleaned = 0.0124263 Jy
! Component: 150  -  total flux cleaned = 0.0161216 Jy
! Component: 200  -  total flux cleaned = 0.0189063 Jy
! Total flux subtracted in 200 components = 0.0189063 Jy
! Clean residual min=-0.002230 max=0.002246 Jy/beam
! Clean residual mean=0.000005 rms=0.000570 Jy/beam
! Combined flux in latest and established models = 1.12471 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 57 components and 1.12471 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=2.285 mas, bmaj=2.501 mas, bpa=9.819 degrees
! Estimated noise=508.983 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00355943 Jy
! Component: 100  -  total flux cleaned = 0.00492282 Jy
! Component: 150  -  total flux cleaned = 0.00511393 Jy
! Component: 200  -  total flux cleaned = 0.00526272 Jy
! Total flux subtracted in 200 components = 0.00526272 Jy
! Clean residual min=-0.001619 max=0.002143 Jy/beam
! Clean residual mean=-0.000077 rms=0.000609 Jy/beam
! Combined flux in latest and established models = 1.12997 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.000100633 Jy
! Component: 100  -  total flux cleaned = 0.000184173 Jy
! Component: 150  -  total flux cleaned = 0.00025316 Jy
! Component: 200  -  total flux cleaned = 0.000288942 Jy
! Total flux subtracted in 200 components = 0.000288942 Jy
! Clean residual min=-0.001673 max=0.002137 Jy/beam
! Clean residual mean=-0.000082 rms=0.000604 Jy/beam
! Combined flux in latest and established models = 1.13026 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 82 components and 1.13026 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! Estimated beam: bmin=0.6277 mas, bmaj=1.127 mas, bpa=-10.44 degrees
! Estimated noise=371.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00047278 Jy
! Component: 100  -  total flux cleaned = -0.000592479 Jy
! Component: 150  -  total flux cleaned = -0.000593304 Jy
! Component: 200  -  total flux cleaned = -0.000499556 Jy
! Total flux subtracted in 200 components = -0.000499556 Jy
! Clean residual min=-0.002054 max=0.002037 Jy/beam
! Clean residual mean=-0.000018 rms=0.000514 Jy/beam
! Combined flux in latest and established models = 1.12976 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 88 components and 1.12976 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=28.139214Jy  sigma=0.001358
! Fit after  self-cal, rms=28.135796Jy  sigma=0.001357
wmodel J2236+2828_X_2000_05_22_pus_map.mod
! Writing 88 model components to file: J2236+2828_X_2000_05_22_pus_map.mod
wobs J2236+2828_X_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J2236+2828_X_2000_05_22_pus_uvs.fits
wwins J2236+2828_X_2000_05_22_pus_map.win
! wwins: Wrote 3 windows to J2236+2828_X_2000_05_22_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00045063 Jy
! Component: 100  -  total flux cleaned = -0.000916335 Jy
! Component: 150  -  total flux cleaned = -0.00126566 Jy
! Component: 200  -  total flux cleaned = -0.00154078 Jy
! Component: 250  -  total flux cleaned = -0.00174821 Jy
! Component: 300  -  total flux cleaned = -0.0019215 Jy
! Component: 350  -  total flux cleaned = -0.00209053 Jy
! Component: 400  -  total flux cleaned = -0.0022008 Jy
! Component: 450  -  total flux cleaned = -0.00233612 Jy
! Component: 500  -  total flux cleaned = -0.00241556 Jy
! Component: 550  -  total flux cleaned = -0.00251985 Jy
! Component: 600  -  total flux cleaned = -0.00259662 Jy
! Component: 650  -  total flux cleaned = -0.00267225 Jy
! Component: 700  -  total flux cleaned = -0.00264751 Jy
! Component: 750  -  total flux cleaned = -0.00267233 Jy
! Component: 800  -  total flux cleaned = -0.00274494 Jy
! Component: 850  -  total flux cleaned = -0.00274483 Jy
! Component: 900  -  total flux cleaned = -0.00274515 Jy
! Component: 950  -  total flux cleaned = -0.00281545 Jy
! Component: 1000  -  total flux cleaned = -0.0027919 Jy
! Total flux subtracted in 1024 components = -0.00281498 Jy
! Clean residual min=-0.001172 max=0.001920 Jy/beam
! Clean residual mean=-0.000000 rms=0.000435 Jy/beam
! Combined flux in latest and established models = 1.12695 Jy
keep
! Adding 80 model components to the UV plane model.
! The established model now contains 168 components and 1.12695 Jy
![Exited script file: muppet]
wmap "J2236+2828_X_2000_05_22_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6277 x 1.127 at -10.44 degrees (North through East)
! Clean map  min=-0.0018638  max=0.86267 Jy/beam
! Writing clean map to FITS file: J2236+2828_X_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.862672 
invert
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1564 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000434694 
device "J2236+2828_X_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J2236+2828_X_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.151168 0.151168 0.302336 0.604671 1.20934 2.41868 4.83737 9.67474 19.3495 38.699 77.3979
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.862 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6277 x 1.127 at -10.44 degrees (North through East)
! Clean map  min=-0.0018638  max=0.86267 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2236+2828_X_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J2236+2828_X_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2236+2828_X_2000_05_22_pus_uvs.log closed on Mon Nov 12 16:36:56 2007