! Started logfile: J2236+2828_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:23:20 2008
obs J2236+2828_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J2236+2828_X_2001_10_29_pus_uva.fits
! AN table 1: 142 integrations on 153 of 153 possible baselines.
! AN table 2: 332 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.113317 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 1970 lines of history.
! 
! Reading 32872 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_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 1782 telescope corrections were flagged in sub-array 1.
!  A total of 4708 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 1782 telescope corrections were flagged in sub-array 1.
!  A total of 4708 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 1782 telescope corrections were flagged in sub-array 1.
!  A total of 4708 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 1782 telescope corrections were flagged in sub-array 1.
!  A total of 4708 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.870018Jy  sigma=0.007857
! Fit after  self-cal, rms=0.433771Jy  sigma=0.003745
! 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 7.5% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.5346 mas, bmaj=1.15 mas, bpa=-7.251 degrees
! Estimated noise=891.592 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.742078 Jy
! Component: 100  -  total flux cleaned = 1.0161 Jy
! Total flux subtracted in 100 components = 1.0161 Jy
! Clean residual min=-0.032266 max=0.124658 Jy/beam
! Clean residual mean=0.001154 rms=0.011791 Jy/beam
! Combined flux in latest and established models = 1.0161 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.0161 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301103Jy  sigma=0.002711
! Fit after  self-cal, rms=0.300343Jy  sigma=0.002708
! Inverting map 
! Your choice of large map pixels excluded 7.5% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.138626 Jy
! Component: 100  -  total flux cleaned = 0.212736 Jy
! Total flux subtracted in 100 components = 0.212736 Jy
! Clean residual min=-0.017701 max=0.037973 Jy/beam
! Clean residual mean=0.000635 rms=0.006096 Jy/beam
! Combined flux in latest and established models = 1.22883 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 12 components and 1.22883 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211757Jy  sigma=0.001732
! Fit after  self-cal, rms=0.211487Jy  sigma=0.001731
! Inverting map 
! Your choice of large map pixels excluded 7.5% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.046718 Jy
! Component: 100  -  total flux cleaned = 0.0780106 Jy
! Total flux subtracted in 100 components = 0.0780106 Jy
! Clean residual min=-0.015753 max=0.024066 Jy/beam
! Clean residual mean=0.000431 rms=0.004834 Jy/beam
! Combined flux in latest and established models = 1.30685 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 21 components and 1.30685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197535Jy  sigma=0.001539
! Fit after  self-cal, rms=0.197491Jy  sigma=0.001539
! Inverting map 
! Your choice of large map pixels excluded 7.5% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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 7.5% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.6178 mas, bmaj=1.389 mas, bpa=-8.738 degrees
! Estimated noise=461.277 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.0332314 Jy
! Component: 100  -  total flux cleaned = 0.050846 Jy
! Component: 150  -  total flux cleaned = 0.0610964 Jy
! Component: 200  -  total flux cleaned = 0.0672299 Jy
! Total flux subtracted in 200 components = 0.0672299 Jy
! Clean residual min=-0.014360 max=0.019777 Jy/beam
! Clean residual mean=0.000453 rms=0.004253 Jy/beam
! Combined flux in latest and established models = 1.37408 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 33 components and 1.37408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194009Jy  sigma=0.001465
! Fit after  self-cal, rms=0.193984Jy  sigma=0.001465
! Inverting map 
! Your choice of large map pixels excluded 7.5% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 168 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.25     KP        0.96     LA        0.95     
!   MA        1.01     MC        1.03     MK        1.05     NL        0.97     
!   OV        0.94     PT        0.98     SC        0.91     TS        1.00*    
!   WF        0.97     WZ        0.99     
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.04     KK        1.01     KP        0.98     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.00     
!   OV        0.99     PT        1.00     SC        1.18     TS        0.99     
!   WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 168 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.30     KP        0.97     LA        0.93     
!   MA        1.00     MC        1.04     MK        1.04     NL        0.94     
!   OV        0.95     PT        0.96     SC        0.88     TS        1.00*    
!   WF        0.94     WZ        0.99     
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.04     KP        1.00     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.97     
!   OV        0.99     PT        0.98     SC        1.16     TS        1.00     
!   WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 168 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.26     KP        0.97     LA        0.96     
!   MA        1.02     MC        1.01     MK        1.08     NL        0.98     
!   OV        0.93     PT        0.99     SC        0.91     TS        1.00*    
!   WF        1.03     WZ        1.01     
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.05     KK        1.02     KP        0.99     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.01     
!   OV        0.98     PT        1.01     SC        1.21     TS        1.00     
!   WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 168 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.25     KP        0.98     LA        0.95     
!   MA        1.02     MC        1.04     MK        1.13     NL        1.00     
!   OV        0.92     PT        0.98     SC        0.95     TS        1.00*    
!   WF        1.01     WZ        0.96     
! 
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.07     KK        1.02     KP        1.01     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.03     
!   OV        0.98     PT        1.01     SC        1.28     TS        1.02     
!   WF        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.193984Jy  sigma=0.001465
! Fit after  self-cal, rms=0.180679Jy  sigma=0.001314
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.6205 mas, bmaj=1.388 mas, bpa=-9.116 degrees
! Estimated noise=463.83 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.00461059 Jy
! Component: 100  -  total flux cleaned = 0.00446792 Jy
! Component: 150  -  total flux cleaned = 0.00408963 Jy
! Component: 200  -  total flux cleaned = 0.00376316 Jy
! Total flux subtracted in 200 components = 0.00376316 Jy
! Clean residual min=-0.007873 max=0.008980 Jy/beam
! Clean residual mean=0.000035 rms=0.002141 Jy/beam
! Combined flux in latest and established models = 1.37784 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 35 components and 1.37784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180533Jy  sigma=0.001311
! Fit after  self-cal, rms=0.180654Jy  sigma=0.001310
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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.180654Jy  sigma=0.001310
! Fit after  self-cal, rms=0.176472Jy  sigma=0.001252
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.6158 mas, bmaj=1.394 mas, bpa=-9.166 degrees
! Estimated noise=462.308 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000693706 Jy
! Component: 100  -  total flux cleaned = -0.000694426 Jy
! Component: 150  -  total flux cleaned = -0.00070788 Jy
! Component: 200  -  total flux cleaned = -0.00064522 Jy
! Total flux subtracted in 200 components = -0.00064522 Jy
! Clean residual min=-0.003017 max=0.007142 Jy/beam
! Clean residual mean=0.000025 rms=0.000872 Jy/beam
! Combined flux in latest and established models = 1.37719 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 39 components and 1.37719 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176194Jy  sigma=0.001250
! Fit after  self-cal, rms=0.176191Jy  sigma=0.001250
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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.2, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00589372 Jy
! Component: 100  -  total flux cleaned = 0.00757995 Jy
! Component: 150  -  total flux cleaned = 0.00819868 Jy
! Component: 200  -  total flux cleaned = 0.00832154 Jy
! Total flux subtracted in 200 components = 0.00832155 Jy
! Clean residual min=-0.002853 max=0.002580 Jy/beam
! Clean residual mean=-0.000087 rms=0.000714 Jy/beam
! Combined flux in latest and established models = 1.38551 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 59 components and 1.38551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175972Jy  sigma=0.001247
! Fit after  self-cal, rms=0.175940Jy  sigma=0.001247
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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.175940Jy  sigma=0.001247
! Fit after  self-cal, rms=0.175772Jy  sigma=0.001247
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.615 mas, bmaj=1.397 mas, bpa=-9.171 degrees
! Estimated noise=462.421 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00101119 Jy
! Component: 100  -  total flux cleaned = 0.00122387 Jy
! Component: 150  -  total flux cleaned = 0.00154401 Jy
! Component: 200  -  total flux cleaned = 0.00187745 Jy
! Total flux subtracted in 200 components = 0.00187745 Jy
! Clean residual min=-0.002332 max=0.002258 Jy/beam
! Clean residual mean=-0.000104 rms=0.000625 Jy/beam
! Combined flux in latest and established models = 1.38739 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 71 components and 1.38739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175695Jy  sigma=0.001246
! Fit after  self-cal, rms=0.175685Jy  sigma=0.001246
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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.000520228 Jy
! Component: 100  -  total flux cleaned = 0.000801385 Jy
! Component: 150  -  total flux cleaned = 0.00104677 Jy
! Component: 200  -  total flux cleaned = 0.0011916 Jy
! Total flux subtracted in 200 components = 0.0011916 Jy
! Clean residual min=-0.002247 max=0.002245 Jy/beam
! Clean residual mean=-0.000119 rms=0.000602 Jy/beam
! Combined flux in latest and established models = 1.38858 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 78 components and 1.38858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175660Jy  sigma=0.001245
! Fit after  self-cal, rms=0.175656Jy  sigma=0.001245
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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.175656Jy  sigma=0.001245
! Fit after  self-cal, rms=0.175650Jy  sigma=0.001245
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=2.208 mas, bmaj=2.579 mas, bpa=-15.56 degrees
! Estimated noise=667.396 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00152239 Jy
! Component: 100  -  total flux cleaned = 0.00152439 Jy
! Component: 150  -  total flux cleaned = 0.00155606 Jy
! Component: 200  -  total flux cleaned = 0.00158226 Jy
! Total flux subtracted in 200 components = 0.00158226 Jy
! Clean residual min=-0.002540 max=0.002170 Jy/beam
! Clean residual mean=-0.000440 rms=0.000754 Jy/beam
! Combined flux in latest and established models = 1.39017 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 87 components and 1.39017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175662Jy  sigma=0.001245
! Fit after  self-cal, rms=0.175657Jy  sigma=0.001245
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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.000264452 Jy
! Component: 100  -  total flux cleaned = 0.000292649 Jy
! Component: 150  -  total flux cleaned = 0.000315377 Jy
! Component: 200  -  total flux cleaned = 0.000315385 Jy
! Total flux subtracted in 200 components = 0.000315385 Jy
! Clean residual min=-0.002508 max=0.002091 Jy/beam
! Clean residual mean=-0.000452 rms=0.000746 Jy/beam
! Combined flux in latest and established models = 1.39048 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 88 components and 1.39048 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175664Jy  sigma=0.001245
! Fit after  self-cal, rms=0.175662Jy  sigma=0.001245
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.6149 mas, bmaj=1.398 mas, bpa=-9.168 degrees
! Estimated noise=462.637 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6149 x 1.398 at -9.168 degrees (North through East)
! Clean map  min=-0.0019681  max=1.0062 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.175662Jy  sigma=0.001245
! Fit after  self-cal, rms=0.165998Jy  sigma=0.001137
! Inverting map and beam 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.6149 mas, bmaj=1.398 mas, bpa=-9.152 degrees
! Estimated noise=462.605 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000512631 Jy
! Component: 100  -  total flux cleaned = -0.000279521 Jy
! Component: 150  -  total flux cleaned = -8.49307e-05 Jy
! Component: 200  -  total flux cleaned = 8.06576e-05 Jy
! Total flux subtracted in 200 components = 8.06576e-05 Jy
! Clean residual min=-0.002033 max=0.002052 Jy/beam
! Clean residual mean=-0.000084 rms=0.000533 Jy/beam
! Combined flux in latest and established models = 1.39056 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 90 components and 1.39056 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165983Jy  sigma=0.001137
! Fit after  self-cal, rms=0.165980Jy  sigma=0.001137
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000203835 Jy
! Component: 100  -  total flux cleaned = 0.000369862 Jy
! Component: 150  -  total flux cleaned = 0.000491406 Jy
! Component: 200  -  total flux cleaned = 0.000577611 Jy
! Total flux subtracted in 200 components = 0.000577611 Jy
! Clean residual min=-0.001974 max=0.002054 Jy/beam
! Clean residual mean=-0.000092 rms=0.000524 Jy/beam
! Combined flux in latest and established models = 1.39114 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 92 components and 1.39114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165979Jy  sigma=0.001136
! Fit after  self-cal, rms=0.165976Jy  sigma=0.001136
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165976Jy  sigma=0.001136
! Fit after  self-cal, rms=0.166013Jy  sigma=0.001136
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 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.5325 mas, bmaj=1.159 mas, bpa=-7.971 degrees
! Estimated noise=891.819 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.744708 Jy
! Component: 100  -  total flux cleaned = 1.02406 Jy
! Component: 150  -  total flux cleaned = 1.1635 Jy
! Component: 200  -  total flux cleaned = 1.23728 Jy
! Total flux subtracted in 200 components = 1.23728 Jy
! Clean residual min=-0.009811 max=0.036721 Jy/beam
! Clean residual mean=0.000429 rms=0.003821 Jy/beam
! Combined flux in latest and established models = 1.23728 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 10 model components to the UV plane model.
! The established model now contains 10 components and 1.23728 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.6148 mas, bmaj=1.4 mas, bpa=-9.153 degrees
! Estimated noise=462.725 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.0629109 Jy
! Component: 100  -  total flux cleaned = 0.0955611 Jy
! Component: 150  -  total flux cleaned = 0.114536 Jy
! Component: 200  -  total flux cleaned = 0.126406 Jy
! Total flux subtracted in 200 components = 0.126406 Jy
! Clean residual min=-0.003026 max=0.007149 Jy/beam
! Clean residual mean=0.000278 rms=0.001108 Jy/beam
! Combined flux in latest and established models = 1.36368 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 35 components and 1.36368 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Added new window around map position (0.6, 0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00811548 Jy
! Component: 100  -  total flux cleaned = 0.0138169 Jy
! Component: 150  -  total flux cleaned = 0.0179638 Jy
! Component: 200  -  total flux cleaned = 0.0210169 Jy
! Total flux subtracted in 200 components = 0.0210169 Jy
! Clean residual min=-0.002259 max=0.002473 Jy/beam
! Clean residual mean=-0.000008 rms=0.000612 Jy/beam
! Combined flux in latest and established models = 1.3847 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 56 components and 1.3847 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 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 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=2.207 mas, bmaj=2.58 mas, bpa=-15.46 degrees
! Estimated noise=667.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00397347 Jy
! Component: 100  -  total flux cleaned = 0.00573687 Jy
! Component: 150  -  total flux cleaned = 0.00616326 Jy
! Component: 200  -  total flux cleaned = 0.00627111 Jy
! Total flux subtracted in 200 components = 0.00627111 Jy
! Clean residual min=-0.002223 max=0.001895 Jy/beam
! Clean residual mean=-0.000295 rms=0.000662 Jy/beam
! Combined flux in latest and established models = 1.39097 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 = 8.8977e-05 Jy
! Component: 100  -  total flux cleaned = 0.000162635 Jy
! Component: 150  -  total flux cleaned = 0.000204425 Jy
! Component: 200  -  total flux cleaned = 0.000240449 Jy
! Total flux subtracted in 200 components = 0.000240449 Jy
! Clean residual min=-0.002089 max=0.001733 Jy/beam
! Clean residual mean=-0.000305 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 1.39121 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 81 components and 1.39121 Jy
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! Estimated beam: bmin=0.6148 mas, bmaj=1.4 mas, bpa=-9.153 degrees
! Estimated noise=462.725 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00116369 Jy
! Component: 100  -  total flux cleaned = -0.00123087 Jy
! Component: 150  -  total flux cleaned = -0.00117116 Jy
! Component: 200  -  total flux cleaned = -0.00116992 Jy
! Total flux subtracted in 200 components = -0.00116992 Jy
! Clean residual min=-0.001898 max=0.001988 Jy/beam
! Clean residual mean=-0.000079 rms=0.000527 Jy/beam
! Combined flux in latest and established models = 1.39004 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 90 components and 1.39004 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165799Jy  sigma=0.001135
! Fit after  self-cal, rms=0.165782Jy  sigma=0.001135
wmodel J2236+2828_X_2001_10_29_pus_map.mod
! Writing 90 model components to file: J2236+2828_X_2001_10_29_pus_map.mod
wobs J2236+2828_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J2236+2828_X_2001_10_29_pus_uvs.fits
wwins J2236+2828_X_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J2236+2828_X_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00067127 Jy
! Component: 100  -  total flux cleaned = 0.000671765 Jy
! Component: 150  -  total flux cleaned = 0.000487394 Jy
! Component: 200  -  total flux cleaned = 0.000457755 Jy
! Component: 250  -  total flux cleaned = 0.000343348 Jy
! Component: 300  -  total flux cleaned = 0.00023174 Jy
! Component: 350  -  total flux cleaned = 9.51303e-05 Jy
! Component: 400  -  total flux cleaned = -6.54331e-05 Jy
! Component: 450  -  total flux cleaned = -0.000249224 Jy
! Component: 500  -  total flux cleaned = -0.000403845 Jy
! Component: 550  -  total flux cleaned = -0.000580952 Jy
! Component: 600  -  total flux cleaned = -0.000755068 Jy
! Component: 650  -  total flux cleaned = -0.00092611 Jy
! Component: 700  -  total flux cleaned = -0.00109389 Jy
! Component: 750  -  total flux cleaned = -0.00121202 Jy
! Component: 800  -  total flux cleaned = -0.00130561 Jy
! Component: 850  -  total flux cleaned = -0.00146655 Jy
! Component: 900  -  total flux cleaned = -0.00153451 Jy
! Component: 950  -  total flux cleaned = -0.00162432 Jy
! Component: 1000  -  total flux cleaned = -0.00175696 Jy
! Total flux subtracted in 1024 components = -0.00182274 Jy
! Clean residual min=-0.001286 max=0.001103 Jy/beam
! Clean residual mean=-0.000058 rms=0.000432 Jy/beam
! Combined flux in latest and established models = 1.38822 Jy
keep
! Adding 79 model components to the UV plane model.
! The established model now contains 169 components and 1.38822 Jy
![Exited script file: muppet]
wmap "J2236+2828_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6148 x 1.4 at -9.153 degrees (North through East)
! Clean map  min=-0.0015496  max=1.0061 Jy/beam
! Writing clean map to FITS file: J2236+2828_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.00612 
invert
! Inverting map 
! Your choice of large map pixels excluded 7.39% of the data.
!  The x-axis pixel size should ideally be below 0.1556 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000432209 
device "J2236+2828_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J2236+2828_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.128874 0.128874 0.257749 0.515497 1.03099 2.06199 4.12398 8.24795 16.4959 32.9918 65.9836
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.006 
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.6148 x 1.4 at -9.153 degrees (North through East)
! Clean map  min=-0.0015496  max=1.0061 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2236+2828_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J2236+2828_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2236+2828_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:23:35 2008