! Started logfile: J1150+2417_S_2000_12_04_pus_uvs.log on Thu Oct 18 16:35:18 2007
obs J1150+2417_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1150+2417_S_2000_12_04_pus_uva.fits
! AN table 1: 75 integrations on 190 of 190 possible baselines.
! AN table 2: 301 integrations on 190 of 190 possible baselines.
! AN table 3: 53 integrations on 190 of 190 possible baselines.
! AN table 4: 233 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.158745 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1150+2417
! 
! 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 79868 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 J1150+2417_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 847 telescope corrections were flagged in sub-array 1.
!  A total of 3177 telescope corrections were flagged in sub-array 2.
!  A total of 740 telescope corrections were flagged in sub-array 3.
!  A total of 3971 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 848 telescope corrections were flagged in sub-array 1.
!  A total of 3177 telescope corrections were flagged in sub-array 2.
!  A total of 740 telescope corrections were flagged in sub-array 3.
!  A total of 3987 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 847 telescope corrections were flagged in sub-array 1.
!  A total of 3176 telescope corrections were flagged in sub-array 2.
!  A total of 740 telescope corrections were flagged in sub-array 3.
!  A total of 3871 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 847 telescope corrections were flagged in sub-array 1.
!  A total of 3291 telescope corrections were flagged in sub-array 2.
!  A total of 740 telescope corrections were flagged in sub-array 3.
!  A total of 3874 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.773696Jy  sigma=0.006575
! Fit after  self-cal, rms=0.665812Jy  sigma=0.005878
! 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.91 mas, bmaj=3.479 mas, bpa=-10.75 degrees
! Estimated noise=719.495 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.263041 Jy
! Component: 100  -  total flux cleaned = 0.336355 Jy
! Total flux subtracted in 100 components = 0.336355 Jy
! Clean residual min=-0.011274 max=0.039602 Jy/beam
! Clean residual mean=0.000221 rms=0.003632 Jy/beam
! Combined flux in latest and established models = 0.336355 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.336355 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240136Jy  sigma=0.001809
! Fit after  self-cal, rms=0.239634Jy  sigma=0.001807
! Inverting map 
! Added new window around map position (-2.5, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0432244 Jy
! Component: 100  -  total flux cleaned = 0.0687602 Jy
! Total flux subtracted in 100 components = 0.0687602 Jy
! Clean residual min=-0.009518 max=0.016742 Jy/beam
! Clean residual mean=0.000149 rms=0.002675 Jy/beam
! Combined flux in latest and established models = 0.405115 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 14 components and 0.405115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228159Jy  sigma=0.001669
! Fit after  self-cal, rms=0.227460Jy  sigma=0.001664
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0196369 Jy
! Component: 100  -  total flux cleaned = 0.0318327 Jy
! Total flux subtracted in 100 components = 0.0318327 Jy
! Clean residual min=-0.008873 max=0.016124 Jy/beam
! Clean residual mean=0.000117 rms=0.002359 Jy/beam
! Combined flux in latest and established models = 0.436948 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 17 components and 0.436948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225476Jy  sigma=0.001639
! Fit after  self-cal, rms=0.225312Jy  sigma=0.001638
! Inverting map 
! Added new window around map position (-14, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154733 Jy
! Component: 100  -  total flux cleaned = 0.0256195 Jy
! Total flux subtracted in 100 components = 0.0256195 Jy
! Clean residual min=-0.007997 max=0.010793 Jy/beam
! Clean residual mean=0.000096 rms=0.002190 Jy/beam
! Combined flux in latest and established models = 0.462567 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 30 components and 0.462568 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223587Jy  sigma=0.001615
! Fit after  self-cal, rms=0.223513Jy  sigma=0.001614
! 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.914 mas, bmaj=5.208 mas, bpa=-18.61 degrees
! Estimated noise=293.437 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 (-9.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0197713 Jy
! Component: 100  -  total flux cleaned = 0.0312491 Jy
! Component: 150  -  total flux cleaned = 0.0387588 Jy
! Component: 200  -  total flux cleaned = 0.044124 Jy
! Total flux subtracted in 200 components = 0.044124 Jy
! Clean residual min=-0.004596 max=0.015264 Jy/beam
! Clean residual mean=0.000761 rms=0.002154 Jy/beam
! Combined flux in latest and established models = 0.506692 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 67 components and 0.506692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221732Jy  sigma=0.001592
! Fit after  self-cal, rms=0.221491Jy  sigma=0.001590
! Inverting map 
! Added new window around map position (-19.5, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141365 Jy
! Component: 100  -  total flux cleaned = 0.0219115 Jy
! Component: 150  -  total flux cleaned = 0.0274464 Jy
! Component: 200  -  total flux cleaned = 0.0316464 Jy
! Total flux subtracted in 200 components = 0.0316464 Jy
! Clean residual min=-0.004419 max=0.009112 Jy/beam
! Clean residual mean=0.000571 rms=0.001592 Jy/beam
! Combined flux in latest and established models = 0.538338 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 108 components and 0.538338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220527Jy  sigma=0.001579
! Fit after  self-cal, rms=0.220460Jy  sigma=0.001579
! Inverting map 
! Added new window around map position (-32, -8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00944135 Jy
! Component: 100  -  total flux cleaned = 0.0152476 Jy
! Component: 150  -  total flux cleaned = 0.0195994 Jy
! Component: 200  -  total flux cleaned = 0.0232414 Jy
! Total flux subtracted in 200 components = 0.0232414 Jy
! Clean residual min=-0.003375 max=0.004986 Jy/beam
! Clean residual mean=0.000424 rms=0.001194 Jy/beam
! Combined flux in latest and established models = 0.561579 Jy
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 148 components and 0.561579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219972Jy  sigma=0.001573
! Fit after  self-cal, rms=0.219907Jy  sigma=0.001573
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.96     GC        0.86     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.14     
!   LA        1.00     MA        1.00*    MC        1.25     MK        0.95     
!   NL        0.96     NY        1.02     OV        1.00*    PT        0.98     
!   SC        1.08     TS        1.00*    WF        1.16     WZ        1.03     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.01     KP        0.97     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.99     NY        1.07     OV        0.99     PT        0.99     
!   SC        1.09     TS        1.00     WF        1.00     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.04     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.01     NY        1.06     OV        0.97     PT        0.98     
!   SC        1.00*    TS        1.01     WF        1.00*    WZ        1.00*    
! 
!  A total of 183 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.05     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.91     MC        1.07     MK        1.00*    
!   NL        1.00*    NY        1.03     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        1.00     
! 
! 
! Correcting IF 2.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        0.90     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.09     MK        1.01     
!   NL        0.93     NY        1.01     OV        1.00*    PT        1.00     
!   SC        1.02     TS        1.00*    WF        1.17     WZ        1.02     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.96     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.95     NY        1.03     OV        0.96     PT        1.01     
!   SC        1.05     TS        1.01     WF        0.98     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.98     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.96     NY        1.06     OV        0.97     PT        1.00     
!   SC        1.00*    TS        0.98     WF        1.00*    WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.90     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.80     MC        1.22     MK        1.00*    
!   NL        1.00*    NY        1.03     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.19     WF        1.00*    WZ        1.36     
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.15     FD        0.90     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.79     KK        1.00*    KP        0.90     
!   LA        0.82     MA        1.00*    MC        0.99     MK        1.12     
!   NL        0.97     NY        1.11     OV        1.00*    PT        0.75     
!   SC        1.21     TS        1.00*    WF        1.00     WZ        1.03     
! 
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.93     KP        1.05     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.05     NY        1.03     OV        1.05     PT        1.03     
!   SC        1.07     TS        0.97     WF        0.91     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.89     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.10     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.94     NY        0.97     OV        1.07     PT        1.05     
!   SC        1.00*    TS        1.04     WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.05     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.24     MC        0.76     MK        1.00*    
!   NL        1.00*    NY        0.97     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        0.88     
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        0.97     GC        0.89     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        0.99     
!   LA        0.95     MA        1.00*    MC        2.34     MK        0.97     
!   NL        0.95     NY        1.02     OV        1.00*    PT        0.73     
!   SC        1.09     TS        1.00*    WF        1.02     WZ        1.02     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.97     KP        0.99     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.98     NY        0.55     OV        1.00     PT        1.02     
!   SC        1.09     TS        1.01     WF        1.00     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.01     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.03     NY        1.04     OV        0.98     PT        1.03     
!   SC        1.00*    TS        1.01     WF        1.00*    WZ        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.07     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.87     MC        1.38     MK        1.00*    
!   NL        1.00*    NY        1.02     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.05     WF        1.00*    WZ        1.03     
! 
! 
! Fit before self-cal, rms=0.219907Jy  sigma=0.001573
! Fit after  self-cal, rms=0.218666Jy  sigma=0.001547
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.945 mas, bmaj=5.322 mas, bpa=-18.9 degrees
! Estimated noise=293.965 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.00417436 Jy
! Component: 100  -  total flux cleaned = 0.00726124 Jy
! Component: 150  -  total flux cleaned = 0.0097802 Jy
! Component: 200  -  total flux cleaned = 0.0116622 Jy
! Total flux subtracted in 200 components = 0.0116622 Jy
! Clean residual min=-0.002481 max=0.003835 Jy/beam
! Clean residual mean=0.000269 rms=0.000791 Jy/beam
! Combined flux in latest and established models = 0.573242 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 176 components and 0.573242 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218543Jy  sigma=0.001545
! Fit after  self-cal, rms=0.219177Jy  sigma=0.001544
! Inverting map 
! Added new window around map position (-41.5, -13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00402534 Jy
! Component: 100  -  total flux cleaned = 0.00658983 Jy
! Component: 150  -  total flux cleaned = 0.00865793 Jy
! Component: 200  -  total flux cleaned = 0.00996029 Jy
! Total flux subtracted in 200 components = 0.00996029 Jy
! Clean residual min=-0.002246 max=0.002648 Jy/beam
! Clean residual mean=0.000194 rms=0.000651 Jy/beam
! Combined flux in latest and established models = 0.583202 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 204 components and 0.583202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219077Jy  sigma=0.001542
! Fit after  self-cal, rms=0.219099Jy  sigma=0.001542
! 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.219099Jy  sigma=0.001542
! Fit after  self-cal, rms=0.221531Jy  sigma=0.001542
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.945 mas, bmaj=5.327 mas, bpa=-18.95 degrees
! Estimated noise=294.114 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0022097 Jy
! Component: 100  -  total flux cleaned = 0.00380156 Jy
! Component: 150  -  total flux cleaned = 0.00456799 Jy
! Component: 200  -  total flux cleaned = 0.00526943 Jy
! Total flux subtracted in 200 components = 0.00526943 Jy
! Clean residual min=-0.002061 max=0.002444 Jy/beam
! Clean residual mean=0.000190 rms=0.000591 Jy/beam
! Combined flux in latest and established models = 0.588471 Jy
selfcal
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 216 components and 0.588471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221487Jy  sigma=0.001541
! Fit after  self-cal, rms=0.221674Jy  sigma=0.001541
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.00133664 Jy
! Component: 100  -  total flux cleaned = 0.00187534 Jy
! Component: 150  -  total flux cleaned = 0.00237801 Jy
! Component: 200  -  total flux cleaned = 0.0027576 Jy
! Total flux subtracted in 200 components = 0.0027576 Jy
! Clean residual min=-0.001924 max=0.002259 Jy/beam
! Clean residual mean=0.000171 rms=0.000563 Jy/beam
! Combined flux in latest and established models = 0.591229 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 233 components and 0.591229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221647Jy  sigma=0.001541
! Fit after  self-cal, rms=0.221653Jy  sigma=0.001541
! 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.221653Jy  sigma=0.001541
! Fit after  self-cal, rms=0.222998Jy  sigma=0.001540
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.944 mas, bmaj=5.335 mas, bpa=-18.93 degrees
! Estimated noise=294.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00124844 Jy
! Component: 100  -  total flux cleaned = 0.00174297 Jy
! Component: 150  -  total flux cleaned = 0.00215599 Jy
! Component: 200  -  total flux cleaned = 0.00245995 Jy
! Total flux subtracted in 200 components = 0.00245995 Jy
! Clean residual min=-0.001822 max=0.002176 Jy/beam
! Clean residual mean=0.000169 rms=0.000546 Jy/beam
! Combined flux in latest and established models = 0.593689 Jy
selfcal
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 243 components and 0.593689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222974Jy  sigma=0.001540
! Fit after  self-cal, rms=0.223034Jy  sigma=0.001540
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.000629153 Jy
! Component: 100  -  total flux cleaned = 0.000919145 Jy
! Component: 150  -  total flux cleaned = 0.0011946 Jy
! Component: 200  -  total flux cleaned = 0.00142105 Jy
! Total flux subtracted in 200 components = 0.00142105 Jy
! Clean residual min=-0.001772 max=0.002108 Jy/beam
! Clean residual mean=0.000159 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 0.59511 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 248 components and 0.59511 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223017Jy  sigma=0.001540
! Fit after  self-cal, rms=0.223042Jy  sigma=0.001540
! 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.223042Jy  sigma=0.001540
! Fit after  self-cal, rms=0.223367Jy  sigma=0.001540
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.104 mas, bmaj=9.434 mas, bpa=-30.48 degrees
! Estimated noise=359.533 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00181963 Jy
! Component: 100  -  total flux cleaned = 0.00308808 Jy
! Component: 150  -  total flux cleaned = 0.00410342 Jy
! Component: 200  -  total flux cleaned = 0.00480407 Jy
! Total flux subtracted in 200 components = 0.00480407 Jy
! Clean residual min=-0.001852 max=0.002792 Jy/beam
! Clean residual mean=0.000306 rms=0.000671 Jy/beam
! Combined flux in latest and established models = 0.599914 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 266 components and 0.599914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223361Jy  sigma=0.001540
! Fit after  self-cal, rms=0.223404Jy  sigma=0.001540
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.000890159 Jy
! Component: 100  -  total flux cleaned = 0.00123497 Jy
! Component: 150  -  total flux cleaned = 0.00141502 Jy
! Component: 200  -  total flux cleaned = 0.00155856 Jy
! Total flux subtracted in 200 components = 0.00155856 Jy
! Clean residual min=-0.001756 max=0.002622 Jy/beam
! Clean residual mean=0.000281 rms=0.000654 Jy/beam
! Combined flux in latest and established models = 0.601473 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 277 components and 0.601473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223402Jy  sigma=0.001540
! Fit after  self-cal, rms=0.223406Jy  sigma=0.001540
! 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.943 mas, bmaj=5.336 mas, bpa=-18.95 degrees
! Estimated noise=294.262 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.943 x 5.336 at -18.95 degrees (North through East)
! Clean map  min=-0.001626  max=0.36323 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.938 mas, bmaj=3.49 mas, bpa=-10.63 degrees
! Estimated noise=757.066 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.261835 Jy
! Component: 100  -  total flux cleaned = 0.342177 Jy
! Component: 150  -  total flux cleaned = 0.383328 Jy
! Component: 200  -  total flux cleaned = 0.408331 Jy
! Total flux subtracted in 200 components = 0.408331 Jy
! Clean residual min=-0.007232 max=0.013843 Jy/beam
! Clean residual mean=0.000147 rms=0.002200 Jy/beam
! Combined flux in latest and established models = 0.408331 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.408331 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.943 mas, bmaj=5.336 mas, bpa=-18.95 degrees
! Estimated noise=294.262 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.0321444 Jy
! Component: 100  -  total flux cleaned = 0.0553396 Jy
! Component: 150  -  total flux cleaned = 0.0728977 Jy
! Component: 200  -  total flux cleaned = 0.087057 Jy
! Total flux subtracted in 200 components = 0.0870569 Jy
! Clean residual min=-0.004211 max=0.008609 Jy/beam
! Clean residual mean=0.000875 rms=0.002260 Jy/beam
! Combined flux in latest and established models = 0.495387 Jy
! Adding 73 model components to the UV plane model.
! The established model now contains 78 components and 0.495387 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.104 mas, bmaj=9.434 mas, bpa=-30.48 degrees
! Estimated noise=359.533 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0225748 Jy
! Component: 100  -  total flux cleaned = 0.0386625 Jy
! Component: 150  -  total flux cleaned = 0.0509252 Jy
! Component: 200  -  total flux cleaned = 0.0605481 Jy
! Total flux subtracted in 200 components = 0.0605481 Jy
! Clean residual min=-0.002939 max=0.005730 Jy/beam
! Clean residual mean=0.001041 rms=0.001881 Jy/beam
! Combined flux in latest and established models = 0.555936 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.00772841 Jy
! Component: 100  -  total flux cleaned = 0.014064 Jy
! Component: 150  -  total flux cleaned = 0.019322 Jy
! Component: 200  -  total flux cleaned = 0.0237072 Jy
! Total flux subtracted in 200 components = 0.0237072 Jy
! Clean residual min=-0.001924 max=0.003439 Jy/beam
! Clean residual mean=0.000646 rms=0.001009 Jy/beam
! Combined flux in latest and established models = 0.579643 Jy
! Adding 216 model components to the UV plane model.
! The established model now contains 278 components and 0.579643 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.943 mas, bmaj=5.336 mas, bpa=-18.95 degrees
! Estimated noise=294.262 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00319363 Jy
! Component: 100  -  total flux cleaned = 0.00575158 Jy
! Component: 150  -  total flux cleaned = 0.00798527 Jy
! Component: 200  -  total flux cleaned = 0.00996482 Jy
! Total flux subtracted in 200 components = 0.00996482 Jy
! Clean residual min=-0.001792 max=0.002470 Jy/beam
! Clean residual mean=0.000209 rms=0.000560 Jy/beam
! Combined flux in latest and established models = 0.589608 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 309 components and 0.589608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223472Jy  sigma=0.001541
! Fit after  self-cal, rms=0.223473Jy  sigma=0.001540
wmodel J1150+2417_S_2000_12_04_pus_map.mod
! Writing 309 model components to file: J1150+2417_S_2000_12_04_pus_map.mod
wobs J1150+2417_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1150+2417_S_2000_12_04_pus_uvs.fits
wwins J1150+2417_S_2000_12_04_pus_map.win
! wwins: Wrote 7 windows to J1150+2417_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.0010476 Jy
! Component: 100  -  total flux cleaned = 0.00199464 Jy
! Component: 150  -  total flux cleaned = 0.00287715 Jy
! Component: 200  -  total flux cleaned = 0.00370976 Jy
! Component: 250  -  total flux cleaned = 0.00444451 Jy
! Component: 300  -  total flux cleaned = 0.00515374 Jy
! Component: 350  -  total flux cleaned = 0.00575226 Jy
! Component: 400  -  total flux cleaned = 0.00636533 Jy
! Component: 450  -  total flux cleaned = 0.00696521 Jy
! Component: 500  -  total flux cleaned = 0.00755293 Jy
! Component: 550  -  total flux cleaned = 0.00801996 Jy
! Component: 600  -  total flux cleaned = 0.00847865 Jy
! Component: 650  -  total flux cleaned = 0.00892925 Jy
! Component: 700  -  total flux cleaned = 0.00934595 Jy
! Component: 750  -  total flux cleaned = 0.00978158 Jy
! Component: 800  -  total flux cleaned = 0.0101098 Jy
! Component: 850  -  total flux cleaned = 0.0104587 Jy
! Component: 900  -  total flux cleaned = 0.0107786 Jy
! Component: 950  -  total flux cleaned = 0.0110948 Jy
! Component: 1000  -  total flux cleaned = 0.0114073 Jy
! Component: 1050  -  total flux cleaned = 0.0117635 Jy
! Component: 1100  -  total flux cleaned = 0.0120216 Jy
! Component: 1150  -  total flux cleaned = 0.0123236 Jy
! Component: 1200  -  total flux cleaned = 0.0126222 Jy
! Component: 1250  -  total flux cleaned = 0.0129175 Jy
! Component: 1300  -  total flux cleaned = 0.01321 Jy
! Component: 1350  -  total flux cleaned = 0.0134552 Jy
! Component: 1400  -  total flux cleaned = 0.0136984 Jy
! Component: 1450  -  total flux cleaned = 0.0139613 Jy
! Component: 1500  -  total flux cleaned = 0.0141568 Jy
! Component: 1550  -  total flux cleaned = 0.0143509 Jy
! Component: 1600  -  total flux cleaned = 0.0145648 Jy
! Component: 1650  -  total flux cleaned = 0.014756 Jy
! Component: 1700  -  total flux cleaned = 0.0149879 Jy
! Component: 1750  -  total flux cleaned = 0.0151553 Jy
! Component: 1800  -  total flux cleaned = 0.0153216 Jy
! Component: 1850  -  total flux cleaned = 0.015569 Jy
! Component: 1900  -  total flux cleaned = 0.0157532 Jy
! Component: 1950  -  total flux cleaned = 0.0158954 Jy
! Component: 2000  -  total flux cleaned = 0.016057 Jy
! Total flux subtracted in 2048 components = 0.0162375 Jy
! Clean residual min=-0.001059 max=0.001258 Jy/beam
! Clean residual mean=0.000091 rms=0.000386 Jy/beam
! Combined flux in latest and established models = 0.605845 Jy
keep
! Adding 133 model components to the UV plane model.
! The established model now contains 440 components and 0.605845 Jy
![Exited script file: muppet]
wmap "J1150+2417_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.943 x 5.336 at -18.95 degrees (North through East)
! Clean map  min=-0.001505  max=0.36396 Jy/beam
! Writing clean map to FITS file: J1150+2417_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.363963 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000384812 
device "J1150+2417_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1150+2417_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.317185 0.317185 0.634369 1.26874 2.53748 5.07495 10.1499 20.2998 40.5996 81.1993
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.363 
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.943 x 5.336 at -18.95 degrees (North through East)
! Clean map  min=-0.001505  max=0.36396 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1150+2417_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1150+2417_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1150+2417_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 16:35:56 2007