! Started logfile: J0121+0422_S_2003_09_17_pus_uvs.log on Mon May 21 20:10:14 2007
obs J0121+0422_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0121+0422_S_2003_09_17_pus_uva.fits
! AN table 1: 428 integrations on 120 of 120 possible baselines.
! AN table 2: 110 integrations on 120 of 120 possible baselines.
! AN table 3: 285 integrations on 120 of 120 possible baselines.
! AN table 4: 22 integrations on 120 of 120 possible baselines.
! AN table 5: 12 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0894399 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0121+0422
! 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.
! 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 1732 lines of history.
! 
! Reading 36792 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 4447 telescope corrections were flagged in sub-array 1.
!  A total of 1645 telescope corrections were flagged in sub-array 2.
!  A total of 3755 telescope corrections were flagged in sub-array 3.
!  A total of 291 telescope corrections were flagged in sub-array 4.
!  A total of 192 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 4447 telescope corrections were flagged in sub-array 1.
!  A total of 1645 telescope corrections were flagged in sub-array 2.
!  A total of 3755 telescope corrections were flagged in sub-array 3.
!  A total of 291 telescope corrections were flagged in sub-array 4.
!  A total of 192 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 4447 telescope corrections were flagged in sub-array 1.
!  A total of 1645 telescope corrections were flagged in sub-array 2.
!  A total of 3755 telescope corrections were flagged in sub-array 3.
!  A total of 291 telescope corrections were flagged in sub-array 4.
!  A total of 192 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 4447 telescope corrections were flagged in sub-array 1.
!  A total of 1645 telescope corrections were flagged in sub-array 2.
!  A total of 3755 telescope corrections were flagged in sub-array 3.
!  A total of 291 telescope corrections were flagged in sub-array 4.
!  A total of 192 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.869048Jy  sigma=0.006576
! Fit after  self-cal, rms=0.345343Jy  sigma=0.002789
! 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.242 mas, bmaj=5.324 mas, bpa=2.155 degrees
! Estimated noise=1091.32 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.547627 Jy
! Component: 100  -  total flux cleaned = 0.711046 Jy
! Total flux subtracted in 100 components = 0.711046 Jy
! Clean residual min=-0.023361 max=0.071341 Jy/beam
! Clean residual mean=0.000528 rms=0.006747 Jy/beam
! Combined flux in latest and established models = 0.711046 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.711046 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241271Jy  sigma=0.001698
! Fit after  self-cal, rms=0.241176Jy  sigma=0.001697
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0763251 Jy
! Component: 100  -  total flux cleaned = 0.115304 Jy
! Total flux subtracted in 100 components = 0.115304 Jy
! Clean residual min=-0.016884 max=0.022327 Jy/beam
! Clean residual mean=0.000246 rms=0.004186 Jy/beam
! Combined flux in latest and established models = 0.82635 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 24 components and 0.82635 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202400Jy  sigma=0.001362
! Fit after  self-cal, rms=0.202194Jy  sigma=0.001360
! 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.448 mas, bmaj=7.5 mas, bpa=1.386 degrees
! Estimated noise=488.607 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.0404124 Jy
! Component: 100  -  total flux cleaned = 0.0596122 Jy
! Component: 150  -  total flux cleaned = 0.0693248 Jy
! Component: 200  -  total flux cleaned = 0.0743543 Jy
! Total flux subtracted in 200 components = 0.0743543 Jy
! Clean residual min=-0.009224 max=0.008764 Jy/beam
! Clean residual mean=0.000233 rms=0.002338 Jy/beam
! Combined flux in latest and established models = 0.900704 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 59 components and 0.900704 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194535Jy  sigma=0.001296
! Fit after  self-cal, rms=0.194433Jy  sigma=0.001295
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 174 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     GC        1.04     HN        0.87     KP        0.98     
!   LA        0.99     MK        1.01     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.00     SC        0.97     
!   TS        1.04     KK        1.03     WZ        1.00*    WF        0.99     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.01     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        0.99     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.02     KK        1.02     WZ        1.00*    WF        1.00*    
! 
!  A total of 336 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.02     GC        1.00     HN        1.00     KP        1.04     
!   LA        1.01     MK        1.01     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.89     PT        1.03     SC        0.95     
!   TS        1.01     KK        1.02     WZ        1.00*    WF        1.02     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00*    HN        0.84     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.95     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        0.96     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 174 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     GC        0.99     HN        1.02     KP        1.06     
!   LA        0.99     MK        1.02     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.98     SC        1.04     
!   TS        1.03     KK        1.01     WZ        1.00*    WF        1.01     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        0.95     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.03     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.04     KK        1.02     WZ        1.00*    WF        1.00*    
! 
!  A total of 336 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00     GC        0.98     HN        1.06     KP        1.15     
!   LA        1.03     MK        1.07     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        1.02     SC        1.00     
!   TS        1.11     KK        0.97     WZ        1.00*    WF        1.08     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00*    HN        0.94     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.06     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.14     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 174 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        1.06     HN        1.03     KP        1.04     
!   LA        0.96     MK        1.00     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.02     SC        1.02     
!   TS        1.05     KK        1.01     WZ        1.00*    WF        1.06     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.03     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.03     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.04     KK        1.00     WZ        1.00*    WF        1.00*    
! 
!  A total of 336 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.10     HN        1.06     KP        1.09     
!   LA        0.96     MK        1.02     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.06     PT        1.06     SC        1.04     
!   TS        1.04     KK        1.00     WZ        1.00*    WF        1.02     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00*    HN        0.94     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.05     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 174 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.96     GC        1.09     HN        0.75     KP        1.05     
!   LA        1.00     MK        0.94     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.97     SC        0.95     
!   TS        1.03     KK        1.08     WZ        1.00*    WF        1.02     
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.02     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        0.94     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.01     KK        1.10     WZ        1.00*    WF        1.00*    
! 
!  A total of 336 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     GC        1.05     HN        1.06     KP        1.05     
!   LA        1.02     MK        0.99     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.08     PT        1.01     SC        0.94     
!   TS        1.04     KK        1.03     WZ        1.00*    WF        1.03     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00*    HN        0.81     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.02     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Fit before self-cal, rms=0.194433Jy  sigma=0.001295
! Fit after  self-cal, rms=0.187323Jy  sigma=0.001252
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.437 mas, bmaj=7.973 mas, bpa=0.7523 degrees
! Estimated noise=503.052 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.00294074 Jy
! Component: 100  -  total flux cleaned = -0.00303914 Jy
! Component: 150  -  total flux cleaned = -0.00304054 Jy
! Component: 200  -  total flux cleaned = -0.00304219 Jy
! Total flux subtracted in 200 components = -0.00304219 Jy
! Clean residual min=-0.006131 max=0.005842 Jy/beam
! Clean residual mean=0.000022 rms=0.001578 Jy/beam
! Combined flux in latest and established models = 0.897662 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 67 components and 0.897662 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187174Jy  sigma=0.001250
! Fit after  self-cal, rms=0.187238Jy  sigma=0.001250
! 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.187238Jy  sigma=0.001250
! Fit after  self-cal, rms=0.186542Jy  sigma=0.001241
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.442 mas, bmaj=7.997 mas, bpa=0.6891 degrees
! Estimated noise=503.938 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00101406 Jy
! Component: 100  -  total flux cleaned = -0.00100488 Jy
! Component: 150  -  total flux cleaned = -0.00108786 Jy
! Component: 200  -  total flux cleaned = -0.00123336 Jy
! Total flux subtracted in 200 components = -0.00123336 Jy
! Clean residual min=-0.004622 max=0.003939 Jy/beam
! Clean residual mean=0.000074 rms=0.001155 Jy/beam
! Combined flux in latest and established models = 0.896429 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 72 components and 0.896429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186443Jy  sigma=0.001240
! Fit after  self-cal, rms=0.186435Jy  sigma=0.001239
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.000185478 Jy
! Component: 100  -  total flux cleaned = 3.89392e-05 Jy
! Component: 150  -  total flux cleaned = -8.56481e-05 Jy
! Component: 200  -  total flux cleaned = -0.000138883 Jy
! Total flux subtracted in 200 components = -0.000138883 Jy
! Clean residual min=-0.004479 max=0.003916 Jy/beam
! Clean residual mean=0.000075 rms=0.001134 Jy/beam
! Combined flux in latest and established models = 0.89629 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 75 components and 0.89629 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186383Jy  sigma=0.001239
! Fit after  self-cal, rms=0.186369Jy  sigma=0.001239
! 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.186369Jy  sigma=0.001239
! Fit after  self-cal, rms=0.184313Jy  sigma=0.001224
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.448 mas, bmaj=8.007 mas, bpa=0.6464 degrees
! Estimated noise=504.525 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00162589 Jy
! Component: 100  -  total flux cleaned = -0.00161657 Jy
! Component: 150  -  total flux cleaned = -0.00161809 Jy
! Component: 200  -  total flux cleaned = -0.00172562 Jy
! Total flux subtracted in 200 components = -0.00172562 Jy
! Clean residual min=-0.004021 max=0.002948 Jy/beam
! Clean residual mean=0.000087 rms=0.000863 Jy/beam
! Combined flux in latest and established models = 0.894564 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 75 components and 0.894564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184247Jy  sigma=0.001223
! Fit after  self-cal, rms=0.184250Jy  sigma=0.001223
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 = 6.52228e-05 Jy
! Component: 100  -  total flux cleaned = -3.68697e-05 Jy
! Component: 150  -  total flux cleaned = -0.000124177 Jy
! Component: 200  -  total flux cleaned = -0.000162854 Jy
! Total flux subtracted in 200 components = -0.000162854 Jy
! Clean residual min=-0.003929 max=0.002908 Jy/beam
! Clean residual mean=0.000089 rms=0.000849 Jy/beam
! Combined flux in latest and established models = 0.894402 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 75 components and 0.894402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184221Jy  sigma=0.001223
! Fit after  self-cal, rms=0.184215Jy  sigma=0.001223
! 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.184215Jy  sigma=0.001223
! Fit after  self-cal, rms=0.184307Jy  sigma=0.001222
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.645 mas, bmaj=14.04 mas, bpa=-7.803 degrees
! Estimated noise=660.498 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000519201 Jy
! Component: 100  -  total flux cleaned = -0.000515167 Jy
! Component: 150  -  total flux cleaned = -0.000512869 Jy
! Component: 200  -  total flux cleaned = -0.00054028 Jy
! Total flux subtracted in 200 components = -0.00054028 Jy
! Clean residual min=-0.003372 max=0.004033 Jy/beam
! Clean residual mean=0.000156 rms=0.001142 Jy/beam
! Combined flux in latest and established models = 0.893861 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 78 components and 0.893861 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184299Jy  sigma=0.001222
! Fit after  self-cal, rms=0.184293Jy  sigma=0.001222
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.000141223 Jy
! Component: 100  -  total flux cleaned = -0.000138139 Jy
! Component: 150  -  total flux cleaned = -0.000162262 Jy
! Component: 200  -  total flux cleaned = -0.000204928 Jy
! Total flux subtracted in 200 components = -0.000204928 Jy
! Clean residual min=-0.003321 max=0.003987 Jy/beam
! Clean residual mean=0.000162 rms=0.001133 Jy/beam
! Combined flux in latest and established models = 0.893656 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 78 components and 0.893656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184292Jy  sigma=0.001222
! Fit after  self-cal, rms=0.184288Jy  sigma=0.001222
! 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.453 mas, bmaj=8.017 mas, bpa=0.6098 degrees
! Estimated noise=505.125 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.453 x 8.017 at 0.6098 degrees (North through East)
! Clean map  min=-0.0036618  max=0.74167 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.184288Jy  sigma=0.001222
! Fit after  self-cal, rms=0.168383Jy  sigma=0.001060
! Inverting map and beam 
! Estimated beam: bmin=2.45 mas, bmaj=8.022 mas, bpa=0.5869 degrees
! Estimated noise=504.473 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00142502 Jy
! Component: 100  -  total flux cleaned = -0.0015859 Jy
! Component: 150  -  total flux cleaned = -0.00168143 Jy
! Component: 200  -  total flux cleaned = -0.00181293 Jy
! Total flux subtracted in 200 components = -0.00181293 Jy
! Clean residual min=-0.003173 max=0.003189 Jy/beam
! Clean residual mean=0.000108 rms=0.000735 Jy/beam
! Combined flux in latest and established models = 0.891843 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 78 components and 0.891843 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168342Jy  sigma=0.001060
! Fit after  self-cal, rms=0.168342Jy  sigma=0.001059
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.06292e-05 Jy
! Component: 100  -  total flux cleaned = -9.28385e-05 Jy
! Component: 150  -  total flux cleaned = -0.00012757 Jy
! Component: 200  -  total flux cleaned = -0.000126412 Jy
! Total flux subtracted in 200 components = -0.000126412 Jy
! Clean residual min=-0.003094 max=0.003171 Jy/beam
! Clean residual mean=0.000109 rms=0.000726 Jy/beam
! Combined flux in latest and established models = 0.891717 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 78 components and 0.891717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168325Jy  sigma=0.001059
! Fit after  self-cal, rms=0.168323Jy  sigma=0.001059
! Inverting map 
! Added new window around map position (14, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00261872 Jy
! Component: 100  -  total flux cleaned = 0.00343723 Jy
! Component: 150  -  total flux cleaned = 0.00335731 Jy
! Component: 200  -  total flux cleaned = 0.0033224 Jy
! Total flux subtracted in 200 components = 0.0033224 Jy
! Clean residual min=-0.002687 max=0.002247 Jy/beam
! Clean residual mean=0.000073 rms=0.000656 Jy/beam
! Combined flux in latest and established models = 0.895039 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 92 components and 0.895039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168276Jy  sigma=0.001059
! Fit after  self-cal, rms=0.168271Jy  sigma=0.001059
! 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.168271Jy  sigma=0.001059
! Fit after  self-cal, rms=0.168317Jy  sigma=0.001059
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.253 mas, bmaj=5.435 mas, bpa=1.712 degrees
! Estimated noise=1166.92 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.558576 Jy
! Component: 100  -  total flux cleaned = 0.719811 Jy
! Component: 150  -  total flux cleaned = 0.795148 Jy
! Component: 200  -  total flux cleaned = 0.831222 Jy
! Total flux subtracted in 200 components = 0.831222 Jy
! Clean residual min=-0.007829 max=0.016682 Jy/beam
! Clean residual mean=0.000181 rms=0.002153 Jy/beam
! Combined flux in latest and established models = 0.831222 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.831222 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.453 mas, bmaj=8.032 mas, bpa=0.561 degrees
! Estimated noise=504.569 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.0321589 Jy
! Component: 100  -  total flux cleaned = 0.0466353 Jy
! Component: 150  -  total flux cleaned = 0.0538285 Jy
! Component: 200  -  total flux cleaned = 0.0580691 Jy
! Total flux subtracted in 200 components = 0.0580691 Jy
! Clean residual min=-0.002865 max=0.003398 Jy/beam
! Clean residual mean=0.000135 rms=0.000709 Jy/beam
! Combined flux in latest and established models = 0.889291 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 53 components and 0.889291 Jy
! Inverting map 
! Added new window around map position (4.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00254206 Jy
! Component: 100  -  total flux cleaned = 0.00356439 Jy
! Component: 150  -  total flux cleaned = 0.00436191 Jy
! Component: 200  -  total flux cleaned = 0.00469087 Jy
! Total flux subtracted in 200 components = 0.00469087 Jy
! Clean residual min=-0.002506 max=0.002303 Jy/beam
! Clean residual mean=0.000077 rms=0.000593 Jy/beam
! Combined flux in latest and established models = 0.893982 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 76 components and 0.893982 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=9.643 mas, bmaj=14.08 mas, bpa=-7.856 degrees
! Estimated noise=659.423 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00100791 Jy
! Component: 100  -  total flux cleaned = 0.00100773 Jy
! Component: 150  -  total flux cleaned = 0.00100796 Jy
! Component: 200  -  total flux cleaned = 0.0010338 Jy
! Total flux subtracted in 200 components = 0.0010338 Jy
! Clean residual min=-0.001555 max=0.002040 Jy/beam
! Clean residual mean=0.000134 rms=0.000713 Jy/beam
! Combined flux in latest and established models = 0.895016 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 = 2.22953e-05 Jy
! Component: 100  -  total flux cleaned = 2.16642e-05 Jy
! Component: 150  -  total flux cleaned = 2.10737e-05 Jy
! Component: 200  -  total flux cleaned = 4.00453e-05 Jy
! Total flux subtracted in 200 components = 4.00453e-05 Jy
! Clean residual min=-0.001524 max=0.002056 Jy/beam
! Clean residual mean=0.000134 rms=0.000698 Jy/beam
! Combined flux in latest and established models = 0.895056 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 98 components and 0.895056 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.453 mas, bmaj=8.032 mas, bpa=0.561 degrees
! Estimated noise=504.569 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000272657 Jy
! Component: 100  -  total flux cleaned = -0.000315997 Jy
! Component: 150  -  total flux cleaned = -0.000316566 Jy
! Component: 200  -  total flux cleaned = -0.00039435 Jy
! Total flux subtracted in 200 components = -0.00039435 Jy
! Clean residual min=-0.002133 max=0.002353 Jy/beam
! Clean residual mean=0.000069 rms=0.000563 Jy/beam
! Combined flux in latest and established models = 0.894662 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 115 components and 0.894662 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168211Jy  sigma=0.001058
! Fit after  self-cal, rms=0.168203Jy  sigma=0.001058
wmodel J0121+0422_S_2003_09_17_pus_map.mod
! Writing 115 model components to file: J0121+0422_S_2003_09_17_pus_map.mod
wobs J0121+0422_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0121+0422_S_2003_09_17_pus_uvs.fits
wwins J0121+0422_S_2003_09_17_pus_map.win
! wwins: Wrote 3 windows to J0121+0422_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 = 3.54157e-05 Jy
! Component: 100  -  total flux cleaned = 0.000146839 Jy
! Component: 150  -  total flux cleaned = 0.000350102 Jy
! Component: 200  -  total flux cleaned = 0.000674218 Jy
! Component: 250  -  total flux cleaned = 0.000924488 Jy
! Component: 300  -  total flux cleaned = 0.00122923 Jy
! Component: 350  -  total flux cleaned = 0.00155583 Jy
! Component: 400  -  total flux cleaned = 0.00187611 Jy
! Component: 450  -  total flux cleaned = 0.00216213 Jy
! Component: 500  -  total flux cleaned = 0.00249948 Jy
! Component: 550  -  total flux cleaned = 0.0027482 Jy
! Component: 600  -  total flux cleaned = 0.00296567 Jy
! Component: 650  -  total flux cleaned = 0.00323327 Jy
! Component: 700  -  total flux cleaned = 0.00344402 Jy
! Component: 750  -  total flux cleaned = 0.00357453 Jy
! Component: 800  -  total flux cleaned = 0.00370337 Jy
! Component: 850  -  total flux cleaned = 0.00390641 Jy
! Component: 900  -  total flux cleaned = 0.00410651 Jy
! Component: 950  -  total flux cleaned = 0.00427953 Jy
! Component: 1000  -  total flux cleaned = 0.00437719 Jy
! Component: 1050  -  total flux cleaned = 0.00452269 Jy
! Component: 1100  -  total flux cleaned = 0.00469016 Jy
! Component: 1150  -  total flux cleaned = 0.00485573 Jy
! Component: 1200  -  total flux cleaned = 0.00499592 Jy
! Component: 1250  -  total flux cleaned = 0.00511153 Jy
! Component: 1300  -  total flux cleaned = 0.00520315 Jy
! Component: 1350  -  total flux cleaned = 0.00538384 Jy
! Component: 1400  -  total flux cleaned = 0.00547329 Jy
! Component: 1450  -  total flux cleaned = 0.00558406 Jy
! Component: 1500  -  total flux cleaned = 0.00571556 Jy
! Component: 1550  -  total flux cleaned = 0.00586731 Jy
! Component: 1600  -  total flux cleaned = 0.00595312 Jy
! Component: 1650  -  total flux cleaned = 0.00612332 Jy
! Component: 1700  -  total flux cleaned = 0.00618656 Jy
! Component: 1750  -  total flux cleaned = 0.00631183 Jy
! Component: 1800  -  total flux cleaned = 0.00639454 Jy
! Component: 1850  -  total flux cleaned = 0.00657884 Jy
! Component: 1900  -  total flux cleaned = 0.00657861 Jy
! Component: 1950  -  total flux cleaned = 0.00671971 Jy
! Component: 2000  -  total flux cleaned = 0.00681964 Jy
! Total flux subtracted in 2048 components = 0.00691859 Jy
! Clean residual min=-0.001066 max=0.001041 Jy/beam
! Clean residual mean=0.000014 rms=0.000385 Jy/beam
! Combined flux in latest and established models = 0.90158 Jy
keep
! Adding 108 model components to the UV plane model.
! The established model now contains 223 components and 0.90158 Jy
wmap "J0121+0422_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.453 x 8.032 at 0.561 degrees (North through East)
! Clean map  min=-0.0019636  max=0.73833 Jy/beam
! Writing clean map to FITS file: J0121+0422_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 0.738331 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000382931 
device "J0121+0422_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0121+0422_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.155593 0.155593 0.311186 0.622373 1.24475 2.48949 4.97898 9.95797 19.9159 39.8319 79.6637
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.738 
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.453 x 8.032 at 0.561 degrees (North through East)
! Clean map  min=-0.0019636  max=0.73833 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0121+0422_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0121+0422_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0121+0422_S_2003_09_17_pus_uvs.log closed on Mon May 21 20:13:08 2007