! Started logfile: J1130+3815_S_2001_04_09_pus_uvs.log on Fri Oct  5 16:02:36 2007
obs J1130+3815_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1130+3815_S_2001_04_09_pus_uva.fits
! AN table 1: 84 integrations on 190 of 190 possible baselines.
! AN table 2: 72 integrations on 190 of 190 possible baselines.
! AN table 3: 43 integrations on 190 of 190 possible baselines.
! AN table 4: 328 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.16902 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1130+3815
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 67696 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 J1130+3815_S_2001_04_09_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 887 telescope corrections were flagged in sub-array 1.
!  A total of 878 telescope corrections were flagged in sub-array 2.
!  A total of 554 telescope corrections were flagged in sub-array 3.
!  A total of 5055 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 887 telescope corrections were flagged in sub-array 1.
!  A total of 878 telescope corrections were flagged in sub-array 2.
!  A total of 554 telescope corrections were flagged in sub-array 3.
!  A total of 5056 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 887 telescope corrections were flagged in sub-array 1.
!  A total of 878 telescope corrections were flagged in sub-array 2.
!  A total of 554 telescope corrections were flagged in sub-array 3.
!  A total of 5056 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 887 telescope corrections were flagged in sub-array 1.
!  A total of 878 telescope corrections were flagged in sub-array 2.
!  A total of 554 telescope corrections were flagged in sub-array 3.
!  A total of 5055 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.910582Jy  sigma=0.007010
! Fit after  self-cal, rms=0.572570Jy  sigma=0.003258
! 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.9 mas, bmaj=2.971 mas, bpa=-7.711 degrees
! Estimated noise=630.072 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.49372 Jy
! Component: 100  -  total flux cleaned = 0.605451 Jy
! Total flux subtracted in 100 components = 0.605451 Jy
! Clean residual min=-0.008990 max=0.040877 Jy/beam
! Clean residual mean=-0.000008 rms=0.002600 Jy/beam
! Combined flux in latest and established models = 0.605451 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.605451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.456434Jy  sigma=0.001729
! Fit after  self-cal, rms=0.456406Jy  sigma=0.001729
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0445848 Jy
! Component: 100  -  total flux cleaned = 0.070269 Jy
! Total flux subtracted in 100 components = 0.070269 Jy
! Clean residual min=-0.007304 max=0.013937 Jy/beam
! Clean residual mean=-0.000011 rms=0.001957 Jy/beam
! Combined flux in latest and established models = 0.67572 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 15 components and 0.67572 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.451125Jy  sigma=0.001608
! Fit after  self-cal, rms=0.451034Jy  sigma=0.001607
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0174173 Jy
! Component: 100  -  total flux cleaned = 0.0292942 Jy
! Total flux subtracted in 100 components = 0.0292942 Jy
! Clean residual min=-0.006935 max=0.012276 Jy/beam
! Clean residual mean=-0.000013 rms=0.001813 Jy/beam
! Combined flux in latest and established models = 0.705014 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 16 components and 0.705014 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.450244Jy  sigma=0.001585
! Fit after  self-cal, rms=0.450216Jy  sigma=0.001585
! Inverting map 
! Added new window around map position (-6, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0110981 Jy
! Component: 100  -  total flux cleaned = 0.0183987 Jy
! Total flux subtracted in 100 components = 0.0183987 Jy
! Clean residual min=-0.006865 max=0.009066 Jy/beam
! Clean residual mean=-0.000016 rms=0.001745 Jy/beam
! Combined flux in latest and established models = 0.723413 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 24 components and 0.723413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.449929Jy  sigma=0.001576
! Fit after  self-cal, rms=0.449898Jy  sigma=0.001576
! 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.224 mas, bmaj=3.563 mas, bpa=-9.688 degrees
! Estimated noise=347.209 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 (-2.5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0099761 Jy
! Component: 100  -  total flux cleaned = 0.0162295 Jy
! Component: 150  -  total flux cleaned = 0.0206515 Jy
! Component: 200  -  total flux cleaned = 0.0225362 Jy
! Total flux subtracted in 200 components = 0.0225362 Jy
! Clean residual min=-0.006279 max=0.005066 Jy/beam
! Clean residual mean=0.000036 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 0.745949 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 49 components and 0.745949 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.449680Jy  sigma=0.001570
! Fit after  self-cal, rms=0.449657Jy  sigma=0.001570
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.99     KP        1.02     
!   LA        0.98     MA        1.00*    MC        1.20     MK        0.99     
!   NL        1.00     NY        0.99     OV        0.99     PT        0.96     
!   SC        0.99     TS        1.02     WF        0.93     WZ        1.15     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.84     KK        0.99     KP        1.14     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        1.10     
!   NL        0.96     NY        0.98     OV        1.01     PT        0.99     
!   SC        1.09     TS        0.94     WF        1.02     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.05     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        0.99     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.01     NY        0.97     OV        1.02     PT        0.99     
!   SC        1.00*    TS        0.92     WF        1.00*    WZ        1.00*    
! 
!  A total of 243 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.04     KP        0.99     
!   LA        0.98     MA        0.99     MC        1.16     MK        1.00     
!   NL        1.00     NY        0.97     OV        1.05     PT        0.96     
!   SC        1.01     TS        1.00*    WF        0.94     WZ        1.01     
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.98     KP        0.77     
!   LA        0.99     MA        1.00*    MC        1.08     MK        1.02     
!   NL        1.00     NY        1.00     OV        0.94     PT        1.00     
!   SC        1.02     TS        1.08     WF        1.00     WZ        1.09     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.85     KK        0.99     KP        0.85     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.96     NY        1.01     OV        0.98     PT        1.03     
!   SC        1.10     TS        0.98     WF        1.01     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.03     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.89     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.02     NY        1.00     OV        1.00     PT        1.01     
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  A total of 243 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        0.92     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.04     KP        0.98     
!   LA        0.99     MA        1.17     MC        1.28     MK        1.05     
!   NL        0.99     NY        1.00     OV        1.02     PT        0.98     
!   SC        1.00     TS        1.00*    WF        1.05     WZ        0.99     
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00     KP        1.01     
!   LA        0.96     MA        1.00*    MC        1.33     MK        0.99     
!   NL        1.00     NY        1.00     OV        0.97     PT        1.02     
!   SC        0.99     TS        1.08     WF        1.03     WZ        1.11     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.99     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.88     KK        0.99     KP        1.03     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        0.97     NY        0.98     OV        0.99     PT        1.03     
!   SC        1.07     TS        0.99     WF        1.01     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.04     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.04     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.03     NY        0.96     OV        1.02     PT        1.02     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 243 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.01     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.05     KP        1.01     
!   LA        0.95     MA        0.95     MC        0.97     MK        1.00     
!   NL        0.99     NY        0.97     OV        1.02     PT        1.00     
!   SC        0.99     TS        1.00*    WF        1.04     WZ        1.00     
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.01     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.95     KP        1.02     
!   LA        0.98     MA        1.00*    MC        0.85     MK        0.97     
!   NL        0.98     NY        1.04     OV        0.99     PT        1.16     
!   SC        1.01     TS        1.04     WF        1.01     WZ        1.08     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.88     KK        0.96     KP        1.07     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        0.96     NY        1.02     OV        0.99     PT        0.98     
!   SC        1.08     TS        0.96     WF        1.04     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.04     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.00     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.04     NY        0.99     OV        0.99     PT        1.04     
!   SC        1.00*    TS        0.92     WF        1.00*    WZ        1.00*    
! 
!  A total of 243 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.05     KP        1.01     
!   LA        1.00     MA        0.88     MC        1.10     MK        0.98     
!   NL        0.99     NY        0.97     OV        1.03     PT        1.09     
!   SC        1.00     TS        1.00*    WF        1.06     WZ        1.02     
! 
! 
! Fit before self-cal, rms=0.449657Jy  sigma=0.001570
! Fit after  self-cal, rms=0.461634Jy  sigma=0.001516
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.237 mas, bmaj=3.603 mas, bpa=-9.097 degrees
! Estimated noise=348.287 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 (-8.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.002601 Jy
! Component: 100  -  total flux cleaned = 0.0030851 Jy
! Component: 150  -  total flux cleaned = 0.00324794 Jy
! Component: 200  -  total flux cleaned = 0.0033922 Jy
! Total flux subtracted in 200 components = 0.0033922 Jy
! Clean residual min=-0.003327 max=0.003752 Jy/beam
! Clean residual mean=0.000013 rms=0.000821 Jy/beam
! Combined flux in latest and established models = 0.749341 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 72 components and 0.749341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461576Jy  sigma=0.001515
! Fit after  self-cal, rms=0.461542Jy  sigma=0.001515
! 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.461542Jy  sigma=0.001515
! Fit after  self-cal, rms=0.516498Jy  sigma=0.001497
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.241 mas, bmaj=3.604 mas, bpa=-8.834 degrees
! Estimated noise=348.649 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00135609 Jy
! Component: 100  -  total flux cleaned = 0.00185515 Jy
! Component: 150  -  total flux cleaned = 0.00241857 Jy
! Component: 200  -  total flux cleaned = 0.00284406 Jy
! Total flux subtracted in 200 components = 0.00284406 Jy
! Clean residual min=-0.002121 max=0.002412 Jy/beam
! Clean residual mean=0.000017 rms=0.000570 Jy/beam
! Combined flux in latest and established models = 0.752185 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 86 components and 0.752185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.516468Jy  sigma=0.001496
! Fit after  self-cal, rms=0.516610Jy  sigma=0.001496
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.000419914 Jy
! Component: 100  -  total flux cleaned = 0.00063486 Jy
! Component: 150  -  total flux cleaned = 0.000829529 Jy
! Component: 200  -  total flux cleaned = 0.00100642 Jy
! Total flux subtracted in 200 components = 0.00100642 Jy
! Clean residual min=-0.002186 max=0.002396 Jy/beam
! Clean residual mean=0.000013 rms=0.000561 Jy/beam
! Combined flux in latest and established models = 0.753192 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 97 components and 0.753192 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.516599Jy  sigma=0.001496
! Fit after  self-cal, rms=0.516601Jy  sigma=0.001496
! 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.516601Jy  sigma=0.001496
! Fit after  self-cal, rms=0.522912Jy  sigma=0.001496
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.242 mas, bmaj=3.605 mas, bpa=-8.796 degrees
! Estimated noise=348.639 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000395658 Jy
! Component: 100  -  total flux cleaned = 0.00068456 Jy
! Component: 150  -  total flux cleaned = 0.000814925 Jy
! Component: 200  -  total flux cleaned = 0.00089672 Jy
! Total flux subtracted in 200 components = 0.000896721 Jy
! Clean residual min=-0.002159 max=0.002395 Jy/beam
! Clean residual mean=0.000005 rms=0.000554 Jy/beam
! Combined flux in latest and established models = 0.754088 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 104 components and 0.754088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522901Jy  sigma=0.001496
! Fit after  self-cal, rms=0.522919Jy  sigma=0.001496
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 (1, -42.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00118998 Jy
! Component: 100  -  total flux cleaned = 0.00123026 Jy
! Component: 150  -  total flux cleaned = 0.00140355 Jy
! Component: 200  -  total flux cleaned = 0.0014847 Jy
! Total flux subtracted in 200 components = 0.0014847 Jy
! Clean residual min=-0.002242 max=0.002194 Jy/beam
! Clean residual mean=-0.000002 rms=0.000547 Jy/beam
! Combined flux in latest and established models = 0.755573 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 116 components and 0.755573 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522903Jy  sigma=0.001496
! Fit after  self-cal, rms=0.522902Jy  sigma=0.001495
! 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.522902Jy  sigma=0.001495
! Fit after  self-cal, rms=0.523876Jy  sigma=0.001495
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.509 mas, bmaj=8.421 mas, bpa=4.14 degrees
! Estimated noise=528.706 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00142503 Jy
! Component: 100  -  total flux cleaned = 0.00181376 Jy
! Component: 150  -  total flux cleaned = 0.00226392 Jy
! Component: 200  -  total flux cleaned = 0.00247505 Jy
! Total flux subtracted in 200 components = 0.00247505 Jy
! Clean residual min=-0.002335 max=0.002904 Jy/beam
! Clean residual mean=-0.000069 rms=0.000883 Jy/beam
! Combined flux in latest and established models = 0.758048 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 126 components and 0.758048 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.523890Jy  sigma=0.001495
! Fit after  self-cal, rms=0.523894Jy  sigma=0.001495
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.00024828 Jy
! Component: 100  -  total flux cleaned = 0.000355814 Jy
! Component: 150  -  total flux cleaned = 0.000428421 Jy
! Component: 200  -  total flux cleaned = 0.000517766 Jy
! Total flux subtracted in 200 components = 0.000517766 Jy
! Clean residual min=-0.002346 max=0.002880 Jy/beam
! Clean residual mean=-0.000079 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 0.758566 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 129 components and 0.758566 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.523901Jy  sigma=0.001496
! Fit after  self-cal, rms=0.523901Jy  sigma=0.001496
! 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.242 mas, bmaj=3.606 mas, bpa=-8.786 degrees
! Estimated noise=348.639 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.242 x 3.606 at -8.786 degrees (North through East)
! Clean map  min=-0.0020358  max=0.64799 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.523901Jy  sigma=0.001496
! Fit after  self-cal, rms=0.317818Jy  sigma=0.001411
! Inverting map and beam 
! Estimated beam: bmin=2.241 mas, bmaj=3.604 mas, bpa=-8.875 degrees
! Estimated noise=348.218 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00138854 Jy
! Component: 100  -  total flux cleaned = -0.00147721 Jy
! Component: 150  -  total flux cleaned = -0.00151561 Jy
! Component: 200  -  total flux cleaned = -0.00151335 Jy
! Total flux subtracted in 200 components = -0.00151335 Jy
! Clean residual min=-0.002064 max=0.002177 Jy/beam
! Clean residual mean=0.000005 rms=0.000525 Jy/beam
! Combined flux in latest and established models = 0.757053 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 141 components and 0.757053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317797Jy  sigma=0.001411
! Fit after  self-cal, rms=0.317803Jy  sigma=0.001411
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000165037 Jy
! Component: 100  -  total flux cleaned = -0.000263851 Jy
! Component: 150  -  total flux cleaned = -0.00029363 Jy
! Component: 200  -  total flux cleaned = -0.000323085 Jy
! Total flux subtracted in 200 components = -0.000323085 Jy
! Clean residual min=-0.002043 max=0.002156 Jy/beam
! Clean residual mean=0.000006 rms=0.000522 Jy/beam
! Combined flux in latest and established models = 0.75673 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 146 components and 0.756729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317794Jy  sigma=0.001410
! Fit after  self-cal, rms=0.317795Jy  sigma=0.001410
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317795Jy  sigma=0.001410
! Fit after  self-cal, rms=0.318135Jy  sigma=0.001410
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.913 mas, bmaj=2.991 mas, bpa=-7.305 degrees
! Estimated noise=641.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.495723 Jy
! Component: 100  -  total flux cleaned = 0.607028 Jy
! Component: 150  -  total flux cleaned = 0.648358 Jy
! Component: 200  -  total flux cleaned = 0.670767 Jy
! Total flux subtracted in 200 components = 0.670767 Jy
! Clean residual min=-0.004193 max=0.011970 Jy/beam
! Clean residual mean=0.000010 rms=0.001207 Jy/beam
! Combined flux in latest and established models = 0.670767 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 14 model components to the UV plane model.
! The established model now contains 14 components and 0.670767 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.242 mas, bmaj=3.604 mas, bpa=-8.87 degrees
! Estimated noise=348.142 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.023113 Jy
! Component: 100  -  total flux cleaned = 0.0378656 Jy
! Component: 150  -  total flux cleaned = 0.0482139 Jy
! Component: 200  -  total flux cleaned = 0.0559188 Jy
! Total flux subtracted in 200 components = 0.0559188 Jy
! Clean residual min=-0.002326 max=0.004451 Jy/beam
! Clean residual mean=0.000148 rms=0.000758 Jy/beam
! Combined flux in latest and established models = 0.726686 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 63 components and 0.726686 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00585348 Jy
! Component: 100  -  total flux cleaned = 0.0103804 Jy
! Component: 150  -  total flux cleaned = 0.0139843 Jy
! Component: 200  -  total flux cleaned = 0.0169666 Jy
! Total flux subtracted in 200 components = 0.0169666 Jy
! Clean residual min=-0.002137 max=0.002895 Jy/beam
! Clean residual mean=0.000066 rms=0.000576 Jy/beam
! Combined flux in latest and established models = 0.743652 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 98 components and 0.743653 Jy
! Inverting map 
! Added new window around map position (-10.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00289299 Jy
! Component: 100  -  total flux cleaned = 0.00514156 Jy
! Component: 150  -  total flux cleaned = 0.00707293 Jy
! Component: 200  -  total flux cleaned = 0.0087494 Jy
! Total flux subtracted in 200 components = 0.0087494 Jy
! Clean residual min=-0.002069 max=0.002238 Jy/beam
! Clean residual mean=0.000021 rms=0.000527 Jy/beam
! Combined flux in latest and established models = 0.752402 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 117 components and 0.752402 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.511 mas, bmaj=8.42 mas, bpa=4.135 degrees
! Estimated noise=528.009 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0029997 Jy
! Component: 100  -  total flux cleaned = 0.00468152 Jy
! Component: 150  -  total flux cleaned = 0.00529965 Jy
! Component: 200  -  total flux cleaned = 0.0057141 Jy
! Total flux subtracted in 200 components = 0.0057141 Jy
! Clean residual min=-0.002123 max=0.002472 Jy/beam
! Clean residual mean=-0.000033 rms=0.000809 Jy/beam
! Combined flux in latest and established models = 0.758116 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.000345341 Jy
! Component: 100  -  total flux cleaned = 0.000655462 Jy
! Component: 150  -  total flux cleaned = 0.000892516 Jy
! Component: 200  -  total flux cleaned = 0.00109094 Jy
! Total flux subtracted in 200 components = 0.00109094 Jy
! Clean residual min=-0.002172 max=0.002335 Jy/beam
! Clean residual mean=-0.000054 rms=0.000800 Jy/beam
! Combined flux in latest and established models = 0.759207 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 161 components and 0.759207 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.242 mas, bmaj=3.604 mas, bpa=-8.87 degrees
! Estimated noise=348.142 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000463313 Jy
! Component: 100  -  total flux cleaned = -0.000712299 Jy
! Component: 150  -  total flux cleaned = -0.000712473 Jy
! Component: 200  -  total flux cleaned = -0.000756496 Jy
! Total flux subtracted in 200 components = -0.000756496 Jy
! Clean residual min=-0.001970 max=0.002033 Jy/beam
! Clean residual mean=-0.000009 rms=0.000509 Jy/beam
! Combined flux in latest and established models = 0.758451 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 175 components and 0.758451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318132Jy  sigma=0.001411
! Fit after  self-cal, rms=0.318140Jy  sigma=0.001411
wmodel J1130+3815_S_2001_04_09_pus_map.mod
! Writing 175 model components to file: J1130+3815_S_2001_04_09_pus_map.mod
wobs J1130+3815_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1130+3815_S_2001_04_09_pus_uvs.fits
wwins J1130+3815_S_2001_04_09_pus_map.win
! wwins: Wrote 6 windows to J1130+3815_S_2001_04_09_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.000423323 Jy
! Component: 100  -  total flux cleaned = 0.000598623 Jy
! Component: 150  -  total flux cleaned = 0.000665632 Jy
! Component: 200  -  total flux cleaned = 0.000763715 Jy
! Component: 250  -  total flux cleaned = 0.000763679 Jy
! Component: 300  -  total flux cleaned = 0.00079551 Jy
! Component: 350  -  total flux cleaned = 0.000948956 Jy
! Component: 400  -  total flux cleaned = 0.000979416 Jy
! Component: 450  -  total flux cleaned = 0.00112829 Jy
! Component: 500  -  total flux cleaned = 0.00118679 Jy
! Component: 550  -  total flux cleaned = 0.00124461 Jy
! Component: 600  -  total flux cleaned = 0.00133041 Jy
! Component: 650  -  total flux cleaned = 0.00141513 Jy
! Component: 700  -  total flux cleaned = 0.00144299 Jy
! Component: 750  -  total flux cleaned = 0.00147076 Jy
! Component: 800  -  total flux cleaned = 0.00147085 Jy
! Component: 850  -  total flux cleaned = 0.00147073 Jy
! Component: 900  -  total flux cleaned = 0.00149748 Jy
! Component: 950  -  total flux cleaned = 0.00147039 Jy
! Component: 1000  -  total flux cleaned = 0.00144389 Jy
! Component: 1050  -  total flux cleaned = 0.00144388 Jy
! Component: 1100  -  total flux cleaned = 0.00152225 Jy
! Component: 1150  -  total flux cleaned = 0.00147021 Jy
! Component: 1200  -  total flux cleaned = 0.00154737 Jy
! Component: 1250  -  total flux cleaned = 0.00149618 Jy
! Component: 1300  -  total flux cleaned = 0.00157229 Jy
! Component: 1350  -  total flux cleaned = 0.00152182 Jy
! Component: 1400  -  total flux cleaned = 0.00157206 Jy
! Component: 1450  -  total flux cleaned = 0.00162187 Jy
! Component: 1500  -  total flux cleaned = 0.0015476 Jy
! Component: 1550  -  total flux cleaned = 0.00164641 Jy
! Component: 1600  -  total flux cleaned = 0.00159729 Jy
! Component: 1650  -  total flux cleaned = 0.00164589 Jy
! Component: 1700  -  total flux cleaned = 0.00159739 Jy
! Component: 1750  -  total flux cleaned = 0.0016215 Jy
! Component: 1800  -  total flux cleaned = 0.00159756 Jy
! Component: 1850  -  total flux cleaned = 0.00166907 Jy
! Component: 1900  -  total flux cleaned = 0.00164528 Jy
! Component: 1950  -  total flux cleaned = 0.00157431 Jy
! Component: 2000  -  total flux cleaned = 0.00162128 Jy
! Total flux subtracted in 2048 components = 0.00159766 Jy
! Clean residual min=-0.001604 max=0.001501 Jy/beam
! Clean residual mean=-0.000018 rms=0.000439 Jy/beam
! Combined flux in latest and established models = 0.760049 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 341 components and 0.760049 Jy
![Exited script file: muppet]
wmap "J1130+3815_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.242 x 3.604 at -8.87 degrees (North through East)
! Clean map  min=-0.0018026  max=0.64831 Jy/beam
! Writing clean map to FITS file: J1130+3815_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.648314 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000438805 
device "J1130+3815_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1130+3815_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.203052 0.203052 0.406104 0.812208 1.62442 3.24883 6.49767 12.9953 25.9907 51.9813
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.648 
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.242 x 3.604 at -8.87 degrees (North through East)
! Clean map  min=-0.0018026  max=0.64831 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1130+3815_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1130+3815_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1130+3815_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 16:03:04 2007