! Started logfile: J0121+1149_S_2003_09_17_pus_uvs.log on Tue May 22 18:12:45 2007
obs J0121+1149_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0121+1149_S_2003_09_17_pus_uva.fits
! AN table 1: 75 integrations on 120 of 120 possible baselines.
! AN table 2: 114 integrations on 120 of 120 possible baselines.
! AN table 3: 8 integrations on 120 of 120 possible baselines.
! AN table 4: 378 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0766377 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0121+1149
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1736 lines of history.
! 
! Reading 21152 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 
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 863 telescope corrections were flagged in sub-array 1.
!  A total of 1609 telescope corrections were flagged in sub-array 2.
!  A total of 128 telescope corrections were flagged in sub-array 3.
!  A total of 4423 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 863 telescope corrections were flagged in sub-array 1.
!  A total of 1609 telescope corrections were flagged in sub-array 2.
!  A total of 128 telescope corrections were flagged in sub-array 3.
!  A total of 4417 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 863 telescope corrections were flagged in sub-array 1.
!  A total of 1609 telescope corrections were flagged in sub-array 2.
!  A total of 128 telescope corrections were flagged in sub-array 3.
!  A total of 4417 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 872 telescope corrections were flagged in sub-array 1.
!  A total of 1603 telescope corrections were flagged in sub-array 2.
!  A total of 128 telescope corrections were flagged in sub-array 3.
!  A total of 4417 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.903282Jy  sigma=0.006779
! Fit after  self-cal, rms=0.295215Jy  sigma=0.002194
! 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=2.29 mas, bmaj=6.2 mas, bpa=-6.598 degrees
! Estimated noise=1403.54 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.852804 Jy
! Component: 100  -  total flux cleaned = 1.05405 Jy
! Total flux subtracted in 100 components = 1.05405 Jy
! Clean residual min=-0.035527 max=0.075077 Jy/beam
! Clean residual mean=0.000452 rms=0.009715 Jy/beam
! Combined flux in latest and established models = 1.05405 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 1.05405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267366Jy  sigma=0.001958
! Fit after  self-cal, rms=0.267343Jy  sigma=0.001958
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.078878 Jy
! Component: 100  -  total flux cleaned = 0.122467 Jy
! Total flux subtracted in 100 components = 0.122467 Jy
! Clean residual min=-0.032402 max=0.029334 Jy/beam
! Clean residual mean=0.000231 rms=0.007309 Jy/beam
! Combined flux in latest and established models = 1.17652 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 24 components and 1.17652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234560Jy  sigma=0.001661
! Fit after  self-cal, rms=0.234505Jy  sigma=0.001660
! 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=3.402 mas, bmaj=7.504 mas, bpa=-13.28 degrees
! Estimated noise=644.614 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.0336813 Jy
! Component: 100  -  total flux cleaned = 0.0497575 Jy
! Component: 150  -  total flux cleaned = 0.0581166 Jy
! Component: 200  -  total flux cleaned = 0.0596557 Jy
! Total flux subtracted in 200 components = 0.0596557 Jy
! Clean residual min=-0.022034 max=0.054314 Jy/beam
! Clean residual mean=0.000251 rms=0.009588 Jy/beam
! Combined flux in latest and established models = 1.23617 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 41 components and 1.23617 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230193Jy  sigma=0.001619
! Fit after  self-cal, rms=0.230058Jy  sigma=0.001618
! Inverting map 
! Added new window around map position (0.5, 21.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0522366 Jy
! Component: 100  -  total flux cleaned = 0.0776943 Jy
! Component: 150  -  total flux cleaned = 0.0899262 Jy
! Component: 200  -  total flux cleaned = 0.0948211 Jy
! Total flux subtracted in 200 components = 0.0948211 Jy
! Clean residual min=-0.017883 max=0.024118 Jy/beam
! Clean residual mean=0.000057 rms=0.005560 Jy/beam
! Combined flux in latest and established models = 1.33099 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 78 components and 1.33099 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219418Jy  sigma=0.001511
! Fit after  self-cal, rms=0.217902Jy  sigma=0.001496
! 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:
!   FD        1.00     GC        1.00*    HN        0.95     KP        0.96     
!   LA        1.00     MK        1.00     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.05     PT        0.98     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.13     KP        1.02     
!   LA        1.00     MK        0.89     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.17     PT        1.02     SC        0.95     
!   TS        1.00*    KK        0.92     WZ        1.00*    WF        1.09     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 435 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        0.99     HN        1.03     KP        0.93     
!   LA        1.00     MK        1.01     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.06     PT        0.98     SC        1.00*    
!   TS        0.99     KK        1.01     WZ        1.00*    WF        0.99     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00*    HN        0.98     KP        1.04     
!   LA        1.01     MK        1.07     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.96     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.00*    HN        0.99     KP        1.09     
!   LA        1.03     MK        1.12     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.98     SC        1.05     
!   TS        1.00*    KK        1.05     WZ        1.00*    WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 441 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.03     GC        0.94     HN        1.00     KP        1.03     
!   LA        1.02     MK        1.07     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.95     SC        1.00*    
!   TS        0.98     KK        1.00     WZ        1.00*    WF        0.99     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.97     GC        1.00*    HN        0.96     KP        1.02     
!   LA        0.98     MK        1.03     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.01     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.00*    HN        1.00     KP        1.08     
!   LA        0.93     MK        1.08     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.06     PT        1.02     SC        1.04     
!   TS        1.00*    KK        0.98     WZ        1.00*    WF        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 441 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.03     HN        1.02     KP        1.03     
!   LA        0.97     MK        1.04     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00     SC        1.00*    
!   TS        1.04     KK        0.99     WZ        1.00*    WF        1.03     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.96     GC        1.00*    HN        0.85     KP        1.02     
!   LA        1.00     MK        0.97     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.97     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.00*    HN        0.84     KP        1.07     
!   LA        0.99     MK        0.99     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.96     SC        0.97     
!   TS        1.00*    KK        1.07     WZ        1.00*    WF        1.12     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 441 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     GC        1.05     HN        1.00     KP        1.02     
!   LA        1.00     MK        0.98     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.95     SC        1.00*    
!   TS        1.05     KK        1.05     WZ        1.00*    WF        1.01     
! 
! 
! Fit before self-cal, rms=0.217902Jy  sigma=0.001496
! Fit after  self-cal, rms=0.211596Jy  sigma=0.001475
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.275 mas, bmaj=9.962 mas, bpa=-12.14 degrees
! Estimated noise=668.934 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 (10, 28).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0258196 Jy
! Component: 100  -  total flux cleaned = 0.0396409 Jy
! Component: 150  -  total flux cleaned = 0.043237 Jy
! Component: 200  -  total flux cleaned = 0.0449062 Jy
! Total flux subtracted in 200 components = 0.0449062 Jy
! Clean residual min=-0.012877 max=0.010457 Jy/beam
! Clean residual mean=-0.000133 rms=0.003002 Jy/beam
! Combined flux in latest and established models = 1.3759 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 119 components and 1.3759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208176Jy  sigma=0.001444
! Fit after  self-cal, rms=0.207957Jy  sigma=0.001442
! 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.207957Jy  sigma=0.001442
! Fit after  self-cal, rms=0.197641Jy  sigma=0.001390
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.28 mas, bmaj=9.962 mas, bpa=-12.2 degrees
! Estimated noise=667.603 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00724804 Jy
! Component: 100  -  total flux cleaned = 0.00997863 Jy
! Component: 150  -  total flux cleaned = 0.0102863 Jy
! Component: 200  -  total flux cleaned = 0.0101683 Jy
! Total flux subtracted in 200 components = 0.0101683 Jy
! Clean residual min=-0.006603 max=0.006297 Jy/beam
! Clean residual mean=-0.000183 rms=0.002003 Jy/beam
! Combined flux in latest and established models = 1.38607 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 150 components and 1.38607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197350Jy  sigma=0.001387
! Fit after  self-cal, rms=0.197347Jy  sigma=0.001386
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.00106787 Jy
! Component: 100  -  total flux cleaned = 0.000957245 Jy
! Component: 150  -  total flux cleaned = 0.000962127 Jy
! Component: 200  -  total flux cleaned = 0.000871115 Jy
! Total flux subtracted in 200 components = 0.000871115 Jy
! Clean residual min=-0.006333 max=0.006173 Jy/beam
! Clean residual mean=-0.000178 rms=0.001948 Jy/beam
! Combined flux in latest and established models = 1.38694 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 162 components and 1.38694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197255Jy  sigma=0.001386
! Fit after  self-cal, rms=0.197251Jy  sigma=0.001386
! 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.197251Jy  sigma=0.001386
! Fit after  self-cal, rms=0.196520Jy  sigma=0.001372
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.281 mas, bmaj=9.966 mas, bpa=-12.19 degrees
! Estimated noise=667.625 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0025225 Jy
! Component: 100  -  total flux cleaned = 0.00272968 Jy
! Component: 150  -  total flux cleaned = 0.00289904 Jy
! Component: 200  -  total flux cleaned = 0.00305365 Jy
! Total flux subtracted in 200 components = 0.00305365 Jy
! Clean residual min=-0.005254 max=0.005636 Jy/beam
! Clean residual mean=-0.000193 rms=0.001739 Jy/beam
! Combined flux in latest and established models = 1.38999 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 174 components and 1.38999 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196426Jy  sigma=0.001371
! Fit after  self-cal, rms=0.196470Jy  sigma=0.001371
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.000517281 Jy
! Component: 100  -  total flux cleaned = 0.000661311 Jy
! Component: 150  -  total flux cleaned = 0.000935448 Jy
! Component: 200  -  total flux cleaned = 0.00106628 Jy
! Total flux subtracted in 200 components = 0.00106628 Jy
! Clean residual min=-0.005224 max=0.005647 Jy/beam
! Clean residual mean=-0.000192 rms=0.001728 Jy/beam
! Combined flux in latest and established models = 1.39106 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 181 components and 1.39106 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196419Jy  sigma=0.001371
! Fit after  self-cal, rms=0.196419Jy  sigma=0.001371
! 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.196419Jy  sigma=0.001371
! Fit after  self-cal, rms=0.196390Jy  sigma=0.001370
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.225 mas, bmaj=16.6 mas, bpa=-13.42 degrees
! Estimated noise=810.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.0157e-06 Jy
! Component: 100  -  total flux cleaned = 0.000438617 Jy
! Component: 150  -  total flux cleaned = 0.000377769 Jy
! Component: 200  -  total flux cleaned = 0.000321797 Jy
! Total flux subtracted in 200 components = 0.000321797 Jy
! Clean residual min=-0.007420 max=0.008909 Jy/beam
! Clean residual mean=-0.000369 rms=0.002557 Jy/beam
! Combined flux in latest and established models = 1.39138 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 197 components and 1.39138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196375Jy  sigma=0.001370
! Fit after  self-cal, rms=0.196371Jy  sigma=0.001370
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 = 9.04562e-05 Jy
! Component: 100  -  total flux cleaned = 0.000191652 Jy
! Component: 150  -  total flux cleaned = 0.00019128 Jy
! Component: 200  -  total flux cleaned = 0.000190934 Jy
! Total flux subtracted in 200 components = 0.000190934 Jy
! Clean residual min=-0.007517 max=0.008820 Jy/beam
! Clean residual mean=-0.000364 rms=0.002538 Jy/beam
! Combined flux in latest and established models = 1.39157 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 204 components and 1.39157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196366Jy  sigma=0.001370
! Fit after  self-cal, rms=0.196365Jy  sigma=0.001370
! 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=3.281 mas, bmaj=9.973 mas, bpa=-12.19 degrees
! Estimated noise=667.42 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.281 x 9.973 at -12.19 degrees (North through East)
! Clean map  min=-0.005238  max=1.1314 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.196365Jy  sigma=0.001370
! Fit after  self-cal, rms=0.177020Jy  sigma=0.001145
! Inverting map and beam 
! Estimated beam: bmin=3.281 mas, bmaj=9.98 mas, bpa=-12.2 degrees
! Estimated noise=666.377 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000145855 Jy
! Component: 100  -  total flux cleaned = -9.56893e-05 Jy
! Component: 150  -  total flux cleaned = -0.000453809 Jy
! Component: 200  -  total flux cleaned = -0.000720014 Jy
! Total flux subtracted in 200 components = -0.000720014 Jy
! Clean residual min=-0.004161 max=0.005975 Jy/beam
! Clean residual mean=-0.000108 rms=0.001295 Jy/beam
! Combined flux in latest and established models = 1.39085 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 223 components and 1.39085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176937Jy  sigma=0.001144
! Fit after  self-cal, rms=0.176939Jy  sigma=0.001144
! Inverting map 
! Added new window around map position (35.5, 39.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00553241 Jy
! Component: 100  -  total flux cleaned = 0.00839996 Jy
! Component: 150  -  total flux cleaned = 0.00932474 Jy
! Component: 200  -  total flux cleaned = 0.00977015 Jy
! Total flux subtracted in 200 components = 0.00977015 Jy
! Clean residual min=-0.003432 max=0.003535 Jy/beam
! Clean residual mean=-0.000108 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 1.40062 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 249 components and 1.40062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176764Jy  sigma=0.001142
! Fit after  self-cal, rms=0.176750Jy  sigma=0.001142
! 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.176750Jy  sigma=0.001142
! Fit after  self-cal, rms=0.176799Jy  sigma=0.001142
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=2.269 mas, bmaj=6.935 mas, bpa=-6.458 degrees
! Estimated noise=1395.25 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.852001 Jy
! Component: 100  -  total flux cleaned = 1.04532 Jy
! Component: 150  -  total flux cleaned = 1.1164 Jy
! Component: 200  -  total flux cleaned = 1.15615 Jy
! Total flux subtracted in 200 components = 1.15615 Jy
! Clean residual min=-0.012789 max=0.022450 Jy/beam
! Clean residual mean=0.000247 rms=0.004473 Jy/beam
! Combined flux in latest and established models = 1.15615 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 28 model components to the UV plane model.
! The established model now contains 28 components and 1.15615 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.282 mas, bmaj=9.985 mas, bpa=-12.2 degrees
! Estimated noise=665.864 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.0619351 Jy
! Component: 100  -  total flux cleaned = 0.102778 Jy
! Component: 150  -  total flux cleaned = 0.132606 Jy
! Component: 200  -  total flux cleaned = 0.154989 Jy
! Total flux subtracted in 200 components = 0.154989 Jy
! Clean residual min=-0.009866 max=0.012843 Jy/beam
! Clean residual mean=-0.000017 rms=0.003797 Jy/beam
! Combined flux in latest and established models = 1.31114 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 82 components and 1.31114 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.227 mas, bmaj=16.6 mas, bpa=-13.4 degrees
! Estimated noise=808.526 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0254834 Jy
! Component: 100  -  total flux cleaned = 0.0410199 Jy
! Component: 150  -  total flux cleaned = 0.0516151 Jy
! Component: 200  -  total flux cleaned = 0.0596802 Jy
! Total flux subtracted in 200 components = 0.0596802 Jy
! Clean residual min=-0.007260 max=0.005483 Jy/beam
! Clean residual mean=-0.000141 rms=0.002444 Jy/beam
! Combined flux in latest and established models = 1.37082 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.00630069 Jy
! Component: 100  -  total flux cleaned = 0.0113486 Jy
! Component: 150  -  total flux cleaned = 0.0154644 Jy
! Component: 200  -  total flux cleaned = 0.0180628 Jy
! Total flux subtracted in 200 components = 0.0180628 Jy
! Clean residual min=-0.005554 max=0.003606 Jy/beam
! Clean residual mean=-0.000181 rms=0.001642 Jy/beam
! Combined flux in latest and established models = 1.38888 Jy
! Adding 122 model components to the UV plane model.
! The established model now contains 193 components and 1.38888 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.282 mas, bmaj=9.985 mas, bpa=-12.2 degrees
! Estimated noise=665.864 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000433356 Jy
! Component: 100  -  total flux cleaned = 0.00107235 Jy
! Component: 150  -  total flux cleaned = 0.00222675 Jy
! Component: 200  -  total flux cleaned = 0.00326044 Jy
! Total flux subtracted in 200 components = 0.00326044 Jy
! Clean residual min=-0.004159 max=0.003843 Jy/beam
! Clean residual mean=-0.000097 rms=0.001166 Jy/beam
! Combined flux in latest and established models = 1.39214 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 215 components and 1.39214 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177124Jy  sigma=0.001145
! Fit after  self-cal, rms=0.177064Jy  sigma=0.001145
wmodel J0121+1149_S_2003_09_17_pus_map.mod
! Writing 215 model components to file: J0121+1149_S_2003_09_17_pus_map.mod
wobs J0121+1149_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0121+1149_S_2003_09_17_pus_uvs.fits
wwins J0121+1149_S_2003_09_17_pus_map.win
! wwins: Wrote 4 windows to J0121+1149_S_2003_09_17_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.00120606 Jy
! Component: 100  -  total flux cleaned = -0.00161898 Jy
! Component: 150  -  total flux cleaned = -0.00136456 Jy
! Component: 200  -  total flux cleaned = -0.00106008 Jy
! Component: 250  -  total flux cleaned = -0.000596289 Jy
! Component: 300  -  total flux cleaned = -0.000484355 Jy
! Component: 350  -  total flux cleaned = -0.000322656 Jy
! Component: 400  -  total flux cleaned = -0.000112133 Jy
! Component: 450  -  total flux cleaned = -1.01189e-05 Jy
! Component: 500  -  total flux cleaned = 0.000442948 Jy
! Component: 550  -  total flux cleaned = 0.000787653 Jy
! Component: 600  -  total flux cleaned = 0.00102904 Jy
! Component: 650  -  total flux cleaned = 0.00121859 Jy
! Component: 700  -  total flux cleaned = 0.00145076 Jy
! Component: 750  -  total flux cleaned = 0.00149634 Jy
! Component: 800  -  total flux cleaned = 0.00154179 Jy
! Component: 850  -  total flux cleaned = 0.00163097 Jy
! Component: 900  -  total flux cleaned = 0.0016308 Jy
! Component: 950  -  total flux cleaned = 0.00167458 Jy
! Component: 1000  -  total flux cleaned = 0.00180269 Jy
! Component: 1050  -  total flux cleaned = 0.00175997 Jy
! Component: 1100  -  total flux cleaned = 0.00176009 Jy
! Component: 1150  -  total flux cleaned = 0.00176041 Jy
! Component: 1200  -  total flux cleaned = 0.00172055 Jy
! Component: 1250  -  total flux cleaned = 0.00168093 Jy
! Component: 1300  -  total flux cleaned = 0.00172018 Jy
! Component: 1350  -  total flux cleaned = 0.00164222 Jy
! Component: 1400  -  total flux cleaned = 0.00156562 Jy
! Component: 1450  -  total flux cleaned = 0.00156624 Jy
! Component: 1500  -  total flux cleaned = 0.00149146 Jy
! Component: 1550  -  total flux cleaned = 0.00141725 Jy
! Component: 1600  -  total flux cleaned = 0.00119709 Jy
! Component: 1650  -  total flux cleaned = 0.00119691 Jy
! Component: 1700  -  total flux cleaned = 0.0010527 Jy
! Component: 1750  -  total flux cleaned = 0.000875096 Jy
! Component: 1800  -  total flux cleaned = 0.000734573 Jy
! Component: 1850  -  total flux cleaned = 0.000630526 Jy
! Component: 1900  -  total flux cleaned = 0.000561704 Jy
! Component: 1950  -  total flux cleaned = 0.000391325 Jy
! Component: 2000  -  total flux cleaned = 0.000324094 Jy
! Total flux subtracted in 2048 components = 0.000190463 Jy
! Clean residual min=-0.001728 max=0.001660 Jy/beam
! Clean residual mean=-0.000086 rms=0.000662 Jy/beam
! Combined flux in latest and established models = 1.39233 Jy
keep
! Adding 121 model components to the UV plane model.
! The established model now contains 335 components and 1.39233 Jy
wmap "J0121+1149_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.282 x 9.985 at -12.2 degrees (North through East)
! Clean map  min=-0.0033349  max=1.1361 Jy/beam
! Writing clean map to FITS file: J0121+1149_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.13614 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000660343 
device "J0121+1149_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0121+1149_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.174365 0.174365 0.34873 0.69746 1.39492 2.78984 5.57968 11.1594 22.3187 44.6374 89.2749
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.136 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.282 x 9.985 at -12.2 degrees (North through East)
! Clean map  min=-0.0033349  max=1.1361 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0121+1149_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0121+1149_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0121+1149_S_2003_09_17_pus_uvs.log closed on Tue May 22 18:14:57 2007