! Started logfile: J0203+1134_S_2001_04_09_pus_uvs.log on Mon Oct  8 11:03:30 2007
obs J0203+1134_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0203+1134_S_2001_04_09_pus_uva.fits
! AN table 1: 315 integrations on 190 of 190 possible baselines.
! AN table 2: 258 integrations on 190 of 190 possible baselines.
! AN table 3: 107 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.114002 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0203+1134
! 
! 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 1953 lines of history.
! 
! Reading 58916 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 J0203+1134_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 4335 telescope corrections were flagged in sub-array 1.
!  A total of 3533 telescope corrections were flagged in sub-array 2.
!  A total of 1576 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 4335 telescope corrections were flagged in sub-array 1.
!  A total of 3533 telescope corrections were flagged in sub-array 2.
!  A total of 1576 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 4559 telescope corrections were flagged in sub-array 1.
!  A total of 3533 telescope corrections were flagged in sub-array 2.
!  A total of 1576 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 4559 telescope corrections were flagged in sub-array 1.
!  A total of 3533 telescope corrections were flagged in sub-array 2.
!  A total of 1576 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.066401Jy  sigma=0.007862
! Fit after  self-cal, rms=0.529074Jy  sigma=0.003577
! 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.825 mas, bmaj=4.018 mas, bpa=2.403 degrees
! Estimated noise=768.931 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.427721 Jy
! Component: 100  -  total flux cleaned = 0.56315 Jy
! Total flux subtracted in 100 components = 0.56315 Jy
! Clean residual min=-0.019478 max=0.060587 Jy/beam
! Clean residual mean=0.000211 rms=0.005293 Jy/beam
! Combined flux in latest and established models = 0.56315 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.56315 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293261Jy  sigma=0.001814
! Fit after  self-cal, rms=0.292914Jy  sigma=0.001812
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0656405 Jy
! Component: 100  -  total flux cleaned = 0.100241 Jy
! Total flux subtracted in 100 components = 0.100241 Jy
! Clean residual min=-0.014021 max=0.017265 Jy/beam
! Clean residual mean=0.000088 rms=0.003356 Jy/beam
! Combined flux in latest and established models = 0.663392 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 12 components and 0.663392 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279379Jy  sigma=0.001645
! Fit after  self-cal, rms=0.279060Jy  sigma=0.001644
! 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.328 mas, bmaj=4.802 mas, bpa=0.04453 degrees
! Estimated noise=412.64 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, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0250854 Jy
! Component: 100  -  total flux cleaned = 0.039395 Jy
! Component: 150  -  total flux cleaned = 0.0489494 Jy
! Component: 200  -  total flux cleaned = 0.0531738 Jy
! Total flux subtracted in 200 components = 0.0531738 Jy
! Clean residual min=-0.012823 max=0.011629 Jy/beam
! Clean residual mean=0.000390 rms=0.002363 Jy/beam
! Combined flux in latest and established models = 0.716565 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 36 components and 0.716565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276815Jy  sigma=0.001620
! Fit after  self-cal, rms=0.276724Jy  sigma=0.001619
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        2.11     HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.22     MC        0.93     MK        1.00*    
!   NL        1.00     NY        1.03     OV        1.00*    PT        1.00*    
!   SC        1.10     TS        1.00*    WF        1.03     WZ        1.03     
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.02     KP        0.98     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.01     NY        1.00*    OV        0.99     PT        0.95     
!   SC        1.05     TS        1.02     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.96     FD        1.00     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        0.92     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.88     
!   NL        1.06     NY        1.00*    OV        0.98     PT        0.96     
!   SC        1.00*    TS        0.90     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.21     HN        0.98     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.11     MC        1.00     MK        1.00*    
!   NL        1.00     NY        1.07     OV        1.00*    PT        1.00*    
!   SC        1.09     TS        1.00*    WF        0.99     WZ        1.01     
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.99     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.95     KP        0.65     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.00     NY        1.00*    OV        0.95     PT        0.99     
!   SC        1.04     TS        1.06     WF        1.01     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        0.92     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        0.86     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.87     
!   NL        1.04     NY        1.00*    OV        0.96     PT        0.99     
!   SC        1.00*    TS        0.89     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.18     HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00     MC        1.41     MK        1.00*    
!   NL        1.01     NY        1.05     OV        1.00*    PT        1.00*    
!   SC        1.08     TS        1.00*    WF        0.98     WZ        1.01     
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.97     KP        0.98     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.02     NY        1.00*    OV        0.98     PT        1.05     
!   SC        1.03     TS        1.08     WF        1.03     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.02     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.96     KP        1.00     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.85     
!   NL        1.06     NY        1.00*    OV        0.96     PT        0.99     
!   SC        1.00*    TS        0.92     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.96     HN        1.03     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.82     MC        1.01     MK        1.00*    
!   NL        1.01     NY        1.03     OV        1.00*    PT        1.00*    
!   SC        1.08     TS        1.00*    WF        1.02     WZ        1.08     
! 
!  A total of 114 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.92     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.01     NY        1.00*    OV        0.98     PT        1.14     
!   SC        1.03     TS        1.04     WF        1.03     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.01     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        0.99     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.83     
!   NL        1.05     NY        1.00*    OV        0.97     PT        1.06     
!   SC        1.00*    TS        0.87     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.276724Jy  sigma=0.001619
! Fit after  self-cal, rms=0.290680Jy  sigma=0.001557
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.35 mas, bmaj=5.074 mas, bpa=-0.7824 degrees
! Estimated noise=418.409 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 (-16, -9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00583229 Jy
! Component: 100  -  total flux cleaned = 0.00583509 Jy
! Component: 150  -  total flux cleaned = 0.00619666 Jy
! Component: 200  -  total flux cleaned = 0.00657964 Jy
! Total flux subtracted in 200 components = 0.00657964 Jy
! Clean residual min=-0.003999 max=0.005066 Jy/beam
! Clean residual mean=0.000486 rms=0.001174 Jy/beam
! Combined flux in latest and established models = 0.723145 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 58 components and 0.723145 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290443Jy  sigma=0.001556
! Fit after  self-cal, rms=0.290722Jy  sigma=0.001555
! 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.290722Jy  sigma=0.001555
! Fit after  self-cal, rms=0.291019Jy  sigma=0.001555
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.35 mas, bmaj=5.07 mas, bpa=-0.8092 degrees
! Estimated noise=418.566 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0018936 Jy
! Component: 100  -  total flux cleaned = 0.00254869 Jy
! Component: 150  -  total flux cleaned = 0.00303707 Jy
! Component: 200  -  total flux cleaned = 0.00326147 Jy
! Total flux subtracted in 200 components = 0.00326147 Jy
! Clean residual min=-0.004207 max=0.004723 Jy/beam
! Clean residual mean=0.000399 rms=0.001165 Jy/beam
! Combined flux in latest and established models = 0.726406 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 67 components and 0.726407 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290925Jy  sigma=0.001555
! Fit after  self-cal, rms=0.290923Jy  sigma=0.001555
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.000628469 Jy
! Component: 100  -  total flux cleaned = 0.000697797 Jy
! Component: 150  -  total flux cleaned = 0.000824873 Jy
! Component: 200  -  total flux cleaned = 0.00100442 Jy
! Total flux subtracted in 200 components = 0.00100442 Jy
! Clean residual min=-0.004258 max=0.004496 Jy/beam
! Clean residual mean=0.000392 rms=0.001148 Jy/beam
! Combined flux in latest and established models = 0.727411 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 72 components and 0.727411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290877Jy  sigma=0.001555
! Fit after  self-cal, rms=0.290872Jy  sigma=0.001555
! 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.290872Jy  sigma=0.001555
! Fit after  self-cal, rms=0.290732Jy  sigma=0.001552
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.352 mas, bmaj=5.063 mas, bpa=-0.8194 degrees
! Estimated noise=418.879 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00078574 Jy
! Component: 100  -  total flux cleaned = 0.000851853 Jy
! Component: 150  -  total flux cleaned = 0.000912779 Jy
! Component: 200  -  total flux cleaned = 0.00102641 Jy
! Total flux subtracted in 200 components = 0.00102641 Jy
! Clean residual min=-0.004165 max=0.004412 Jy/beam
! Clean residual mean=0.000349 rms=0.001091 Jy/beam
! Combined flux in latest and established models = 0.728437 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 78 components and 0.728437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290689Jy  sigma=0.001552
! Fit after  self-cal, rms=0.290703Jy  sigma=0.001552
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.000108302 Jy
! Component: 100  -  total flux cleaned = 0.000163355 Jy
! Component: 150  -  total flux cleaned = 0.000213953 Jy
! Component: 200  -  total flux cleaned = 0.00026283 Jy
! Total flux subtracted in 200 components = 0.00026283 Jy
! Clean residual min=-0.004181 max=0.004370 Jy/beam
! Clean residual mean=0.000348 rms=0.001085 Jy/beam
! Combined flux in latest and established models = 0.7287 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 88 components and 0.7287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290676Jy  sigma=0.001552
! Fit after  self-cal, rms=0.290671Jy  sigma=0.001552
! 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.290671Jy  sigma=0.001552
! Fit after  self-cal, rms=0.290424Jy  sigma=0.001550
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.557 mas, bmaj=9.612 mas, bpa=9.419 degrees
! Estimated noise=565.661 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00215498 Jy
! Component: 100  -  total flux cleaned = 0.00315884 Jy
! Component: 150  -  total flux cleaned = 0.00341041 Jy
! Component: 200  -  total flux cleaned = 0.00350535 Jy
! Total flux subtracted in 200 components = 0.00350535 Jy
! Clean residual min=-0.005319 max=0.005401 Jy/beam
! Clean residual mean=0.000787 rms=0.001703 Jy/beam
! Combined flux in latest and established models = 0.732206 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 97 components and 0.732206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290418Jy  sigma=0.001550
! Fit after  self-cal, rms=0.290424Jy  sigma=0.001550
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.000228104 Jy
! Component: 100  -  total flux cleaned = 0.0004142 Jy
! Component: 150  -  total flux cleaned = 0.000525329 Jy
! Component: 200  -  total flux cleaned = 0.000577267 Jy
! Total flux subtracted in 200 components = 0.000577267 Jy
! Clean residual min=-0.005292 max=0.005341 Jy/beam
! Clean residual mean=0.000773 rms=0.001689 Jy/beam
! Combined flux in latest and established models = 0.732783 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 100 components and 0.732783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290427Jy  sigma=0.001550
! Fit after  self-cal, rms=0.290428Jy  sigma=0.001550
! 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.353 mas, bmaj=5.056 mas, bpa=-0.8205 degrees
! Estimated noise=419.095 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.353 x 5.056 at -0.8205 degrees (North through East)
! Clean map  min=-0.0040286  max=0.57702 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.290428Jy  sigma=0.001550
! Fit after  self-cal, rms=0.793495Jy  sigma=0.001309
! Inverting map and beam 
! Estimated beam: bmin=2.35 mas, bmaj=5.065 mas, bpa=-0.7621 degrees
! Estimated noise=419.828 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000988624 Jy
! Component: 100  -  total flux cleaned = -0.0015711 Jy
! Component: 150  -  total flux cleaned = -0.00206144 Jy
! Component: 200  -  total flux cleaned = -0.0022995 Jy
! Total flux subtracted in 200 components = -0.0022995 Jy
! Clean residual min=-0.002873 max=0.003989 Jy/beam
! Clean residual mean=0.000234 rms=0.000880 Jy/beam
! Combined flux in latest and established models = 0.730483 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 114 components and 0.730483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.793479Jy  sigma=0.001309
! Fit after  self-cal, rms=0.793498Jy  sigma=0.001309
! Inverting map 
! Added new window around map position (5.5, -20.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00326771 Jy
! Component: 100  -  total flux cleaned = 0.00427995 Jy
! Component: 150  -  total flux cleaned = 0.00456299 Jy
! Component: 200  -  total flux cleaned = 0.00471992 Jy
! Total flux subtracted in 200 components = 0.00471992 Jy
! Clean residual min=-0.002758 max=0.003647 Jy/beam
! Clean residual mean=0.000175 rms=0.000805 Jy/beam
! Combined flux in latest and established models = 0.735203 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 131 components and 0.735203 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.793465Jy  sigma=0.001308
! Fit after  self-cal, rms=0.793428Jy  sigma=0.001308
! 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.793428Jy  sigma=0.001308
! Fit after  self-cal, rms=1.119952Jy  sigma=0.001308
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.85 mas, bmaj=4.225 mas, bpa=1.03 degrees
! Estimated noise=763.745 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.42153 Jy
! Component: 100  -  total flux cleaned = 0.549173 Jy
! Component: 150  -  total flux cleaned = 0.610229 Jy
! Component: 200  -  total flux cleaned = 0.643849 Jy
! Total flux subtracted in 200 components = 0.643849 Jy
! Clean residual min=-0.006603 max=0.016922 Jy/beam
! Clean residual mean=0.000125 rms=0.001864 Jy/beam
! Combined flux in latest and established models = 0.643849 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.643849 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.35 mas, bmaj=5.065 mas, bpa=-0.7533 degrees
! Estimated noise=419.821 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.032692 Jy
! Component: 100  -  total flux cleaned = 0.0495112 Jy
! Component: 150  -  total flux cleaned = 0.0597995 Jy
! Component: 200  -  total flux cleaned = 0.066852 Jy
! Total flux subtracted in 200 components = 0.066852 Jy
! Clean residual min=-0.003177 max=0.006320 Jy/beam
! Clean residual mean=0.000464 rms=0.001140 Jy/beam
! Combined flux in latest and established models = 0.710701 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 40 components and 0.710701 Jy
! Inverting map 
! Added new window around map position (3, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00619548 Jy
! Component: 100  -  total flux cleaned = 0.0106833 Jy
! Component: 150  -  total flux cleaned = 0.0142872 Jy
! Component: 200  -  total flux cleaned = 0.0171014 Jy
! Total flux subtracted in 200 components = 0.0171014 Jy
! Clean residual min=-0.003000 max=0.003678 Jy/beam
! Clean residual mean=0.000265 rms=0.000865 Jy/beam
! Combined flux in latest and established models = 0.727803 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 54 components and 0.727803 Jy
! Inverting map 
! Added new window around map position (-12, -19).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00302045 Jy
! Component: 100  -  total flux cleaned = 0.00416331 Jy
! Component: 150  -  total flux cleaned = 0.00493801 Jy
! Component: 200  -  total flux cleaned = 0.00565781 Jy
! Total flux subtracted in 200 components = 0.00565781 Jy
! Clean residual min=-0.002776 max=0.003610 Jy/beam
! Clean residual mean=0.000201 rms=0.000805 Jy/beam
! Combined flux in latest and established models = 0.733461 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 74 components and 0.73346 Jy
! Inverting map 
! Added new window around map position (-5.5, 21.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00242992 Jy
! Component: 100  -  total flux cleaned = 0.00291211 Jy
! Component: 150  -  total flux cleaned = 0.00336037 Jy
! Component: 200  -  total flux cleaned = 0.00364378 Jy
! Total flux subtracted in 200 components = 0.00364378 Jy
! Clean residual min=-0.002738 max=0.003004 Jy/beam
! Clean residual mean=0.000157 rms=0.000758 Jy/beam
! Combined flux in latest and established models = 0.737104 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 88 components and 0.737104 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.556 mas, bmaj=9.616 mas, bpa=9.104 degrees
! Estimated noise=567.146 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00235174 Jy
! Component: 100  -  total flux cleaned = 0.00390984 Jy
! Component: 150  -  total flux cleaned = 0.00500034 Jy
! Component: 200  -  total flux cleaned = 0.00539938 Jy
! Total flux subtracted in 200 components = 0.00539938 Jy
! Clean residual min=-0.002072 max=0.002924 Jy/beam
! Clean residual mean=0.000257 rms=0.000915 Jy/beam
! Combined flux in latest and established models = 0.742504 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.000189124 Jy
! Component: 100  -  total flux cleaned = 0.000189176 Jy
! Component: 150  -  total flux cleaned = 0.000217313 Jy
! Component: 200  -  total flux cleaned = 0.000243289 Jy
! Total flux subtracted in 200 components = 0.000243289 Jy
! Clean residual min=-0.002080 max=0.002847 Jy/beam
! Clean residual mean=0.000248 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 0.742747 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 116 components and 0.742747 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.35 mas, bmaj=5.065 mas, bpa=-0.7533 degrees
! Estimated noise=419.821 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00213081 Jy
! Component: 100  -  total flux cleaned = -0.00276616 Jy
! Component: 150  -  total flux cleaned = -0.002833 Jy
! Component: 200  -  total flux cleaned = -0.0027714 Jy
! Total flux subtracted in 200 components = -0.0027714 Jy
! Clean residual min=-0.002642 max=0.002837 Jy/beam
! Clean residual mean=0.000123 rms=0.000721 Jy/beam
! Combined flux in latest and established models = 0.739975 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 128 components and 0.739975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.119978Jy  sigma=0.001308
! Fit after  self-cal, rms=1.119959Jy  sigma=0.001308
wmodel J0203+1134_S_2001_04_09_pus_map.mod
! Writing 128 model components to file: J0203+1134_S_2001_04_09_pus_map.mod
wobs J0203+1134_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0203+1134_S_2001_04_09_pus_uvs.fits
wwins J0203+1134_S_2001_04_09_pus_map.win
! wwins: Wrote 7 windows to J0203+1134_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.000603062 Jy
! Component: 100  -  total flux cleaned = 0.0010828 Jy
! Component: 150  -  total flux cleaned = 0.00149703 Jy
! Component: 200  -  total flux cleaned = 0.00176376 Jy
! Component: 250  -  total flux cleaned = 0.00202174 Jy
! Component: 300  -  total flux cleaned = 0.00218871 Jy
! Component: 350  -  total flux cleaned = 0.00231173 Jy
! Component: 400  -  total flux cleaned = 0.00251102 Jy
! Component: 450  -  total flux cleaned = 0.00274426 Jy
! Component: 500  -  total flux cleaned = 0.00289622 Jy
! Component: 550  -  total flux cleaned = 0.00300779 Jy
! Component: 600  -  total flux cleaned = 0.0031177 Jy
! Component: 650  -  total flux cleaned = 0.00322603 Jy
! Component: 700  -  total flux cleaned = 0.00333263 Jy
! Component: 750  -  total flux cleaned = 0.00340279 Jy
! Component: 800  -  total flux cleaned = 0.00347185 Jy
! Component: 850  -  total flux cleaned = 0.00357391 Jy
! Component: 900  -  total flux cleaned = 0.00353994 Jy
! Component: 950  -  total flux cleaned = 0.00360681 Jy
! Component: 1000  -  total flux cleaned = 0.00370592 Jy
! Component: 1050  -  total flux cleaned = 0.00367316 Jy
! Component: 1100  -  total flux cleaned = 0.00380244 Jy
! Component: 1150  -  total flux cleaned = 0.0038344 Jy
! Component: 1200  -  total flux cleaned = 0.00392913 Jy
! Component: 1250  -  total flux cleaned = 0.00396016 Jy
! Component: 1300  -  total flux cleaned = 0.00399089 Jy
! Component: 1350  -  total flux cleaned = 0.00408275 Jy
! Component: 1400  -  total flux cleaned = 0.00414321 Jy
! Component: 1450  -  total flux cleaned = 0.00417317 Jy
! Component: 1500  -  total flux cleaned = 0.00429262 Jy
! Component: 1550  -  total flux cleaned = 0.0043221 Jy
! Component: 1600  -  total flux cleaned = 0.00443947 Jy
! Component: 1650  -  total flux cleaned = 0.00449752 Jy
! Component: 1700  -  total flux cleaned = 0.00458388 Jy
! Component: 1750  -  total flux cleaned = 0.00461249 Jy
! Component: 1800  -  total flux cleaned = 0.00466914 Jy
! Component: 1850  -  total flux cleaned = 0.00472564 Jy
! Component: 1900  -  total flux cleaned = 0.004865 Jy
! Component: 1950  -  total flux cleaned = 0.00489244 Jy
! Component: 2000  -  total flux cleaned = 0.00494727 Jy
! Total flux subtracted in 2048 components = 0.00502898 Jy
! Clean residual min=-0.001462 max=0.001704 Jy/beam
! Clean residual mean=0.000046 rms=0.000499 Jy/beam
! Combined flux in latest and established models = 0.745004 Jy
keep
! Adding 136 model components to the UV plane model.
! The established model now contains 264 components and 0.745004 Jy
![Exited script file: muppet]
wmap "J0203+1134_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.35 x 5.065 at -0.7533 degrees (North through East)
! Clean map  min=-0.0024318  max=0.57728 Jy/beam
! Writing clean map to FITS file: J0203+1134_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.577284 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00049789 
device "J0203+1134_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0203+1134_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.258741 0.258741 0.517482 1.03496 2.06993 4.13986 8.27972 16.5594 33.1189 66.2378
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.577 
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.35 x 5.065 at -0.7533 degrees (North through East)
! Clean map  min=-0.0024318  max=0.57728 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0203+1134_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0203+1134_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0203+1134_S_2001_04_09_pus_uvs.log closed on Mon Oct  8 11:03:58 2007