! Started logfile: J1613+3412_S_1998_10_01_pus_uvs.log on Thu Feb  7 17:23:11 2008
obs J1613+3412_S_1998_10_01_pus_uva.fits
! Reading UV FITS file: J1613+3412_S_1998_10_01_pus_uva.fits
! AN table 1: 74 integrations on 136 of 136 possible baselines.
! AN table 2: 243 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.255312 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1613+3412
! 
! 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.22298e+09        4e+06          1        4e+06
!  02        2  2.24298e+09        4e+06          1        4e+06
!  03        3  2.33298e+09        4e+06          1        4e+06
!  04        4  2.36298e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 1537 lines of history.
! 
! Reading 44028 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 J1613+3412_S_1998_10_01_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 518 telescope corrections were flagged in sub-array 1.
!  A total of 2576 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 518 telescope corrections were flagged in sub-array 1.
!  A total of 2576 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 518 telescope corrections were flagged in sub-array 1.
!  A total of 2576 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 518 telescope corrections were flagged in sub-array 1.
!  A total of 2576 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=2.117604Jy  sigma=0.017582
! Fit after  self-cal, rms=2.053545Jy  sigma=0.017171
! 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=2.568 mas, bmaj=3.341 mas, bpa=-21.49 degrees
! Estimated noise=771.456 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 = 1.80505 Jy
! Component: 100  -  total flux cleaned = 2.55357 Jy
! Total flux subtracted in 100 components = 2.55357 Jy
! Clean residual min=-0.076258 max=0.373327 Jy/beam
! Clean residual mean=0.000976 rms=0.027151 Jy/beam
! Combined flux in latest and established models = 2.55357 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 2.55357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.040243Jy  sigma=0.008319
! Fit after  self-cal, rms=1.008830Jy  sigma=0.008191
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.484324 Jy
! Component: 100  -  total flux cleaned = 0.780935 Jy
! Total flux subtracted in 100 components = 0.780935 Jy
! Clean residual min=-0.044060 max=0.161425 Jy/beam
! Clean residual mean=0.000255 rms=0.013138 Jy/beam
! Combined flux in latest and established models = 3.33451 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 24 components and 3.33451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619407Jy  sigma=0.004547
! Fit after  self-cal, rms=0.610393Jy  sigma=0.004508
! Inverting map 
! Added new window around map position (-0.5, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.20942 Jy
! Component: 100  -  total flux cleaned = 0.344832 Jy
! Total flux subtracted in 100 components = 0.344832 Jy
! Clean residual min=-0.030994 max=0.074968 Jy/beam
! Clean residual mean=-0.000061 rms=0.008100 Jy/beam
! Combined flux in latest and established models = 3.67934 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 35 components and 3.67934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.503178Jy  sigma=0.003354
! Fit after  self-cal, rms=0.501240Jy  sigma=0.003344
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0995512 Jy
! Component: 100  -  total flux cleaned = 0.169066 Jy
! Total flux subtracted in 100 components = 0.169066 Jy
! Clean residual min=-0.024660 max=0.040156 Jy/beam
! Clean residual mean=-0.000215 rms=0.006328 Jy/beam
! Combined flux in latest and established models = 3.84841 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 44 components and 3.84841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.473837Jy  sigma=0.002999
! Fit after  self-cal, rms=0.473307Jy  sigma=0.002997
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0527212 Jy
! Component: 100  -  total flux cleaned = 0.0901716 Jy
! Total flux subtracted in 100 components = 0.0901716 Jy
! Clean residual min=-0.022246 max=0.030470 Jy/beam
! Clean residual mean=-0.000298 rms=0.005710 Jy/beam
! Combined flux in latest and established models = 3.93858 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 49 components and 3.93858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.466446Jy  sigma=0.002894
! Fit after  self-cal, rms=0.466224Jy  sigma=0.002893
! 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=3.278 mas, bmaj=4.218 mas, bpa=-21.48 degrees
! Estimated noise=453.948 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 (3, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0435604 Jy
! Component: 100  -  total flux cleaned = 0.0698113 Jy
! Component: 150  -  total flux cleaned = 0.0794868 Jy
! Component: 200  -  total flux cleaned = 0.0847957 Jy
! Total flux subtracted in 200 components = 0.0847957 Jy
! Clean residual min=-0.021535 max=0.021907 Jy/beam
! Clean residual mean=-0.001642 rms=0.005911 Jy/beam
! Combined flux in latest and established models = 4.02337 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 85 components and 4.02338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462451Jy  sigma=0.002838
! Fit after  self-cal, rms=0.462184Jy  sigma=0.002836
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.98     GC        1.02     HN        0.96     
!   KK        0.92     KP        0.98     LA        0.92     MK        0.94     
!   NL        0.97     NY        0.94     ON        1.08     OV        0.97     
!   PT        1.01     SC        1.06     WF        0.99     MC        1.00*    
!   GN        0.94     
! 
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        1.04     HN        1.00     
!   KK        0.95     KP        1.01     LA        0.99     MK        0.96     
!   NL        0.99     NY        0.98     ON        1.07     OV        0.98     
!   PT        1.03     SC        1.06     WF        0.99     MC        1.20     
!   GN        1.00     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.97     GC        0.99     HN        1.02     
!   KK        0.92     KP        0.96     LA        0.98     MK        1.03     
!   NL        0.96     NY        1.00     ON        1.09     OV        0.98     
!   PT        0.99     SC        1.08     WF        1.02     MC        1.00*    
!   GN        0.95     
! 
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.02     HN        1.05     
!   KK        0.96     KP        0.98     LA        1.06     MK        1.03     
!   NL        0.98     NY        1.01     ON        1.07     OV        0.98     
!   PT        1.00     SC        1.07     WF        1.04     MC        1.28     
!   GN        0.99     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     GC        1.05     HN        0.98     
!   KK        0.94     KP        1.00     LA        0.98     MK        0.96     
!   NL        0.98     NY        1.02     ON        1.08     OV        0.98     
!   PT        0.99     SC        1.07     WF        1.02     MC        1.00*    
!   GN        0.97     
! 
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.05     GC        1.07     HN        1.02     
!   KK        0.96     KP        1.02     LA        1.04     MK        0.97     
!   NL        0.99     NY        1.03     ON        1.05     OV        0.99     
!   PT        1.00     SC        1.08     WF        1.05     MC        1.47     
!   GN        1.01     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.03     HN        1.00     
!   KK        0.95     KP        0.99     LA        0.97     MK        0.97     
!   NL        0.96     NY        1.01     ON        1.07     OV        1.01     
!   PT        1.06     SC        1.07     WF        0.99     MC        1.00*    
!   GN        0.97     
! 
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.04     HN        1.03     
!   KK        0.96     KP        1.02     LA        1.05     MK        0.98     
!   NL        0.98     NY        1.03     ON        1.11     OV        1.01     
!   PT        1.05     SC        1.07     WF        1.03     MC        1.37     
!   GN        1.01     
! 
! 
! Fit before self-cal, rms=0.462184Jy  sigma=0.002836
! Fit after  self-cal, rms=0.448572Jy  sigma=0.002557
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.269 mas, bmaj=4.386 mas, bpa=-21.03 degrees
! Estimated noise=459.391 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.00116581 Jy
! Component: 100  -  total flux cleaned = 0.0032342 Jy
! Component: 150  -  total flux cleaned = 0.00500157 Jy
! Component: 200  -  total flux cleaned = 0.00693817 Jy
! Total flux subtracted in 200 components = 0.00693817 Jy
! Clean residual min=-0.012595 max=0.013260 Jy/beam
! Clean residual mean=-0.000235 rms=0.003435 Jy/beam
! Combined flux in latest and established models = 4.03031 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 100 components and 4.03031 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.447517Jy  sigma=0.002547
! Fit after  self-cal, rms=0.447530Jy  sigma=0.002547
! 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.447530Jy  sigma=0.002547
! Fit after  self-cal, rms=0.433099Jy  sigma=0.002422
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.27 mas, bmaj=4.368 mas, bpa=-20.71 degrees
! Estimated noise=458.62 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00782487 Jy
! Component: 100  -  total flux cleaned = 0.0115521 Jy
! Component: 150  -  total flux cleaned = 0.0149185 Jy
! Component: 200  -  total flux cleaned = 0.01774 Jy
! Total flux subtracted in 200 components = 0.01774 Jy
! Clean residual min=-0.006632 max=0.011769 Jy/beam
! Clean residual mean=0.000584 rms=0.001519 Jy/beam
! Combined flux in latest and established models = 4.04805 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 110 components and 4.04805 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432649Jy  sigma=0.002418
! Fit after  self-cal, rms=0.432570Jy  sigma=0.002417
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 (-4.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00357332 Jy
! Component: 100  -  total flux cleaned = 0.00556933 Jy
! Component: 150  -  total flux cleaned = 0.00753248 Jy
! Component: 200  -  total flux cleaned = 0.00889318 Jy
! Total flux subtracted in 200 components = 0.00889318 Jy
! Clean residual min=-0.005495 max=0.006917 Jy/beam
! Clean residual mean=0.000506 rms=0.001411 Jy/beam
! Combined flux in latest and established models = 4.05695 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 122 components and 4.05695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432174Jy  sigma=0.002414
! Fit after  self-cal, rms=0.432097Jy  sigma=0.002413
! Inverting map 
! Added new window around map position (-3.5, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00468561 Jy
! Component: 100  -  total flux cleaned = 0.00668242 Jy
! Component: 150  -  total flux cleaned = 0.00723116 Jy
! Component: 200  -  total flux cleaned = 0.00772204 Jy
! Total flux subtracted in 200 components = 0.00772204 Jy
! Clean residual min=-0.005147 max=0.006551 Jy/beam
! Clean residual mean=0.000439 rms=0.001346 Jy/beam
! Combined flux in latest and established models = 4.06467 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 131 components and 4.06467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.431864Jy  sigma=0.002412
! Fit after  self-cal, rms=0.431818Jy  sigma=0.002411
! Inverting map 
! Added new window around map position (-33.5, 59.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00473036 Jy
! Component: 100  -  total flux cleaned = 0.00641236 Jy
! Component: 150  -  total flux cleaned = 0.00689722 Jy
! Component: 200  -  total flux cleaned = 0.00718647 Jy
! Total flux subtracted in 200 components = 0.00718647 Jy
! Clean residual min=-0.004802 max=0.005744 Jy/beam
! Clean residual mean=0.000372 rms=0.001303 Jy/beam
! Combined flux in latest and established models = 4.07185 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 144 components and 4.07185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.431616Jy  sigma=0.002410
! Fit after  self-cal, rms=0.431594Jy  sigma=0.002410
! Inverting map 
! Added new window around map position (55.5, -64).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00305405 Jy
! Component: 100  -  total flux cleaned = 0.00463327 Jy
! Component: 150  -  total flux cleaned = 0.00519064 Jy
! Component: 200  -  total flux cleaned = 0.00558515 Jy
! Total flux subtracted in 200 components = 0.00558515 Jy
! Clean residual min=-0.004656 max=0.005557 Jy/beam
! Clean residual mean=0.000339 rms=0.001270 Jy/beam
! Combined flux in latest and established models = 4.07744 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 155 components and 4.07744 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.431444Jy  sigma=0.002409
! Fit after  self-cal, rms=0.431424Jy  sigma=0.002409
! 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.431424Jy  sigma=0.002409
! Fit after  self-cal, rms=0.430156Jy  sigma=0.002406
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.264 mas, bmaj=4.366 mas, bpa=-20.75 degrees
! Estimated noise=458.171 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00462387 Jy
! Component: 100  -  total flux cleaned = 0.00669481 Jy
! Component: 150  -  total flux cleaned = 0.00833998 Jy
! Component: 200  -  total flux cleaned = 0.00981841 Jy
! Total flux subtracted in 200 components = 0.00981841 Jy
! Clean residual min=-0.004471 max=0.004940 Jy/beam
! Clean residual mean=0.000372 rms=0.001193 Jy/beam
! Combined flux in latest and established models = 4.08726 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 164 components and 4.08726 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429997Jy  sigma=0.002405
! Fit after  self-cal, rms=0.429971Jy  sigma=0.002405
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.000893154 Jy
! Component: 100  -  total flux cleaned = 0.00236004 Jy
! Component: 150  -  total flux cleaned = 0.00335065 Jy
! Component: 200  -  total flux cleaned = 0.00382619 Jy
! Total flux subtracted in 200 components = 0.00382619 Jy
! Clean residual min=-0.004408 max=0.004818 Jy/beam
! Clean residual mean=0.000339 rms=0.001177 Jy/beam
! Combined flux in latest and established models = 4.09108 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 171 components and 4.09108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429880Jy  sigma=0.002404
! Fit after  self-cal, rms=0.429865Jy  sigma=0.002404
! 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.429865Jy  sigma=0.002404
! Fit after  self-cal, rms=0.429360Jy  sigma=0.002404
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.946 mas, bmaj=8.522 mas, bpa=-23.11 degrees
! Estimated noise=591.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00490344 Jy
! Component: 100  -  total flux cleaned = 0.00775433 Jy
! Component: 150  -  total flux cleaned = 0.00962957 Jy
! Component: 200  -  total flux cleaned = 0.0104981 Jy
! Total flux subtracted in 200 components = 0.0104981 Jy
! Clean residual min=-0.004317 max=0.004810 Jy/beam
! Clean residual mean=0.000764 rms=0.001339 Jy/beam
! Combined flux in latest and established models = 4.10158 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 202 components and 4.10158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429330Jy  sigma=0.002404
! Fit after  self-cal, rms=0.429321Jy  sigma=0.002404
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.000540306 Jy
! Component: 100  -  total flux cleaned = 0.00122354 Jy
! Component: 150  -  total flux cleaned = 0.00180961 Jy
! Component: 200  -  total flux cleaned = 0.0022007 Jy
! Total flux subtracted in 200 components = 0.0022007 Jy
! Clean residual min=-0.004271 max=0.004631 Jy/beam
! Clean residual mean=0.000720 rms=0.001338 Jy/beam
! Combined flux in latest and established models = 4.10378 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 210 components and 4.10378 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429298Jy  sigma=0.002404
! Fit after  self-cal, rms=0.429296Jy  sigma=0.002404
! 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=3.262 mas, bmaj=4.366 mas, bpa=-20.77 degrees
! Estimated noise=457.967 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.262 x 4.366 at -20.77 degrees (North through East)
! Clean map  min=-0.004088  max=2.5547 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.429296Jy  sigma=0.002404
! Fit after  self-cal, rms=0.415078Jy  sigma=0.002262
! Inverting map and beam 
! Estimated beam: bmin=3.262 mas, bmaj=4.366 mas, bpa=-20.81 degrees
! Estimated noise=458.054 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00129524 Jy
! Component: 100  -  total flux cleaned = 0.00183792 Jy
! Component: 150  -  total flux cleaned = 0.0025492 Jy
! Component: 200  -  total flux cleaned = 0.00288224 Jy
! Total flux subtracted in 200 components = 0.00288224 Jy
! Clean residual min=-0.004216 max=0.004392 Jy/beam
! Clean residual mean=0.000323 rms=0.001132 Jy/beam
! Combined flux in latest and established models = 4.10666 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 215 components and 4.10666 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414981Jy  sigma=0.002261
! Fit after  self-cal, rms=0.414968Jy  sigma=0.002261
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -5.33383e-05 Jy
! Component: 100  -  total flux cleaned = 0.000265037 Jy
! Component: 150  -  total flux cleaned = 0.000467972 Jy
! Component: 200  -  total flux cleaned = 0.00066698 Jy
! Total flux subtracted in 200 components = 0.00066698 Jy
! Clean residual min=-0.004172 max=0.004385 Jy/beam
! Clean residual mean=0.000317 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 4.10733 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 220 components and 4.10733 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414898Jy  sigma=0.002261
! Fit after  self-cal, rms=0.414888Jy  sigma=0.002261
! 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.414888Jy  sigma=0.002261
! Fit after  self-cal, rms=0.414477Jy  sigma=0.002261
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=2.568 mas, bmaj=3.392 mas, bpa=-21.7 degrees
! Estimated noise=775.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.83241 Jy
! Component: 100  -  total flux cleaned = 2.62576 Jy
! Component: 150  -  total flux cleaned = 3.07946 Jy
! Component: 200  -  total flux cleaned = 3.35535 Jy
! Total flux subtracted in 200 components = 3.35535 Jy
! Clean residual min=-0.026867 max=0.146109 Jy/beam
! Clean residual mean=0.000605 rms=0.010335 Jy/beam
! Combined flux in latest and established models = 3.35535 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 3.35535 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.261 mas, bmaj=4.366 mas, bpa=-20.82 degrees
! Estimated noise=457.919 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.285652 Jy
! Component: 100  -  total flux cleaned = 0.436211 Jy
! Component: 150  -  total flux cleaned = 0.525444 Jy
! Component: 200  -  total flux cleaned = 0.583058 Jy
! Total flux subtracted in 200 components = 0.583058 Jy
! Clean residual min=-0.006878 max=0.032405 Jy/beam
! Clean residual mean=0.001779 rms=0.004024 Jy/beam
! Combined flux in latest and established models = 3.9384 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 87 components and 3.9384 Jy
! Inverting map 
! Added new window around map position (2.5, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0402665 Jy
! Component: 100  -  total flux cleaned = 0.0690638 Jy
! Component: 150  -  total flux cleaned = 0.0902829 Jy
! Component: 200  -  total flux cleaned = 0.1063 Jy
! Total flux subtracted in 200 components = 0.1063 Jy
! Clean residual min=-0.005446 max=0.009319 Jy/beam
! Clean residual mean=0.000852 rms=0.001664 Jy/beam
! Combined flux in latest and established models = 4.0447 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 128 components and 4.0447 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0123719 Jy
! Component: 100  -  total flux cleaned = 0.0184489 Jy
! Component: 150  -  total flux cleaned = 0.0237179 Jy
! Component: 200  -  total flux cleaned = 0.028402 Jy
! Total flux subtracted in 200 components = 0.028402 Jy
! Clean residual min=-0.004902 max=0.005213 Jy/beam
! Clean residual mean=0.000605 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 4.07311 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 150 components and 4.07311 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.941 mas, bmaj=8.519 mas, bpa=-23 degrees
! Estimated noise=592.126 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0107219 Jy
! Component: 100  -  total flux cleaned = 0.0173444 Jy
! Component: 150  -  total flux cleaned = 0.0222507 Jy
! Component: 200  -  total flux cleaned = 0.0260301 Jy
! Total flux subtracted in 200 components = 0.0260301 Jy
! Clean residual min=-0.004150 max=0.005093 Jy/beam
! Clean residual mean=0.001003 rms=0.001279 Jy/beam
! Combined flux in latest and established models = 4.09914 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.00301144 Jy
! Component: 100  -  total flux cleaned = 0.0054727 Jy
! Component: 150  -  total flux cleaned = 0.00750605 Jy
! Component: 200  -  total flux cleaned = 0.00919534 Jy
! Total flux subtracted in 200 components = 0.00919534 Jy
! Clean residual min=-0.004255 max=0.004611 Jy/beam
! Clean residual mean=0.000802 rms=0.001280 Jy/beam
! Combined flux in latest and established models = 4.10833 Jy
! Adding 103 model components to the UV plane model.
! The established model now contains 243 components and 4.10833 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.261 mas, bmaj=4.366 mas, bpa=-20.82 degrees
! Estimated noise=457.919 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00248518 Jy
! Component: 100  -  total flux cleaned = -0.00154866 Jy
! Component: 150  -  total flux cleaned = -0.000558094 Jy
! Component: 200  -  total flux cleaned = 0.000645818 Jy
! Total flux subtracted in 200 components = 0.000645818 Jy
! Clean residual min=-0.004421 max=0.004422 Jy/beam
! Clean residual mean=0.000312 rms=0.001127 Jy/beam
! Combined flux in latest and established models = 4.10898 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 256 components and 4.10898 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414444Jy  sigma=0.002261
! Fit after  self-cal, rms=0.414360Jy  sigma=0.002260
wmodel J1613+3412_S_1998_10_01_pus_map.mod
! Writing 256 model components to file: J1613+3412_S_1998_10_01_pus_map.mod
wobs J1613+3412_S_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J1613+3412_S_1998_10_01_pus_uvs.fits
wwins J1613+3412_S_1998_10_01_pus_map.win
! wwins: Wrote 8 windows to J1613+3412_S_1998_10_01_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.0011111 Jy
! Component: 100  -  total flux cleaned = 0.00271146 Jy
! Component: 150  -  total flux cleaned = 0.00432491 Jy
! Component: 200  -  total flux cleaned = 0.00575016 Jy
! Component: 250  -  total flux cleaned = 0.00693129 Jy
! Component: 300  -  total flux cleaned = 0.00788334 Jy
! Component: 350  -  total flux cleaned = 0.0086184 Jy
! Component: 400  -  total flux cleaned = 0.00927585 Jy
! Component: 450  -  total flux cleaned = 0.0100507 Jy
! Component: 500  -  total flux cleaned = 0.0104312 Jy
! Component: 550  -  total flux cleaned = 0.0109957 Jy
! Component: 600  -  total flux cleaned = 0.0115526 Jy
! Component: 650  -  total flux cleaned = 0.012041 Jy
! Component: 700  -  total flux cleaned = 0.0123426 Jy
! Component: 750  -  total flux cleaned = 0.0128208 Jy
! Component: 800  -  total flux cleaned = 0.0132348 Jy
! Component: 850  -  total flux cleaned = 0.0136449 Jy
! Component: 900  -  total flux cleaned = 0.013993 Jy
! Component: 950  -  total flux cleaned = 0.0142233 Jy
! Component: 1000  -  total flux cleaned = 0.0146796 Jy
! Component: 1050  -  total flux cleaned = 0.0149058 Jy
! Component: 1100  -  total flux cleaned = 0.0151864 Jy
! Component: 1150  -  total flux cleaned = 0.0155767 Jy
! Component: 1200  -  total flux cleaned = 0.0157978 Jy
! Component: 1250  -  total flux cleaned = 0.0160723 Jy
! Component: 1300  -  total flux cleaned = 0.0164534 Jy
! Component: 1350  -  total flux cleaned = 0.0166159 Jy
! Component: 1400  -  total flux cleaned = 0.0169917 Jy
! Component: 1450  -  total flux cleaned = 0.0172047 Jy
! Component: 1500  -  total flux cleaned = 0.0174694 Jy
! Component: 1550  -  total flux cleaned = 0.0176272 Jy
! Component: 1600  -  total flux cleaned = 0.017784 Jy
! Component: 1650  -  total flux cleaned = 0.0180439 Jy
! Component: 1700  -  total flux cleaned = 0.0182503 Jy
! Component: 1750  -  total flux cleaned = 0.018507 Jy
! Component: 1800  -  total flux cleaned = 0.0185073 Jy
! Component: 1850  -  total flux cleaned = 0.0188117 Jy
! Component: 1900  -  total flux cleaned = 0.0190136 Jy
! Component: 1950  -  total flux cleaned = 0.0192142 Jy
! Component: 2000  -  total flux cleaned = 0.0193139 Jy
! Total flux subtracted in 2048 components = 0.0195126 Jy
! Clean residual min=-0.002832 max=0.002800 Jy/beam
! Clean residual mean=0.000155 rms=0.000952 Jy/beam
! Combined flux in latest and established models = 4.12849 Jy
keep
! Adding 142 model components to the UV plane model.
! The established model now contains 393 components and 4.12849 Jy
![Exited script file: muppet]
wmap "J1613+3412_S_1998_10_01_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.261 x 4.366 at -20.82 degrees (North through East)
! Clean map  min=-0.0036159  max=2.553 Jy/beam
! Writing clean map to FITS file: J1613+3412_S_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.55304 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000951005 
device "J1613+3412_S_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J1613+3412_S_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.11175 0.11175 0.223499 0.446999 0.893997 1.78799 3.57599 7.15198 14.304 28.6079 57.2158
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.553 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.261 x 4.366 at -20.82 degrees (North through East)
! Clean map  min=-0.0036159  max=2.553 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1613+3412_S_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J1613+3412_S_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1613+3412_S_1998_10_01_pus_uvs.log closed on Thu Feb  7 17:23:32 2008