! Started logfile: J0837+2454_S_2000_12_04_pus_uvs.log on Thu Oct 18 16:18:37 2007
obs J0837+2454_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0837+2454_S_2000_12_04_pus_uva.fits
! AN table 1: 148 integrations on 190 of 190 possible baselines.
! AN table 2: 150 integrations on 190 of 190 possible baselines.
! AN table 3: 229 integrations on 190 of 190 possible baselines.
! AN table 4: 87 integrations on 190 of 190 possible baselines.
! AN table 5: 76 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.138177 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0837+2454
! 
! 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 2173 lines of history.
! 
! Reading 72460 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 J0837+2454_S_2000_12_04_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 1910 telescope corrections were flagged in sub-array 1.
!  A total of 2844 telescope corrections were flagged in sub-array 2.
!  A total of 3264 telescope corrections were flagged in sub-array 3.
!  A total of 1138 telescope corrections were flagged in sub-array 4.
!  A total of 926 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1880 telescope corrections were flagged in sub-array 1.
!  A total of 2838 telescope corrections were flagged in sub-array 2.
!  A total of 3264 telescope corrections were flagged in sub-array 3.
!  A total of 1138 telescope corrections were flagged in sub-array 4.
!  A total of 926 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1880 telescope corrections were flagged in sub-array 1.
!  A total of 2829 telescope corrections were flagged in sub-array 2.
!  A total of 3059 telescope corrections were flagged in sub-array 3.
!  A total of 1141 telescope corrections were flagged in sub-array 4.
!  A total of 926 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 2348 telescope corrections were flagged in sub-array 1.
!  A total of 2886 telescope corrections were flagged in sub-array 2.
!  A total of 3053 telescope corrections were flagged in sub-array 3.
!  A total of 1138 telescope corrections were flagged in sub-array 4.
!  A total of 926 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.956850Jy  sigma=0.007060
! Fit after  self-cal, rms=0.811640Jy  sigma=0.005901
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.741 mas, bmaj=3.222 mas, bpa=1.716 degrees
! Estimated noise=709.237 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.188615 Jy
! Component: 100  -  total flux cleaned = 0.252101 Jy
! Total flux subtracted in 100 components = 0.252101 Jy
! Clean residual min=-0.014933 max=0.047401 Jy/beam
! Clean residual mean=0.000045 rms=0.003752 Jy/beam
! Combined flux in latest and established models = 0.252101 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.252101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325998Jy  sigma=0.002156
! Fit after  self-cal, rms=0.325286Jy  sigma=0.002152
! Inverting map 
! Added new window around map position (2.5, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0473145 Jy
! Component: 100  -  total flux cleaned = 0.0729038 Jy
! Total flux subtracted in 100 components = 0.0729038 Jy
! Clean residual min=-0.013070 max=0.018748 Jy/beam
! Clean residual mean=0.000023 rms=0.002993 Jy/beam
! Combined flux in latest and established models = 0.325005 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 0.325005 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318154Jy  sigma=0.002075
! Fit after  self-cal, rms=0.317313Jy  sigma=0.002069
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0227293 Jy
! Component: 100  -  total flux cleaned = 0.0351851 Jy
! Total flux subtracted in 100 components = 0.0351851 Jy
! Clean residual min=-0.012080 max=0.010842 Jy/beam
! Clean residual mean=0.000016 rms=0.002738 Jy/beam
! Combined flux in latest and established models = 0.36019 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 28 components and 0.36019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315776Jy  sigma=0.002052
! Fit after  self-cal, rms=0.315508Jy  sigma=0.002050
! 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.109 mas, bmaj=3.8 mas, bpa=-1.427 degrees
! Estimated noise=389.225 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.0132076 Jy
! Component: 100  -  total flux cleaned = 0.020742 Jy
! Component: 150  -  total flux cleaned = 0.0253613 Jy
! Component: 200  -  total flux cleaned = 0.0269241 Jy
! Total flux subtracted in 200 components = 0.0269241 Jy
! Clean residual min=-0.009138 max=0.008281 Jy/beam
! Clean residual mean=0.000212 rms=0.002027 Jy/beam
! Combined flux in latest and established models = 0.387114 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 38 components and 0.387114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314958Jy  sigma=0.002045
! Fit after  self-cal, rms=0.314826Jy  sigma=0.002044
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 93 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.84     KP        1.13     
!   LA        1.05     MA        0.62     MC        1.01     MK        1.08     
!   NL        0.96     NY        1.02     OV        1.00     PT        1.01     
!   SC        0.97     TS        1.00*    WF        0.84     WZ        1.01     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.52     MC        1.28     MK        1.00*    
!   NL        1.00*    NY        0.99     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.87     WF        1.00*    WZ        1.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.02     HN        1.02     KK        1.00*    KP        0.95     
!   LA        1.05     MA        1.00*    MC        1.03     MK        1.00*    
!   NL        0.93     NY        0.99     OV        1.03     PT        1.04     
!   SC        1.09     TS        1.00*    WF        0.94     WZ        1.02     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.08     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        0.95     
!   LA        1.11     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.03     NY        0.99     OV        1.05     PT        1.05     
!   SC        1.00*    TS        1.04     WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.92     FD        0.91     GC        1.15     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.01     KP        1.00*    
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        0.87     NY        0.99     OV        1.00*    PT        0.93     
!   SC        1.07     TS        1.06     WF        0.95     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        2.25     KP        1.02     
!   LA        0.99     MA        0.77     MC        0.96     MK        1.14     
!   NL        0.92     NY        1.03     OV        0.97     PT        1.01     
!   SC        0.95     TS        1.00*    WF        0.99     WZ        1.08     
! 
!  A total of 90 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.71     MC        1.11     MK        1.00*    
!   NL        1.00*    NY        1.06     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.88     WF        1.00*    WZ        1.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GC        1.03     GG        1.00*    
!   HH        1.04     HN        1.00     KK        1.00*    KP        1.00     
!   LA        1.04     MA        1.00*    MC        1.48     MK        1.00*    
!   NL        0.91     NY        0.98     OV        1.02     PT        1.03     
!   SC        1.03     TS        1.00*    WF        0.96     WZ        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.08     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        0.98     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        0.98     NY        1.01     OV        0.98     PT        1.08     
!   SC        1.00*    TS        1.05     WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.90     FD        0.93     GC        1.11     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.01     KP        1.00*    
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.88     NY        1.08     OV        1.00*    PT        0.93     
!   SC        1.03     TS        1.08     WF        0.95     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        1.20     GC        1.33     GG        1.00*    
!   HH        1.00*    HN        0.79     KK        2.05     KP        1.20     
!   LA        0.79     MA        1.18     MC        0.93     MK        2.00     
!   NL        0.60     NY        1.50     OV        0.94     PT        0.82     
!   SC        1.01     TS        1.00*    WF        1.38     WZ        1.18     
! 
!  A total of 99 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.85     MC        0.77     MK        1.00*    
!   NL        1.00*    NY        1.21     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.03     WF        1.00*    WZ        1.00*    
! 
!  A total of 225 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.31     GC        1.43     GG        1.00*    
!   HH        0.99     HN        0.67     KK        1.00*    KP        1.00     
!   LA        1.19     MA        1.52     MC        0.77     MK        1.00*    
!   NL        0.71     NY        1.43     OV        1.14     PT        0.96     
!   SC        1.18     TS        1.00*    WF        0.94     WZ        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.11     GC        0.81     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.09     
!   LA        1.11     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.13     NY        0.92     OV        1.11     PT        1.10     
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.66     FD        0.98     GC        0.85     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        0.98     KP        1.00*    
!   LA        0.88     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        0.41     NY        1.32     OV        1.00*    PT        1.09     
!   SC        1.04     TS        0.97     WF        1.77     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 108 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.77     KP        1.01     
!   LA        1.00     MA        0.72     MC        0.99     MK        1.23     
!   NL        0.95     NY        1.33     OV        0.99     PT        1.10     
!   SC        1.03     TS        1.00*    WF        0.74     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.92     MC        0.75     MK        1.00*    
!   NL        1.00*    NY        0.94     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.02     GC        0.99     GG        1.00*    
!   HH        0.91     HN        1.00     KK        1.00*    KP        1.07     
!   LA        1.02     MA        0.94     MC        1.22     MK        1.00*    
!   NL        0.94     NY        1.05     OV        1.00     PT        1.04     
!   SC        1.12     TS        1.00*    WF        1.00     WZ        1.02     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.07     GC        0.93     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        1.02     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.05     NY        1.04     OV        1.00     PT        1.07     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.93     FD        0.94     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.95     KP        1.00*    
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.87     NY        1.02     OV        1.00*    PT        0.99     
!   SC        1.10     TS        1.08     WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.314826Jy  sigma=0.002044
! Fit after  self-cal, rms=0.333865Jy  sigma=0.001985
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.142 mas, bmaj=3.855 mas, bpa=-0.6511 degrees
! Estimated noise=396.115 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.00269914 Jy
! Component: 100  -  total flux cleaned = 0.00200093 Jy
! Component: 150  -  total flux cleaned = 0.00184115 Jy
! Component: 200  -  total flux cleaned = 0.00170491 Jy
! Total flux subtracted in 200 components = 0.00170491 Jy
! Clean residual min=-0.003682 max=0.004064 Jy/beam
! Clean residual mean=-0.000074 rms=0.000905 Jy/beam
! Combined flux in latest and established models = 0.388819 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 44 components and 0.388819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333781Jy  sigma=0.001985
! Fit after  self-cal, rms=0.337222Jy  sigma=0.001972
! 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.337222Jy  sigma=0.001972
! Fit after  self-cal, rms=0.356641Jy  sigma=0.001969
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.144 mas, bmaj=3.855 mas, bpa=-0.4945 degrees
! Estimated noise=398.455 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00137191 Jy
! Component: 100  -  total flux cleaned = 0.00161386 Jy
! Component: 150  -  total flux cleaned = 0.00173791 Jy
! Component: 200  -  total flux cleaned = 0.0017387 Jy
! Total flux subtracted in 200 components = 0.0017387 Jy
! Clean residual min=-0.003645 max=0.003844 Jy/beam
! Clean residual mean=-0.000123 rms=0.000878 Jy/beam
! Combined flux in latest and established models = 0.390557 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 48 components and 0.390557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356595Jy  sigma=0.001969
! Fit after  self-cal, rms=0.357999Jy  sigma=0.001967
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, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00251258 Jy
! Component: 100  -  total flux cleaned = 0.00269788 Jy
! Component: 150  -  total flux cleaned = 0.00298342 Jy
! Component: 200  -  total flux cleaned = 0.00298284 Jy
! Total flux subtracted in 200 components = 0.00298284 Jy
! Clean residual min=-0.003561 max=0.003178 Jy/beam
! Clean residual mean=-0.000167 rms=0.000876 Jy/beam
! Combined flux in latest and established models = 0.39354 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 60 components and 0.39354 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357935Jy  sigma=0.001966
! Fit after  self-cal, rms=0.357989Jy  sigma=0.001966
! 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.357989Jy  sigma=0.001966
! Fit after  self-cal, rms=0.364246Jy  sigma=0.001965
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.141 mas, bmaj=3.846 mas, bpa=-0.3076 degrees
! Estimated noise=398.625 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00143857 Jy
! Component: 100  -  total flux cleaned = 0.0020896 Jy
! Component: 150  -  total flux cleaned = 0.00221051 Jy
! Component: 200  -  total flux cleaned = 0.00226478 Jy
! Total flux subtracted in 200 components = 0.00226478 Jy
! Clean residual min=-0.003464 max=0.003327 Jy/beam
! Clean residual mean=-0.000181 rms=0.000859 Jy/beam
! Combined flux in latest and established models = 0.395805 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 63 components and 0.395805 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364206Jy  sigma=0.001965
! Fit after  self-cal, rms=0.364901Jy  sigma=0.001965
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.000717073 Jy
! Component: 100  -  total flux cleaned = -0.000543879 Jy
! Component: 150  -  total flux cleaned = -0.000490945 Jy
! Component: 200  -  total flux cleaned = -0.00044322 Jy
! Total flux subtracted in 200 components = -0.00044322 Jy
! Clean residual min=-0.003510 max=0.003119 Jy/beam
! Clean residual mean=-0.000182 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 0.395362 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 66 components and 0.395362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364878Jy  sigma=0.001964
! Fit after  self-cal, rms=0.364900Jy  sigma=0.001964
! 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.364900Jy  sigma=0.001964
! Fit after  self-cal, rms=0.369191Jy  sigma=0.001964
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.868 mas, bmaj=8.794 mas, bpa=-3.328 degrees
! Estimated noise=570.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00153349 Jy
! Component: 100  -  total flux cleaned = 0.00184016 Jy
! Component: 150  -  total flux cleaned = 0.00201343 Jy
! Component: 200  -  total flux cleaned = 0.00211279 Jy
! Total flux subtracted in 200 components = 0.00211279 Jy
! Clean residual min=-0.005253 max=0.003708 Jy/beam
! Clean residual mean=-0.000653 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 0.397474 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 71 components and 0.397474 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369194Jy  sigma=0.001964
! Fit after  self-cal, rms=0.369708Jy  sigma=0.001963
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.000604827 Jy
! Component: 100  -  total flux cleaned = -0.000442508 Jy
! Component: 150  -  total flux cleaned = -0.000409541 Jy
! Component: 200  -  total flux cleaned = -0.000407715 Jy
! Total flux subtracted in 200 components = -0.000407715 Jy
! Clean residual min=-0.005528 max=0.003987 Jy/beam
! Clean residual mean=-0.000655 rms=0.001442 Jy/beam
! Combined flux in latest and established models = 0.397067 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 75 components and 0.397067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369707Jy  sigma=0.001963
! Fit after  self-cal, rms=0.369701Jy  sigma=0.001963
! 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.139 mas, bmaj=3.84 mas, bpa=-0.1687 degrees
! Estimated noise=398.758 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.139 x 3.84 at -0.1687 degrees (North through East)
! Clean map  min=-0.0032772  max=0.2375 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.76 mas, bmaj=3.261 mas, bpa=2.902 degrees
! Estimated noise=733.489 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.188032 Jy
! Component: 100  -  total flux cleaned = 0.268278 Jy
! Component: 150  -  total flux cleaned = 0.312872 Jy
! Component: 200  -  total flux cleaned = 0.338151 Jy
! Total flux subtracted in 200 components = 0.338151 Jy
! Clean residual min=-0.006963 max=0.012581 Jy/beam
! Clean residual mean=0.000011 rms=0.001618 Jy/beam
! Combined flux in latest and established models = 0.338151 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.338151 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.139 mas, bmaj=3.84 mas, bpa=-0.1687 degrees
! Estimated noise=398.758 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.0206381 Jy
! Component: 100  -  total flux cleaned = 0.0320189 Jy
! Component: 150  -  total flux cleaned = 0.0396343 Jy
! Component: 200  -  total flux cleaned = 0.0449142 Jy
! Total flux subtracted in 200 components = 0.0449142 Jy
! Clean residual min=-0.003867 max=0.003383 Jy/beam
! Clean residual mean=-0.000062 rms=0.000917 Jy/beam
! Combined flux in latest and established models = 0.383066 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 44 components and 0.383065 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.868 mas, bmaj=8.794 mas, bpa=-3.328 degrees
! Estimated noise=570.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00726822 Jy
! Component: 100  -  total flux cleaned = 0.0107257 Jy
! Component: 150  -  total flux cleaned = 0.0124815 Jy
! Component: 200  -  total flux cleaned = 0.0129173 Jy
! Total flux subtracted in 200 components = 0.0129173 Jy
! Clean residual min=-0.005496 max=0.003878 Jy/beam
! Clean residual mean=-0.000619 rms=0.001442 Jy/beam
! Combined flux in latest and established models = 0.395983 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.000230185 Jy
! Component: 100  -  total flux cleaned = 0.000388171 Jy
! Component: 150  -  total flux cleaned = 0.000499303 Jy
! Component: 200  -  total flux cleaned = 0.000611774 Jy
! Total flux subtracted in 200 components = 0.000611774 Jy
! Clean residual min=-0.005541 max=0.003940 Jy/beam
! Clean residual mean=-0.000640 rms=0.001439 Jy/beam
! Combined flux in latest and established models = 0.396594 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 77 components and 0.396594 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.139 mas, bmaj=3.84 mas, bpa=-0.1687 degrees
! Estimated noise=398.758 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00124572 Jy
! Component: 100  -  total flux cleaned = -0.00126492 Jy
! Component: 150  -  total flux cleaned = -0.00113709 Jy
! Component: 200  -  total flux cleaned = -0.00113719 Jy
! Total flux subtracted in 200 components = -0.00113719 Jy
! Clean residual min=-0.003645 max=0.003206 Jy/beam
! Clean residual mean=-0.000180 rms=0.000857 Jy/beam
! Combined flux in latest and established models = 0.395457 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 94 components and 0.395457 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369672Jy  sigma=0.001963
! Fit after  self-cal, rms=0.369638Jy  sigma=0.001963
wmodel J0837+2454_S_2000_12_04_pus_map.mod
! Writing 94 model components to file: J0837+2454_S_2000_12_04_pus_map.mod
wobs J0837+2454_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0837+2454_S_2000_12_04_pus_uvs.fits
wwins J0837+2454_S_2000_12_04_pus_map.win
! wwins: Wrote 3 windows to J0837+2454_S_2000_12_04_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.00165015 Jy
! Component: 100  -  total flux cleaned = -0.00280083 Jy
! Component: 150  -  total flux cleaned = -0.00390054 Jy
! Component: 200  -  total flux cleaned = -0.00490431 Jy
! Component: 250  -  total flux cleaned = -0.00576925 Jy
! Component: 300  -  total flux cleaned = -0.00666358 Jy
! Component: 350  -  total flux cleaned = -0.00748301 Jy
! Component: 400  -  total flux cleaned = -0.00793382 Jy
! Component: 450  -  total flux cleaned = -0.0084747 Jy
! Component: 500  -  total flux cleaned = -0.00905335 Jy
! Component: 550  -  total flux cleaned = -0.00957501 Jy
! Component: 600  -  total flux cleaned = -0.00990201 Jy
! Component: 650  -  total flux cleaned = -0.0101789 Jy
! Component: 700  -  total flux cleaned = -0.0104523 Jy
! Component: 750  -  total flux cleaned = -0.0107673 Jy
! Component: 800  -  total flux cleaned = -0.0109896 Jy
! Component: 850  -  total flux cleaned = -0.0112091 Jy
! Component: 900  -  total flux cleaned = -0.0114262 Jy
! Component: 950  -  total flux cleaned = -0.0115121 Jy
! Component: 1000  -  total flux cleaned = -0.0116819 Jy
! Component: 1050  -  total flux cleaned = -0.011766 Jy
! Component: 1100  -  total flux cleaned = -0.0118078 Jy
! Component: 1150  -  total flux cleaned = -0.0119319 Jy
! Component: 1200  -  total flux cleaned = -0.0120547 Jy
! Component: 1250  -  total flux cleaned = -0.0120953 Jy
! Component: 1300  -  total flux cleaned = -0.0120959 Jy
! Component: 1350  -  total flux cleaned = -0.0122164 Jy
! Component: 1400  -  total flux cleaned = -0.0123353 Jy
! Component: 1450  -  total flux cleaned = -0.0123351 Jy
! Component: 1500  -  total flux cleaned = -0.012374 Jy
! Component: 1550  -  total flux cleaned = -0.0124127 Jy
! Component: 1600  -  total flux cleaned = -0.0124893 Jy
! Component: 1650  -  total flux cleaned = -0.0124508 Jy
! Component: 1700  -  total flux cleaned = -0.0124512 Jy
! Component: 1750  -  total flux cleaned = -0.0125264 Jy
! Component: 1800  -  total flux cleaned = -0.012601 Jy
! Component: 1850  -  total flux cleaned = -0.0126013 Jy
! Component: 1900  -  total flux cleaned = -0.0127484 Jy
! Component: 1950  -  total flux cleaned = -0.0127848 Jy
! Component: 2000  -  total flux cleaned = -0.0128213 Jy
! Total flux subtracted in 2048 components = -0.0128935 Jy
! Clean residual min=-0.002190 max=0.001947 Jy/beam
! Clean residual mean=-0.000073 rms=0.000686 Jy/beam
! Combined flux in latest and established models = 0.382564 Jy
keep
! Adding 157 model components to the UV plane model.
! The established model now contains 251 components and 0.382564 Jy
![Exited script file: muppet]
wmap "J0837+2454_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.139 x 3.84 at -0.1687 degrees (North through East)
! Clean map  min=-0.0030905  max=0.2373 Jy/beam
! Writing clean map to FITS file: J0837+2454_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.237302 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000682579 
device "J0837+2454_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0837+2454_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.862925 0.862925 1.72585 3.4517 6.9034 13.8068 27.6136 55.2272
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.237 
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.139 x 3.84 at -0.1687 degrees (North through East)
! Clean map  min=-0.0030905  max=0.2373 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0837+2454_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0837+2454_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0837+2454_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 16:19:03 2007