! Started logfile: J1104+3812_S_2001_04_09_pus_uvs.log on Fri Oct  5 17:42:46 2007
obs J1104+3812_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1104+3812_S_2001_04_09_pus_uva.fits
! AN table 1: 115 integrations on 190 of 190 possible baselines.
! AN table 2: 401 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.203213 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1104+3812
! 
! 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 1953 lines of history.
! 
! Reading 79692 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1104+3812_S_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1387 telescope corrections were flagged in sub-array 1.
!  A total of 5282 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 1387 telescope corrections were flagged in sub-array 1.
!  A total of 5293 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 1387 telescope corrections were flagged in sub-array 1.
!  A total of 5281 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 1394 telescope corrections were flagged in sub-array 1.
!  A total of 5408 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.894004Jy  sigma=0.006469
! Fit after  self-cal, rms=0.734486Jy  sigma=0.005288
! 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.766 mas, bmaj=2.775 mas, bpa=5.839 degrees
! Estimated noise=833.737 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.226859 Jy
! Component: 100  -  total flux cleaned = 0.283605 Jy
! Total flux subtracted in 100 components = 0.283605 Jy
! Clean residual min=-0.006710 max=0.023369 Jy/beam
! Clean residual mean=0.000096 rms=0.001989 Jy/beam
! Combined flux in latest and established models = 0.283605 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.283605 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232879Jy  sigma=0.001398
! Fit after  self-cal, rms=0.232803Jy  sigma=0.001398
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0261842 Jy
! Component: 100  -  total flux cleaned = 0.0398852 Jy
! Total flux subtracted in 100 components = 0.0398852 Jy
! Clean residual min=-0.005751 max=0.014218 Jy/beam
! Clean residual mean=0.000072 rms=0.001591 Jy/beam
! Combined flux in latest and established models = 0.323491 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 0.323491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229139Jy  sigma=0.001355
! Fit after  self-cal, rms=0.229016Jy  sigma=0.001355
! Inverting map 
! Added new window around map position (-2.5, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.01371 Jy
! Component: 100  -  total flux cleaned = 0.0221199 Jy
! Total flux subtracted in 100 components = 0.0221199 Jy
! Clean residual min=-0.005615 max=0.007442 Jy/beam
! Clean residual mean=0.000059 rms=0.001448 Jy/beam
! Combined flux in latest and established models = 0.345611 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 21 components and 0.345611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227987Jy  sigma=0.001343
! Fit after  self-cal, rms=0.227896Jy  sigma=0.001343
! 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.21 mas, bmaj=3.419 mas, bpa=4.732 degrees
! Estimated noise=354.913 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.00936454 Jy
! Component: 100  -  total flux cleaned = 0.0149559 Jy
! Component: 150  -  total flux cleaned = 0.0185391 Jy
! Component: 200  -  total flux cleaned = 0.0208541 Jy
! Total flux subtracted in 200 components = 0.0208541 Jy
! Clean residual min=-0.003604 max=0.007713 Jy/beam
! Clean residual mean=0.001069 rms=0.001305 Jy/beam
! Combined flux in latest and established models = 0.366465 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 29 components and 0.366465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227541Jy  sigma=0.001338
! Fit after  self-cal, rms=0.227507Jy  sigma=0.001338
! Inverting map 
! Added new window around map position (-14.5, 13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00817361 Jy
! Component: 100  -  total flux cleaned = 0.0129791 Jy
! Component: 150  -  total flux cleaned = 0.0160319 Jy
! Component: 200  -  total flux cleaned = 0.0182396 Jy
! Total flux subtracted in 200 components = 0.0182396 Jy
! Clean residual min=-0.003214 max=0.005467 Jy/beam
! Clean residual mean=0.000874 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 0.384704 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 64 components and 0.384704 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227180Jy  sigma=0.001335
! Fit after  self-cal, rms=0.227151Jy  sigma=0.001335
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.98     KP        0.89     
!   LA        0.96     MA        0.91     MC        0.94     MK        1.03     
!   NL        0.97     NY        1.01     OV        0.97     PT        0.96     
!   SC        0.97     TS        1.00*    WF        0.91     WZ        1.06     
! 
!  A total of 255 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.05     GG        1.00*    
!   HH        1.11     HN        0.97     KK        0.99     KP        1.06     
!   LA        0.98     MA        0.94     MC        1.39     MK        0.97     
!   NL        1.00     NY        0.97     OV        1.03     PT        0.96     
!   SC        0.99     TS        0.95     WF        1.04     WZ        1.06     
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.94     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.03     KP        0.83     
!   LA        0.99     MA        1.16     MC        1.27     MK        1.06     
!   NL        0.98     NY        1.01     OV        0.98     PT        0.99     
!   SC        0.98     TS        1.00*    WF        1.12     WZ        1.04     
! 
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.99     GC        1.02     GG        1.00*    
!   HH        1.06     HN        0.95     KK        0.98     KP        0.98     
!   LA        0.98     MA        0.72     MC        1.91     MK        0.99     
!   NL        1.01     NY        0.98     OV        1.03     PT        1.00     
!   SC        1.03     TS        0.98     WF        0.97     WZ        1.01     
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.98     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.07     KP        1.00     
!   LA        0.96     MA        0.99     MC        1.18     MK        1.04     
!   NL        1.00     NY        1.02     OV        0.95     PT        0.93     
!   SC        0.94     TS        1.00*    WF        0.95     WZ        1.01     
! 
!  A total of 255 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.01     GC        1.03     GG        1.00*    
!   HH        1.04     HN        1.00     KK        1.00     KP        1.06     
!   LA        0.98     MA        0.99     MC        1.02     MK        0.97     
!   NL        1.02     NY        0.97     OV        1.00     PT        1.00     
!   SC        1.04     TS        0.97     WF        0.99     WZ        1.02     
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.99     KP        1.00     
!   LA        0.98     MA        0.83     MC        1.11     MK        1.03     
!   NL        1.00     NY        1.02     OV        0.97     PT        0.80     
!   SC        0.95     TS        1.00*    WF        1.02     WZ        1.05     
! 
!  A total of 156 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.02     GC        1.05     GG        1.00*    
!   HH        1.11     HN        1.00     KK        0.92     KP        1.06     
!   LA        1.01     MA        0.86     MC        1.00*    MK        0.94     
!   NL        1.01     NY        1.02     OV        1.00     PT        1.04     
!   SC        1.03     TS        0.95     WF        0.96     WZ        1.00     
! 
! 
! Fit before self-cal, rms=0.227151Jy  sigma=0.001335
! Fit after  self-cal, rms=0.224747Jy  sigma=0.001326
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.229 mas, bmaj=3.456 mas, bpa=3.507 degrees
! Estimated noise=355.581 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.00302735 Jy
! Component: 100  -  total flux cleaned = 0.00505202 Jy
! Component: 150  -  total flux cleaned = 0.00605751 Jy
! Component: 200  -  total flux cleaned = 0.00671443 Jy
! Total flux subtracted in 200 components = 0.00671443 Jy
! Clean residual min=-0.002509 max=0.004801 Jy/beam
! Clean residual mean=0.000779 rms=0.000975 Jy/beam
! Combined flux in latest and established models = 0.391419 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 81 components and 0.391419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224687Jy  sigma=0.001325
! Fit after  self-cal, rms=0.224774Jy  sigma=0.001325
! 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.224774Jy  sigma=0.001325
! Fit after  self-cal, rms=0.224974Jy  sigma=0.001324
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.229 mas, bmaj=3.461 mas, bpa=3.439 degrees
! Estimated noise=356.067 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00193943 Jy
! Component: 100  -  total flux cleaned = 0.00331267 Jy
! Component: 150  -  total flux cleaned = 0.00389069 Jy
! Component: 200  -  total flux cleaned = 0.00412278 Jy
! Total flux subtracted in 200 components = 0.00412278 Jy
! Clean residual min=-0.002130 max=0.004760 Jy/beam
! Clean residual mean=0.000719 rms=0.000938 Jy/beam
! Combined flux in latest and established models = 0.395541 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 88 components and 0.395541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224945Jy  sigma=0.001324
! Fit after  self-cal, rms=0.224951Jy  sigma=0.001324
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 (-34, 14).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00506832 Jy
! Component: 100  -  total flux cleaned = 0.0081915 Jy
! Component: 150  -  total flux cleaned = 0.0103857 Jy
! Component: 200  -  total flux cleaned = 0.0118066 Jy
! Total flux subtracted in 200 components = 0.0118066 Jy
! Clean residual min=-0.001826 max=0.003985 Jy/beam
! Clean residual mean=0.000584 rms=0.000808 Jy/beam
! Combined flux in latest and established models = 0.407348 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 106 components and 0.407348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224814Jy  sigma=0.001323
! Fit after  self-cal, rms=0.224800Jy  sigma=0.001323
! Inverting map 
! Added new window around map position (-50, 27.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00437343 Jy
! Component: 100  -  total flux cleaned = 0.00704673 Jy
! Component: 150  -  total flux cleaned = 0.00883441 Jy
! Component: 200  -  total flux cleaned = 0.0102211 Jy
! Total flux subtracted in 200 components = 0.0102211 Jy
! Clean residual min=-0.001769 max=0.003468 Jy/beam
! Clean residual mean=0.000489 rms=0.000735 Jy/beam
! Combined flux in latest and established models = 0.417569 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 133 components and 0.417569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224695Jy  sigma=0.001322
! Fit after  self-cal, rms=0.224684Jy  sigma=0.001322
! Inverting map 
! Added new window around map position (-49.5, 57).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00335095 Jy
! Component: 100  -  total flux cleaned = 0.00510067 Jy
! Component: 150  -  total flux cleaned = 0.00645344 Jy
! Component: 200  -  total flux cleaned = 0.00747241 Jy
! Total flux subtracted in 200 components = 0.00747241 Jy
! Clean residual min=-0.001717 max=0.003306 Jy/beam
! Clean residual mean=0.000423 rms=0.000696 Jy/beam
! Combined flux in latest and established models = 0.425041 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 151 components and 0.425041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224622Jy  sigma=0.001321
! Fit after  self-cal, rms=0.224614Jy  sigma=0.001321
! Inverting map 
! Added new window around map position (-19, 35).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00296341 Jy
! Component: 100  -  total flux cleaned = 0.00457273 Jy
! Component: 150  -  total flux cleaned = 0.00570925 Jy
! Component: 200  -  total flux cleaned = 0.00654919 Jy
! Total flux subtracted in 200 components = 0.00654919 Jy
! Clean residual min=-0.001888 max=0.002961 Jy/beam
! Clean residual mean=0.000356 rms=0.000673 Jy/beam
! Combined flux in latest and established models = 0.431591 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 170 components and 0.431591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224562Jy  sigma=0.001321
! Fit after  self-cal, rms=0.224557Jy  sigma=0.001321
! Inverting map 
! Added new window around map position (-54, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00285427 Jy
! Component: 100  -  total flux cleaned = 0.00447668 Jy
! Component: 150  -  total flux cleaned = 0.00522481 Jy
! Component: 200  -  total flux cleaned = 0.00599347 Jy
! Total flux subtracted in 200 components = 0.00599347 Jy
! Clean residual min=-0.001843 max=0.002783 Jy/beam
! Clean residual mean=0.000303 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 0.437584 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 188 components and 0.437584 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224506Jy  sigma=0.001320
! Fit after  self-cal, rms=0.224506Jy  sigma=0.001320
! Inverting map 
! Added new window around map position (-57, 18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00264297 Jy
! Component: 100  -  total flux cleaned = 0.00414581 Jy
! Component: 150  -  total flux cleaned = 0.00536082 Jy
! Component: 200  -  total flux cleaned = 0.00614597 Jy
! Total flux subtracted in 200 components = 0.00614597 Jy
! Clean residual min=-0.001809 max=0.002616 Jy/beam
! Clean residual mean=0.000257 rms=0.000601 Jy/beam
! Combined flux in latest and established models = 0.44373 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 215 components and 0.44373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224461Jy  sigma=0.001320
! Fit after  self-cal, rms=0.224458Jy  sigma=0.001320
! Inverting map 
! Added new window around map position (-52.5, 43).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00290155 Jy
! Component: 100  -  total flux cleaned = 0.00461209 Jy
! Component: 150  -  total flux cleaned = 0.00585578 Jy
! Component: 200  -  total flux cleaned = 0.00667632 Jy
! Total flux subtracted in 200 components = 0.00667632 Jy
! Clean residual min=-0.001782 max=0.002555 Jy/beam
! Clean residual mean=0.000200 rms=0.000567 Jy/beam
! Combined flux in latest and established models = 0.450406 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 234 components and 0.450406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224411Jy  sigma=0.001320
! Fit after  self-cal, rms=0.224410Jy  sigma=0.001320
! Inverting map 
! Added new window around map position (-7, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00268065 Jy
! Component: 100  -  total flux cleaned = 0.00429977 Jy
! Component: 150  -  total flux cleaned = 0.0050026 Jy
! Component: 200  -  total flux cleaned = 0.00561488 Jy
! Total flux subtracted in 200 components = 0.00561488 Jy
! Clean residual min=-0.001782 max=0.002216 Jy/beam
! Clean residual mean=0.000137 rms=0.000538 Jy/beam
! Combined flux in latest and established models = 0.456021 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 252 components and 0.456021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224364Jy  sigma=0.001319
! Fit after  self-cal, rms=0.224365Jy  sigma=0.001319
! Inverting map 
! Added new window around map position (-32, 23.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0020922 Jy
! Component: 100  -  total flux cleaned = 0.00333099 Jy
! Component: 150  -  total flux cleaned = 0.00372338 Jy
! Component: 200  -  total flux cleaned = 0.00396451 Jy
! Total flux subtracted in 200 components = 0.00396451 Jy
! Clean residual min=-0.001766 max=0.002096 Jy/beam
! Clean residual mean=0.000094 rms=0.000514 Jy/beam
! Combined flux in latest and established models = 0.459986 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 277 components and 0.459986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224337Jy  sigma=0.001319
! Fit after  self-cal, rms=0.224335Jy  sigma=0.001319
! 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.224335Jy  sigma=0.001319
! Fit after  self-cal, rms=0.224514Jy  sigma=0.001319
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.228 mas, bmaj=3.458 mas, bpa=3.398 degrees
! Estimated noise=356.103 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00151673 Jy
! Component: 100  -  total flux cleaned = 0.00262579 Jy
! Component: 150  -  total flux cleaned = 0.00330746 Jy
! Component: 200  -  total flux cleaned = 0.00385822 Jy
! Total flux subtracted in 200 components = 0.00385822 Jy
! Clean residual min=-0.001682 max=0.002140 Jy/beam
! Clean residual mean=0.000142 rms=0.000487 Jy/beam
! Combined flux in latest and established models = 0.463844 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 284 components and 0.463844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224493Jy  sigma=0.001319
! Fit after  self-cal, rms=0.224498Jy  sigma=0.001319
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 (-24.5, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00203166 Jy
! Component: 100  -  total flux cleaned = 0.00301269 Jy
! Component: 150  -  total flux cleaned = 0.00327992 Jy
! Component: 200  -  total flux cleaned = 0.00356519 Jy
! Total flux subtracted in 200 components = 0.00356519 Jy
! Clean residual min=-0.001657 max=0.001900 Jy/beam
! Clean residual mean=0.000101 rms=0.000465 Jy/beam
! Combined flux in latest and established models = 0.467409 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 304 components and 0.467409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224474Jy  sigma=0.001318
! Fit after  self-cal, rms=0.224475Jy  sigma=0.001318
! 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.224475Jy  sigma=0.001318
! Fit after  self-cal, rms=0.224570Jy  sigma=0.001318
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.894 mas, bmaj=9.482 mas, bpa=61.53 degrees
! Estimated noise=502.128 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00229923 Jy
! Component: 100  -  total flux cleaned = 0.00398553 Jy
! Component: 150  -  total flux cleaned = 0.00535938 Jy
! Component: 200  -  total flux cleaned = 0.00615373 Jy
! Total flux subtracted in 200 components = 0.00615373 Jy
! Clean residual min=-0.001717 max=0.002768 Jy/beam
! Clean residual mean=0.000214 rms=0.000720 Jy/beam
! Combined flux in latest and established models = 0.473563 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 325 components and 0.473563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224562Jy  sigma=0.001318
! Fit after  self-cal, rms=0.224560Jy  sigma=0.001318
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0010791 Jy
! Component: 100  -  total flux cleaned = 0.00173279 Jy
! Component: 150  -  total flux cleaned = 0.00228473 Jy
! Component: 200  -  total flux cleaned = 0.00262338 Jy
! Total flux subtracted in 200 components = 0.00262338 Jy
! Clean residual min=-0.001800 max=0.002710 Jy/beam
! Clean residual mean=0.000141 rms=0.000715 Jy/beam
! Combined flux in latest and established models = 0.476186 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 337 components and 0.476187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224559Jy  sigma=0.001318
! Fit after  self-cal, rms=0.224560Jy  sigma=0.001318
! 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.228 mas, bmaj=3.458 mas, bpa=3.36 degrees
! Estimated noise=356.272 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.228 x 3.458 at 3.36 degrees (North through East)
! Clean map  min=-0.00152  max=0.29843 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.786 mas, bmaj=2.796 mas, bpa=4.478 degrees
! Estimated noise=839.633 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.226612 Jy
! Component: 100  -  total flux cleaned = 0.284878 Jy
! Component: 150  -  total flux cleaned = 0.311684 Jy
! Component: 200  -  total flux cleaned = 0.328082 Jy
! Total flux subtracted in 200 components = 0.328082 Jy
! Clean residual min=-0.005081 max=0.008915 Jy/beam
! Clean residual mean=0.000081 rms=0.001363 Jy/beam
! Combined flux in latest and established models = 0.328082 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.328082 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.228 mas, bmaj=3.458 mas, bpa=3.36 degrees
! Estimated noise=356.272 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.0182223 Jy
! Component: 100  -  total flux cleaned = 0.0297247 Jy
! Component: 150  -  total flux cleaned = 0.0387992 Jy
! Component: 200  -  total flux cleaned = 0.0464612 Jy
! Total flux subtracted in 200 components = 0.0464612 Jy
! Clean residual min=-0.002323 max=0.005465 Jy/beam
! Clean residual mean=0.001073 rms=0.001226 Jy/beam
! Combined flux in latest and established models = 0.374543 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 71 components and 0.374543 Jy
! Inverting map 
! Added new window around map position (-22, 19.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00685699 Jy
! Component: 100  -  total flux cleaned = 0.0129 Jy
! Component: 150  -  total flux cleaned = 0.0183731 Jy
! Component: 200  -  total flux cleaned = 0.023373 Jy
! Total flux subtracted in 200 components = 0.023373 Jy
! Clean residual min=-0.002113 max=0.004003 Jy/beam
! Clean residual mean=0.000821 rms=0.000969 Jy/beam
! Combined flux in latest and established models = 0.397916 Jy
! Adding 81 model components to the UV plane model.
! The established model now contains 120 components and 0.397916 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.894 mas, bmaj=9.482 mas, bpa=61.53 degrees
! Estimated noise=502.128 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0114511 Jy
! Component: 100  -  total flux cleaned = 0.0205214 Jy
! Component: 150  -  total flux cleaned = 0.02813 Jy
! Component: 200  -  total flux cleaned = 0.0346813 Jy
! Total flux subtracted in 200 components = 0.0346813 Jy
! Clean residual min=-0.001920 max=0.005027 Jy/beam
! Clean residual mean=0.001457 rms=0.001642 Jy/beam
! Combined flux in latest and established models = 0.432597 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.00568388 Jy
! Component: 100  -  total flux cleaned = 0.0106516 Jy
! Component: 150  -  total flux cleaned = 0.015006 Jy
! Component: 200  -  total flux cleaned = 0.0188321 Jy
! Total flux subtracted in 200 components = 0.0188321 Jy
! Clean residual min=-0.001735 max=0.003692 Jy/beam
! Clean residual mean=0.000880 rms=0.001163 Jy/beam
! Combined flux in latest and established models = 0.451429 Jy
! Adding 196 model components to the UV plane model.
! The established model now contains 296 components and 0.451429 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.228 mas, bmaj=3.458 mas, bpa=3.36 degrees
! Estimated noise=356.272 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00236111 Jy
! Component: 100  -  total flux cleaned = 0.00440857 Jy
! Component: 150  -  total flux cleaned = 0.0062639 Jy
! Component: 200  -  total flux cleaned = 0.0079656 Jy
! Total flux subtracted in 200 components = 0.0079656 Jy
! Clean residual min=-0.001724 max=0.002116 Jy/beam
! Clean residual mean=0.000209 rms=0.000504 Jy/beam
! Combined flux in latest and established models = 0.459395 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 321 components and 0.459395 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224646Jy  sigma=0.001319
! Fit after  self-cal, rms=0.224615Jy  sigma=0.001319
wmodel J1104+3812_S_2001_04_09_pus_map.mod
! Writing 321 model components to file: J1104+3812_S_2001_04_09_pus_map.mod
wobs J1104+3812_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1104+3812_S_2001_04_09_pus_uvs.fits
wwins J1104+3812_S_2001_04_09_pus_map.win
! wwins: Wrote 14 windows to J1104+3812_S_2001_04_09_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.000904313 Jy
! Component: 100  -  total flux cleaned = 0.00174324 Jy
! Component: 150  -  total flux cleaned = 0.00248209 Jy
! Component: 200  -  total flux cleaned = 0.00316579 Jy
! Component: 250  -  total flux cleaned = 0.00368042 Jy
! Component: 300  -  total flux cleaned = 0.00424205 Jy
! Component: 350  -  total flux cleaned = 0.00473405 Jy
! Component: 400  -  total flux cleaned = 0.00524416 Jy
! Component: 450  -  total flux cleaned = 0.00566146 Jy
! Component: 500  -  total flux cleaned = 0.006017 Jy
! Component: 550  -  total flux cleaned = 0.00636708 Jy
! Component: 600  -  total flux cleaned = 0.00671221 Jy
! Component: 650  -  total flux cleaned = 0.0070528 Jy
! Component: 700  -  total flux cleaned = 0.00738868 Jy
! Component: 750  -  total flux cleaned = 0.0076692 Jy
! Component: 800  -  total flux cleaned = 0.00799661 Jy
! Component: 850  -  total flux cleaned = 0.00827005 Jy
! Component: 900  -  total flux cleaned = 0.0085403 Jy
! Component: 950  -  total flux cleaned = 0.00878331 Jy
! Component: 1000  -  total flux cleaned = 0.00904753 Jy
! Component: 1050  -  total flux cleaned = 0.00928523 Jy
! Component: 1100  -  total flux cleaned = 0.00954371 Jy
! Component: 1150  -  total flux cleaned = 0.00970683 Jy
! Component: 1200  -  total flux cleaned = 0.00991453 Jy
! Component: 1250  -  total flux cleaned = 0.0101203 Jy
! Component: 1300  -  total flux cleaned = 0.0103244 Jy
! Component: 1350  -  total flux cleaned = 0.0105041 Jy
! Component: 1400  -  total flux cleaned = 0.0106601 Jy
! Component: 1450  -  total flux cleaned = 0.0108591 Jy
! Component: 1500  -  total flux cleaned = 0.0110126 Jy
! Component: 1550  -  total flux cleaned = 0.0112088 Jy
! Component: 1600  -  total flux cleaned = 0.0113601 Jy
! Component: 1650  -  total flux cleaned = 0.011489 Jy
! Component: 1700  -  total flux cleaned = 0.0115957 Jy
! Component: 1750  -  total flux cleaned = 0.0117864 Jy
! Component: 1800  -  total flux cleaned = 0.0119125 Jy
! Component: 1850  -  total flux cleaned = 0.0120381 Jy
! Component: 1900  -  total flux cleaned = 0.0121421 Jy
! Component: 1950  -  total flux cleaned = 0.0122661 Jy
! Component: 2000  -  total flux cleaned = 0.0124098 Jy
! Total flux subtracted in 2048 components = 0.0125118 Jy
! Clean residual min=-0.001258 max=0.001317 Jy/beam
! Clean residual mean=0.000082 rms=0.000375 Jy/beam
! Combined flux in latest and established models = 0.471907 Jy
keep
! Adding 165 model components to the UV plane model.
! The established model now contains 486 components and 0.471907 Jy
![Exited script file: muppet]
wmap "J1104+3812_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.228 x 3.458 at 3.36 degrees (North through East)
! Clean map  min=-0.0013861  max=0.2983 Jy/beam
! Writing clean map to FITS file: J1104+3812_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.298297 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000374044 
device "J1104+3812_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1104+3812_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.37618 0.37618 0.75236 1.50472 3.00944 6.01888 12.0378 24.0755 48.151 96.302
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.298 
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.228 x 3.458 at 3.36 degrees (North through East)
! Clean map  min=-0.0013861  max=0.2983 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1104+3812_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1104+3812_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1104+3812_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 17:43:30 2007