! Started logfile: J0555+3948_S_2000_05_22_pus_uvs.log on Tue Nov 20 16:52:05 2007
obs J0555+3948_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0555+3948_S_2000_05_22_pus_uva.fits
! AN table 1: 415 integrations on 190 of 190 possible baselines.
! AN table 2: 171 integrations on 190 of 190 possible baselines.
! AN table 3: 258 integrations on 190 of 190 possible baselines.
! AN table 4: 261 integrations on 190 of 190 possible baselines.
! AN table 5: 70 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.120246 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 2007 lines of history.
! 
! Reading 107380 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_05_22_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 5410 telescope corrections were flagged in sub-array 1.
!  A total of 2452 telescope corrections were flagged in sub-array 2.
!  A total of 4151 telescope corrections were flagged in sub-array 3.
!  A total of 4258 telescope corrections were flagged in sub-array 4.
!  A total of 987 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 5446 telescope corrections were flagged in sub-array 1.
!  A total of 2464 telescope corrections were flagged in sub-array 2.
!  A total of 4152 telescope corrections were flagged in sub-array 3.
!  A total of 4258 telescope corrections were flagged in sub-array 4.
!  A total of 987 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 5449 telescope corrections were flagged in sub-array 1.
!  A total of 2452 telescope corrections were flagged in sub-array 2.
!  A total of 4150 telescope corrections were flagged in sub-array 3.
!  A total of 4258 telescope corrections were flagged in sub-array 4.
!  A total of 987 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 5455 telescope corrections were flagged in sub-array 1.
!  A total of 2452 telescope corrections were flagged in sub-array 2.
!  A total of 4178 telescope corrections were flagged in sub-array 3.
!  A total of 4258 telescope corrections were flagged in sub-array 4.
!  A total of 987 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=2.223394Jy  sigma=0.017273
! Fit after  self-cal, rms=1.735919Jy  sigma=0.013790
! 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.883 mas, bmaj=2.592 mas, bpa=4.186 degrees
! Estimated noise=645.909 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.88402 Jy
! Component: 100  -  total flux cleaned = 2.39749 Jy
! Total flux subtracted in 100 components = 2.39749 Jy
! Clean residual min=-0.040297 max=0.233504 Jy/beam
! Clean residual mean=0.000095 rms=0.012432 Jy/beam
! Combined flux in latest and established models = 2.39749 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 2.39749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.663189Jy  sigma=0.004780
! Fit after  self-cal, rms=0.662880Jy  sigma=0.004780
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.25958 Jy
! Component: 100  -  total flux cleaned = 0.421753 Jy
! Total flux subtracted in 100 components = 0.421753 Jy
! Clean residual min=-0.030639 max=0.087582 Jy/beam
! Clean residual mean=-0.000005 rms=0.008292 Jy/beam
! Combined flux in latest and established models = 2.81924 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 2.81924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.531551Jy  sigma=0.003293
! Fit after  self-cal, rms=0.531372Jy  sigma=0.003293
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.109229 Jy
! Component: 100  -  total flux cleaned = 0.18646 Jy
! Total flux subtracted in 100 components = 0.18646 Jy
! Clean residual min=-0.031747 max=0.043679 Jy/beam
! Clean residual mean=-0.000050 rms=0.007196 Jy/beam
! Combined flux in latest and established models = 3.0057 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 25 components and 3.0057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.517443Jy  sigma=0.002998
! Fit after  self-cal, rms=0.517374Jy  sigma=0.002998
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0564747 Jy
! Component: 100  -  total flux cleaned = 0.0980971 Jy
! Total flux subtracted in 100 components = 0.0980971 Jy
! Clean residual min=-0.031500 max=0.032950 Jy/beam
! Clean residual mean=-0.000074 rms=0.006831 Jy/beam
! Combined flux in latest and established models = 3.1038 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 31 components and 3.1038 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.520415Jy  sigma=0.002951
! Fit after  self-cal, rms=0.520379Jy  sigma=0.002951
! 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.542 mas, bmaj=3.223 mas, bpa=-13.54 degrees
! Estimated noise=298.677 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.0428453 Jy
! Component: 100  -  total flux cleaned = -0.0424239 Jy
! Component: 150  -  total flux cleaned = -0.0419508 Jy
! Component: 200  -  total flux cleaned = -0.041583 Jy
! Total flux subtracted in 200 components = -0.041583 Jy
! Clean residual min=-0.032286 max=0.025577 Jy/beam
! Clean residual mean=-0.002382 rms=0.008491 Jy/beam
! Combined flux in latest and established models = 3.06222 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 33 components and 3.06222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.515779Jy  sigma=0.002932
! Fit after  self-cal, rms=0.515767Jy  sigma=0.002932
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GC        1.03     GG        1.00*    
!   HH        1.10     HN        0.97     KK        0.92     KP        1.01     
!   MA        0.77     MC        1.07     MK        0.99     NL        1.02     
!   NY        1.00     OV        0.99     PT        1.02     SC        1.02     
!   TS        1.11     WF        1.16     WZ        1.13     LA        0.98     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.02     KP        0.96     
!   MA        1.95     MC        1.01     MK        1.07     NL        0.97     
!   NY        0.99     OV        0.99     PT        0.97     SC        1.00     
!   TS        1.00*    WF        1.01     WZ        1.06     LA        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GC        0.98     GG        1.00*    
!   HH        1.23     HN        0.98     KK        0.93     KP        1.00*    
!   MA        1.05     MC        1.20     MK        1.03     NL        1.02     
!   NY        0.98     OV        1.05     PT        1.00*    SC        1.06     
!   TS        1.01     WF        0.94     WZ        1.10     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.05     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.09     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.01     
!   NY        1.00*    OV        1.00*    PT        1.05     SC        1.01     
!   TS        1.00*    WF        1.01     WZ        1.00*    LA        1.04     
! 
!  A total of 117 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.93     FD        0.93     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.97     KP        1.02     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.95     
!   NY        0.95     OV        1.00     PT        0.92     SC        1.07     
!   TS        1.01     WF        1.13     WZ        1.00*    LA        0.95     
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.03     GC        1.04     GG        1.00*    
!   HH        1.06     HN        1.04     KK        0.97     KP        0.96     
!   MA        0.86     MC        1.45     MK        0.95     NL        1.05     
!   NY        1.00     OV        0.97     PT        1.02     SC        1.04     
!   TS        1.14     WF        1.02     WZ        1.12     LA        0.92     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.98     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.82     KK        1.02     KP        0.97     
!   MA        0.71     MC        1.01     MK        0.96     NL        1.00     
!   NY        0.98     OV        0.98     PT        0.97     SC        1.01     
!   TS        1.00*    WF        1.01     WZ        1.01     LA        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GC        0.95     GG        1.00*    
!   HH        1.19     HN        1.05     KK        1.06     KP        1.00*    
!   MA        0.81     MC        1.10     MK        0.98     NL        1.04     
!   NY        0.97     OV        1.03     PT        1.00*    SC        1.06     
!   TS        1.05     WF        1.03     WZ        1.09     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.06     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.06     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.00*    PT        1.04     SC        1.02     
!   TS        1.00*    WF        0.99     WZ        1.00*    LA        0.98     
! 
!  A total of 117 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.93     FD        0.95     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.95     KP        0.99     
!   MA        1.00*    MC        1.00*    MK        0.94     NL        0.97     
!   NY        0.95     OV        0.98     PT        0.92     SC        1.08     
!   TS        1.04     WF        1.02     WZ        1.00*    LA        0.90     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        1.01     GG        1.00*    
!   HH        0.91     HN        0.99     KK        0.92     KP        0.95     
!   MA        0.90     MC        1.69     MK        0.94     NL        0.98     
!   NY        0.96     OV        0.97     PT        0.98     SC        1.01     
!   TS        1.14     WF        1.00     WZ        1.11     LA        0.94     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        0.96     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.01     KP        0.96     
!   MA        1.38     MC        1.09     MK        1.00     NL        0.93     
!   NY        0.97     OV        0.99     PT        0.92     SC        0.97     
!   TS        1.00*    WF        0.99     WZ        1.02     LA        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GC        0.91     GG        1.00*    
!   HH        1.12     HN        1.02     KK        1.01     KP        1.00*    
!   MA        1.02     MC        1.08     MK        0.96     NL        0.99     
!   NY        0.95     OV        1.04     PT        1.00*    SC        1.10     
!   TS        1.02     WF        1.04     WZ        1.10     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.03     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.97     
!   NY        1.00*    OV        1.00*    PT        1.00     SC        1.00     
!   TS        1.00*    WF        0.98     WZ        1.00*    LA        1.02     
! 
!  A total of 117 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.89     FD        0.92     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.91     KP        0.97     
!   MA        1.00*    MC        1.00*    MK        0.93     NL        0.90     
!   NY        0.93     OV        0.99     PT        0.88     SC        1.04     
!   TS        1.04     WF        1.01     WZ        1.00*    LA        0.92     
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.13     HN        0.99     KK        0.94     KP        0.96     
!   MA        1.01     MC        1.11     MK        0.98     NL        0.99     
!   NY        0.94     OV        0.94     PT        1.01     SC        1.00     
!   TS        1.14     WF        1.00     WZ        1.11     LA        0.93     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.95     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.03     KP        0.97     
!   MA        0.92     MC        0.92     MK        1.04     NL        0.94     
!   NY        0.93     OV        0.96     PT        0.92     SC        0.97     
!   TS        1.00*    WF        0.97     WZ        1.03     LA        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    GC        0.92     GG        1.00*    
!   HH        1.52     HN        1.00     KK        1.04     KP        1.00*    
!   MA        1.01     MC        1.03     MK        1.00     NL        1.00     
!   NY        0.92     OV        1.00     PT        1.00*    SC        1.06     
!   TS        1.02     WF        1.04     WZ        1.12     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.01     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.03     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.98     
!   NY        1.00*    OV        1.00*    PT        0.98     SC        0.99     
!   TS        1.00*    WF        0.98     WZ        1.00*    LA        1.01     
! 
!  A total of 117 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.90     FD        0.92     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.93     KP        0.97     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.92     
!   NY        0.90     OV        0.96     PT        0.91     SC        1.04     
!   TS        1.04     WF        0.99     WZ        1.00*    LA        0.92     
! 
! 
! Fit before self-cal, rms=0.515767Jy  sigma=0.002932
! Fit after  self-cal, rms=0.478603Jy  sigma=0.002221
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.568 mas, bmaj=3.291 mas, bpa=-16.39 degrees
! Estimated noise=303.419 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.020391 Jy
! Component: 100  -  total flux cleaned = -0.0246775 Jy
! Component: 150  -  total flux cleaned = -0.0278421 Jy
! Component: 200  -  total flux cleaned = -0.0301766 Jy
! Total flux subtracted in 200 components = -0.0301766 Jy
! Clean residual min=-0.017884 max=0.015783 Jy/beam
! Clean residual mean=-0.000026 rms=0.004741 Jy/beam
! Combined flux in latest and established models = 3.03204 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 36 components and 3.03204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.477353Jy  sigma=0.002209
! Fit after  self-cal, rms=0.477466Jy  sigma=0.002208
! 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.477466Jy  sigma=0.002208
! Fit after  self-cal, rms=0.443938Jy  sigma=0.001768
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.57 mas, bmaj=3.286 mas, bpa=-15.61 degrees
! Estimated noise=303.134 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0123509 Jy
! Component: 100  -  total flux cleaned = -0.0149537 Jy
! Component: 150  -  total flux cleaned = -0.0170653 Jy
! Component: 200  -  total flux cleaned = -0.0185793 Jy
! Total flux subtracted in 200 components = -0.0185793 Jy
! Clean residual min=-0.009388 max=0.005611 Jy/beam
! Clean residual mean=-0.000193 rms=0.001863 Jy/beam
! Combined flux in latest and established models = 3.01346 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 40 components and 3.01346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443127Jy  sigma=0.001760
! Fit after  self-cal, rms=0.445181Jy  sigma=0.001759
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.00131516 Jy
! Component: 100  -  total flux cleaned = -0.00225594 Jy
! Component: 150  -  total flux cleaned = -0.00323564 Jy
! Component: 200  -  total flux cleaned = -0.003812 Jy
! Total flux subtracted in 200 components = -0.003812 Jy
! Clean residual min=-0.008132 max=0.005656 Jy/beam
! Clean residual mean=-0.000126 rms=0.001840 Jy/beam
! Combined flux in latest and established models = 3.00965 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 42 components and 3.00965 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445004Jy  sigma=0.001758
! Fit after  self-cal, rms=0.445017Jy  sigma=0.001758
! 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.445017Jy  sigma=0.001758
! Fit after  self-cal, rms=0.442340Jy  sigma=0.001719
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.573 mas, bmaj=3.294 mas, bpa=-15.46 degrees
! Estimated noise=303.381 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00816874 Jy
! Component: 100  -  total flux cleaned = -0.0102745 Jy
! Component: 150  -  total flux cleaned = -0.0115831 Jy
! Component: 200  -  total flux cleaned = -0.0125225 Jy
! Total flux subtracted in 200 components = -0.0125225 Jy
! Clean residual min=-0.008789 max=0.005322 Jy/beam
! Clean residual mean=-0.000097 rms=0.001596 Jy/beam
! Combined flux in latest and established models = 2.99713 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 2.99713 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441917Jy  sigma=0.001715
! Fit after  self-cal, rms=0.441941Jy  sigma=0.001715
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.000982521 Jy
! Component: 100  -  total flux cleaned = -0.00169606 Jy
! Component: 150  -  total flux cleaned = -0.00232405 Jy
! Component: 200  -  total flux cleaned = -0.00277395 Jy
! Total flux subtracted in 200 components = -0.00277395 Jy
! Clean residual min=-0.007834 max=0.005355 Jy/beam
! Clean residual mean=-0.000049 rms=0.001573 Jy/beam
! Combined flux in latest and established models = 2.99435 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 2.99435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441835Jy  sigma=0.001714
! Fit after  self-cal, rms=0.441835Jy  sigma=0.001714
! 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.441835Jy  sigma=0.001714
! Fit after  self-cal, rms=0.442204Jy  sigma=0.001702
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.646 mas, bmaj=9.122 mas, bpa=-61.12 degrees
! Estimated noise=462.063 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.011422 Jy
! Component: 100  -  total flux cleaned = -0.0151518 Jy
! Component: 150  -  total flux cleaned = -0.0162115 Jy
! Component: 200  -  total flux cleaned = -0.0162847 Jy
! Total flux subtracted in 200 components = -0.0162847 Jy
! Clean residual min=-0.009431 max=0.009206 Jy/beam
! Clean residual mean=-0.000048 rms=0.003025 Jy/beam
! Combined flux in latest and established models = 2.97807 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 47 components and 2.97807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441976Jy  sigma=0.001700
! Fit after  self-cal, rms=0.441979Jy  sigma=0.001700
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.000129043 Jy
! Component: 100  -  total flux cleaned = -0.000163757 Jy
! Component: 150  -  total flux cleaned = -0.000230026 Jy
! Component: 200  -  total flux cleaned = -0.000293387 Jy
! Total flux subtracted in 200 components = -0.000293387 Jy
! Clean residual min=-0.009406 max=0.009227 Jy/beam
! Clean residual mean=-0.000031 rms=0.003018 Jy/beam
! Combined flux in latest and established models = 2.97778 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 47 components and 2.97778 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441953Jy  sigma=0.001700
! Fit after  self-cal, rms=0.441953Jy  sigma=0.001700
! 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.577 mas, bmaj=3.3 mas, bpa=-15.38 degrees
! Estimated noise=303.545 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.577 x 3.3 at -15.38 degrees (North through East)
! Clean map  min=-0.0060411  max=2.6028 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.441953Jy  sigma=0.001700
! Fit after  self-cal, rms=2.437077Jy  sigma=0.001324
! Inverting map and beam 
! Estimated beam: bmin=2.58 mas, bmaj=3.304 mas, bpa=-15.38 degrees
! Estimated noise=302.947 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00439059 Jy
! Component: 100  -  total flux cleaned = -0.00505696 Jy
! Component: 150  -  total flux cleaned = -0.00554105 Jy
! Component: 200  -  total flux cleaned = -0.00605045 Jy
! Total flux subtracted in 200 components = -0.00605045 Jy
! Clean residual min=-0.005774 max=0.002775 Jy/beam
! Clean residual mean=0.000025 rms=0.000692 Jy/beam
! Combined flux in latest and established models = 2.97173 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 48 components and 2.97173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.437080Jy  sigma=0.001323
! Fit after  self-cal, rms=2.437098Jy  sigma=0.001323
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000310302 Jy
! Component: 100  -  total flux cleaned = -0.00058863 Jy
! Component: 150  -  total flux cleaned = -0.000717755 Jy
! Component: 200  -  total flux cleaned = -0.000897343 Jy
! Total flux subtracted in 200 components = -0.000897343 Jy
! Clean residual min=-0.005273 max=0.002940 Jy/beam
! Clean residual mean=0.000040 rms=0.000684 Jy/beam
! Combined flux in latest and established models = 2.97083 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 49 components and 2.97083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.437087Jy  sigma=0.001323
! Fit after  self-cal, rms=2.437089Jy  sigma=0.001323
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.437089Jy  sigma=0.001323
! Fit after  self-cal, rms=2.427064Jy  sigma=0.001322
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.915 mas, bmaj=2.648 mas, bpa=4.555 degrees
! Estimated noise=646.576 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.89272 Jy
! Component: 100  -  total flux cleaned = 2.37953 Jy
! Component: 150  -  total flux cleaned = 2.60898 Jy
! Component: 200  -  total flux cleaned = 2.73502 Jy
! Total flux subtracted in 200 components = 2.73502 Jy
! Clean residual min=-0.015423 max=0.066770 Jy/beam
! Clean residual mean=0.000066 rms=0.003839 Jy/beam
! Combined flux in latest and established models = 2.73502 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 2.73502 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.582 mas, bmaj=3.306 mas, bpa=-15.35 degrees
! Estimated noise=302.969 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.116191 Jy
! Component: 100  -  total flux cleaned = 0.173514 Jy
! Component: 150  -  total flux cleaned = 0.204209 Jy
! Component: 200  -  total flux cleaned = 0.221026 Jy
! Total flux subtracted in 200 components = 0.221026 Jy
! Clean residual min=-0.007487 max=0.008177 Jy/beam
! Clean residual mean=0.000208 rms=0.000997 Jy/beam
! Combined flux in latest and established models = 2.95605 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 34 components and 2.95604 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00319684 Jy
! Component: 100  -  total flux cleaned = 0.00557292 Jy
! Component: 150  -  total flux cleaned = 0.00767408 Jy
! Component: 200  -  total flux cleaned = 0.00923472 Jy
! Total flux subtracted in 200 components = 0.00923472 Jy
! Clean residual min=-0.006426 max=0.004972 Jy/beam
! Clean residual mean=0.000046 rms=0.000851 Jy/beam
! Combined flux in latest and established models = 2.96528 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 35 components and 2.96528 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.649 mas, bmaj=9.119 mas, bpa=-61.2 degrees
! Estimated noise=460.245 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000794973 Jy
! Component: 100  -  total flux cleaned = 0.000789184 Jy
! Component: 150  -  total flux cleaned = 0.000786213 Jy
! Component: 200  -  total flux cleaned = 0.000757123 Jy
! Total flux subtracted in 200 components = 0.000757123 Jy
! Clean residual min=-0.002839 max=0.002683 Jy/beam
! Clean residual mean=0.000104 rms=0.000890 Jy/beam
! Combined flux in latest and established models = 2.96604 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 = -5.20688e-05 Jy
! Component: 100  -  total flux cleaned = -7.64259e-05 Jy
! Component: 150  -  total flux cleaned = -0.000120537 Jy
! Component: 200  -  total flux cleaned = -0.000161343 Jy
! Total flux subtracted in 200 components = -0.000161343 Jy
! Clean residual min=-0.002811 max=0.002674 Jy/beam
! Clean residual mean=0.000113 rms=0.000884 Jy/beam
! Combined flux in latest and established models = 2.96588 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 41 components and 2.96588 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.582 mas, bmaj=3.306 mas, bpa=-15.35 degrees
! Estimated noise=302.969 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000219178 Jy
! Component: 100  -  total flux cleaned = 0.00156509 Jy
! Component: 150  -  total flux cleaned = 0.00250754 Jy
! Component: 200  -  total flux cleaned = 0.00358199 Jy
! Total flux subtracted in 200 components = 0.00358199 Jy
! Clean residual min=-0.007638 max=0.003438 Jy/beam
! Clean residual mean=-0.000027 rms=0.000817 Jy/beam
! Combined flux in latest and established models = 2.96946 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 2.96946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.427305Jy  sigma=0.001334
! Fit after  self-cal, rms=2.427392Jy  sigma=0.001334
wmodel J0555+3948_S_2000_05_22_pus_map.mod
! Writing 42 model components to file: J0555+3948_S_2000_05_22_pus_map.mod
wobs J0555+3948_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0555+3948_S_2000_05_22_pus_uvs.fits
wwins J0555+3948_S_2000_05_22_pus_map.win
! wwins: Wrote 1 windows to J0555+3948_S_2000_05_22_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.00275593 Jy
! Component: 100  -  total flux cleaned = -0.0037559 Jy
! Component: 150  -  total flux cleaned = -0.00426503 Jy
! Component: 200  -  total flux cleaned = -0.00466895 Jy
! Component: 250  -  total flux cleaned = -0.00490112 Jy
! Component: 300  -  total flux cleaned = -0.00512598 Jy
! Component: 350  -  total flux cleaned = -0.00534279 Jy
! Component: 400  -  total flux cleaned = -0.00541279 Jy
! Component: 450  -  total flux cleaned = -0.00548183 Jy
! Component: 500  -  total flux cleaned = -0.00548224 Jy
! Component: 550  -  total flux cleaned = -0.00554906 Jy
! Component: 600  -  total flux cleaned = -0.00554891 Jy
! Component: 650  -  total flux cleaned = -0.00561479 Jy
! Component: 700  -  total flux cleaned = -0.0056797 Jy
! Component: 750  -  total flux cleaned = -0.00567961 Jy
! Component: 800  -  total flux cleaned = -0.00574251 Jy
! Component: 850  -  total flux cleaned = -0.00574223 Jy
! Component: 900  -  total flux cleaned = -0.00574261 Jy
! Component: 950  -  total flux cleaned = -0.00580352 Jy
! Component: 1000  -  total flux cleaned = -0.0058036 Jy
! Component: 1050  -  total flux cleaned = -0.00586268 Jy
! Component: 1100  -  total flux cleaned = -0.00592145 Jy
! Component: 1150  -  total flux cleaned = -0.00592195 Jy
! Component: 1200  -  total flux cleaned = -0.00592215 Jy
! Component: 1250  -  total flux cleaned = -0.00597917 Jy
! Component: 1300  -  total flux cleaned = -0.00603529 Jy
! Component: 1350  -  total flux cleaned = -0.006035 Jy
! Component: 1400  -  total flux cleaned = -0.0060351 Jy
! Component: 1450  -  total flux cleaned = -0.00614353 Jy
! Component: 1500  -  total flux cleaned = -0.00614274 Jy
! Component: 1550  -  total flux cleaned = -0.00619543 Jy
! Component: 1600  -  total flux cleaned = -0.00619445 Jy
! Component: 1650  -  total flux cleaned = -0.00619428 Jy
! Component: 1700  -  total flux cleaned = -0.00619455 Jy
! Component: 1750  -  total flux cleaned = -0.00619448 Jy
! Component: 1800  -  total flux cleaned = -0.00614365 Jy
! Component: 1850  -  total flux cleaned = -0.00614322 Jy
! Component: 1900  -  total flux cleaned = -0.0060936 Jy
! Component: 1950  -  total flux cleaned = -0.00609329 Jy
! Component: 2000  -  total flux cleaned = -0.00604472 Jy
! Total flux subtracted in 2048 components = -0.00614181 Jy
! Clean residual min=-0.002411 max=0.002424 Jy/beam
! Clean residual mean=0.000081 rms=0.000681 Jy/beam
! Combined flux in latest and established models = 2.96332 Jy
keep
! Adding 53 model components to the UV plane model.
! The established model now contains 86 components and 2.96332 Jy
![Exited script file: muppet]
wmap "J0555+3948_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.582 x 3.306 at -15.35 degrees (North through East)
! Clean map  min=-0.0027609  max=2.6028 Jy/beam
! Writing clean map to FITS file: J0555+3948_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.60284 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000681192 
device "J0555+3948_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0785132 0.0785132 0.157026 0.314053 0.628106 1.25621 2.51242 5.02484 10.0497 20.0994 40.1988 80.3975
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.602 
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.582 x 3.306 at -15.35 degrees (North through East)
! Clean map  min=-0.0027609  max=2.6028 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_S_2000_05_22_pus_uvs.log closed on Tue Nov 20 16:52:47 2007