! Started logfile: J1746+6226_S_1999_05_10_pus_uvs.log on Mon Jan 21 19:12:01 2008
obs J1746+6226_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1746+6226_S_1999_05_10_pus_uva.fits
! AN table 1: 112 integrations on 153 of 153 possible baselines.
! AN table 2: 83 integrations on 153 of 153 possible baselines.
! AN table 3: 59 integrations on 153 of 153 possible baselines.
! AN table 4: 74 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.219154 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1746+6226
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1998 lines of history.
! 
! Reading 43992 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 = 1024 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1746+6226_S_1999_05_10_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 = 1024x1024 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 1035 telescope corrections were flagged in sub-array 1.
!  A total of 776 telescope corrections were flagged in sub-array 2.
!  A total of 651 telescope corrections were flagged in sub-array 3.
!  A total of 629 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1035 telescope corrections were flagged in sub-array 1.
!  A total of 776 telescope corrections were flagged in sub-array 2.
!  A total of 651 telescope corrections were flagged in sub-array 3.
!  A total of 629 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1035 telescope corrections were flagged in sub-array 1.
!  A total of 776 telescope corrections were flagged in sub-array 2.
!  A total of 651 telescope corrections were flagged in sub-array 3.
!  A total of 629 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1035 telescope corrections were flagged in sub-array 1.
!  A total of 776 telescope corrections were flagged in sub-array 2.
!  A total of 651 telescope corrections were flagged in sub-array 3.
!  A total of 629 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.828638Jy  sigma=0.007262
! Fit after  self-cal, rms=0.780130Jy  sigma=0.006949
! 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=3.37 mas, bmaj=4.28 mas, bpa=50.93 degrees
! Estimated noise=822.093 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.177311 Jy
! Component: 100  -  total flux cleaned = 0.219946 Jy
! Total flux subtracted in 100 components = 0.219946 Jy
! Clean residual min=-0.008292 max=0.019562 Jy/beam
! Clean residual mean=-0.000012 rms=0.002025 Jy/beam
! Combined flux in latest and established models = 0.219946 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.219946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223516Jy  sigma=0.001463
! Fit after  self-cal, rms=0.223501Jy  sigma=0.001462
! Inverting map 
! Added new window around map position (-7, -13).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0215726 Jy
! Component: 100  -  total flux cleaned = 0.0348641 Jy
! Total flux subtracted in 100 components = 0.0348641 Jy
! Clean residual min=-0.006491 max=0.012553 Jy/beam
! Clean residual mean=-0.000003 rms=0.001621 Jy/beam
! Combined flux in latest and established models = 0.25481 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 0.25481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219315Jy  sigma=0.001425
! Fit after  self-cal, rms=0.219191Jy  sigma=0.001424
! Inverting map 
! Added new window around map position (-11.5, -19.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0124377 Jy
! Component: 100  -  total flux cleaned = 0.0209292 Jy
! Total flux subtracted in 100 components = 0.0209292 Jy
! Clean residual min=-0.005739 max=0.006435 Jy/beam
! Clean residual mean=0.000000 rms=0.001458 Jy/beam
! Combined flux in latest and established models = 0.275739 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 31 components and 0.275739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217554Jy  sigma=0.001410
! Fit after  self-cal, rms=0.217481Jy  sigma=0.001409
! 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=4.084 mas, bmaj=6.438 mas, bpa=60.91 degrees
! Estimated noise=403.958 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.0147954 Jy
! Component: 100  -  total flux cleaned = 0.024493 Jy
! Component: 150  -  total flux cleaned = 0.0313736 Jy
! Component: 200  -  total flux cleaned = 0.0364391 Jy
! Total flux subtracted in 200 components = 0.0364391 Jy
! Clean residual min=-0.004465 max=0.005150 Jy/beam
! Clean residual mean=0.000014 rms=0.001220 Jy/beam
! Combined flux in latest and established models = 0.312178 Jy
! Performing phase self-cal
! Adding 65 model components to the UV plane model.
! The established model now contains 88 components and 0.312178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215878Jy  sigma=0.001397
! Fit after  self-cal, rms=0.215771Jy  sigma=0.001396
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00     GC        1.06     HH        1.00*    
!   HN        1.00*    KK        1.04     KP        0.90     LA        1.02     
!   MC        1.00*    MK        1.02     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.05     PT        1.02     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.02     GC        1.04     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.68     LA        0.97     
!   MC        1.00*    MK        0.98     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.10     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.02     GC        1.00     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.71     LA        0.98     
!   MC        1.00*    MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.09     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.05     GC        1.08     HH        1.00*    
!   HN        1.00*    KK        1.04     KP        0.73     LA        0.97     
!   MC        1.00*    MK        0.99     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.06     PT        0.96     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.05     GC        1.05     HH        1.00*    
!   HN        1.00*    KK        1.01     KP        0.99     LA        0.97     
!   MC        1.00*    MK        1.06     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.07     GC        1.01     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.83     LA        0.95     
!   MC        1.00*    MK        1.05     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.01     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.05     GC        0.90     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.04     LA        1.02     
!   MC        1.00*    MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.01     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.02     GC        1.02     HH        1.00*    
!   HN        1.00*    KK        1.01     KP        0.91     LA        0.95     
!   MC        1.00*    MK        1.03     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.00*    KK        1.06     KP        1.00     LA        1.01     
!   MC        1.00*    MK        1.01     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.94     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        1.03     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.99     LA        1.00     
!   MC        1.00*    MK        0.94     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.93     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.10     GC        0.93     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.07     LA        1.02     
!   MC        1.00*    MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        1.09     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.04     GC        1.02     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.89     LA        0.99     
!   MC        1.00*    MK        0.96     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.95     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.99     GC        1.00     HH        1.00*    
!   HN        1.00*    KK        1.07     KP        1.00     LA        0.98     
!   MC        1.00*    MK        1.03     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00     GC        0.99     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.06     LA        1.01     
!   MC        1.00*    MK        0.96     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.12     GC        0.96     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.16     LA        1.03     
!   MC        1.00*    MK        1.00*    NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.96     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.05     GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        0.91     LA        0.94     
!   MC        1.00*    MK        0.99     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.95     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.215771Jy  sigma=0.001396
! Fit after  self-cal, rms=0.198096Jy  sigma=0.001388
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.085 mas, bmaj=6.514 mas, bpa=60.9 degrees
! Estimated noise=402.907 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 (-18.5, -23.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00446706 Jy
! Component: 100  -  total flux cleaned = 0.00721923 Jy
! Component: 150  -  total flux cleaned = 0.00924046 Jy
! Component: 200  -  total flux cleaned = 0.0107533 Jy
! Total flux subtracted in 200 components = 0.0107533 Jy
! Clean residual min=-0.003171 max=0.003614 Jy/beam
! Clean residual mean=0.000020 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 0.322932 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 116 components and 0.322931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197963Jy  sigma=0.001387
! Fit after  self-cal, rms=0.197833Jy  sigma=0.001386
! 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.197833Jy  sigma=0.001386
! Fit after  self-cal, rms=0.194437Jy  sigma=0.001382
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.087 mas, bmaj=6.458 mas, bpa=60.34 degrees
! Estimated noise=402.366 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00212573 Jy
! Component: 100  -  total flux cleaned = 0.00317031 Jy
! Component: 150  -  total flux cleaned = 0.00385961 Jy
! Component: 200  -  total flux cleaned = 0.00421227 Jy
! Total flux subtracted in 200 components = 0.00421227 Jy
! Clean residual min=-0.002865 max=0.003083 Jy/beam
! Clean residual mean=0.000014 rms=0.000687 Jy/beam
! Combined flux in latest and established models = 0.327144 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 136 components and 0.327144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194404Jy  sigma=0.001382
! Fit after  self-cal, rms=0.194387Jy  sigma=0.001382
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 (-28, -46).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00308643 Jy
! Component: 100  -  total flux cleaned = 0.00475848 Jy
! Component: 150  -  total flux cleaned = 0.00530872 Jy
! Component: 200  -  total flux cleaned = 0.00561902 Jy
! Total flux subtracted in 200 components = 0.00561902 Jy
! Clean residual min=-0.002770 max=0.002765 Jy/beam
! Clean residual mean=0.000019 rms=0.000634 Jy/beam
! Combined flux in latest and established models = 0.332763 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 178 components and 0.332763 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194327Jy  sigma=0.001381
! Fit after  self-cal, rms=0.194321Jy  sigma=0.001381
! Inverting map 
! Added new window around map position (-48, -66).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00268831 Jy
! Component: 100  -  total flux cleaned = 0.00374711 Jy
! Component: 150  -  total flux cleaned = 0.00445511 Jy
! Component: 200  -  total flux cleaned = 0.00489544 Jy
! Total flux subtracted in 200 components = 0.00489544 Jy
! Clean residual min=-0.002945 max=0.002584 Jy/beam
! Clean residual mean=0.000017 rms=0.000606 Jy/beam
! Combined flux in latest and established models = 0.337658 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 202 components and 0.337658 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194272Jy  sigma=0.001381
! Fit after  self-cal, rms=0.194265Jy  sigma=0.001381
! 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.194265Jy  sigma=0.001381
! Fit after  self-cal, rms=0.194756Jy  sigma=0.001381
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.085 mas, bmaj=6.459 mas, bpa=60.27 degrees
! Estimated noise=402.755 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00160954 Jy
! Component: 100  -  total flux cleaned = 0.00284974 Jy
! Component: 150  -  total flux cleaned = 0.00365321 Jy
! Component: 200  -  total flux cleaned = 0.00425316 Jy
! Total flux subtracted in 200 components = 0.00425316 Jy
! Clean residual min=-0.003003 max=0.002479 Jy/beam
! Clean residual mean=0.000013 rms=0.000587 Jy/beam
! Combined flux in latest and established models = 0.341911 Jy
selfcal
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 218 components and 0.341911 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194728Jy  sigma=0.001380
! Fit after  self-cal, rms=0.194734Jy  sigma=0.001380
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.000861299 Jy
! Component: 100  -  total flux cleaned = 0.00125592 Jy
! Component: 150  -  total flux cleaned = 0.00145558 Jy
! Component: 200  -  total flux cleaned = 0.00158136 Jy
! Total flux subtracted in 200 components = 0.00158136 Jy
! Clean residual min=-0.002978 max=0.002438 Jy/beam
! Clean residual mean=0.000013 rms=0.000582 Jy/beam
! Combined flux in latest and established models = 0.343493 Jy
! Performing phase self-cal
! Adding 53 model components to the UV plane model.
! The established model now contains 235 components and 0.343493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194721Jy  sigma=0.001380
! Fit after  self-cal, rms=0.194719Jy  sigma=0.001380
! 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.194719Jy  sigma=0.001380
! Fit after  self-cal, rms=0.195226Jy  sigma=0.001380
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.788 mas, bmaj=10.86 mas, bpa=67.68 degrees
! Estimated noise=498.276 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171961 Jy
! Component: 100  -  total flux cleaned = 0.00265658 Jy
! Component: 150  -  total flux cleaned = 0.00316964 Jy
! Component: 200  -  total flux cleaned = 0.00340837 Jy
! Total flux subtracted in 200 components = 0.00340837 Jy
! Clean residual min=-0.002948 max=0.002486 Jy/beam
! Clean residual mean=0.000024 rms=0.000774 Jy/beam
! Combined flux in latest and established models = 0.346901 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 255 components and 0.346901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195212Jy  sigma=0.001380
! Fit after  self-cal, rms=0.195212Jy  sigma=0.001380
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.000555382 Jy
! Component: 100  -  total flux cleaned = 0.000783181 Jy
! Component: 150  -  total flux cleaned = 0.00101343 Jy
! Component: 200  -  total flux cleaned = 0.00114337 Jy
! Total flux subtracted in 200 components = 0.00114337 Jy
! Clean residual min=-0.002876 max=0.002472 Jy/beam
! Clean residual mean=0.000025 rms=0.000771 Jy/beam
! Combined flux in latest and established models = 0.348044 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 266 components and 0.348044 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195209Jy  sigma=0.001380
! Fit after  self-cal, rms=0.195205Jy  sigma=0.001380
! 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=4.082 mas, bmaj=6.459 mas, bpa=60.23 degrees
! Estimated noise=403.157 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.082 x 6.459 at 60.23 degrees (North through East)
! Clean map  min=-0.0029371  max=0.23604 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=3.363 mas, bmaj=4.283 mas, bpa=49.45 degrees
! Estimated noise=823.599 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.17683 Jy
! Component: 100  -  total flux cleaned = 0.220805 Jy
! Component: 150  -  total flux cleaned = 0.243551 Jy
! Component: 200  -  total flux cleaned = 0.259046 Jy
! Total flux subtracted in 200 components = 0.259046 Jy
! Clean residual min=-0.005616 max=0.009176 Jy/beam
! Clean residual mean=-0.000014 rms=0.001488 Jy/beam
! Combined flux in latest and established models = 0.259046 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 23 model components to the UV plane model.
! The established model now contains 23 components and 0.259046 Jy
! Inverting map and beam 
! Estimated beam: bmin=4.082 mas, bmaj=6.459 mas, bpa=60.23 degrees
! Estimated noise=403.157 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.0204095 Jy
! Component: 100  -  total flux cleaned = 0.0334009 Jy
! Component: 150  -  total flux cleaned = 0.0426488 Jy
! Component: 200  -  total flux cleaned = 0.0496308 Jy
! Total flux subtracted in 200 components = 0.0496308 Jy
! Clean residual min=-0.003302 max=0.005575 Jy/beam
! Clean residual mean=-0.000018 rms=0.000957 Jy/beam
! Combined flux in latest and established models = 0.308677 Jy
! Adding 79 model components to the UV plane model.
! The established model now contains 94 components and 0.308677 Jy
! Inverting map 
! Added new window around map position (-2.5, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00600085 Jy
! Component: 100  -  total flux cleaned = 0.0107276 Jy
! Component: 150  -  total flux cleaned = 0.0147119 Jy
! Component: 200  -  total flux cleaned = 0.0181437 Jy
! Total flux subtracted in 200 components = 0.0181437 Jy
! Clean residual min=-0.003055 max=0.002917 Jy/beam
! Clean residual mean=-0.000001 rms=0.000706 Jy/beam
! Combined flux in latest and established models = 0.326821 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 141 components and 0.326821 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.788 mas, bmaj=10.86 mas, bpa=67.68 degrees
! Estimated noise=498.276 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00475453 Jy
! Component: 100  -  total flux cleaned = 0.00844718 Jy
! Component: 150  -  total flux cleaned = 0.0113826 Jy
! Component: 200  -  total flux cleaned = 0.0137372 Jy
! Total flux subtracted in 200 components = 0.0137372 Jy
! Clean residual min=-0.003055 max=0.002825 Jy/beam
! Clean residual mean=0.000016 rms=0.000819 Jy/beam
! Combined flux in latest and established models = 0.340558 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.00155249 Jy
! Component: 100  -  total flux cleaned = 0.0026075 Jy
! Component: 150  -  total flux cleaned = 0.00352271 Jy
! Component: 200  -  total flux cleaned = 0.004323 Jy
! Total flux subtracted in 200 components = 0.004323 Jy
! Clean residual min=-0.002903 max=0.002549 Jy/beam
! Clean residual mean=0.000022 rms=0.000775 Jy/beam
! Combined flux in latest and established models = 0.344881 Jy
! Adding 119 model components to the UV plane model.
! The established model now contains 250 components and 0.344881 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=4.082 mas, bmaj=6.459 mas, bpa=60.23 degrees
! Estimated noise=403.157 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000651349 Jy
! Component: 100  -  total flux cleaned = 0.00118856 Jy
! Component: 150  -  total flux cleaned = 0.00167349 Jy
! Component: 200  -  total flux cleaned = 0.00203764 Jy
! Total flux subtracted in 200 components = 0.00203764 Jy
! Clean residual min=-0.002948 max=0.002301 Jy/beam
! Clean residual mean=0.000013 rms=0.000571 Jy/beam
! Combined flux in latest and established models = 0.346919 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 278 components and 0.346919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195218Jy  sigma=0.001380
! Fit after  self-cal, rms=0.195208Jy  sigma=0.001380
wmodel J1746+6226_S_1999_05_10_pus_map.mod
! Writing 278 model components to file: J1746+6226_S_1999_05_10_pus_map.mod
wobs J1746+6226_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1746+6226_S_1999_05_10_pus_uvs.fits
wwins J1746+6226_S_1999_05_10_pus_map.win
! wwins: Wrote 7 windows to J1746+6226_S_1999_05_10_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000910613 Jy
! Component: 100  -  total flux cleaned = -0.000747995 Jy
! Component: 150  -  total flux cleaned = -0.000557943 Jy
! Component: 200  -  total flux cleaned = -0.000522573 Jy
! Component: 250  -  total flux cleaned = -0.000384298 Jy
! Component: 300  -  total flux cleaned = -0.000283707 Jy
! Component: 350  -  total flux cleaned = -0.000315845 Jy
! Component: 400  -  total flux cleaned = -0.000283808 Jy
! Component: 450  -  total flux cleaned = -0.000252992 Jy
! Component: 500  -  total flux cleaned = -0.000191617 Jy
! Component: 550  -  total flux cleaned = -0.0001908 Jy
! Component: 600  -  total flux cleaned = -0.000160192 Jy
! Component: 650  -  total flux cleaned = -0.000130342 Jy
! Component: 700  -  total flux cleaned = -0.000130356 Jy
! Component: 750  -  total flux cleaned = -0.000158559 Jy
! Component: 800  -  total flux cleaned = -0.000215011 Jy
! Component: 850  -  total flux cleaned = -0.000270377 Jy
! Component: 900  -  total flux cleaned = -0.00024324 Jy
! Component: 950  -  total flux cleaned = -0.000378405 Jy
! Component: 1000  -  total flux cleaned = -0.000324613 Jy
! Component: 1050  -  total flux cleaned = -0.000351087 Jy
! Component: 1100  -  total flux cleaned = -0.000351094 Jy
! Component: 1150  -  total flux cleaned = -0.000376895 Jy
! Component: 1200  -  total flux cleaned = -0.000376721 Jy
! Component: 1250  -  total flux cleaned = -0.000376655 Jy
! Component: 1300  -  total flux cleaned = -0.000476402 Jy
! Component: 1350  -  total flux cleaned = -0.000426414 Jy
! Component: 1400  -  total flux cleaned = -0.000524504 Jy
! Component: 1450  -  total flux cleaned = -0.00037805 Jy
! Component: 1500  -  total flux cleaned = -0.00032939 Jy
! Component: 1550  -  total flux cleaned = -0.000305266 Jy
! Component: 1600  -  total flux cleaned = -0.000210182 Jy
! Component: 1650  -  total flux cleaned = -0.00016292 Jy
! Component: 1700  -  total flux cleaned = -0.000162505 Jy
! Component: 1750  -  total flux cleaned = -2.3589e-05 Jy
! Component: 1800  -  total flux cleaned = 2.20662e-05 Jy
! Component: 1850  -  total flux cleaned = 6.72875e-05 Jy
! Component: 1900  -  total flux cleaned = 9.0001e-05 Jy
! Component: 1950  -  total flux cleaned = 4.50707e-05 Jy
! Component: 2000  -  total flux cleaned = 0.000201075 Jy
! Component: 2050  -  total flux cleaned = 0.000223004 Jy
! Component: 2100  -  total flux cleaned = 0.000266744 Jy
! Component: 2150  -  total flux cleaned = 0.000353819 Jy
! Component: 2200  -  total flux cleaned = 0.000332232 Jy
! Component: 2250  -  total flux cleaned = 0.000418375 Jy
! Component: 2300  -  total flux cleaned = 0.000461522 Jy
! Component: 2350  -  total flux cleaned = 0.000525175 Jy
! Component: 2400  -  total flux cleaned = 0.000609643 Jy
! Component: 2450  -  total flux cleaned = 0.000672386 Jy
! Component: 2500  -  total flux cleaned = 0.000776447 Jy
! Component: 2550  -  total flux cleaned = 0.000797189 Jy
! Component: 2600  -  total flux cleaned = 0.000858942 Jy
! Component: 2650  -  total flux cleaned = 0.000900062 Jy
! Component: 2700  -  total flux cleaned = 0.001002 Jy
! Component: 2750  -  total flux cleaned = 0.00110326 Jy
! Component: 2800  -  total flux cleaned = 0.0011435 Jy
! Component: 2850  -  total flux cleaned = 0.00122357 Jy
! Component: 2900  -  total flux cleaned = 0.00126347 Jy
! Component: 2950  -  total flux cleaned = 0.00138242 Jy
! Component: 3000  -  total flux cleaned = 0.00148098 Jy
! Component: 3050  -  total flux cleaned = 0.00148105 Jy
! Component: 3100  -  total flux cleaned = 0.00153977 Jy
! Component: 3150  -  total flux cleaned = 0.00167564 Jy
! Component: 3200  -  total flux cleaned = 0.00167563 Jy
! Component: 3250  -  total flux cleaned = 0.00171393 Jy
! Component: 3300  -  total flux cleaned = 0.00179055 Jy
! Component: 3350  -  total flux cleaned = 0.00180968 Jy
! Component: 3400  -  total flux cleaned = 0.00190426 Jy
! Component: 3450  -  total flux cleaned = 0.00192318 Jy
! Component: 3500  -  total flux cleaned = 0.0020168 Jy
! Component: 3550  -  total flux cleaned = 0.00207266 Jy
! Component: 3600  -  total flux cleaned = 0.00199835 Jy
! Component: 3650  -  total flux cleaned = 0.00207236 Jy
! Component: 3700  -  total flux cleaned = 0.00209075 Jy
! Component: 3750  -  total flux cleaned = 0.00216395 Jy
! Component: 3800  -  total flux cleaned = 0.00221849 Jy
! Component: 3850  -  total flux cleaned = 0.00223662 Jy
! Component: 3900  -  total flux cleaned = 0.0022366 Jy
! Component: 3950  -  total flux cleaned = 0.00230845 Jy
! Component: 4000  -  total flux cleaned = 0.00234402 Jy
! Component: 4050  -  total flux cleaned = 0.00236182 Jy
! Total flux subtracted in 4096 components = 0.00241498 Jy
! Clean residual min=-0.001238 max=0.001064 Jy/beam
! Clean residual mean=0.000004 rms=0.000342 Jy/beam
! Combined flux in latest and established models = 0.349334 Jy
keep
! Adding 309 model components to the UV plane model.
! The established model now contains 587 components and 0.349334 Jy
![Exited script file: muppet]
wmap "J1746+6226_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.082 x 6.459 at 60.23 degrees (North through East)
! Clean map  min=-0.0020121  max=0.2361 Jy/beam
! Writing clean map to FITS file: J1746+6226_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.236099 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000341977 
device "J1746+6226_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1746+6226_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.434535 0.434535 0.86907 1.73814 3.47628 6.95256 13.9051 27.8103 55.6205
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.236 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.082 x 6.459 at 60.23 degrees (North through East)
! Clean map  min=-0.0020121  max=0.2361 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1746+6226_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1746+6226_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1746+6226_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 19:12:41 2008