! Started logfile: J0555+3948_S_2001_04_09_pus_uvs.log on Fri Oct  5 15:55:11 2007
obs J0555+3948_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0555+3948_S_2001_04_09_pus_uva.fits
! AN table 1: 237 integrations on 190 of 190 possible baselines.
! AN table 2: 9 integrations on 190 of 190 possible baselines.
! AN table 3: 373 integrations on 190 of 190 possible baselines.
! AN table 4: 112 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.149428 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0555+3948
! 
! 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 1949 lines of history.
! 
! Reading 83016 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 J0555+3948_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 3426 telescope corrections were flagged in sub-array 1.
!  A total of 153 telescope corrections were flagged in sub-array 2.
!  A total of 4722 telescope corrections were flagged in sub-array 3.
!  A total of 1642 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3426 telescope corrections were flagged in sub-array 1.
!  A total of 153 telescope corrections were flagged in sub-array 2.
!  A total of 4722 telescope corrections were flagged in sub-array 3.
!  A total of 1642 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 3426 telescope corrections were flagged in sub-array 1.
!  A total of 153 telescope corrections were flagged in sub-array 2.
!  A total of 4722 telescope corrections were flagged in sub-array 3.
!  A total of 1642 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3426 telescope corrections were flagged in sub-array 1.
!  A total of 153 telescope corrections were flagged in sub-array 2.
!  A total of 4722 telescope corrections were flagged in sub-array 3.
!  A total of 1642 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.385519Jy  sigma=0.019509
! Fit after  self-cal, rms=1.848047Jy  sigma=0.015385
! 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.921 mas, bmaj=2.778 mas, bpa=-2.936 degrees
! Estimated noise=625.835 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 = 2.04104 Jy
! Component: 100  -  total flux cleaned = 2.5608 Jy
! Total flux subtracted in 100 components = 2.5608 Jy
! Clean residual min=-0.053659 max=0.226349 Jy/beam
! Clean residual mean=0.000243 rms=0.012131 Jy/beam
! Combined flux in latest and established models = 2.5608 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.5608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.578827Jy  sigma=0.004608
! Fit after  self-cal, rms=0.578750Jy  sigma=0.004608
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.246612 Jy
! Component: 100  -  total flux cleaned = 0.385267 Jy
! Total flux subtracted in 100 components = 0.385267 Jy
! Clean residual min=-0.046357 max=0.074019 Jy/beam
! Clean residual mean=0.000059 rms=0.008157 Jy/beam
! Combined flux in latest and established models = 2.94607 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 18 components and 2.94607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434321Jy  sigma=0.003154
! Fit after  self-cal, rms=0.434175Jy  sigma=0.003154
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0922938 Jy
! Component: 100  -  total flux cleaned = 0.156272 Jy
! Total flux subtracted in 100 components = 0.156272 Jy
! Clean residual min=-0.042880 max=0.041993 Jy/beam
! Clean residual mean=-0.000014 rms=0.007363 Jy/beam
! Combined flux in latest and established models = 3.10234 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 25 components and 3.10234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.413329Jy  sigma=0.002893
! Fit after  self-cal, rms=0.413244Jy  sigma=0.002892
! 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.319 mas, bmaj=3.557 mas, bpa=-7.202 degrees
! Estimated noise=315.177 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.0415408 Jy
! Component: 100  -  total flux cleaned = 0.0631296 Jy
! Component: 150  -  total flux cleaned = 0.0705601 Jy
! Component: 200  -  total flux cleaned = 0.0714303 Jy
! Total flux subtracted in 200 components = 0.0714303 Jy
! Clean residual min=-0.027917 max=0.021995 Jy/beam
! Clean residual mean=-0.000818 rms=0.006011 Jy/beam
! Combined flux in latest and established models = 3.17377 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 27 components and 3.17377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.410707Jy  sigma=0.002841
! Fit after  self-cal, rms=0.410669Jy  sigma=0.002841
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.98     KP        1.01     
!   LA        0.97     MA        1.09     MC        1.05     MK        0.96     
!   NL        0.98     NY        0.97     OV        1.02     PT        0.96     
!   SC        1.01     TS        0.96     WF        1.00     WZ        1.05     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GC        1.02     GG        1.00*    
!   HH        1.27     HN        0.98     KK        1.00     KP        1.07     
!   LA        1.02     MA        1.06     MC        1.28     MK        1.00     
!   NL        1.01     NY        0.99     OV        1.09     PT        0.99     
!   SC        1.01     TS        1.11     WF        0.97     WZ        1.11     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.04     MC        1.01     MK        1.00*    
!   NL        1.03     NY        0.97     OV        1.00*    PT        1.00*    
!   SC        1.03     TS        0.95     WF        1.03     WZ        1.20     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.98     KP        0.93     
!   LA        0.99     MA        1.66     MC        1.18     MK        0.96     
!   NL        0.98     NY        0.99     OV        0.99     PT        0.99     
!   SC        1.00     TS        1.00     WF        1.02     WZ        1.04     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GC        0.99     GG        1.00*    
!   HH        1.24     HN        0.97     KK        1.00     KP        0.99     
!   LA        1.03     MA        1.31     MC        1.15     MK        1.02     
!   NL        1.01     NY        1.00     OV        1.06     PT        1.02     
!   SC        1.00     TS        1.15     WF        1.01     WZ        1.12     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.00*    GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.88     MC        0.96     MK        1.00*    
!   NL        1.03     NY        0.97     OV        1.00*    PT        1.00*    
!   SC        1.03     TS        1.02     WF        1.02     WZ        1.15     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.97     KP        0.98     
!   LA        0.94     MA        1.37     MC        0.99     MK        0.92     
!   NL        0.96     NY        0.94     OV        0.97     PT        0.94     
!   SC        0.97     TS        0.99     WF        1.03     WZ        1.05     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.22     HN        0.99     KK        1.00     KP        1.03     
!   LA        0.97     MA        0.99     MC        1.04     MK        0.97     
!   NL        0.99     NY        0.95     OV        1.03     PT        1.00     
!   SC        0.98     TS        1.14     WF        1.00     WZ        1.09     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        1.00*    GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.07     MC        1.15     MK        1.00*    
!   NL        1.00     NY        0.93     OV        1.00*    PT        1.00*    
!   SC        1.00     TS        0.96     WF        1.01     WZ        1.07     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.97     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.94     KP        0.98     
!   LA        0.97     MA        3.31     MC        0.89     MK        0.90     
!   NL        0.96     NY        0.98     OV        0.97     PT        0.88     
!   SC        0.98     TS        0.94     WF        1.01     WZ        1.03     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.01     GG        1.00*    
!   HH        1.37     HN        1.03     KK        0.96     KP        1.01     
!   LA        1.00     MA        0.93     MC        0.90     MK        0.96     
!   NL        0.99     NY        0.98     OV        1.01     PT        1.01     
!   SC        0.97     TS        1.10     WF        1.00     WZ        1.12     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.18     MC        1.71     MK        1.00*    
!   NL        1.00     NY        0.99     OV        1.00*    PT        1.00*    
!   SC        1.01     TS        0.90     WF        1.00     WZ        1.08     
! 
! 
! Fit before self-cal, rms=0.410669Jy  sigma=0.002841
! Fit after  self-cal, rms=0.367591Jy  sigma=0.002268
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.338 mas, bmaj=3.584 mas, bpa=-7.748 degrees
! Estimated noise=316.437 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0116994 Jy
! Component: 100  -  total flux cleaned = -0.0116887 Jy
! Component: 150  -  total flux cleaned = -0.0119861 Jy
! Component: 200  -  total flux cleaned = -0.0124823 Jy
! Total flux subtracted in 200 components = -0.0124823 Jy
! Clean residual min=-0.016602 max=0.014649 Jy/beam
! Clean residual mean=-0.000538 rms=0.004040 Jy/beam
! Combined flux in latest and established models = 3.16129 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 33 components and 3.16129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366992Jy  sigma=0.002261
! Fit after  self-cal, rms=0.367434Jy  sigma=0.002261
! 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.367434Jy  sigma=0.002261
! Fit after  self-cal, rms=0.305424Jy  sigma=0.001675
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.337 mas, bmaj=3.593 mas, bpa=-7.566 degrees
! Estimated noise=316.884 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00358765 Jy
! Component: 100  -  total flux cleaned = 0.00359117 Jy
! Component: 150  -  total flux cleaned = 0.00345843 Jy
! Component: 200  -  total flux cleaned = 0.00324044 Jy
! Total flux subtracted in 200 components = 0.00324044 Jy
! Clean residual min=-0.008855 max=0.003804 Jy/beam
! Clean residual mean=-0.000139 rms=0.000927 Jy/beam
! Combined flux in latest and established models = 3.16453 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 34 components and 3.16453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305220Jy  sigma=0.001674
! Fit after  self-cal, rms=0.305433Jy  sigma=0.001673
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 = -5.09135e-05 Jy
! Component: 100  -  total flux cleaned = -0.000305889 Jy
! Component: 150  -  total flux cleaned = -0.00046671 Jy
! Component: 200  -  total flux cleaned = -0.000542258 Jy
! Total flux subtracted in 200 components = -0.000542258 Jy
! Clean residual min=-0.008358 max=0.003783 Jy/beam
! Clean residual mean=-0.000134 rms=0.000918 Jy/beam
! Combined flux in latest and established models = 3.16399 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 35 components and 3.16399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305388Jy  sigma=0.001673
! Fit after  self-cal, rms=0.305383Jy  sigma=0.001673
! 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.305383Jy  sigma=0.001673
! Fit after  self-cal, rms=0.305660Jy  sigma=0.001666
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.334 mas, bmaj=3.596 mas, bpa=-7.658 degrees
! Estimated noise=316.981 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00185409 Jy
! Component: 100  -  total flux cleaned = 0.00185629 Jy
! Component: 150  -  total flux cleaned = 0.0018463 Jy
! Component: 200  -  total flux cleaned = 0.00174967 Jy
! Total flux subtracted in 200 components = 0.00174967 Jy
! Clean residual min=-0.008602 max=0.003701 Jy/beam
! Clean residual mean=-0.000132 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 3.16574 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 35 components and 3.16574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305504Jy  sigma=0.001665
! Fit after  self-cal, rms=0.305505Jy  sigma=0.001665
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 = -3.61464e-05 Jy
! Component: 100  -  total flux cleaned = -0.000191312 Jy
! Component: 150  -  total flux cleaned = -0.000196105 Jy
! Component: 200  -  total flux cleaned = -0.00026683 Jy
! Total flux subtracted in 200 components = -0.00026683 Jy
! Clean residual min=-0.008291 max=0.003683 Jy/beam
! Clean residual mean=-0.000129 rms=0.000869 Jy/beam
! Combined flux in latest and established models = 3.16547 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 36 components and 3.16547 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305463Jy  sigma=0.001665
! Fit after  self-cal, rms=0.305461Jy  sigma=0.001665
! 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.305461Jy  sigma=0.001665
! Fit after  self-cal, rms=0.305355Jy  sigma=0.001664
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.144 mas, bmaj=8.436 mas, bpa=-52.74 degrees
! Estimated noise=479.426 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00376357 Jy
! Component: 100  -  total flux cleaned = -0.00492596 Jy
! Component: 150  -  total flux cleaned = -0.00504131 Jy
! Component: 200  -  total flux cleaned = -0.00510491 Jy
! Total flux subtracted in 200 components = -0.00510491 Jy
! Clean residual min=-0.003435 max=0.002992 Jy/beam
! Clean residual mean=-0.000213 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 3.16037 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 38 components and 3.16037 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305381Jy  sigma=0.001664
! Fit after  self-cal, rms=0.305375Jy  sigma=0.001664
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.000188771 Jy
! Component: 100  -  total flux cleaned = -0.000187797 Jy
! Component: 150  -  total flux cleaned = -0.000187887 Jy
! Component: 200  -  total flux cleaned = -0.000208447 Jy
! Total flux subtracted in 200 components = -0.000208447 Jy
! Clean residual min=-0.003445 max=0.002997 Jy/beam
! Clean residual mean=-0.000206 rms=0.001077 Jy/beam
! Combined flux in latest and established models = 3.16016 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 39 components and 3.16016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305383Jy  sigma=0.001664
! Fit after  self-cal, rms=0.305380Jy  sigma=0.001664
! 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.333 mas, bmaj=3.598 mas, bpa=-7.704 degrees
! Estimated noise=317.106 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.333 x 3.598 at -7.704 degrees (North through East)
! Clean map  min=-0.0035032  max=2.7616 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.305380Jy  sigma=0.001664
! Fit after  self-cal, rms=0.283148Jy  sigma=0.001380
! Inverting map and beam 
! Estimated beam: bmin=2.334 mas, bmaj=3.6 mas, bpa=-7.744 degrees
! Estimated noise=317.011 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00172033 Jy
! Component: 100  -  total flux cleaned = 0.00172915 Jy
! Component: 150  -  total flux cleaned = 0.00173067 Jy
! Component: 200  -  total flux cleaned = 0.00173168 Jy
! Total flux subtracted in 200 components = 0.00173168 Jy
! Clean residual min=-0.007878 max=0.002586 Jy/beam
! Clean residual mean=-0.000158 rms=0.000713 Jy/beam
! Combined flux in latest and established models = 3.16189 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 39 components and 3.16189 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283057Jy  sigma=0.001379
! Fit after  self-cal, rms=0.283055Jy  sigma=0.001379
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000118083 Jy
! Component: 100  -  total flux cleaned = 0.000117697 Jy
! Component: 150  -  total flux cleaned = 0.000113464 Jy
! Component: 200  -  total flux cleaned = 4.2785e-05 Jy
! Total flux subtracted in 200 components = 4.2785e-05 Jy
! Clean residual min=-0.007740 max=0.002478 Jy/beam
! Clean residual mean=-0.000159 rms=0.000709 Jy/beam
! Combined flux in latest and established models = 3.16193 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 39 components and 3.16193 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283019Jy  sigma=0.001379
! Fit after  self-cal, rms=0.283016Jy  sigma=0.001379
! 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.283016Jy  sigma=0.001379
! Fit after  self-cal, rms=0.282830Jy  sigma=0.001378
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.934 mas, bmaj=2.822 mas, bpa=-3.812 degrees
! Estimated noise=626.992 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.05892 Jy
! Component: 100  -  total flux cleaned = 2.56731 Jy
! Component: 150  -  total flux cleaned = 2.80024 Jy
! Component: 200  -  total flux cleaned = 2.92363 Jy
! Total flux subtracted in 200 components = 2.92363 Jy
! Clean residual min=-0.020799 max=0.065098 Jy/beam
! Clean residual mean=0.000104 rms=0.003974 Jy/beam
! Combined flux in latest and established models = 2.92363 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 19 model components to the UV plane model.
! The established model now contains 19 components and 2.92363 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.333 mas, bmaj=3.6 mas, bpa=-7.765 degrees
! Estimated noise=317.037 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.112856 Jy
! Component: 100  -  total flux cleaned = 0.172021 Jy
! Component: 150  -  total flux cleaned = 0.204437 Jy
! Component: 200  -  total flux cleaned = 0.222702 Jy
! Total flux subtracted in 200 components = 0.222702 Jy
! Clean residual min=-0.005961 max=0.009864 Jy/beam
! Clean residual mean=0.000018 rms=0.000964 Jy/beam
! Combined flux in latest and established models = 3.14633 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 37 components and 3.14633 Jy
! Inverting map 
! Added new window around map position (-0.5, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00674413 Jy
! Component: 100  -  total flux cleaned = 0.00937863 Jy
! Component: 150  -  total flux cleaned = 0.0107041 Jy
! Component: 200  -  total flux cleaned = 0.0116069 Jy
! Total flux subtracted in 200 components = 0.0116069 Jy
! Clean residual min=-0.004878 max=0.004734 Jy/beam
! Clean residual mean=-0.000102 rms=0.000805 Jy/beam
! Combined flux in latest and established models = 3.15793 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 41 components and 3.15793 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.144 mas, bmaj=8.438 mas, bpa=-52.48 degrees
! Estimated noise=479.132 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.83389e-05 Jy
! Component: 100  -  total flux cleaned = -1.16322e-05 Jy
! Component: 150  -  total flux cleaned = -0.000127366 Jy
! Component: 200  -  total flux cleaned = -0.000227448 Jy
! Total flux subtracted in 200 components = -0.000227448 Jy
! Clean residual min=-0.002712 max=0.002582 Jy/beam
! Clean residual mean=-0.000346 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 3.15771 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 = -8.70692e-05 Jy
! Component: 100  -  total flux cleaned = -0.000184886 Jy
! Component: 150  -  total flux cleaned = -0.000250775 Jy
! Component: 200  -  total flux cleaned = -0.000329526 Jy
! Total flux subtracted in 200 components = -0.000329526 Jy
! Clean residual min=-0.002707 max=0.002561 Jy/beam
! Clean residual mean=-0.000335 rms=0.000901 Jy/beam
! Combined flux in latest and established models = 3.15738 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 50 components and 3.15738 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.333 mas, bmaj=3.6 mas, bpa=-7.765 degrees
! Estimated noise=317.037 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000967834 Jy
! Component: 100  -  total flux cleaned = -0.000442886 Jy
! Component: 150  -  total flux cleaned = -0.000439836 Jy
! Component: 200  -  total flux cleaned = -0.00043474 Jy
! Total flux subtracted in 200 components = -0.00043474 Jy
! Clean residual min=-0.004850 max=0.004140 Jy/beam
! Clean residual mean=-0.000092 rms=0.000757 Jy/beam
! Combined flux in latest and established models = 3.15694 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 56 components and 3.15694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283915Jy  sigma=0.001386
! Fit after  self-cal, rms=0.283884Jy  sigma=0.001386
wmodel J0555+3948_S_2001_04_09_pus_map.mod
! Writing 56 model components to file: J0555+3948_S_2001_04_09_pus_map.mod
wobs J0555+3948_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0555+3948_S_2001_04_09_pus_uvs.fits
wwins J0555+3948_S_2001_04_09_pus_map.win
! wwins: Wrote 2 windows to J0555+3948_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 = -5.29438e-05 Jy
! Component: 100  -  total flux cleaned = -0.00035812 Jy
! Component: 150  -  total flux cleaned = -0.000505597 Jy
! Component: 200  -  total flux cleaned = -0.000648943 Jy
! Component: 250  -  total flux cleaned = -0.000718781 Jy
! Component: 300  -  total flux cleaned = -0.000786991 Jy
! Component: 350  -  total flux cleaned = -0.000853039 Jy
! Component: 400  -  total flux cleaned = -0.000917563 Jy
! Component: 450  -  total flux cleaned = -0.000980832 Jy
! Component: 500  -  total flux cleaned = -0.000981034 Jy
! Component: 550  -  total flux cleaned = -0.00104234 Jy
! Component: 600  -  total flux cleaned = -0.00110292 Jy
! Component: 650  -  total flux cleaned = -0.00110262 Jy
! Component: 700  -  total flux cleaned = -0.00116188 Jy
! Component: 750  -  total flux cleaned = -0.00122031 Jy
! Component: 800  -  total flux cleaned = -0.00127746 Jy
! Component: 850  -  total flux cleaned = -0.00127806 Jy
! Component: 900  -  total flux cleaned = -0.00139044 Jy
! Component: 950  -  total flux cleaned = -0.00144603 Jy
! Component: 1000  -  total flux cleaned = -0.00150111 Jy
! Component: 1050  -  total flux cleaned = -0.00155514 Jy
! Component: 1100  -  total flux cleaned = -0.00166305 Jy
! Component: 1150  -  total flux cleaned = -0.00182155 Jy
! Component: 1200  -  total flux cleaned = -0.0018731 Jy
! Component: 1250  -  total flux cleaned = -0.00192471 Jy
! Component: 1300  -  total flux cleaned = -0.00197588 Jy
! Component: 1350  -  total flux cleaned = -0.00207737 Jy
! Component: 1400  -  total flux cleaned = -0.0021276 Jy
! Component: 1450  -  total flux cleaned = -0.00217734 Jy
! Component: 1500  -  total flux cleaned = -0.00222617 Jy
! Component: 1550  -  total flux cleaned = -0.00217751 Jy
! Component: 1600  -  total flux cleaned = -0.00227487 Jy
! Component: 1650  -  total flux cleaned = -0.00227503 Jy
! Component: 1700  -  total flux cleaned = -0.00237059 Jy
! Component: 1750  -  total flux cleaned = -0.00241814 Jy
! Component: 1800  -  total flux cleaned = -0.00246461 Jy
! Component: 1850  -  total flux cleaned = -0.00255746 Jy
! Component: 1900  -  total flux cleaned = -0.00260378 Jy
! Component: 1950  -  total flux cleaned = -0.00274172 Jy
! Component: 2000  -  total flux cleaned = -0.00278683 Jy
! Total flux subtracted in 2048 components = -0.00283211 Jy
! Clean residual min=-0.002260 max=0.002261 Jy/beam
! Clean residual mean=-0.000064 rms=0.000675 Jy/beam
! Combined flux in latest and established models = 3.15411 Jy
keep
! Adding 55 model components to the UV plane model.
! The established model now contains 100 components and 3.15411 Jy
![Exited script file: muppet]
wmap "J0555+3948_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.333 x 3.6 at -7.765 degrees (North through East)
! Clean map  min=-0.0026302  max=2.7635 Jy/beam
! Writing clean map to FITS file: J0555+3948_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 2.76354 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000675265 
device "J0555+3948_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0733043 0.0733043 0.146609 0.293217 0.586435 1.17287 2.34574 4.69148 9.38296 18.7659 37.5318 75.0637
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.763 
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.333 x 3.6 at -7.765 degrees (North through East)
! Clean map  min=-0.0026302  max=2.7635 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 15:55:40 2007