! Started logfile: J0958+4725_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:34:32 2008
obs J0958+4725_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0958+4725_S_1999_05_10_pus_uva.fits
! AN table 1: 108 integrations on 153 of 153 possible baselines.
! AN table 2: 121 integrations on 153 of 153 possible baselines.
! AN table 3: 263 integrations on 153 of 153 possible baselines.
! AN table 4: 88 integrations on 153 of 153 possible baselines.
! AN table 5: 192 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.204858 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0958+4725
! 
! 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 96788 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 J0958+4725_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 = 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 1436 telescope corrections were flagged in sub-array 1.
!  A total of 849 telescope corrections were flagged in sub-array 2.
!  A total of 3548 telescope corrections were flagged in sub-array 3.
!  A total of 1070 telescope corrections were flagged in sub-array 4.
!  A total of 2382 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1436 telescope corrections were flagged in sub-array 1.
!  A total of 849 telescope corrections were flagged in sub-array 2.
!  A total of 3562 telescope corrections were flagged in sub-array 3.
!  A total of 1070 telescope corrections were flagged in sub-array 4.
!  A total of 2382 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1436 telescope corrections were flagged in sub-array 1.
!  A total of 849 telescope corrections were flagged in sub-array 2.
!  A total of 3548 telescope corrections were flagged in sub-array 3.
!  A total of 1070 telescope corrections were flagged in sub-array 4.
!  A total of 2382 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1534 telescope corrections were flagged in sub-array 1.
!  A total of 943 telescope corrections were flagged in sub-array 2.
!  A total of 3615 telescope corrections were flagged in sub-array 3.
!  A total of 1139 telescope corrections were flagged in sub-array 4.
!  A total of 2430 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.685447Jy  sigma=0.004676
! Fit after  self-cal, rms=0.343248Jy  sigma=0.002464
! 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.015 mas, bmaj=2.608 mas, bpa=5.03 degrees
! Estimated noise=627.796 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.605507 Jy
! Component: 100  -  total flux cleaned = 0.741856 Jy
! Total flux subtracted in 100 components = 0.741856 Jy
! Clean residual min=-0.012827 max=0.049562 Jy/beam
! Clean residual mean=0.000048 rms=0.003417 Jy/beam
! Combined flux in latest and established models = 0.741856 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.741856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286844Jy  sigma=0.002065
! Fit after  self-cal, rms=0.286814Jy  sigma=0.002065
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0525046 Jy
! Component: 100  -  total flux cleaned = 0.0819653 Jy
! Total flux subtracted in 100 components = 0.0819653 Jy
! Clean residual min=-0.011899 max=0.016471 Jy/beam
! Clean residual mean=0.000021 rms=0.002879 Jy/beam
! Combined flux in latest and established models = 0.823822 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 12 components and 0.823822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274775Jy  sigma=0.001920
! Fit after  self-cal, rms=0.274696Jy  sigma=0.001920
! Inverting map 
! Added new window around map position (2, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0202347 Jy
! Component: 100  -  total flux cleaned = 0.0318628 Jy
! Total flux subtracted in 100 components = 0.0318628 Jy
! Clean residual min=-0.011662 max=0.015091 Jy/beam
! Clean residual mean=0.000010 rms=0.002770 Jy/beam
! Combined flux in latest and established models = 0.855684 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 18 components and 0.855684 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273103Jy  sigma=0.001896
! Fit after  self-cal, rms=0.273058Jy  sigma=0.001896
! 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.621 mas, bmaj=3.227 mas, bpa=-5.651 degrees
! Estimated noise=305.774 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.0146909 Jy
! Component: 100  -  total flux cleaned = 0.0210124 Jy
! Component: 150  -  total flux cleaned = 0.0220067 Jy
! Component: 200  -  total flux cleaned = 0.0222766 Jy
! Total flux subtracted in 200 components = 0.0222766 Jy
! Clean residual min=-0.007711 max=0.008780 Jy/beam
! Clean residual mean=-0.000179 rms=0.001669 Jy/beam
! Combined flux in latest and established models = 0.877961 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 27 components and 0.877961 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272544Jy  sigma=0.001888
! Fit after  self-cal, rms=0.272532Jy  sigma=0.001887
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.04     KK        0.94     KP        1.18     LA        1.01     
!   MC        1.09     MK        1.04     NL        0.96     NY        0.92     
!   ON        0.96     OV        1.03     PT        1.01     SC        1.00*    
!   WF        1.06     WZ        1.11     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        0.99     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.01     LA        0.99     
!   MC        1.11     MK        0.92     NL        0.97     NY        0.92     
!   ON        0.97     OV        1.03     PT        1.01     SC        0.98     
!   WF        0.99     WZ        0.96     
! 
!  A total of 120 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.00     KK        0.99     KP        1.17     LA        1.00     
!   MC        1.00*    MK        0.92     NL        0.98     NY        0.96     
!   ON        1.08     OV        1.01     PT        1.00     SC        1.02     
!   WF        0.99     WZ        1.27     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GC        1.00     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.78     LA        1.03     
!   MC        1.00     MK        0.92     NL        1.03     NY        0.94     
!   ON        1.02     OV        1.07     PT        1.08     SC        1.00*    
!   WF        1.00*    WZ        1.06     
! 
!  A total of 39 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        0.99     GC        1.01     HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.00     LA        1.00     
!   MC        0.97     MK        1.00*    NL        0.99     NY        0.95     
!   ON        0.94     OV        1.01     PT        1.01     SC        0.99     
!   WF        0.99     WZ        0.93     
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.06     GC        0.99     HH        1.00*    
!   HN        1.05     KK        0.96     KP        1.02     LA        1.00     
!   MC        1.24     MK        1.10     NL        1.00     NY        0.91     
!   ON        1.03     OV        0.99     PT        1.10     SC        1.00*    
!   WF        1.08     WZ        1.15     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        0.98     HH        1.00*    
!   HN        1.00     KK        0.99     KP        1.01     LA        0.96     
!   MC        0.96     MK        1.00     NL        0.98     NY        0.92     
!   ON        1.02     OV        0.99     PT        0.98     SC        1.00     
!   WF        1.00     WZ        0.97     
! 
!  A total of 120 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.93     GC        1.07     HH        1.00*    
!   HN        1.01     KK        1.09     KP        1.07     LA        0.97     
!   MC        1.00*    MK        0.97     NL        1.07     NY        1.02     
!   ON        1.07     OV        0.98     PT        1.08     SC        1.03     
!   WF        1.06     WZ        1.30     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        0.95     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.98     LA        1.12     
!   MC        1.14     MK        1.00     NL        1.05     NY        0.96     
!   ON        1.02     OV        1.01     PT        1.04     SC        1.00*    
!   WF        1.00*    WZ        1.05     
! 
!  A total of 39 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        1.02     GC        0.99     HH        1.00*    
!   HN        1.01     KK        1.00*    KP        1.01     LA        0.99     
!   MC        0.96     MK        1.00*    NL        1.00     NY        0.92     
!   ON        0.95     OV        0.99     PT        0.97     SC        1.01     
!   WF        1.00     WZ        0.95     
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.03     GC        1.00     HH        1.00*    
!   HN        1.06     KK        0.94     KP        1.04     LA        1.07     
!   MC        0.68     MK        1.03     NL        1.02     NY        0.96     
!   ON        1.03     OV        0.98     PT        1.07     SC        1.00*    
!   WF        1.04     WZ        1.04     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.98     HH        1.00*    
!   HN        1.00     KK        0.99     KP        0.99     LA        0.98     
!   MC        1.31     MK        0.95     NL        1.00     NY        0.97     
!   ON        0.96     OV        0.98     PT        0.97     SC        0.99     
!   WF        1.01     WZ        1.08     
! 
!  A total of 120 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.01     KK        0.99     KP        0.99     LA        0.97     
!   MC        1.00*    MK        0.93     NL        1.03     NY        1.01     
!   ON        1.07     OV        0.93     PT        0.96     SC        1.03     
!   WF        1.00     WZ        2.32     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GC        1.00     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.01     LA        1.11     
!   MC        0.60     MK        0.90     NL        1.07     NY        0.97     
!   ON        1.04     OV        1.00     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.02     
! 
!  A total of 39 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.00     GC        1.01     HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.99     LA        1.02     
!   MC        1.11     MK        1.00*    NL        0.99     NY        0.99     
!   ON        0.94     OV        0.98     PT        0.99     SC        1.01     
!   WF        1.03     WZ        0.85     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.15     GC        1.00     HH        1.00*    
!   HN        1.06     KK        0.92     KP        1.12     LA        1.06     
!   MC        0.90     MK        1.04     NL        1.02     NY        0.94     
!   ON        0.99     OV        0.94     PT        1.08     SC        1.00*    
!   WF        1.07     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        0.98     HH        1.00*    
!   HN        1.00     KK        0.98     KP        1.00     LA        0.99     
!   MC        1.22     MK        0.99     NL        1.01     NY        0.98     
!   ON        1.01     OV        0.95     PT        0.99     SC        0.99     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.99     GC        1.03     HH        1.00*    
!   HN        1.03     KK        0.99     KP        1.01     LA        0.98     
!   MC        1.00*    MK        0.94     NL        1.04     NY        1.03     
!   ON        1.10     OV        0.90     PT        1.01     SC        1.03     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        1.00*    GC        1.00     HH        1.00*    
!   HN        1.00*    KK        0.97     KP        1.64     LA        1.12     
!   MC        0.76     MK        0.91     NL        1.07     NY        1.01     
!   ON        1.02     OV        0.99     PT        1.14     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.95     FD        0.98     GC        1.02     HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00     LA        1.02     
!   MC        0.99     MK        1.00*    NL        0.99     NY        1.01     
!   ON        1.01     OV        0.94     PT        1.01     SC        1.00     
!   WF        1.01     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.272532Jy  sigma=0.001887
! Fit after  self-cal, rms=0.286086Jy  sigma=0.001810
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.634 mas, bmaj=3.287 mas, bpa=-5.484 degrees
! Estimated noise=306.702 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 (4.5, -4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00382848 Jy
! Component: 100  -  total flux cleaned = 0.00360764 Jy
! Component: 150  -  total flux cleaned = 0.00360099 Jy
! Component: 200  -  total flux cleaned = 0.00359849 Jy
! Total flux subtracted in 200 components = 0.00359849 Jy
! Clean residual min=-0.004466 max=0.004367 Jy/beam
! Clean residual mean=-0.000030 rms=0.001022 Jy/beam
! Combined flux in latest and established models = 0.881559 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 43 components and 0.881559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285753Jy  sigma=0.001808
! Fit after  self-cal, rms=0.286217Jy  sigma=0.001807
! 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.286217Jy  sigma=0.001807
! Fit after  self-cal, rms=0.290272Jy  sigma=0.001778
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.638 mas, bmaj=3.289 mas, bpa=-6.107 degrees
! Estimated noise=306.408 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000988273 Jy
! Component: 100  -  total flux cleaned = -0.000858299 Jy
! Component: 150  -  total flux cleaned = -0.00074652 Jy
! Component: 200  -  total flux cleaned = -0.000540208 Jy
! Total flux subtracted in 200 components = -0.000540208 Jy
! Clean residual min=-0.002861 max=0.003138 Jy/beam
! Clean residual mean=-0.000025 rms=0.000714 Jy/beam
! Combined flux in latest and established models = 0.881019 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 58 components and 0.881019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290129Jy  sigma=0.001777
! Fit after  self-cal, rms=0.290306Jy  sigma=0.001777
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, 23).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00193693 Jy
! Component: 100  -  total flux cleaned = 0.00267089 Jy
! Component: 150  -  total flux cleaned = 0.00307939 Jy
! Component: 200  -  total flux cleaned = 0.00337882 Jy
! Total flux subtracted in 200 components = 0.00337882 Jy
! Clean residual min=-0.002918 max=0.002810 Jy/beam
! Clean residual mean=-0.000046 rms=0.000702 Jy/beam
! Combined flux in latest and established models = 0.884398 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 65 components and 0.884398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290242Jy  sigma=0.001776
! Fit after  self-cal, rms=0.290245Jy  sigma=0.001776
! 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.290245Jy  sigma=0.001776
! Fit after  self-cal, rms=0.336438Jy  sigma=0.001793
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.638 mas, bmaj=3.298 mas, bpa=-6.396 degrees
! Estimated noise=307.12 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000342809 Jy
! Component: 100  -  total flux cleaned = 0.000670423 Jy
! Component: 150  -  total flux cleaned = 0.000857229 Jy
! Component: 200  -  total flux cleaned = 0.00118964 Jy
! Total flux subtracted in 200 components = 0.00118964 Jy
! Clean residual min=-0.002948 max=0.002953 Jy/beam
! Clean residual mean=-0.000107 rms=0.000724 Jy/beam
! Combined flux in latest and established models = 0.885588 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 73 components and 0.885588 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336355Jy  sigma=0.001792
! Fit after  self-cal, rms=0.337736Jy  sigma=0.001789
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.000437542 Jy
! Component: 100  -  total flux cleaned = 0.000859136 Jy
! Component: 150  -  total flux cleaned = 0.00111867 Jy
! Component: 200  -  total flux cleaned = 0.00136368 Jy
! Total flux subtracted in 200 components = 0.00136368 Jy
! Clean residual min=-0.002959 max=0.002863 Jy/beam
! Clean residual mean=-0.000108 rms=0.000698 Jy/beam
! Combined flux in latest and established models = 0.886951 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 78 components and 0.886951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.337702Jy  sigma=0.001789
! Fit after  self-cal, rms=0.337714Jy  sigma=0.001789
! 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.337714Jy  sigma=0.001789
! Fit after  self-cal, rms=0.341744Jy  sigma=0.001789
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.729 mas, bmaj=8.56 mas, bpa=40.32 degrees
! Estimated noise=432.662 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00200525 Jy
! Component: 100  -  total flux cleaned = 0.00314314 Jy
! Component: 150  -  total flux cleaned = 0.00385237 Jy
! Component: 200  -  total flux cleaned = 0.00420832 Jy
! Total flux subtracted in 200 components = 0.00420832 Jy
! Clean residual min=-0.005588 max=0.003484 Jy/beam
! Clean residual mean=-0.000452 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 0.89116 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 90 components and 0.89116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341733Jy  sigma=0.001789
! Fit after  self-cal, rms=0.341856Jy  sigma=0.001789
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.000488602 Jy
! Component: 100  -  total flux cleaned = 0.000577564 Jy
! Component: 150  -  total flux cleaned = 0.000602091 Jy
! Component: 200  -  total flux cleaned = 0.000602001 Jy
! Total flux subtracted in 200 components = 0.000602001 Jy
! Clean residual min=-0.005732 max=0.003383 Jy/beam
! Clean residual mean=-0.000468 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 0.891762 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 104 components and 0.891762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341856Jy  sigma=0.001789
! Fit after  self-cal, rms=0.341863Jy  sigma=0.001789
! 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.639 mas, bmaj=3.305 mas, bpa=-6.542 degrees
! Estimated noise=307.764 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.639 x 3.305 at -6.542 degrees (North through East)
! Clean map  min=-0.0029017  max=0.80636 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.341863Jy  sigma=0.001789
! Fit after  self-cal, rms=1.234868Jy  sigma=0.001525
! Inverting map and beam 
! Estimated beam: bmin=2.636 mas, bmaj=3.305 mas, bpa=-6.436 degrees
! Estimated noise=307.739 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000638707 Jy
! Component: 100  -  total flux cleaned = -0.00134182 Jy
! Component: 150  -  total flux cleaned = -0.0020242 Jy
! Component: 200  -  total flux cleaned = -0.00239548 Jy
! Total flux subtracted in 200 components = -0.00239548 Jy
! Clean residual min=-0.002634 max=0.002692 Jy/beam
! Clean residual mean=-0.000027 rms=0.000639 Jy/beam
! Combined flux in latest and established models = 0.889366 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 113 components and 0.889366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.234822Jy  sigma=0.001525
! Fit after  self-cal, rms=1.234834Jy  sigma=0.001525
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000293857 Jy
! Component: 100  -  total flux cleaned = -0.000404163 Jy
! Component: 150  -  total flux cleaned = -0.000507698 Jy
! Component: 200  -  total flux cleaned = -0.000605438 Jy
! Total flux subtracted in 200 components = -0.000605438 Jy
! Clean residual min=-0.002585 max=0.002676 Jy/beam
! Clean residual mean=-0.000022 rms=0.000634 Jy/beam
! Combined flux in latest and established models = 0.888761 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 121 components and 0.88876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.234799Jy  sigma=0.001525
! Fit after  self-cal, rms=1.234800Jy  sigma=0.001525
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.234800Jy  sigma=0.001525
! Fit after  self-cal, rms=2.174175Jy  sigma=0.001524
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.001 mas, bmaj=2.692 mas, bpa=3.346 degrees
! Estimated noise=645.036 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.616012 Jy
! Component: 100  -  total flux cleaned = 0.751478 Jy
! Component: 150  -  total flux cleaned = 0.797691 Jy
! Component: 200  -  total flux cleaned = 0.820969 Jy
! Total flux subtracted in 200 components = 0.820969 Jy
! Clean residual min=-0.004417 max=0.011369 Jy/beam
! Clean residual mean=0.000029 rms=0.001275 Jy/beam
! Combined flux in latest and established models = 0.820969 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.820969 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.637 mas, bmaj=3.309 mas, bpa=-6.5 degrees
! Estimated noise=308.103 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.0222358 Jy
! Component: 100  -  total flux cleaned = 0.0351508 Jy
! Component: 150  -  total flux cleaned = 0.04373 Jy
! Component: 200  -  total flux cleaned = 0.0496478 Jy
! Total flux subtracted in 200 components = 0.0496478 Jy
! Clean residual min=-0.002318 max=0.003874 Jy/beam
! Clean residual mean=0.000101 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.870617 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 44 components and 0.870617 Jy
! Inverting map 
! Added new window around map position (-0.5, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00445937 Jy
! Component: 100  -  total flux cleaned = 0.00782272 Jy
! Component: 150  -  total flux cleaned = 0.0104309 Jy
! Component: 200  -  total flux cleaned = 0.0118577 Jy
! Total flux subtracted in 200 components = 0.0118577 Jy
! Clean residual min=-0.002476 max=0.002717 Jy/beam
! Clean residual mean=0.000018 rms=0.000621 Jy/beam
! Combined flux in latest and established models = 0.882474 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 58 components and 0.882475 Jy
! Inverting map 
! Added new window around map position (54, 30).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00210302 Jy
! Component: 100  -  total flux cleaned = 0.00285489 Jy
! Component: 150  -  total flux cleaned = 0.00329843 Jy
! Component: 200  -  total flux cleaned = 0.00360023 Jy
! Total flux subtracted in 200 components = 0.00360023 Jy
! Clean residual min=-0.002473 max=0.002657 Jy/beam
! Clean residual mean=-0.000005 rms=0.000609 Jy/beam
! Combined flux in latest and established models = 0.886075 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 78 components and 0.886075 Jy
! Inverting map 
! Added new window around map position (14, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000839972 Jy
! Component: 100  -  total flux cleaned = 0.000959639 Jy
! Component: 150  -  total flux cleaned = 0.00125124 Jy
! Component: 200  -  total flux cleaned = 0.00141793 Jy
! Total flux subtracted in 200 components = 0.00141793 Jy
! Clean residual min=-0.002479 max=0.002337 Jy/beam
! Clean residual mean=-0.000013 rms=0.000605 Jy/beam
! Combined flux in latest and established models = 0.887493 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 94 components and 0.887493 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.74 mas, bmaj=8.576 mas, bpa=40.31 degrees
! Estimated noise=431.975 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000680037 Jy
! Component: 100  -  total flux cleaned = 0.000903027 Jy
! Component: 150  -  total flux cleaned = 0.00109409 Jy
! Component: 200  -  total flux cleaned = 0.00123204 Jy
! Total flux subtracted in 200 components = 0.00123204 Jy
! Clean residual min=-0.004241 max=0.003204 Jy/beam
! Clean residual mean=-0.000073 rms=0.001036 Jy/beam
! Combined flux in latest and established models = 0.888725 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.000123503 Jy
! Component: 100  -  total flux cleaned = 0.000169468 Jy
! Component: 150  -  total flux cleaned = 0.000212038 Jy
! Component: 200  -  total flux cleaned = 0.000231272 Jy
! Total flux subtracted in 200 components = 0.000231272 Jy
! Clean residual min=-0.004242 max=0.003225 Jy/beam
! Clean residual mean=-0.000077 rms=0.001034 Jy/beam
! Combined flux in latest and established models = 0.888956 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 120 components and 0.888956 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.637 mas, bmaj=3.309 mas, bpa=-6.5 degrees
! Estimated noise=308.103 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000353995 Jy
! Component: 100  -  total flux cleaned = -0.000404737 Jy
! Component: 150  -  total flux cleaned = -0.00030372 Jy
! Component: 200  -  total flux cleaned = -0.000303317 Jy
! Total flux subtracted in 200 components = -0.000303317 Jy
! Clean residual min=-0.002486 max=0.002341 Jy/beam
! Clean residual mean=-0.000020 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 0.888653 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 132 components and 0.888653 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.173838Jy  sigma=0.001523
! Fit after  self-cal, rms=2.173838Jy  sigma=0.001523
wmodel J0958+4725_S_1999_05_10_pus_map.mod
! Writing 132 model components to file: J0958+4725_S_1999_05_10_pus_map.mod
wobs J0958+4725_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0958+4725_S_1999_05_10_pus_uvs.fits
wwins J0958+4725_S_1999_05_10_pus_map.win
! wwins: Wrote 7 windows to J0958+4725_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=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000427745 Jy
! Component: 100  -  total flux cleaned = 0.0009983 Jy
! Component: 150  -  total flux cleaned = 0.00134941 Jy
! Component: 200  -  total flux cleaned = 0.00150005 Jy
! Component: 250  -  total flux cleaned = 0.00168414 Jy
! Component: 300  -  total flux cleaned = 0.00186355 Jy
! Component: 350  -  total flux cleaned = 0.00210982 Jy
! Component: 400  -  total flux cleaned = 0.00224826 Jy
! Component: 450  -  total flux cleaned = 0.00238433 Jy
! Component: 500  -  total flux cleaned = 0.0024846 Jy
! Component: 550  -  total flux cleaned = 0.00258361 Jy
! Component: 600  -  total flux cleaned = 0.00264894 Jy
! Component: 650  -  total flux cleaned = 0.00274566 Jy
! Component: 700  -  total flux cleaned = 0.00280927 Jy
! Component: 750  -  total flux cleaned = 0.00287204 Jy
! Component: 800  -  total flux cleaned = 0.00284067 Jy
! Component: 850  -  total flux cleaned = 0.00280995 Jy
! Component: 900  -  total flux cleaned = 0.00284034 Jy
! Component: 950  -  total flux cleaned = 0.00281001 Jy
! Component: 1000  -  total flux cleaned = 0.00281007 Jy
! Component: 1050  -  total flux cleaned = 0.00278031 Jy
! Component: 1100  -  total flux cleaned = 0.00289846 Jy
! Component: 1150  -  total flux cleaned = 0.00295688 Jy
! Component: 1200  -  total flux cleaned = 0.00301481 Jy
! Component: 1250  -  total flux cleaned = 0.00310158 Jy
! Component: 1300  -  total flux cleaned = 0.0031016 Jy
! Component: 1350  -  total flux cleaned = 0.00315866 Jy
! Component: 1400  -  total flux cleaned = 0.00315868 Jy
! Component: 1450  -  total flux cleaned = 0.00321498 Jy
! Component: 1500  -  total flux cleaned = 0.00315909 Jy
! Component: 1550  -  total flux cleaned = 0.00324262 Jy
! Component: 1600  -  total flux cleaned = 0.00327023 Jy
! Component: 1650  -  total flux cleaned = 0.00324275 Jy
! Component: 1700  -  total flux cleaned = 0.00321551 Jy
! Component: 1750  -  total flux cleaned = 0.0032698 Jy
! Component: 1800  -  total flux cleaned = 0.00324268 Jy
! Component: 1850  -  total flux cleaned = 0.0031891 Jy
! Component: 1900  -  total flux cleaned = 0.00324269 Jy
! Component: 1950  -  total flux cleaned = 0.00318947 Jy
! Component: 2000  -  total flux cleaned = 0.00324264 Jy
! Total flux subtracted in 2048 components = 0.00324253 Jy
! Clean residual min=-0.001863 max=0.001637 Jy/beam
! Clean residual mean=-0.000047 rms=0.000513 Jy/beam
! Combined flux in latest and established models = 0.891895 Jy
keep
! Adding 165 model components to the UV plane model.
! The established model now contains 297 components and 0.891895 Jy
![Exited script file: muppet]
wmap "J0958+4725_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.637 x 3.309 at -6.5 degrees (North through East)
! Clean map  min=-0.0020699  max=0.80842 Jy/beam
! Writing clean map to FITS file: J0958+4725_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.808424 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000513106 
device "J0958+4725_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0958+4725_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.19041 0.19041 0.38082 0.76164 1.52328 3.04656 6.09312 12.1862 24.3725 48.7449 97.4899
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.808 
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.637 x 3.309 at -6.5 degrees (North through East)
! Clean map  min=-0.0020699  max=0.80842 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0958+4725_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0958+4725_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0958+4725_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:35:08 2008