! Started logfile: J1746+6226_S_2001_07_05_pus_uvs.log on Fri Aug 10 02:21:42 2007
obs J1746+6226_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1746+6226_S_2001_07_05_pus_uva.fits
! AN table 1: 151 integrations on 171 of 171 possible baselines.
! AN table 2: 195 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.304533 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1746+6226
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 72072 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 
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 1578 telescope corrections were flagged in sub-array 1.
!  A total of 1934 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 1578 telescope corrections were flagged in sub-array 1.
!  A total of 1934 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 1578 telescope corrections were flagged in sub-array 1.
!  A total of 1934 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 1578 telescope corrections were flagged in sub-array 1.
!  A total of 1934 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.891498Jy  sigma=0.006932
! Fit after  self-cal, rms=0.814771Jy  sigma=0.006429
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.987 mas, bmaj=2.127 mas, bpa=-36.62 degrees
! Estimated noise=704.807 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.158757 Jy
! Component: 100  -  total flux cleaned = 0.203442 Jy
! Total flux subtracted in 100 components = 0.203442 Jy
! Clean residual min=-0.007729 max=0.020407 Jy/beam
! Clean residual mean=0.000088 rms=0.002211 Jy/beam
! Combined flux in latest and established models = 0.203442 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.203442 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231852Jy  sigma=0.001536
! Fit after  self-cal, rms=0.231662Jy  sigma=0.001535
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.023683 Jy
! Component: 100  -  total flux cleaned = 0.0364992 Jy
! Total flux subtracted in 100 components = 0.0364992 Jy
! Clean residual min=-0.006928 max=0.008641 Jy/beam
! Clean residual mean=0.000077 rms=0.001881 Jy/beam
! Combined flux in latest and established models = 0.239941 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 12 components and 0.239941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228524Jy  sigma=0.001503
! Fit after  self-cal, rms=0.228357Jy  sigma=0.001502
! 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.349 mas, bmaj=2.452 mas, bpa=-32.38 degrees
! Estimated noise=343.686 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 (-1, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0146313 Jy
! Component: 100  -  total flux cleaned = 0.023705 Jy
! Component: 150  -  total flux cleaned = 0.0299096 Jy
! Component: 200  -  total flux cleaned = 0.0343057 Jy
! Total flux subtracted in 200 components = 0.0343057 Jy
! Clean residual min=-0.003865 max=0.011360 Jy/beam
! Clean residual mean=0.000299 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 0.274246 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 42 components and 0.274246 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227323Jy  sigma=0.001492
! Fit after  self-cal, rms=0.227215Jy  sigma=0.001491
! Inverting map 
! Added new window around map position (-8, -12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.011193 Jy
! Component: 100  -  total flux cleaned = 0.0180308 Jy
! Component: 150  -  total flux cleaned = 0.0228485 Jy
! Component: 200  -  total flux cleaned = 0.0265281 Jy
! Total flux subtracted in 200 components = 0.0265281 Jy
! Clean residual min=-0.003605 max=0.007068 Jy/beam
! Clean residual mean=0.000246 rms=0.001016 Jy/beam
! Combined flux in latest and established models = 0.300774 Jy
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 86 components and 0.300774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226625Jy  sigma=0.001485
! Fit after  self-cal, rms=0.226522Jy  sigma=0.001484
! Inverting map 
! Added new window around map position (-12.5, -19.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0069492 Jy
! Component: 100  -  total flux cleaned = 0.0113252 Jy
! Component: 150  -  total flux cleaned = 0.0147505 Jy
! Component: 200  -  total flux cleaned = 0.0175604 Jy
! Total flux subtracted in 200 components = 0.0175604 Jy
! Clean residual min=-0.003284 max=0.004282 Jy/beam
! Clean residual mean=0.000212 rms=0.000845 Jy/beam
! Combined flux in latest and established models = 0.318335 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 112 components and 0.318335 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226264Jy  sigma=0.001481
! Fit after  self-cal, rms=0.226237Jy  sigma=0.001481
! Inverting map 
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        1.05     FD        0.99     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.88     KK        1.04     KP        1.08     
!   LA        1.06     MC        1.21     MK        1.04     NL        0.97     
!   NY        1.00     OV        1.00     PT        1.00     SC        1.00     
!   TS        1.02     WF        1.00     WZ        1.01     
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.97     KP        1.07     
!   LA        1.03     MC        1.06     MK        1.02     NL        1.00     
!   NY        1.00     OV        0.96     PT        0.97     SC        1.05     
!   TS        1.13     WF        0.93     WZ        1.03     
! 
! 
! Correcting IF 2.
!  A total of 87 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.00     KP        0.76     
!   LA        0.99     MC        1.00     MK        1.03     NL        0.96     
!   NY        0.96     OV        1.05     PT        1.02     SC        1.02     
!   TS        1.04     WF        0.96     WZ        0.94     
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00     KP        0.99     
!   LA        0.96     MC        1.00     MK        0.97     NL        0.96     
!   NY        0.98     OV        1.00     PT        1.03     SC        1.08     
!   TS        1.08     WF        1.00     WZ        1.10     
! 
! 
! Correcting IF 3.
!  A total of 87 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.01     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.04     KP        1.06     
!   LA        0.98     MC        0.98     MK        1.05     NL        0.97     
!   NY        1.01     OV        1.11     PT        0.99     SC        1.01     
!   TS        1.05     WF        0.94     WZ        0.90     
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.94     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.99     KP        1.01     
!   LA        0.98     MC        1.68     MK        0.99     NL        1.02     
!   NY        0.98     OV        0.99     PT        0.93     SC        1.03     
!   TS        1.07     WF        0.91     WZ        1.05     
! 
! 
! 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.99     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.89     KK        1.02     KP        1.07     
!   LA        1.05     MC        0.86     MK        1.01     NL        0.96     
!   NY        0.91     OV        1.01     PT        0.93     SC        0.97     
!   TS        1.10     WF        0.89     WZ        0.95     
! 
!  A total of 141 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.03     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.95     KP        1.04     
!   LA        1.01     MC        0.71     MK        1.02     NL        1.01     
!   NY        0.94     OV        0.98     PT        0.93     SC        1.02     
!   TS        1.16     WF        0.89     WZ        1.02     
! 
! 
! Fit before self-cal, rms=0.226237Jy  sigma=0.001481
! Fit after  self-cal, rms=0.210802Jy  sigma=0.001476
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.354 mas, bmaj=2.471 mas, bpa=-36.82 degrees
! Estimated noise=344.13 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 (-14.5, -25).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00422967 Jy
! Component: 100  -  total flux cleaned = 0.00717157 Jy
! Component: 150  -  total flux cleaned = 0.00953334 Jy
! Component: 200  -  total flux cleaned = 0.0112719 Jy
! Total flux subtracted in 200 components = 0.0112719 Jy
! Clean residual min=-0.002334 max=0.002875 Jy/beam
! Clean residual mean=0.000117 rms=0.000627 Jy/beam
! Combined flux in latest and established models = 0.329607 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 144 components and 0.329607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210695Jy  sigma=0.001475
! Fit after  self-cal, rms=0.210862Jy  sigma=0.001474
! 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.210862Jy  sigma=0.001474
! Fit after  self-cal, rms=0.209899Jy  sigma=0.001474
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.356 mas, bmaj=2.47 mas, bpa=-37.02 degrees
! Estimated noise=344.774 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0020856 Jy
! Component: 100  -  total flux cleaned = 0.00340713 Jy
! Component: 150  -  total flux cleaned = 0.00460028 Jy
! Component: 200  -  total flux cleaned = 0.0052801 Jy
! Total flux subtracted in 200 components = 0.0052801 Jy
! Clean residual min=-0.002426 max=0.002977 Jy/beam
! Clean residual mean=0.000097 rms=0.000628 Jy/beam
! Combined flux in latest and established models = 0.334887 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 151 components and 0.334887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209863Jy  sigma=0.001474
! Fit after  self-cal, rms=0.209961Jy  sigma=0.001474
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 (-41, 37.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00173262 Jy
! Component: 100  -  total flux cleaned = 0.00218701 Jy
! Component: 150  -  total flux cleaned = 0.00254384 Jy
! Component: 200  -  total flux cleaned = 0.00292084 Jy
! Total flux subtracted in 200 components = 0.00292084 Jy
! Clean residual min=-0.002475 max=0.002798 Jy/beam
! Clean residual mean=0.000085 rms=0.000624 Jy/beam
! Combined flux in latest and established models = 0.337808 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 162 components and 0.337808 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209925Jy  sigma=0.001473
! Fit after  self-cal, rms=0.209923Jy  sigma=0.001473
! Inverting map 
! Added new window around map position (26.5, 55).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00143096 Jy
! Component: 100  -  total flux cleaned = 0.00170021 Jy
! Component: 150  -  total flux cleaned = 0.00175344 Jy
! Component: 200  -  total flux cleaned = 0.00199242 Jy
! Total flux subtracted in 200 components = 0.00199242 Jy
! Clean residual min=-0.002487 max=0.002650 Jy/beam
! Clean residual mean=0.000076 rms=0.000617 Jy/beam
! Combined flux in latest and established models = 0.3398 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 175 components and 0.3398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209885Jy  sigma=0.001473
! Fit after  self-cal, rms=0.209886Jy  sigma=0.001473
! Inverting map 
! Added new window around map position (-37, -35.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00199041 Jy
! Component: 100  -  total flux cleaned = 0.00204075 Jy
! Component: 150  -  total flux cleaned = 0.00218222 Jy
! Component: 200  -  total flux cleaned = 0.00236248 Jy
! Total flux subtracted in 200 components = 0.00236248 Jy
! Clean residual min=-0.002489 max=0.002549 Jy/beam
! Clean residual mean=0.000069 rms=0.000606 Jy/beam
! Combined flux in latest and established models = 0.342163 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 184 components and 0.342163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209858Jy  sigma=0.001472
! Fit after  self-cal, rms=0.209858Jy  sigma=0.001472
! 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.209858Jy  sigma=0.001472
! Fit after  self-cal, rms=0.209140Jy  sigma=0.001472
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.358 mas, bmaj=2.469 mas, bpa=-37.98 degrees
! Estimated noise=345.405 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0013129 Jy
! Component: 100  -  total flux cleaned = 0.00187198 Jy
! Component: 150  -  total flux cleaned = 0.00226528 Jy
! Component: 200  -  total flux cleaned = 0.00255382 Jy
! Total flux subtracted in 200 components = 0.00255382 Jy
! Clean residual min=-0.002544 max=0.002637 Jy/beam
! Clean residual mean=0.000062 rms=0.000604 Jy/beam
! Combined flux in latest and established models = 0.344717 Jy
selfcal
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 191 components and 0.344717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209126Jy  sigma=0.001472
! Fit after  self-cal, rms=0.209195Jy  sigma=0.001472
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 (0.5, 34).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00205219 Jy
! Component: 100  -  total flux cleaned = 0.00248162 Jy
! Component: 150  -  total flux cleaned = 0.00274008 Jy
! Component: 200  -  total flux cleaned = 0.00298469 Jy
! Total flux subtracted in 200 components = 0.00298469 Jy
! Clean residual min=-0.002433 max=0.002307 Jy/beam
! Clean residual mean=0.000054 rms=0.000593 Jy/beam
! Combined flux in latest and established models = 0.347701 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 204 components and 0.347701 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209166Jy  sigma=0.001472
! Fit after  self-cal, rms=0.209168Jy  sigma=0.001472
! 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.209168Jy  sigma=0.001472
! Fit after  self-cal, rms=0.208697Jy  sigma=0.001472
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.651 mas, bmaj=8.046 mas, bpa=-75.7 degrees
! Estimated noise=573.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00293216 Jy
! Component: 100  -  total flux cleaned = 0.00454204 Jy
! Component: 150  -  total flux cleaned = 0.00558987 Jy
! Component: 200  -  total flux cleaned = 0.00616159 Jy
! Total flux subtracted in 200 components = 0.00616159 Jy
! Clean residual min=-0.002476 max=0.003416 Jy/beam
! Clean residual mean=0.000160 rms=0.001024 Jy/beam
! Combined flux in latest and established models = 0.353863 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 225 components and 0.353863 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208700Jy  sigma=0.001472
! Fit after  self-cal, rms=0.208742Jy  sigma=0.001472
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.000515737 Jy
! Component: 100  -  total flux cleaned = 0.000710352 Jy
! Component: 150  -  total flux cleaned = 0.000837345 Jy
! Component: 200  -  total flux cleaned = 0.000931215 Jy
! Total flux subtracted in 200 components = 0.000931215 Jy
! Clean residual min=-0.002526 max=0.003367 Jy/beam
! Clean residual mean=0.000147 rms=0.001022 Jy/beam
! Combined flux in latest and established models = 0.354794 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 235 components and 0.354794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208743Jy  sigma=0.001472
! Fit after  self-cal, rms=0.208745Jy  sigma=0.001472
! 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.359 mas, bmaj=2.468 mas, bpa=-38.32 degrees
! Estimated noise=345.459 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.359 x 2.468 at -38.32 degrees (North through East)
! Clean map  min=-0.0020382  max=0.21205 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
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=1.998 mas, bmaj=2.124 mas, bpa=-41.36 degrees
! Estimated noise=711.392 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.158876 Jy
! Component: 100  -  total flux cleaned = 0.206318 Jy
! Component: 150  -  total flux cleaned = 0.230122 Jy
! Component: 200  -  total flux cleaned = 0.243947 Jy
! Total flux subtracted in 200 components = 0.243947 Jy
! Clean residual min=-0.006968 max=0.007850 Jy/beam
! Clean residual mean=0.000070 rms=0.001857 Jy/beam
! Combined flux in latest and established models = 0.243947 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 15 model components to the UV plane model.
! The established model now contains 15 components and 0.243947 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.359 mas, bmaj=2.468 mas, bpa=-38.32 degrees
! Estimated noise=345.459 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.0165993 Jy
! Component: 100  -  total flux cleaned = 0.0287117 Jy
! Component: 150  -  total flux cleaned = 0.0381476 Jy
! Component: 200  -  total flux cleaned = 0.0457652 Jy
! Total flux subtracted in 200 components = 0.0457652 Jy
! Clean residual min=-0.003018 max=0.004630 Jy/beam
! Clean residual mean=0.000224 rms=0.001030 Jy/beam
! Combined flux in latest and established models = 0.289712 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 63 components and 0.289712 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00636823 Jy
! Component: 100  -  total flux cleaned = 0.0118974 Jy
! Component: 150  -  total flux cleaned = 0.0167901 Jy
! Component: 200  -  total flux cleaned = 0.0211665 Jy
! Total flux subtracted in 200 components = 0.0211665 Jy
! Clean residual min=-0.002560 max=0.003721 Jy/beam
! Clean residual mean=0.000161 rms=0.000810 Jy/beam
! Combined flux in latest and established models = 0.310879 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 106 components and 0.310879 Jy
! Inverting map 
! Added new window around map position (-19, -23.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00424762 Jy
! Component: 100  -  total flux cleaned = 0.00793527 Jy
! Component: 150  -  total flux cleaned = 0.0112975 Jy
! Component: 200  -  total flux cleaned = 0.0143781 Jy
! Total flux subtracted in 200 components = 0.0143781 Jy
! Clean residual min=-0.002388 max=0.003092 Jy/beam
! Clean residual mean=0.000117 rms=0.000701 Jy/beam
! Combined flux in latest and established models = 0.325257 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 134 components and 0.325257 Jy
! Inverting map 
! Added new window around map position (-45.5, 57.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00292249 Jy
! Component: 100  -  total flux cleaned = 0.00530553 Jy
! Component: 150  -  total flux cleaned = 0.00740926 Jy
! Component: 200  -  total flux cleaned = 0.00936852 Jy
! Total flux subtracted in 200 components = 0.00936852 Jy
! Clean residual min=-0.002257 max=0.002468 Jy/beam
! Clean residual mean=0.000087 rms=0.000638 Jy/beam
! Combined flux in latest and established models = 0.334626 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 153 components and 0.334626 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.651 mas, bmaj=8.046 mas, bpa=-75.7 degrees
! Estimated noise=573.79 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00604783 Jy
! Component: 100  -  total flux cleaned = 0.00988537 Jy
! Component: 150  -  total flux cleaned = 0.0126934 Jy
! Component: 200  -  total flux cleaned = 0.0149112 Jy
! Total flux subtracted in 200 components = 0.0149112 Jy
! Clean residual min=-0.002624 max=0.002957 Jy/beam
! Clean residual mean=0.000182 rms=0.000937 Jy/beam
! Combined flux in latest and established models = 0.349537 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.00179158 Jy
! Component: 100  -  total flux cleaned = 0.0032669 Jy
! Component: 150  -  total flux cleaned = 0.00440566 Jy
! Component: 200  -  total flux cleaned = 0.00500547 Jy
! Total flux subtracted in 200 components = 0.00500548 Jy
! Clean residual min=-0.002337 max=0.002777 Jy/beam
! Clean residual mean=0.000112 rms=0.000868 Jy/beam
! Combined flux in latest and established models = 0.354542 Jy
! Adding 93 model components to the UV plane model.
! The established model now contains 226 components and 0.354542 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.359 mas, bmaj=2.468 mas, bpa=-38.32 degrees
! Estimated noise=345.459 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000913114 Jy
! Component: 100  -  total flux cleaned = -0.0010622 Jy
! Component: 150  -  total flux cleaned = -0.000869104 Jy
! Component: 200  -  total flux cleaned = -0.000929796 Jy
! Total flux subtracted in 200 components = -0.000929796 Jy
! Clean residual min=-0.002318 max=0.002346 Jy/beam
! Clean residual mean=0.000030 rms=0.000575 Jy/beam
! Combined flux in latest and established models = 0.353612 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 244 components and 0.353612 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208722Jy  sigma=0.001471
! Fit after  self-cal, rms=0.208701Jy  sigma=0.001471
wmodel J1746+6226_S_2001_07_05_pus_map.mod
! Writing 244 model components to file: J1746+6226_S_2001_07_05_pus_map.mod
wobs J1746+6226_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1746+6226_S_2001_07_05_pus_uvs.fits
wwins J1746+6226_S_2001_07_05_pus_map.win
! wwins: Wrote 11 windows to J1746+6226_S_2001_07_05_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.000133359 Jy
! Component: 100  -  total flux cleaned = 0.000214223 Jy
! Component: 150  -  total flux cleaned = 0.000213334 Jy
! Component: 200  -  total flux cleaned = 0.000174834 Jy
! Component: 250  -  total flux cleaned = 0.000212905 Jy
! Component: 300  -  total flux cleaned = 0.000396377 Jy
! Component: 350  -  total flux cleaned = 0.000504077 Jy
! Component: 400  -  total flux cleaned = 0.00061012 Jy
! Component: 450  -  total flux cleaned = 0.000783974 Jy
! Component: 500  -  total flux cleaned = 0.00092059 Jy
! Component: 550  -  total flux cleaned = 0.000987954 Jy
! Component: 600  -  total flux cleaned = 0.00105491 Jy
! Component: 650  -  total flux cleaned = 0.00121954 Jy
! Component: 700  -  total flux cleaned = 0.00134959 Jy
! Component: 750  -  total flux cleaned = 0.00150991 Jy
! Component: 800  -  total flux cleaned = 0.0015734 Jy
! Component: 850  -  total flux cleaned = 0.00169956 Jy
! Component: 900  -  total flux cleaned = 0.00182454 Jy
! Component: 950  -  total flux cleaned = 0.00194847 Jy
! Component: 1000  -  total flux cleaned = 0.00213247 Jy
! Component: 1050  -  total flux cleaned = 0.00225379 Jy
! Component: 1100  -  total flux cleaned = 0.00237454 Jy
! Component: 1150  -  total flux cleaned = 0.00258353 Jy
! Component: 1200  -  total flux cleaned = 0.00267261 Jy
! Component: 1250  -  total flux cleaned = 0.00287826 Jy
! Component: 1300  -  total flux cleaned = 0.00299451 Jy
! Component: 1350  -  total flux cleaned = 0.00310979 Jy
! Component: 1400  -  total flux cleaned = 0.00319581 Jy
! Component: 1450  -  total flux cleaned = 0.00333808 Jy
! Component: 1500  -  total flux cleaned = 0.00342301 Jy
! Component: 1550  -  total flux cleaned = 0.00350689 Jy
! Component: 1600  -  total flux cleaned = 0.00359094 Jy
! Component: 1650  -  total flux cleaned = 0.00364616 Jy
! Component: 1700  -  total flux cleaned = 0.00381142 Jy
! Component: 1750  -  total flux cleaned = 0.0038388 Jy
! Component: 1800  -  total flux cleaned = 0.00389337 Jy
! Component: 1850  -  total flux cleaned = 0.00402854 Jy
! Component: 1900  -  total flux cleaned = 0.00410911 Jy
! Component: 1950  -  total flux cleaned = 0.00413583 Jy
! Component: 2000  -  total flux cleaned = 0.0042684 Jy
! Total flux subtracted in 2048 components = 0.00434747 Jy
! Clean residual min=-0.001548 max=0.001970 Jy/beam
! Clean residual mean=0.000012 rms=0.000474 Jy/beam
! Combined flux in latest and established models = 0.35796 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 402 components and 0.35796 Jy
wmap "J1746+6226_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.359 x 2.468 at -38.32 degrees (North through East)
! Clean map  min=-0.0018744  max=0.21178 Jy/beam
! Writing clean map to FITS file: J1746+6226_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.211781 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000473795 
device "J1746+6226_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1746+6226_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.671158 0.671158 1.34232 2.68463 5.36926 10.7385 21.4771 42.9541 85.9082
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.211 
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.359 x 2.468 at -38.32 degrees (North through East)
! Clean map  min=-0.0018744  max=0.21178 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1746+6226_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1746+6226_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1746+6226_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 02:24:14 2007