! Started logfile: J1344+6606_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:22:33 2008
obs J1344+6606_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1344+6606_S_2001_10_29_pus_uva.fits
! AN table 1: 113 integrations on 153 of 153 possible baselines.
! AN table 2: 170 integrations on 153 of 153 possible baselines.
! AN table 3: 454 integrations on 153 of 153 possible baselines.
! AN table 4: 280 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.179356 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1344+6606
! 
! 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 2604 lines of history.
! 
! Reading 111632 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 J1344+6606_S_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 = 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 1303 telescope corrections were flagged in sub-array 1.
!  A total of 2294 telescope corrections were flagged in sub-array 2.
!  A total of 5554 telescope corrections were flagged in sub-array 3.
!  A total of 3002 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1303 telescope corrections were flagged in sub-array 1.
!  A total of 2294 telescope corrections were flagged in sub-array 2.
!  A total of 5554 telescope corrections were flagged in sub-array 3.
!  A total of 3002 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1303 telescope corrections were flagged in sub-array 1.
!  A total of 2294 telescope corrections were flagged in sub-array 2.
!  A total of 5554 telescope corrections were flagged in sub-array 3.
!  A total of 3002 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1442 telescope corrections were flagged in sub-array 1.
!  A total of 2522 telescope corrections were flagged in sub-array 2.
!  A total of 5824 telescope corrections were flagged in sub-array 3.
!  A total of 3516 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.722958Jy  sigma=0.004913
! Fit after  self-cal, rms=0.443254Jy  sigma=0.003013
! 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.84 mas, bmaj=2.009 mas, bpa=-4.962 degrees
! Estimated noise=650.275 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.471708 Jy
! Component: 100  -  total flux cleaned = 0.583822 Jy
! Total flux subtracted in 100 components = 0.583822 Jy
! Clean residual min=-0.012272 max=0.047157 Jy/beam
! Clean residual mean=0.000008 rms=0.003567 Jy/beam
! Combined flux in latest and established models = 0.583822 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.583822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287756Jy  sigma=0.001741
! Fit after  self-cal, rms=0.287678Jy  sigma=0.001741
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0585169 Jy
! Component: 100  -  total flux cleaned = 0.0996293 Jy
! Total flux subtracted in 100 components = 0.0996293 Jy
! Clean residual min=-0.010374 max=0.023401 Jy/beam
! Clean residual mean=0.000004 rms=0.002597 Jy/beam
! Combined flux in latest and established models = 0.683451 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 25 components and 0.683451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267443Jy  sigma=0.001498
! Fit after  self-cal, rms=0.267381Jy  sigma=0.001498
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0302954 Jy
! Component: 100  -  total flux cleaned = 0.0525673 Jy
! Total flux subtracted in 100 components = 0.0525673 Jy
! Clean residual min=-0.009467 max=0.012726 Jy/beam
! Clean residual mean=0.000002 rms=0.002261 Jy/beam
! Combined flux in latest and established models = 0.736018 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 27 components and 0.736018 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262676Jy  sigma=0.001430
! Fit after  self-cal, rms=0.262652Jy  sigma=0.001430
! 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.314 mas, bmaj=2.463 mas, bpa=0.5578 degrees
! Estimated noise=298.433 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.0220333 Jy
! Component: 100  -  total flux cleaned = 0.032688 Jy
! Component: 150  -  total flux cleaned = 0.0382967 Jy
! Component: 200  -  total flux cleaned = 0.0413555 Jy
! Total flux subtracted in 200 components = 0.0413555 Jy
! Clean residual min=-0.007357 max=0.008460 Jy/beam
! Clean residual mean=-0.000086 rms=0.001694 Jy/beam
! Combined flux in latest and established models = 0.777374 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 31 components and 0.777374 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261654Jy  sigma=0.001408
! Fit after  self-cal, rms=0.261620Jy  sigma=0.001407
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        0.97     KP        1.06     LA        1.00     
!   MA        0.90     MC        0.95     MK        1.02     NL        0.97     
!   OV        0.99     PT        1.00     SC        0.99     TS        1.04     
!   WF        0.84     WZ        1.01     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00*    KP        1.00     LA        0.97     
!   MA        0.85     MC        1.00     MK        1.02     NL        0.93     
!   OV        0.97     PT        0.96     SC        1.00     TS        0.99     
!   WF        1.02     WZ        1.05     
! 
!  A total of 210 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        0.99     KP        1.09     LA        1.02     
!   MA        0.77     MC        1.04     MK        1.01     NL        0.98     
!   OV        1.02     PT        1.02     SC        1.00*    TS        0.97     
!   WF        0.99     WZ        0.99     
! 
!  A total of 144 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        0.98     KP        0.88     LA        0.99     
!   MA        0.81     MC        0.99     MK        1.00     NL        0.95     
!   OV        0.95     PT        0.99     SC        1.06     TS        0.95     
!   WF        0.97     WZ        0.95     
! 
! 
! Correcting IF 2.
!  A total of 57 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.97     KK        0.99     KP        1.05     LA        0.98     
!   MA        0.81     MC        1.04     MK        1.05     NL        0.99     
!   OV        1.03     PT        0.99     SC        1.01     TS        1.08     
!   WF        0.98     WZ        1.00     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00*    KP        0.92     LA        0.94     
!   MA        0.85     MC        1.21     MK        1.00     NL        0.95     
!   OV        1.00     PT        0.96     SC        1.01     TS        1.03     
!   WF        0.97     WZ        1.03     
! 
!  A total of 210 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        0.97     KP        1.11     LA        0.99     
!   MA        1.10     MC        1.83     MK        1.03     NL        0.99     
!   OV        1.05     PT        1.01     SC        1.00*    TS        0.98     
!   WF        1.42     WZ        0.98     
! 
!  A total of 144 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.97     KP        0.92     LA        0.97     
!   MA        1.24     MC        0.96     MK        1.02     NL        0.97     
!   OV        0.96     PT        0.99     SC        1.04     TS        0.99     
!   WF        1.02     WZ        0.96     
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.00     KP        1.02     LA        0.97     
!   MA        1.05     MC        0.95     MK        1.02     NL        0.99     
!   OV        1.05     PT        1.00     SC        1.02     TS        1.13     
!   WF        1.56     WZ        1.01     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        1.00     LA        0.95     
!   MA        1.03     MC        1.21     MK        1.00     NL        0.97     
!   OV        1.00     PT        0.98     SC        1.01     TS        1.03     
!   WF        1.01     WZ        1.05     
! 
!  A total of 210 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        0.99     KP        1.12     LA        0.99     
!   MA        1.00     MC        2.40     MK        0.99     NL        0.99     
!   OV        1.04     PT        1.03     SC        1.00*    TS        1.00     
!   WF        1.03     WZ        0.98     
! 
!  A total of 144 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.02     KP        0.98     LA        0.96     
!   MA        1.07     MC        1.13     MK        0.99     NL        0.99     
!   OV        0.99     PT        1.00     SC        1.07     TS        0.99     
!   WF        1.01     WZ        0.98     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        0.90     KP        1.04     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.05     NL        1.03     
!   OV        1.01     PT        0.96     SC        1.03     TS        1.13     
!   WF        0.98     WZ        1.01     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        1.01     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        0.98     
!   OV        1.00     PT        0.99     SC        1.02     TS        1.05     
!   WF        1.01     WZ        1.07     
! 
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        0.95     KP        1.13     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.04     
!   OV        1.03     PT        1.04     SC        1.00*    TS        1.02     
!   WF        1.02     WZ        0.98     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        0.96     KP        0.97     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.02     
!   OV        0.98     PT        1.04     SC        1.06     TS        0.99     
!   WF        1.01     WZ        0.97     
! 
! 
! Fit before self-cal, rms=0.261620Jy  sigma=0.001407
! Fit after  self-cal, rms=0.257448Jy  sigma=0.001330
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.321 mas, bmaj=2.471 mas, bpa=0.8079 degrees
! Estimated noise=300.415 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 = 1.68985e-05 Jy
! Component: 100  -  total flux cleaned = 6.45728e-05 Jy
! Component: 150  -  total flux cleaned = 0.000103971 Jy
! Component: 200  -  total flux cleaned = 0.000103717 Jy
! Total flux subtracted in 200 components = 0.000103717 Jy
! Clean residual min=-0.003529 max=0.003776 Jy/beam
! Clean residual mean=0.000062 rms=0.000761 Jy/beam
! Combined flux in latest and established models = 0.777478 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 33 components and 0.777478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257432Jy  sigma=0.001330
! Fit after  self-cal, rms=0.257785Jy  sigma=0.001329
! 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.257785Jy  sigma=0.001329
! Fit after  self-cal, rms=0.291983Jy  sigma=0.001316
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.324 mas, bmaj=2.47 mas, bpa=-0.3877 degrees
! Estimated noise=301.067 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00102839 Jy
! Component: 100  -  total flux cleaned = 0.00135202 Jy
! Component: 150  -  total flux cleaned = 0.00135254 Jy
! Component: 200  -  total flux cleaned = 0.0012829 Jy
! Total flux subtracted in 200 components = 0.0012829 Jy
! Clean residual min=-0.002310 max=0.002549 Jy/beam
! Clean residual mean=0.000044 rms=0.000544 Jy/beam
! Combined flux in latest and established models = 0.77876 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 36 components and 0.77876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291962Jy  sigma=0.001316
! Fit after  self-cal, rms=0.292592Jy  sigma=0.001316
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.00016057 Jy
! Component: 100  -  total flux cleaned = -0.000161755 Jy
! Component: 150  -  total flux cleaned = -0.000162011 Jy
! Component: 200  -  total flux cleaned = -0.000183114 Jy
! Total flux subtracted in 200 components = -0.000183114 Jy
! Clean residual min=-0.002173 max=0.002504 Jy/beam
! Clean residual mean=0.000046 rms=0.000543 Jy/beam
! Combined flux in latest and established models = 0.778577 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 36 components and 0.778577 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292586Jy  sigma=0.001316
! Fit after  self-cal, rms=0.292594Jy  sigma=0.001316
! Inverting map 
! Added new window around map position (6, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00216477 Jy
! Component: 100  -  total flux cleaned = 0.00243609 Jy
! Component: 150  -  total flux cleaned = 0.00249293 Jy
! Component: 200  -  total flux cleaned = 0.00249469 Jy
! Total flux subtracted in 200 components = 0.00249469 Jy
! Clean residual min=-0.002268 max=0.002189 Jy/beam
! Clean residual mean=0.000036 rms=0.000526 Jy/beam
! Combined flux in latest and established models = 0.781072 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 48 components and 0.781072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292557Jy  sigma=0.001315
! Fit after  self-cal, rms=0.292554Jy  sigma=0.001315
! 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.292554Jy  sigma=0.001315
! Fit after  self-cal, rms=0.294386Jy  sigma=0.001314
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.324 mas, bmaj=2.47 mas, bpa=-0.9647 degrees
! Estimated noise=301.812 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00186772 Jy
! Component: 100  -  total flux cleaned = 0.00233312 Jy
! Component: 150  -  total flux cleaned = 0.00241921 Jy
! Component: 200  -  total flux cleaned = 0.00241876 Jy
! Total flux subtracted in 200 components = 0.00241876 Jy
! Clean residual min=-0.002167 max=0.002010 Jy/beam
! Clean residual mean=0.000034 rms=0.000517 Jy/beam
! Combined flux in latest and established models = 0.783491 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 54 components and 0.783491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294361Jy  sigma=0.001314
! Fit after  self-cal, rms=0.294372Jy  sigma=0.001314
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.000330754 Jy
! Component: 100  -  total flux cleaned = 0.000365078 Jy
! Component: 150  -  total flux cleaned = 0.000365143 Jy
! Component: 200  -  total flux cleaned = 0.000365565 Jy
! Total flux subtracted in 200 components = 0.000365565 Jy
! Clean residual min=-0.002081 max=0.001989 Jy/beam
! Clean residual mean=0.000032 rms=0.000514 Jy/beam
! Combined flux in latest and established models = 0.783856 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 58 components and 0.783856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294363Jy  sigma=0.001314
! Fit after  self-cal, rms=0.294364Jy  sigma=0.001314
! 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.294364Jy  sigma=0.001314
! Fit after  self-cal, rms=0.294809Jy  sigma=0.001314
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.316 mas, bmaj=9.421 mas, bpa=80.61 degrees
! Estimated noise=502.611 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000982029 Jy
! Component: 100  -  total flux cleaned = 0.00103355 Jy
! Component: 150  -  total flux cleaned = 0.00106858 Jy
! Component: 200  -  total flux cleaned = 0.00108143 Jy
! Total flux subtracted in 200 components = 0.00108143 Jy
! Clean residual min=-0.002972 max=0.002721 Jy/beam
! Clean residual mean=0.000101 rms=0.000887 Jy/beam
! Combined flux in latest and established models = 0.784937 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 66 components and 0.784937 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294808Jy  sigma=0.001314
! Fit after  self-cal, rms=0.294809Jy  sigma=0.001314
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.000109652 Jy
! Component: 100  -  total flux cleaned = 0.000124028 Jy
! Component: 150  -  total flux cleaned = 0.000144276 Jy
! Component: 200  -  total flux cleaned = 0.000151792 Jy
! Total flux subtracted in 200 components = 0.000151792 Jy
! Clean residual min=-0.002963 max=0.002726 Jy/beam
! Clean residual mean=0.000100 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 0.785089 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 66 components and 0.785089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294805Jy  sigma=0.001314
! Fit after  self-cal, rms=0.294806Jy  sigma=0.001314
! 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.325 mas, bmaj=2.469 mas, bpa=-1.126 degrees
! Estimated noise=302.29 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.325 x 2.469 at -1.126 degrees (North through East)
! Clean map  min=-0.0019144  max=0.65551 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.294806Jy  sigma=0.001314
! Fit after  self-cal, rms=0.980154Jy  sigma=0.001209
! Inverting map and beam 
! Estimated beam: bmin=2.327 mas, bmaj=2.47 mas, bpa=-1.176 degrees
! Estimated noise=301.901 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00154464 Jy
! Component: 100  -  total flux cleaned = -0.00169561 Jy
! Component: 150  -  total flux cleaned = -0.00176345 Jy
! Component: 200  -  total flux cleaned = -0.00179359 Jy
! Total flux subtracted in 200 components = -0.00179359 Jy
! Clean residual min=-0.001886 max=0.001823 Jy/beam
! Clean residual mean=0.000025 rms=0.000424 Jy/beam
! Combined flux in latest and established models = 0.783296 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 76 components and 0.783296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.980147Jy  sigma=0.001209
! Fit after  self-cal, rms=0.980158Jy  sigma=0.001209
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000103703 Jy
! Component: 100  -  total flux cleaned = -0.000159317 Jy
! Component: 150  -  total flux cleaned = -0.000185146 Jy
! Component: 200  -  total flux cleaned = -0.000184758 Jy
! Total flux subtracted in 200 components = -0.000184758 Jy
! Clean residual min=-0.001796 max=0.001812 Jy/beam
! Clean residual mean=0.000025 rms=0.000423 Jy/beam
! Combined flux in latest and established models = 0.783111 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 78 components and 0.783111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.980154Jy  sigma=0.001209
! Fit after  self-cal, rms=0.980155Jy  sigma=0.001209
! Inverting map 
! Added new window around map position (42.5, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156808 Jy
! Component: 100  -  total flux cleaned = 0.00194464 Jy
! Component: 150  -  total flux cleaned = 0.00209896 Jy
! Component: 200  -  total flux cleaned = 0.00207286 Jy
! Total flux subtracted in 200 components = 0.00207286 Jy
! Clean residual min=-0.001767 max=0.001691 Jy/beam
! Clean residual mean=0.000017 rms=0.000410 Jy/beam
! Combined flux in latest and established models = 0.785184 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 93 components and 0.785184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.980151Jy  sigma=0.001209
! Fit after  self-cal, rms=0.980151Jy  sigma=0.001209
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.980151Jy  sigma=0.001209
! Fit after  self-cal, rms=1.474486Jy  sigma=0.001209
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.857 mas, bmaj=2.021 mas, bpa=-3.73 degrees
! Estimated noise=673.214 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.479913 Jy
! Component: 100  -  total flux cleaned = 0.591678 Jy
! Component: 150  -  total flux cleaned = 0.646719 Jy
! Component: 200  -  total flux cleaned = 0.684681 Jy
! Total flux subtracted in 200 components = 0.684681 Jy
! Clean residual min=-0.006452 max=0.021238 Jy/beam
! Clean residual mean=0.000008 rms=0.001616 Jy/beam
! Combined flux in latest and established models = 0.684682 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 21 model components to the UV plane model.
! The established model now contains 21 components and 0.684682 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.329 mas, bmaj=2.47 mas, bpa=-1.293 degrees
! Estimated noise=301.953 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.044121 Jy
! Component: 100  -  total flux cleaned = 0.0673421 Jy
! Component: 150  -  total flux cleaned = 0.0801751 Jy
! Component: 200  -  total flux cleaned = 0.0876299 Jy
! Total flux subtracted in 200 components = 0.0876299 Jy
! Clean residual min=-0.001972 max=0.003846 Jy/beam
! Clean residual mean=0.000074 rms=0.000547 Jy/beam
! Combined flux in latest and established models = 0.772312 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 38 components and 0.772312 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00464831 Jy
! Component: 100  -  total flux cleaned = 0.00722804 Jy
! Component: 150  -  total flux cleaned = 0.00828451 Jy
! Component: 200  -  total flux cleaned = 0.00929957 Jy
! Total flux subtracted in 200 components = 0.00929957 Jy
! Clean residual min=-0.002307 max=0.002155 Jy/beam
! Clean residual mean=0.000035 rms=0.000445 Jy/beam
! Combined flux in latest and established models = 0.781611 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 45 components and 0.781611 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=8.321 mas, bmaj=9.425 mas, bpa=80.88 degrees
! Estimated noise=500.947 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00219757 Jy
! Component: 100  -  total flux cleaned = 0.00319927 Jy
! Component: 150  -  total flux cleaned = 0.00342383 Jy
! Component: 200  -  total flux cleaned = 0.00355455 Jy
! Total flux subtracted in 200 components = 0.00355455 Jy
! Clean residual min=-0.001800 max=0.002254 Jy/beam
! Clean residual mean=0.000080 rms=0.000674 Jy/beam
! Combined flux in latest and established models = 0.785166 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 = 7.15429e-05 Jy
! Component: 100  -  total flux cleaned = 0.000128589 Jy
! Component: 150  -  total flux cleaned = 0.000163223 Jy
! Component: 200  -  total flux cleaned = 0.000192718 Jy
! Total flux subtracted in 200 components = 0.000192718 Jy
! Clean residual min=-0.001841 max=0.002331 Jy/beam
! Clean residual mean=0.000078 rms=0.000669 Jy/beam
! Combined flux in latest and established models = 0.785359 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 74 components and 0.785359 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.329 mas, bmaj=2.47 mas, bpa=-1.293 degrees
! Estimated noise=301.953 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.73539e-06 Jy
! Component: 100  -  total flux cleaned = 0.00021995 Jy
! Component: 150  -  total flux cleaned = 0.000413616 Jy
! Component: 200  -  total flux cleaned = 0.000473495 Jy
! Total flux subtracted in 200 components = 0.000473495 Jy
! Clean residual min=-0.002483 max=0.001812 Jy/beam
! Clean residual mean=0.000020 rms=0.000425 Jy/beam
! Combined flux in latest and established models = 0.785832 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 79 components and 0.785832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.474499Jy  sigma=0.001209
! Fit after  self-cal, rms=1.474513Jy  sigma=0.001209
wmodel J1344+6606_S_2001_10_29_pus_map.mod
! Writing 79 model components to file: J1344+6606_S_2001_10_29_pus_map.mod
wobs J1344+6606_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1344+6606_S_2001_10_29_pus_uvs.fits
wwins J1344+6606_S_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J1344+6606_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000497934 Jy
! Component: 100  -  total flux cleaned = -0.000528805 Jy
! Component: 150  -  total flux cleaned = -0.000651734 Jy
! Component: 200  -  total flux cleaned = -0.000740228 Jy
! Component: 250  -  total flux cleaned = -0.000854156 Jy
! Component: 300  -  total flux cleaned = -0.00093727 Jy
! Component: 350  -  total flux cleaned = -0.00101858 Jy
! Component: 400  -  total flux cleaned = -0.00107209 Jy
! Component: 450  -  total flux cleaned = -0.00112457 Jy
! Component: 500  -  total flux cleaned = -0.00120181 Jy
! Component: 550  -  total flux cleaned = -0.00127804 Jy
! Component: 600  -  total flux cleaned = -0.00130321 Jy
! Component: 650  -  total flux cleaned = -0.0014025 Jy
! Component: 700  -  total flux cleaned = -0.00154939 Jy
! Component: 750  -  total flux cleaned = -0.00162212 Jy
! Component: 800  -  total flux cleaned = -0.00167014 Jy
! Component: 850  -  total flux cleaned = -0.00169403 Jy
! Component: 900  -  total flux cleaned = -0.00174121 Jy
! Component: 950  -  total flux cleaned = -0.0017179 Jy
! Component: 1000  -  total flux cleaned = -0.00178735 Jy
! Component: 1050  -  total flux cleaned = -0.00183317 Jy
! Component: 1100  -  total flux cleaned = -0.001833 Jy
! Component: 1150  -  total flux cleaned = -0.00185549 Jy
! Component: 1200  -  total flux cleaned = -0.0017884 Jy
! Component: 1250  -  total flux cleaned = -0.00187754 Jy
! Component: 1300  -  total flux cleaned = -0.00183336 Jy
! Component: 1350  -  total flux cleaned = -0.0018773 Jy
! Component: 1400  -  total flux cleaned = -0.00187732 Jy
! Component: 1450  -  total flux cleaned = -0.00194209 Jy
! Component: 1500  -  total flux cleaned = -0.00192055 Jy
! Component: 1550  -  total flux cleaned = -0.00192055 Jy
! Component: 1600  -  total flux cleaned = -0.00192052 Jy
! Component: 1650  -  total flux cleaned = -0.00189952 Jy
! Component: 1700  -  total flux cleaned = -0.00183673 Jy
! Component: 1750  -  total flux cleaned = -0.00187841 Jy
! Component: 1800  -  total flux cleaned = -0.00187827 Jy
! Component: 1850  -  total flux cleaned = -0.0018577 Jy
! Component: 1900  -  total flux cleaned = -0.00181699 Jy
! Component: 1950  -  total flux cleaned = -0.00185766 Jy
! Component: 2000  -  total flux cleaned = -0.00181728 Jy
! Total flux subtracted in 2048 components = -0.00181734 Jy
! Clean residual min=-0.001089 max=0.001082 Jy/beam
! Clean residual mean=0.000028 rms=0.000359 Jy/beam
! Combined flux in latest and established models = 0.784015 Jy
keep
! Adding 148 model components to the UV plane model.
! The established model now contains 225 components and 0.784014 Jy
![Exited script file: muppet]
wmap "J1344+6606_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.329 x 2.47 at -1.293 degrees (North through East)
! Clean map  min=-0.0014415  max=0.65599 Jy/beam
! Writing clean map to FITS file: J1344+6606_S_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 0.655986 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000358311 
device "J1344+6606_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1344+6606_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.163865 0.163865 0.32773 0.655461 1.31092 2.62184 5.24369 10.4874 20.9747 41.9495 83.899
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.655 
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.329 x 2.47 at -1.293 degrees (North through East)
! Clean map  min=-0.0014415  max=0.65599 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1344+6606_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1344+6606_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1344+6606_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:23:12 2008