! Started logfile: J0555+3948_S_2000_12_04_pus_uvs.log on Wed Oct 17 16:58:23 2007
obs J0555+3948_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0555+3948_S_2000_12_04_pus_uva.fits
! AN table 1: 87 integrations on 190 of 190 possible baselines.
! AN table 2: 358 integrations on 190 of 190 possible baselines.
! AN table 3: 134 integrations on 190 of 190 possible baselines.
! AN table 4: 94 integrations on 190 of 190 possible baselines.
! AN table 5: 37 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.174403 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2169 lines of history.
! 
! Reading 94108 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_2000_12_04_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 1229 telescope corrections were flagged in sub-array 1.
!  A total of 4146 telescope corrections were flagged in sub-array 2.
!  A total of 1759 telescope corrections were flagged in sub-array 3.
!  A total of 1491 telescope corrections were flagged in sub-array 4.
!  A total of 525 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1229 telescope corrections were flagged in sub-array 1.
!  A total of 4146 telescope corrections were flagged in sub-array 2.
!  A total of 1759 telescope corrections were flagged in sub-array 3.
!  A total of 1491 telescope corrections were flagged in sub-array 4.
!  A total of 525 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1229 telescope corrections were flagged in sub-array 1.
!  A total of 4146 telescope corrections were flagged in sub-array 2.
!  A total of 1764 telescope corrections were flagged in sub-array 3.
!  A total of 1491 telescope corrections were flagged in sub-array 4.
!  A total of 525 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1229 telescope corrections were flagged in sub-array 1.
!  A total of 4146 telescope corrections were flagged in sub-array 2.
!  A total of 1759 telescope corrections were flagged in sub-array 3.
!  A total of 1491 telescope corrections were flagged in sub-array 4.
!  A total of 525 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=2.025976Jy  sigma=0.017696
! Fit after  self-cal, rms=1.714491Jy  sigma=0.015414
! 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.869 mas, bmaj=2.724 mas, bpa=-5.024 degrees
! Estimated noise=623.867 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 = 1.91706 Jy
! Component: 100  -  total flux cleaned = 2.42259 Jy
! Total flux subtracted in 100 components = 2.42259 Jy
! Clean residual min=-0.044921 max=0.223893 Jy/beam
! Clean residual mean=0.000058 rms=0.012451 Jy/beam
! Combined flux in latest and established models = 2.42259 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 2.42259 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.755212Jy  sigma=0.006647
! Fit after  self-cal, rms=0.755153Jy  sigma=0.006647
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.248784 Jy
! Component: 100  -  total flux cleaned = 0.396768 Jy
! Total flux subtracted in 100 components = 0.396768 Jy
! Clean residual min=-0.035533 max=0.077836 Jy/beam
! Clean residual mean=-0.000056 rms=0.008496 Jy/beam
! Combined flux in latest and established models = 2.81936 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 15 components and 2.81936 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.674665Jy  sigma=0.005686
! Fit after  self-cal, rms=0.674600Jy  sigma=0.005686
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0957413 Jy
! Component: 100  -  total flux cleaned = 0.159587 Jy
! Total flux subtracted in 100 components = 0.159587 Jy
! Clean residual min=-0.032020 max=0.038900 Jy/beam
! Clean residual mean=-0.000101 rms=0.007665 Jy/beam
! Combined flux in latest and established models = 2.97894 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 2.97894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.669876Jy  sigma=0.005564
! Fit after  self-cal, rms=0.669858Jy  sigma=0.005564
! 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.255 mas, bmaj=3.641 mas, bpa=-7.439 degrees
! Estimated noise=290.405 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.000902664 Jy
! Component: 100  -  total flux cleaned = 0.00460978 Jy
! Component: 150  -  total flux cleaned = 0.00732434 Jy
! Component: 200  -  total flux cleaned = 0.00790982 Jy
! Total flux subtracted in 200 components = 0.00790982 Jy
! Clean residual min=-0.039964 max=0.029951 Jy/beam
! Clean residual mean=-0.001895 rms=0.008988 Jy/beam
! Combined flux in latest and established models = 2.98685 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 25 components and 2.98685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.667120Jy  sigma=0.005553
! Fit after  self-cal, rms=0.667121Jy  sigma=0.005553
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.94     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.95     KP        0.90     
!   LA        1.00     MA        1.00*    MC        1.07     MK        0.96     
!   NL        0.92     NY        0.98     OV        0.94     PT        0.96     
!   SC        1.02     TS        1.11     WF        1.00     WZ        1.04     
! 
!  A total of 246 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.17     HN        1.01     KK        0.98     KP        0.99     
!   LA        1.04     MA        2.13     MC        0.97     MK        0.99     
!   NL        0.98     NY        0.98     OV        0.99     PT        1.00     
!   SC        1.02     TS        1.00*    WF        1.23     WZ        1.02     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.95     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.98     KP        0.96     
!   LA        1.00     MA        1.82     MC        0.98     MK        0.95     
!   NL        0.96     NY        0.99     OV        0.94     PT        0.97     
!   SC        1.03     TS        1.07     WF        0.98     WZ        1.00     
! 
!  A total of 102 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.23     HN        1.01     KK        0.99     KP        1.08     
!   LA        1.03     MA        0.48     MC        1.04     MK        0.97     
!   NL        0.97     NY        1.00     OV        1.00*    PT        1.01     
!   SC        1.00*    TS        1.05     WF        1.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.14     
!   LA        1.14     MA        0.74     MC        1.10     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.04     PT        1.10     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.13     
! 
! 
! Correcting IF 2.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.94     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.03     KP        0.91     
!   LA        0.96     MA        1.00*    MC        1.01     MK        0.96     
!   NL        0.89     NY        0.97     OV        0.91     PT        0.96     
!   SC        0.99     TS        1.13     WF        0.99     WZ        1.02     
! 
!  A total of 246 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        0.98     GG        1.00*    
!   HH        1.17     HN        1.00     KK        1.03     KP        0.98     
!   LA        1.00     MA        1.25     MC        1.00     MK        1.00     
!   NL        0.94     NY        1.00     OV        0.95     PT        1.01     
!   SC        0.98     TS        1.00*    WF        1.24     WZ        1.06     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.96     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.96     KP        0.94     
!   LA        0.96     MA        1.07     MC        1.00     MK        0.96     
!   NL        0.93     NY        0.97     OV        0.91     PT        0.97     
!   SC        1.00     TS        1.07     WF        0.99     WZ        0.98     
! 
!  A total of 102 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.01     GC        1.06     GG        1.00*    
!   HH        1.32     HN        0.99     KK        0.96     KP        0.99     
!   LA        0.99     MA        1.50     MC        1.57     MK        0.99     
!   NL        0.94     NY        0.99     OV        1.00*    PT        1.01     
!   SC        1.00*    TS        1.03     WF        2.17     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.08     
!   LA        1.09     MA        2.23     MC        1.19     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00     PT        1.12     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.12     
! 
! 
! Correcting IF 3.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.13     FD        1.05     GC        0.84     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.98     KP        0.94     
!   LA        5.38     MA        1.00*    MC        0.99     MK        0.90     
!   NL        2.84     NY        0.94     OV        0.99     PT        3.20     
!   SC        0.99     TS        1.11     WF        1.14     WZ        0.88     
! 
!  A total of 246 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.91     GC        0.94     GG        1.00*    
!   HH        1.01     HN        1.02     KK        1.23     KP        1.22     
!   LA        1.03     MA        0.91     MC        1.36     MK        1.00     
!   NL        1.19     NY        0.90     OV        1.08     PT        1.17     
!   SC        0.98     TS        1.00*    WF        1.05     WZ        0.85     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.00     GC        0.92     GG        1.00*    
!   HH        1.00*    HN        1.23     KK        0.89     KP        1.00     
!   LA        1.02     MA        1.18     MC        0.90     MK        0.90     
!   NL        1.02     NY        0.92     OV        0.90     PT        0.88     
!   SC        0.98     TS        1.05     WF        0.93     WZ        0.81     
! 
!  A total of 102 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.92     GC        0.79     GG        1.00*    
!   HH        1.28     HN        0.97     KK        0.88     KP        1.04     
!   LA        1.00     MA        0.92     MC        2.18     MK        0.94     
!   NL        1.02     NY        1.21     OV        1.00*    PT        1.00     
!   SC        1.00*    TS        0.99     WF        1.95     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.15     
!   LA        1.15     MA        0.96     MC        0.85     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.90     PT        1.13     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.94     
! 
! 
! Correcting IF 4.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        0.92     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.00     KP        0.90     
!   LA        0.93     MA        1.00*    MC        0.89     MK        0.95     
!   NL        0.90     NY        0.96     OV        0.92     PT        1.07     
!   SC        1.02     TS        1.11     WF        0.96     WZ        1.03     
! 
!  A total of 246 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.97     GC        1.04     GG        1.00*    
!   HH        1.08     HN        0.98     KK        1.00     KP        0.95     
!   LA        0.97     MA        0.99     MC        0.99     MK        0.97     
!   NL        0.95     NY        0.97     OV        0.97     PT        0.93     
!   SC        1.00     TS        1.00*    WF        1.07     WZ        1.02     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.94     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.93     KP        0.92     
!   LA        0.94     MA        1.48     MC        1.07     MK        0.93     
!   NL        0.94     NY        0.97     OV        0.92     PT        0.92     
!   SC        1.03     TS        1.06     WF        0.96     WZ        1.00     
! 
!  A total of 102 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.98     GC        1.04     GG        1.00*    
!   HH        1.23     HN        0.97     KK        0.94     KP        0.96     
!   LA        0.97     MA        1.60     MC        1.17     MK        0.97     
!   NL        0.95     NY        0.98     OV        1.00*    PT        0.98     
!   SC        1.00*    TS        1.03     WF        1.16     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.06     
!   LA        1.06     MA        0.88     MC        0.77     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.01     PT        1.09     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.12     
! 
! 
! Fit before self-cal, rms=0.667121Jy  sigma=0.005553
! Fit after  self-cal, rms=0.701106Jy  sigma=0.004640
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.281 mas, bmaj=3.691 mas, bpa=-8.17 degrees
! Estimated noise=292.424 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.0143634 Jy
! Component: 100  -  total flux cleaned = -0.0171422 Jy
! Component: 150  -  total flux cleaned = -0.017713 Jy
! Component: 200  -  total flux cleaned = -0.0182291 Jy
! Total flux subtracted in 200 components = -0.0182291 Jy
! Clean residual min=-0.023189 max=0.023162 Jy/beam
! Clean residual mean=-0.000543 rms=0.005771 Jy/beam
! Combined flux in latest and established models = 2.96862 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 27 components and 2.96862 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.700450Jy  sigma=0.004639
! Fit after  self-cal, rms=0.702551Jy  sigma=0.004636
! 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.702551Jy  sigma=0.004636
! Fit after  self-cal, rms=0.642574Jy  sigma=0.004194
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.284 mas, bmaj=3.697 mas, bpa=-7.642 degrees
! Estimated noise=292.644 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00098697 Jy
! Component: 100  -  total flux cleaned = -0.000974956 Jy
! Component: 150  -  total flux cleaned = -0.000789847 Jy
! Component: 200  -  total flux cleaned = -0.000803017 Jy
! Total flux subtracted in 200 components = -0.000803017 Jy
! Clean residual min=-0.011489 max=0.006011 Jy/beam
! Clean residual mean=-0.000139 rms=0.001598 Jy/beam
! Combined flux in latest and established models = 2.96782 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 28 components and 2.96782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.642375Jy  sigma=0.004193
! Fit after  self-cal, rms=0.642532Jy  sigma=0.004192
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.000103828 Jy
! Component: 100  -  total flux cleaned = -1.93215e-05 Jy
! Component: 150  -  total flux cleaned = -0.000117035 Jy
! Component: 200  -  total flux cleaned = -0.000310396 Jy
! Total flux subtracted in 200 components = -0.000310396 Jy
! Clean residual min=-0.011233 max=0.006038 Jy/beam
! Clean residual mean=-0.000137 rms=0.001585 Jy/beam
! Combined flux in latest and established models = 2.96751 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 29 components and 2.96751 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.642477Jy  sigma=0.004192
! Fit after  self-cal, rms=0.642471Jy  sigma=0.004192
! 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.642471Jy  sigma=0.004192
! Fit after  self-cal, rms=0.643156Jy  sigma=0.004191
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.284 mas, bmaj=3.7 mas, bpa=-7.508 degrees
! Estimated noise=292.814 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00011432 Jy
! Component: 100  -  total flux cleaned = -0.000105724 Jy
! Component: 150  -  total flux cleaned = -0.000101053 Jy
! Component: 200  -  total flux cleaned = -0.000105899 Jy
! Total flux subtracted in 200 components = -0.000105899 Jy
! Clean residual min=-0.011562 max=0.006028 Jy/beam
! Clean residual mean=-0.000135 rms=0.001552 Jy/beam
! Combined flux in latest and established models = 2.9674 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 29 components and 2.9674 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.643062Jy  sigma=0.004191
! Fit after  self-cal, rms=0.643063Jy  sigma=0.004191
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.000189647 Jy
! Component: 100  -  total flux cleaned = -0.000381428 Jy
! Component: 150  -  total flux cleaned = -0.000475 Jy
! Component: 200  -  total flux cleaned = -0.000647658 Jy
! Total flux subtracted in 200 components = -0.000647658 Jy
! Clean residual min=-0.010592 max=0.006054 Jy/beam
! Clean residual mean=-0.000131 rms=0.001541 Jy/beam
! Combined flux in latest and established models = 2.96676 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 29 components and 2.96676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.643029Jy  sigma=0.004191
! Fit after  self-cal, rms=0.643028Jy  sigma=0.004191
! 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.643028Jy  sigma=0.004191
! Fit after  self-cal, rms=0.643553Jy  sigma=0.004190
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.643 mas, bmaj=9.199 mas, bpa=24.97 degrees
! Estimated noise=424.154 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0042963 Jy
! Component: 100  -  total flux cleaned = -0.00569765 Jy
! Component: 150  -  total flux cleaned = -0.00600789 Jy
! Component: 200  -  total flux cleaned = -0.00604484 Jy
! Total flux subtracted in 200 components = -0.00604484 Jy
! Clean residual min=-0.006251 max=0.006984 Jy/beam
! Clean residual mean=-0.000273 rms=0.002228 Jy/beam
! Combined flux in latest and established models = 2.96071 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 35 components and 2.96071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.643582Jy  sigma=0.004190
! Fit after  self-cal, rms=0.643584Jy  sigma=0.004190
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.000216601 Jy
! Component: 100  -  total flux cleaned = -0.000215574 Jy
! Component: 150  -  total flux cleaned = -0.000235621 Jy
! Component: 200  -  total flux cleaned = -0.000253988 Jy
! Total flux subtracted in 200 components = -0.000253988 Jy
! Clean residual min=-0.006247 max=0.006994 Jy/beam
! Clean residual mean=-0.000268 rms=0.002225 Jy/beam
! Combined flux in latest and established models = 2.96046 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 36 components and 2.96046 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.643589Jy  sigma=0.004190
! Fit after  self-cal, rms=0.643587Jy  sigma=0.004190
! 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.284 mas, bmaj=3.702 mas, bpa=-7.422 degrees
! Estimated noise=292.988 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.284 x 3.702 at -7.422 degrees (North through East)
! Clean map  min=-0.005352  max=2.5716 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.643587Jy  sigma=0.004190
! Fit after  self-cal, rms=0.668222Jy  sigma=0.002576
! Inverting map and beam 
! Estimated beam: bmin=2.287 mas, bmaj=3.706 mas, bpa=-7.505 degrees
! Estimated noise=292.926 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000958135 Jy
! Component: 100  -  total flux cleaned = -0.00107636 Jy
! Component: 150  -  total flux cleaned = -0.00128787 Jy
! Component: 200  -  total flux cleaned = -0.00148694 Jy
! Total flux subtracted in 200 components = -0.00148694 Jy
! Clean residual min=-0.010534 max=0.004044 Jy/beam
! Clean residual mean=-0.000148 rms=0.001057 Jy/beam
! Combined flux in latest and established models = 2.95897 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 36 components and 2.95897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.668170Jy  sigma=0.002576
! Fit after  self-cal, rms=0.668177Jy  sigma=0.002576
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00017743 Jy
! Component: 100  -  total flux cleaned = -0.000262626 Jy
! Component: 150  -  total flux cleaned = -0.0002664 Jy
! Component: 200  -  total flux cleaned = -0.000350335 Jy
! Total flux subtracted in 200 components = -0.000350335 Jy
! Clean residual min=-0.010174 max=0.004034 Jy/beam
! Clean residual mean=-0.000145 rms=0.001045 Jy/beam
! Combined flux in latest and established models = 2.95862 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 38 components and 2.95862 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.668148Jy  sigma=0.002575
! Fit after  self-cal, rms=0.668149Jy  sigma=0.002575
! 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.668149Jy  sigma=0.002575
! Fit after  self-cal, rms=0.668595Jy  sigma=0.002575
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.897 mas, bmaj=2.778 mas, bpa=-5.812 degrees
! Estimated noise=626.443 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.91194 Jy
! Component: 100  -  total flux cleaned = 2.38993 Jy
! Component: 150  -  total flux cleaned = 2.61277 Jy
! Component: 200  -  total flux cleaned = 2.73975 Jy
! Total flux subtracted in 200 components = 2.73975 Jy
! Clean residual min=-0.013319 max=0.066034 Jy/beam
! Clean residual mean=0.000044 rms=0.003827 Jy/beam
! Combined flux in latest and established models = 2.73974 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 14 model components to the UV plane model.
! The established model now contains 14 components and 2.73974 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.288 mas, bmaj=3.708 mas, bpa=-7.459 degrees
! Estimated noise=292.968 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.111059 Jy
! Component: 100  -  total flux cleaned = 0.165184 Jy
! Component: 150  -  total flux cleaned = 0.192826 Jy
! Component: 200  -  total flux cleaned = 0.205064 Jy
! Total flux subtracted in 200 components = 0.205064 Jy
! Clean residual min=-0.008265 max=0.009438 Jy/beam
! Clean residual mean=-0.000068 rms=0.001186 Jy/beam
! Combined flux in latest and established models = 2.94481 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 24 components and 2.94481 Jy
! Inverting map 
! Added new window around map position (-2, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0019551 Jy
! Component: 100  -  total flux cleaned = 0.00319702 Jy
! Component: 150  -  total flux cleaned = 0.00434099 Jy
! Component: 200  -  total flux cleaned = 0.00570842 Jy
! Total flux subtracted in 200 components = 0.00570842 Jy
! Clean residual min=-0.009018 max=0.005382 Jy/beam
! Clean residual mean=-0.000102 rms=0.001085 Jy/beam
! Combined flux in latest and established models = 2.95052 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 26 components and 2.95052 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=7.647 mas, bmaj=9.203 mas, bpa=24.95 degrees
! Estimated noise=423.118 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000330958 Jy
! Component: 100  -  total flux cleaned = 0.000583212 Jy
! Component: 150  -  total flux cleaned = 0.000774209 Jy
! Component: 200  -  total flux cleaned = 0.000736817 Jy
! Total flux subtracted in 200 components = 0.000736817 Jy
! Clean residual min=-0.004983 max=0.003781 Jy/beam
! Clean residual mean=-0.000336 rms=0.001507 Jy/beam
! Combined flux in latest and established models = 2.95125 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 = -3.22731e-05 Jy
! Component: 100  -  total flux cleaned = -9.21387e-05 Jy
! Component: 150  -  total flux cleaned = -0.000148489 Jy
! Component: 200  -  total flux cleaned = -0.000199435 Jy
! Total flux subtracted in 200 components = -0.000199435 Jy
! Clean residual min=-0.004984 max=0.003787 Jy/beam
! Clean residual mean=-0.000332 rms=0.001503 Jy/beam
! Combined flux in latest and established models = 2.95105 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 34 components and 2.95105 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.288 mas, bmaj=3.708 mas, bpa=-7.459 degrees
! Estimated noise=292.968 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000853695 Jy
! Component: 100  -  total flux cleaned = -0.000255788 Jy
! Component: 150  -  total flux cleaned = 0.000294244 Jy
! Component: 200  -  total flux cleaned = 0.000551485 Jy
! Total flux subtracted in 200 components = 0.000551485 Jy
! Clean residual min=-0.009902 max=0.004698 Jy/beam
! Clean residual mean=-0.000109 rms=0.001037 Jy/beam
! Combined flux in latest and established models = 2.95161 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 38 components and 2.95161 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.669318Jy  sigma=0.002579
! Fit after  self-cal, rms=0.669298Jy  sigma=0.002578
wmodel J0555+3948_S_2000_12_04_pus_map.mod
! Writing 38 model components to file: J0555+3948_S_2000_12_04_pus_map.mod
wobs J0555+3948_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0555+3948_S_2000_12_04_pus_uvs.fits
wwins J0555+3948_S_2000_12_04_pus_map.win
! wwins: Wrote 2 windows to J0555+3948_S_2000_12_04_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.00350307 Jy
! Component: 100  -  total flux cleaned = -0.00331022 Jy
! Component: 150  -  total flux cleaned = -0.00312681 Jy
! Component: 200  -  total flux cleaned = -0.00304137 Jy
! Component: 250  -  total flux cleaned = -0.00295693 Jy
! Component: 300  -  total flux cleaned = -0.00287407 Jy
! Component: 350  -  total flux cleaned = -0.00270939 Jy
! Component: 400  -  total flux cleaned = -0.00262769 Jy
! Component: 450  -  total flux cleaned = -0.00254673 Jy
! Component: 500  -  total flux cleaned = -0.00239012 Jy
! Component: 550  -  total flux cleaned = -0.00231345 Jy
! Component: 600  -  total flux cleaned = -0.0023133 Jy
! Component: 650  -  total flux cleaned = -0.00238736 Jy
! Component: 700  -  total flux cleaned = -0.0023871 Jy
! Component: 750  -  total flux cleaned = -0.00238766 Jy
! Component: 800  -  total flux cleaned = -0.0025315 Jy
! Component: 850  -  total flux cleaned = -0.00253151 Jy
! Component: 900  -  total flux cleaned = -0.00260174 Jy
! Component: 950  -  total flux cleaned = -0.00267052 Jy
! Component: 1000  -  total flux cleaned = -0.00267098 Jy
! Component: 1050  -  total flux cleaned = -0.00273835 Jy
! Component: 1100  -  total flux cleaned = -0.0029378 Jy
! Component: 1150  -  total flux cleaned = -0.00300303 Jy
! Component: 1200  -  total flux cleaned = -0.00313328 Jy
! Component: 1250  -  total flux cleaned = -0.00332618 Jy
! Component: 1300  -  total flux cleaned = -0.00345332 Jy
! Component: 1350  -  total flux cleaned = -0.00364237 Jy
! Component: 1400  -  total flux cleaned = -0.00382944 Jy
! Component: 1450  -  total flux cleaned = -0.00395297 Jy
! Component: 1500  -  total flux cleaned = -0.00407555 Jy
! Component: 1550  -  total flux cleaned = -0.0043174 Jy
! Component: 1600  -  total flux cleaned = -0.00443591 Jy
! Component: 1650  -  total flux cleaned = -0.00461344 Jy
! Component: 1700  -  total flux cleaned = -0.00478983 Jy
! Component: 1750  -  total flux cleaned = -0.00490641 Jy
! Component: 1800  -  total flux cleaned = -0.00507968 Jy
! Component: 1850  -  total flux cleaned = -0.0052504 Jy
! Component: 1900  -  total flux cleaned = -0.00536377 Jy
! Component: 1950  -  total flux cleaned = -0.00553218 Jy
! Component: 2000  -  total flux cleaned = -0.005643 Jy
! Total flux subtracted in 2048 components = -0.00575302 Jy
! Clean residual min=-0.003365 max=0.002752 Jy/beam
! Clean residual mean=-0.000074 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 2.94585 Jy
keep
! Adding 60 model components to the UV plane model.
! The established model now contains 88 components and 2.94585 Jy
![Exited script file: muppet]
wmap "J0555+3948_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.288 x 3.708 at -7.459 degrees (North through East)
! Clean map  min=-0.0033954  max=2.5726 Jy/beam
! Writing clean map to FITS file: J0555+3948_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.57264 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000885994 
device "J0555+3948_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.103317 0.103317 0.206635 0.413269 0.826538 1.65308 3.30615 6.61231 13.2246 26.4492 52.8985
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.572 
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.288 x 3.708 at -7.459 degrees (North through East)
! Clean map  min=-0.0033954  max=2.5726 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 16:58:52 2007