! Started logfile: J0121+1149_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:31:35 2007
obs J0121+1149_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0121+1149_S_2000_05_22_pus_uva.fits
! AN table 1: 14 integrations on 190 of 190 possible baselines.
! AN table 2: 99 integrations on 190 of 190 possible baselines.
! AN table 3: 74 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.182071 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0121+1149
! 
! 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 2003 lines of history.
! 
! Reading 25876 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 J0121+1149_S_2000_05_22_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 280 telescope corrections were flagged in sub-array 1.
!  A total of 1461 telescope corrections were flagged in sub-array 2.
!  A total of 783 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 280 telescope corrections were flagged in sub-array 1.
!  A total of 1461 telescope corrections were flagged in sub-array 2.
!  A total of 783 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 280 telescope corrections were flagged in sub-array 1.
!  A total of 1461 telescope corrections were flagged in sub-array 2.
!  A total of 783 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 280 telescope corrections were flagged in sub-array 1.
!  A total of 1461 telescope corrections were flagged in sub-array 2.
!  A total of 783 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.293831Jy  sigma=0.011546
! Fit after  self-cal, rms=0.379831Jy  sigma=0.002773
! 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.772 mas, bmaj=4.742 mas, bpa=-5.795 degrees
! Estimated noise=1014.51 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.844357 Jy
! Component: 100  -  total flux cleaned = 1.03097 Jy
! Total flux subtracted in 100 components = 1.03097 Jy
! Clean residual min=-0.029317 max=0.062555 Jy/beam
! Clean residual mean=0.000153 rms=0.009364 Jy/beam
! Combined flux in latest and established models = 1.03097 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.03097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373446Jy  sigma=0.002673
! Fit after  self-cal, rms=0.373370Jy  sigma=0.002673
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.071389 Jy
! Component: 100  -  total flux cleaned = 0.116415 Jy
! Total flux subtracted in 100 components = 0.116415 Jy
! Clean residual min=-0.030725 max=0.040737 Jy/beam
! Clean residual mean=0.000196 rms=0.008076 Jy/beam
! Combined flux in latest and established models = 1.14738 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 24 components and 1.14738 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359482Jy  sigma=0.002429
! Fit after  self-cal, rms=0.359232Jy  sigma=0.002429
! 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.075 mas, bmaj=5.383 mas, bpa=-4.643 degrees
! Estimated noise=541.425 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.0468171 Jy
! Component: 100  -  total flux cleaned = 0.0750929 Jy
! Component: 150  -  total flux cleaned = 0.0939116 Jy
! Component: 200  -  total flux cleaned = 0.106533 Jy
! Total flux subtracted in 200 components = 0.106533 Jy
! Clean residual min=-0.040917 max=0.039370 Jy/beam
! Clean residual mean=0.000096 rms=0.010011 Jy/beam
! Combined flux in latest and established models = 1.25392 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 46 components and 1.25392 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355361Jy  sigma=0.002335
! Fit after  self-cal, rms=0.355199Jy  sigma=0.002334
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.95     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.08     KP        1.11     
!   MA        0.92     MC        1.06     MK        1.06     NL        0.98     
!   NY        1.08     OV        1.01     PT        0.96     SC        0.95     
!   TS        1.00*    WF        1.22     WZ        1.01     LA        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.96     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.98     KP        1.07     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.09     
!   NY        1.00*    OV        1.05     PT        0.95     SC        1.22     
!   TS        0.98     WF        1.02     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.19     KP        0.87     
!   MA        0.72     MC        0.94     MK        1.00     NL        1.00     
!   NY        1.09     OV        1.00     PT        0.98     SC        0.96     
!   TS        1.00*    WF        1.22     WZ        0.99     LA        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.96     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.14     KK        0.96     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.10     
!   NY        1.00*    OV        1.02     PT        0.92     SC        1.21     
!   TS        1.02     WF        1.01     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.15     KP        0.95     
!   MA        3.20     MC        0.81     MK        1.01     NL        0.95     
!   NY        1.09     OV        1.01     PT        0.93     SC        0.95     
!   TS        1.00*    WF        1.18     WZ        0.99     LA        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.96     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        0.93     KP        1.10     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.05     
!   NY        1.00*    OV        1.06     PT        0.66     SC        1.27     
!   TS        1.03     WF        1.01     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    LA        0.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.95     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.18     KP        0.90     
!   MA        2.95     MC        1.42     MK        1.06     NL        0.98     
!   NY        1.06     OV        0.99     PT        0.89     SC        0.94     
!   TS        1.00*    WF        1.22     WZ        0.99     LA        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.95     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        0.95     KP        1.03     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.06     
!   NY        1.00*    OV        1.01     PT        0.58     SC        1.19     
!   TS        1.04     WF        1.01     WZ        1.00*    LA        1.00*    
! 
! 
! Fit before self-cal, rms=0.355199Jy  sigma=0.002334
! Fit after  self-cal, rms=0.407209Jy  sigma=0.001506
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.128 mas, bmaj=5.426 mas, bpa=-4.702 degrees
! Estimated noise=543.477 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.5, 14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0226944 Jy
! Component: 100  -  total flux cleaned = 0.0279151 Jy
! Component: 150  -  total flux cleaned = 0.0319723 Jy
! Component: 200  -  total flux cleaned = 0.0349177 Jy
! Total flux subtracted in 200 components = 0.0349176 Jy
! Clean residual min=-0.008345 max=0.010091 Jy/beam
! Clean residual mean=0.000567 rms=0.002221 Jy/beam
! Combined flux in latest and established models = 1.28883 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 78 components and 1.28883 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.405562Jy  sigma=0.001472
! Fit after  self-cal, rms=0.406863Jy  sigma=0.001469
! 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.406863Jy  sigma=0.001469
! Fit after  self-cal, rms=0.408848Jy  sigma=0.001466
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.132 mas, bmaj=5.429 mas, bpa=-4.745 degrees
! Estimated noise=541.941 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -7.25476e-05 Jy
! Component: 100  -  total flux cleaned = 0.00195237 Jy
! Component: 150  -  total flux cleaned = 0.00415727 Jy
! Component: 200  -  total flux cleaned = 0.00576812 Jy
! Total flux subtracted in 200 components = 0.00576812 Jy
! Clean residual min=-0.006524 max=0.008924 Jy/beam
! Clean residual mean=0.000546 rms=0.001881 Jy/beam
! Combined flux in latest and established models = 1.2946 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 88 components and 1.2946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.408354Jy  sigma=0.001456
! Fit after  self-cal, rms=0.408386Jy  sigma=0.001456
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 (10, 31).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00994223 Jy
! Component: 100  -  total flux cleaned = 0.0170833 Jy
! Component: 150  -  total flux cleaned = 0.0220492 Jy
! Component: 200  -  total flux cleaned = 0.0245125 Jy
! Total flux subtracted in 200 components = 0.0245125 Jy
! Clean residual min=-0.005919 max=0.005759 Jy/beam
! Clean residual mean=0.000397 rms=0.001571 Jy/beam
! Combined flux in latest and established models = 1.31911 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 123 components and 1.31911 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.408068Jy  sigma=0.001448
! Fit after  self-cal, rms=0.408042Jy  sigma=0.001447
! 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.408042Jy  sigma=0.001447
! Fit after  self-cal, rms=0.409868Jy  sigma=0.001445
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.137 mas, bmaj=5.434 mas, bpa=-4.82 degrees
! Estimated noise=540.879 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00399348 Jy
! Component: 100  -  total flux cleaned = -0.00315747 Jy
! Component: 150  -  total flux cleaned = -0.000980798 Jy
! Component: 200  -  total flux cleaned = 0.00076246 Jy
! Total flux subtracted in 200 components = 0.00076246 Jy
! Clean residual min=-0.004971 max=0.005182 Jy/beam
! Clean residual mean=0.000387 rms=0.001378 Jy/beam
! Combined flux in latest and established models = 1.31988 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 135 components and 1.31988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.409642Jy  sigma=0.001441
! Fit after  self-cal, rms=0.409681Jy  sigma=0.001440
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.00309145 Jy
! Component: 100  -  total flux cleaned = 0.00460197 Jy
! Component: 150  -  total flux cleaned = 0.00596499 Jy
! Component: 200  -  total flux cleaned = 0.0072 Jy
! Total flux subtracted in 200 components = 0.0072 Jy
! Clean residual min=-0.004879 max=0.004728 Jy/beam
! Clean residual mean=0.000343 rms=0.001313 Jy/beam
! Combined flux in latest and established models = 1.32708 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 142 components and 1.32708 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.409606Jy  sigma=0.001439
! Fit after  self-cal, rms=0.409612Jy  sigma=0.001439
! 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.409612Jy  sigma=0.001439
! Fit after  self-cal, rms=0.411295Jy  sigma=0.001437
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.461 mas, bmaj=8.773 mas, bpa=-2.79 degrees
! Estimated noise=793.491 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00568959 Jy
! Component: 100  -  total flux cleaned = 0.00718262 Jy
! Component: 150  -  total flux cleaned = 0.00812859 Jy
! Component: 200  -  total flux cleaned = 0.00887927 Jy
! Total flux subtracted in 200 components = 0.00887927 Jy
! Clean residual min=-0.003568 max=0.006468 Jy/beam
! Clean residual mean=0.001065 rms=0.001616 Jy/beam
! Combined flux in latest and established models = 1.33596 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 165 components and 1.33596 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.411217Jy  sigma=0.001436
! Fit after  self-cal, rms=0.411205Jy  sigma=0.001436
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.00210653 Jy
! Component: 100  -  total flux cleaned = 0.00284297 Jy
! Component: 150  -  total flux cleaned = 0.00344062 Jy
! Component: 200  -  total flux cleaned = 0.00392685 Jy
! Total flux subtracted in 200 components = 0.00392685 Jy
! Clean residual min=-0.003572 max=0.005849 Jy/beam
! Clean residual mean=0.000966 rms=0.001426 Jy/beam
! Combined flux in latest and established models = 1.33988 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 179 components and 1.33988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.411231Jy  sigma=0.001436
! Fit after  self-cal, rms=0.411219Jy  sigma=0.001436
! 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.141 mas, bmaj=5.44 mas, bpa=-4.89 degrees
! Estimated noise=540.37 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.141 x 5.44 at -4.89 degrees (North through East)
! Clean map  min=-0.004112  max=1.1074 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.411219Jy  sigma=0.001436
! Fit after  self-cal, rms=1.640895Jy  sigma=0.001246
! Inverting map and beam 
! Estimated beam: bmin=2.144 mas, bmaj=5.444 mas, bpa=-4.942 degrees
! Estimated noise=540.111 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00402971 Jy
! Component: 100  -  total flux cleaned = -0.00570937 Jy
! Component: 150  -  total flux cleaned = -0.00674043 Jy
! Component: 200  -  total flux cleaned = -0.00754188 Jy
! Total flux subtracted in 200 components = -0.00754188 Jy
! Clean residual min=-0.003614 max=0.003587 Jy/beam
! Clean residual mean=0.000147 rms=0.001001 Jy/beam
! Combined flux in latest and established models = 1.33234 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 190 components and 1.33234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.640869Jy  sigma=0.001243
! Fit after  self-cal, rms=1.640904Jy  sigma=0.001243
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000119581 Jy
! Component: 100  -  total flux cleaned = -0.00060676 Jy
! Component: 150  -  total flux cleaned = -0.00112868 Jy
! Component: 200  -  total flux cleaned = -0.00136899 Jy
! Total flux subtracted in 200 components = -0.00136899 Jy
! Clean residual min=-0.003477 max=0.003579 Jy/beam
! Clean residual mean=0.000154 rms=0.000973 Jy/beam
! Combined flux in latest and established models = 1.33097 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 199 components and 1.33097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.640890Jy  sigma=0.001242
! Fit after  self-cal, rms=1.640909Jy  sigma=0.001242
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.640909Jy  sigma=0.001242
! Fit after  self-cal, rms=1.767379Jy  sigma=0.001241
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.818 mas, bmaj=4.769 mas, bpa=-5.83 degrees
! Estimated noise=1017.91 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.852524 Jy
! Component: 100  -  total flux cleaned = 1.03851 Jy
! Component: 150  -  total flux cleaned = 1.09348 Jy
! Component: 200  -  total flux cleaned = 1.12339 Jy
! Total flux subtracted in 200 components = 1.12339 Jy
! Clean residual min=-0.009583 max=0.016321 Jy/beam
! Clean residual mean=0.000127 rms=0.002727 Jy/beam
! Combined flux in latest and established models = 1.12339 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 23 model components to the UV plane model.
! The established model now contains 23 components and 1.12339 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.147 mas, bmaj=5.449 mas, bpa=-4.99 degrees
! Estimated noise=539.954 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.0343037 Jy
! Component: 100  -  total flux cleaned = 0.0587834 Jy
! Component: 150  -  total flux cleaned = 0.0782216 Jy
! Component: 200  -  total flux cleaned = 0.0942288 Jy
! Total flux subtracted in 200 components = 0.0942288 Jy
! Clean residual min=-0.006056 max=0.011102 Jy/beam
! Clean residual mean=0.000769 rms=0.002471 Jy/beam
! Combined flux in latest and established models = 1.21762 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 93 components and 1.21762 Jy
! Inverting map 
! Added new window around map position (4, 18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.013637 Jy
! Component: 100  -  total flux cleaned = 0.0251291 Jy
! Component: 150  -  total flux cleaned = 0.0350431 Jy
! Component: 200  -  total flux cleaned = 0.0436687 Jy
! Total flux subtracted in 200 components = 0.0436687 Jy
! Clean residual min=-0.005068 max=0.007319 Jy/beam
! Clean residual mean=0.000526 rms=0.001577 Jy/beam
! Combined flux in latest and established models = 1.26129 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 138 components and 1.26129 Jy
! Inverting map 
! Added new window around map position (-35.5, -42.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00792941 Jy
! Component: 100  -  total flux cleaned = 0.0145578 Jy
! Component: 150  -  total flux cleaned = 0.0203814 Jy
! Component: 200  -  total flux cleaned = 0.0255112 Jy
! Total flux subtracted in 200 components = 0.0255112 Jy
! Clean residual min=-0.004501 max=0.005147 Jy/beam
! Clean residual mean=0.000379 rms=0.001153 Jy/beam
! Combined flux in latest and established models = 1.2868 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 165 components and 1.2868 Jy
! Inverting map 
! Added new window around map position (5.5, 29).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00519387 Jy
! Component: 100  -  total flux cleaned = 0.00933758 Jy
! Component: 150  -  total flux cleaned = 0.01302 Jy
! Component: 200  -  total flux cleaned = 0.0163223 Jy
! Total flux subtracted in 200 components = 0.0163223 Jy
! Clean residual min=-0.004090 max=0.004030 Jy/beam
! Clean residual mean=0.000285 rms=0.000961 Jy/beam
! Combined flux in latest and established models = 1.30313 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 204 components and 1.30313 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=6.467 mas, bmaj=8.794 mas, bpa=-3.012 degrees
! Estimated noise=787.914 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00749521 Jy
! Component: 100  -  total flux cleaned = 0.0126479 Jy
! Component: 150  -  total flux cleaned = 0.0164944 Jy
! Component: 200  -  total flux cleaned = 0.0194208 Jy
! Total flux subtracted in 200 components = 0.0194208 Jy
! Clean residual min=-0.003993 max=0.004365 Jy/beam
! Clean residual mean=0.000657 rms=0.001187 Jy/beam
! Combined flux in latest and established models = 1.32255 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.00201346 Jy
! Component: 100  -  total flux cleaned = 0.00284212 Jy
! Component: 150  -  total flux cleaned = 0.0033749 Jy
! Component: 200  -  total flux cleaned = 0.00379988 Jy
! Total flux subtracted in 200 components = 0.00379988 Jy
! Clean residual min=-0.003450 max=0.004103 Jy/beam
! Clean residual mean=0.000573 rms=0.001131 Jy/beam
! Combined flux in latest and established models = 1.32635 Jy
! Adding 85 model components to the UV plane model.
! The established model now contains 273 components and 1.32635 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.147 mas, bmaj=5.449 mas, bpa=-4.99 degrees
! Estimated noise=539.954 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00120154 Jy
! Component: 100  -  total flux cleaned = -0.00137792 Jy
! Component: 150  -  total flux cleaned = -0.00138346 Jy
! Component: 200  -  total flux cleaned = -0.00138645 Jy
! Total flux subtracted in 200 components = -0.00138645 Jy
! Clean residual min=-0.003268 max=0.003943 Jy/beam
! Clean residual mean=0.000159 rms=0.000828 Jy/beam
! Combined flux in latest and established models = 1.32496 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 292 components and 1.32496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.767386Jy  sigma=0.001238
! Fit after  self-cal, rms=1.767472Jy  sigma=0.001237
wmodel J0121+1149_S_2000_05_22_pus_map.mod
! Writing 292 model components to file: J0121+1149_S_2000_05_22_pus_map.mod
wobs J0121+1149_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0121+1149_S_2000_05_22_pus_uvs.fits
wwins J0121+1149_S_2000_05_22_pus_map.win
! wwins: Wrote 6 windows to J0121+1149_S_2000_05_22_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.000402748 Jy
! Component: 100  -  total flux cleaned = 0.000826159 Jy
! Component: 150  -  total flux cleaned = 0.000925907 Jy
! Component: 200  -  total flux cleaned = 0.000972492 Jy
! Component: 250  -  total flux cleaned = 0.00111086 Jy
! Component: 300  -  total flux cleaned = 0.00124647 Jy
! Component: 350  -  total flux cleaned = 0.00151259 Jy
! Component: 400  -  total flux cleaned = 0.00168678 Jy
! Component: 450  -  total flux cleaned = 0.00185818 Jy
! Component: 500  -  total flux cleaned = 0.00211155 Jy
! Component: 550  -  total flux cleaned = 0.00231975 Jy
! Component: 600  -  total flux cleaned = 0.00252573 Jy
! Component: 650  -  total flux cleaned = 0.00285062 Jy
! Component: 700  -  total flux cleaned = 0.0030111 Jy
! Component: 750  -  total flux cleaned = 0.00332881 Jy
! Component: 800  -  total flux cleaned = 0.00344672 Jy
! Component: 850  -  total flux cleaned = 0.00371875 Jy
! Component: 900  -  total flux cleaned = 0.00391049 Jy
! Component: 950  -  total flux cleaned = 0.0041766 Jy
! Component: 1000  -  total flux cleaned = 0.00432665 Jy
! Component: 1050  -  total flux cleaned = 0.00451259 Jy
! Component: 1100  -  total flux cleaned = 0.00473361 Jy
! Component: 1150  -  total flux cleaned = 0.00491595 Jy
! Component: 1200  -  total flux cleaned = 0.00520559 Jy
! Component: 1250  -  total flux cleaned = 0.00538481 Jy
! Component: 1300  -  total flux cleaned = 0.00559824 Jy
! Component: 1350  -  total flux cleaned = 0.00588094 Jy
! Component: 1400  -  total flux cleaned = 0.00616125 Jy
! Component: 1450  -  total flux cleaned = 0.00647377 Jy
! Component: 1500  -  total flux cleaned = 0.00664579 Jy
! Component: 1550  -  total flux cleaned = 0.006851 Jy
! Component: 1600  -  total flux cleaned = 0.00705475 Jy
! Component: 1650  -  total flux cleaned = 0.00729084 Jy
! Component: 1700  -  total flux cleaned = 0.00745812 Jy
! Component: 1750  -  total flux cleaned = 0.00769069 Jy
! Component: 1800  -  total flux cleaned = 0.00778979 Jy
! Component: 1850  -  total flux cleaned = 0.00801933 Jy
! Component: 1900  -  total flux cleaned = 0.00814945 Jy
! Component: 1950  -  total flux cleaned = 0.00831137 Jy
! Component: 2000  -  total flux cleaned = 0.00853651 Jy
! Total flux subtracted in 2048 components = 0.00866405 Jy
! Clean residual min=-0.001720 max=0.001840 Jy/beam
! Clean residual mean=0.000103 rms=0.000624 Jy/beam
! Combined flux in latest and established models = 1.33362 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 450 components and 1.33362 Jy
![Exited script file: muppet]
wmap "J0121+1149_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.147 x 5.449 at -4.99 degrees (North through East)
! Clean map  min=-0.0028798  max=1.1102 Jy/beam
! Writing clean map to FITS file: J0121+1149_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.11015 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000625102 
device "J0121+1149_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0121+1149_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.168923 0.168923 0.337847 0.675693 1.35139 2.70277 5.40555 10.8111 21.6222 43.2444 86.4888
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.11 
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.147 x 5.449 at -4.99 degrees (North through East)
! Clean map  min=-0.0028798  max=1.1102 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0121+1149_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0121+1149_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0121+1149_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:31:48 2007