! Started logfile: J0854+2006_S_2000_12_04_pus_uvs.log on Wed Oct 17 17:01:23 2007
obs J0854+2006_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0854+2006_S_2000_12_04_pus_uva.fits
! AN table 1: 330 integrations on 190 of 190 possible baselines.
! AN table 2: 149 integrations on 190 of 190 possible baselines.
! AN table 3: 41 integrations on 190 of 190 possible baselines.
! AN table 4: 76 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.202261 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0854+2006
! 
! 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 91616 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 J0854+2006_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 3608 telescope corrections were flagged in sub-array 1.
!  A total of 2413 telescope corrections were flagged in sub-array 2.
!  A total of 422 telescope corrections were flagged in sub-array 3.
!  A total of 1054 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3608 telescope corrections were flagged in sub-array 1.
!  A total of 2413 telescope corrections were flagged in sub-array 2.
!  A total of 422 telescope corrections were flagged in sub-array 3.
!  A total of 1054 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 3608 telescope corrections were flagged in sub-array 1.
!  A total of 2413 telescope corrections were flagged in sub-array 2.
!  A total of 422 telescope corrections were flagged in sub-array 3.
!  A total of 1054 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3608 telescope corrections were flagged in sub-array 1.
!  A total of 2413 telescope corrections were flagged in sub-array 2.
!  A total of 422 telescope corrections were flagged in sub-array 3.
!  A total of 1054 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.786262Jy  sigma=0.006073
! Fit after  self-cal, rms=0.449608Jy  sigma=0.003337
! 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.929 mas, bmaj=3.518 mas, bpa=-2.725 degrees
! Estimated noise=707.138 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.585905 Jy
! Component: 100  -  total flux cleaned = 0.766223 Jy
! Total flux subtracted in 100 components = 0.766223 Jy
! Clean residual min=-0.016381 max=0.082821 Jy/beam
! Clean residual mean=0.000254 rms=0.005508 Jy/beam
! Combined flux in latest and established models = 0.766223 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.766223 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384972Jy  sigma=0.003119
! Fit after  self-cal, rms=0.383882Jy  sigma=0.003113
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0929847 Jy
! Component: 100  -  total flux cleaned = 0.140742 Jy
! Total flux subtracted in 100 components = 0.140742 Jy
! Clean residual min=-0.011566 max=0.055704 Jy/beam
! Clean residual mean=0.000157 rms=0.003550 Jy/beam
! Combined flux in latest and established models = 0.906965 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 18 components and 0.906965 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355478Jy  sigma=0.002769
! Fit after  self-cal, rms=0.355024Jy  sigma=0.002767
! Inverting map 
! Added new window around map position (-3, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0483185 Jy
! Component: 100  -  total flux cleaned = 0.0741779 Jy
! Total flux subtracted in 100 components = 0.0741779 Jy
! Clean residual min=-0.009398 max=0.020354 Jy/beam
! Clean residual mean=0.000107 rms=0.002710 Jy/beam
! Combined flux in latest and established models = 0.981143 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 30 components and 0.981143 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347078Jy  sigma=0.002667
! Fit after  self-cal, rms=0.346244Jy  sigma=0.002661
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0229438 Jy
! Component: 100  -  total flux cleaned = 0.0380542 Jy
! Total flux subtracted in 100 components = 0.0380542 Jy
! Clean residual min=-0.008581 max=0.012516 Jy/beam
! Clean residual mean=0.000082 rms=0.002390 Jy/beam
! Combined flux in latest and established models = 1.0192 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 37 components and 1.0192 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344298Jy  sigma=0.002633
! Fit after  self-cal, rms=0.344135Jy  sigma=0.002632
! 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.415 mas, bmaj=4.98 mas, bpa=-4.98 degrees
! Estimated noise=292.562 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.0207036 Jy
! Component: 100  -  total flux cleaned = 0.0334534 Jy
! Component: 150  -  total flux cleaned = 0.0420998 Jy
! Component: 200  -  total flux cleaned = 0.0480497 Jy
! Total flux subtracted in 200 components = 0.0480497 Jy
! Clean residual min=-0.007386 max=0.011042 Jy/beam
! Clean residual mean=0.000383 rms=0.002030 Jy/beam
! Combined flux in latest and established models = 1.06725 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 57 components and 1.06725 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343170Jy  sigma=0.002616
! Fit after  self-cal, rms=0.343045Jy  sigma=0.002615
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.04     KP        1.02     
!   LA        1.04     MA        1.99     MC        0.99     MK        1.01     
!   NL        0.99     NY        1.00     OV        0.97     PT        0.99     
!   SC        1.01     TS        1.00*    WF        0.96     WZ        0.99     
! 
!  A total of 321 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.95     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00*    KP        0.86     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.95     NY        1.01     OV        0.97     PT        0.93     
!   SC        1.03     TS        1.00*    WF        1.10     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.97     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.99     KP        0.87     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.01     NY        1.04     OV        0.99     PT        1.00     
!   SC        1.00*    TS        0.97     WF        1.90     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.06     HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.06     MA        2.10     MC        0.98     MK        1.00*    
!   NL        0.99     NY        1.01     OV        1.00*    PT        1.03     
!   SC        1.02     TS        1.00*    WF        1.02     WZ        0.99     
! 
! 
! Correcting IF 2.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.08     KP        0.99     
!   LA        1.00     MA        1.14     MC        1.36     MK        1.01     
!   NL        0.96     NY        0.99     OV        0.95     PT        1.00     
!   SC        0.98     TS        1.00*    WF        0.97     WZ        0.97     
! 
!  A total of 321 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        0.88     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.93     NY        1.02     OV        0.94     PT        0.95     
!   SC        0.98     TS        1.00*    WF        0.94     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        1.13     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.92     KP        0.92     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.96     NY        1.04     OV        0.94     PT        1.02     
!   SC        1.00*    TS        0.97     WF        2.11     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.04     HN        0.99     KK        1.00*    KP        1.00*    
!   LA        1.05     MA        0.72     MC        0.92     MK        1.00*    
!   NL        0.96     NY        0.99     OV        1.00*    PT        1.05     
!   SC        1.00     TS        1.00*    WF        0.96     WZ        1.01     
! 
! 
! Correcting IF 3.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        0.84     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.07     KP        1.06     
!   LA        0.99     MA        2.04     MC        1.26     MK        0.99     
!   NL        1.17     NY        0.95     OV        1.02     PT        0.99     
!   SC        0.99     TS        1.00*    WF        1.06     WZ        0.81     
! 
!  A total of 321 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.10     KK        1.00*    KP        0.91     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        1.05     NY        1.00     OV        0.95     PT        1.01     
!   SC        0.97     TS        1.00*    WF        1.23     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.04     GC        1.11     GG        1.00*    
!   HH        1.00*    HN        1.09     KK        0.89     KP        1.02     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.07     NY        1.00     OV        1.04     PT        1.04     
!   SC        1.00*    TS        0.92     WF        1.04     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.17     GC        1.00*    GG        1.00*    
!   HH        1.07     HN        0.88     KK        1.00*    KP        1.00*    
!   LA        0.70     MA        1.27     MC        1.77     MK        1.00*    
!   NL        0.89     NY        0.96     OV        1.00*    PT        0.95     
!   SC        0.93     TS        1.00*    WF        1.09     WZ        0.81     
! 
! 
! Correcting IF 4.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.06     KP        0.99     
!   LA        1.00     MA        1.08     MC        1.10     MK        1.00     
!   NL        0.99     NY        0.97     OV        0.98     PT        1.03     
!   SC        1.01     TS        1.00*    WF        0.97     WZ        0.98     
! 
!  A total of 321 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.95     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        0.87     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        0.97     NY        1.00     OV        0.98     PT        0.98     
!   SC        1.03     TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.93     KP        0.95     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.00     NY        1.05     OV        0.97     PT        1.02     
!   SC        1.00*    TS        0.96     WF        1.15     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.00     HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.02     MA        1.27     MC        0.95     MK        1.00*    
!   NL        0.98     NY        1.02     OV        1.00*    PT        1.06     
!   SC        1.04     TS        1.00*    WF        0.98     WZ        1.02     
! 
! 
! Fit before self-cal, rms=0.343045Jy  sigma=0.002615
! Fit after  self-cal, rms=0.404320Jy  sigma=0.002536
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.439 mas, bmaj=4.944 mas, bpa=-4.551 degrees
! Estimated noise=299.163 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.00267965 Jy
! Component: 100  -  total flux cleaned = -0.00287695 Jy
! Component: 150  -  total flux cleaned = -0.00273258 Jy
! Component: 200  -  total flux cleaned = -0.00273632 Jy
! Total flux subtracted in 200 components = -0.00273632 Jy
! Clean residual min=-0.005366 max=0.005452 Jy/beam
! Clean residual mean=0.000255 rms=0.001161 Jy/beam
! Combined flux in latest and established models = 1.06451 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 62 components and 1.06451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404152Jy  sigma=0.002535
! Fit after  self-cal, rms=0.404626Jy  sigma=0.002534
! 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.404626Jy  sigma=0.002534
! Fit after  self-cal, rms=0.410334Jy  sigma=0.002517
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.446 mas, bmaj=4.947 mas, bpa=-4.482 degrees
! Estimated noise=299.498 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00141019 Jy
! Component: 100  -  total flux cleaned = -0.00153914 Jy
! Component: 150  -  total flux cleaned = -0.0016474 Jy
! Component: 200  -  total flux cleaned = -0.00165112 Jy
! Total flux subtracted in 200 components = -0.00165112 Jy
! Clean residual min=-0.003230 max=0.004916 Jy/beam
! Clean residual mean=0.000247 rms=0.000920 Jy/beam
! Combined flux in latest and established models = 1.06286 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 66 components and 1.06286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.410250Jy  sigma=0.002516
! Fit after  self-cal, rms=0.410306Jy  sigma=0.002516
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)
! Added new window around map position (-8, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00513957 Jy
! Component: 100  -  total flux cleaned = 0.00667511 Jy
! Component: 150  -  total flux cleaned = 0.00733973 Jy
! Component: 200  -  total flux cleaned = 0.00789618 Jy
! Total flux subtracted in 200 components = 0.00789618 Jy
! Clean residual min=-0.003298 max=0.003709 Jy/beam
! Clean residual mean=0.000178 rms=0.000850 Jy/beam
! Combined flux in latest and established models = 1.07076 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 86 components and 1.07076 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.410224Jy  sigma=0.002515
! Fit after  self-cal, rms=0.410220Jy  sigma=0.002515
! Inverting map 
! Added new window around map position (5, 45.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00354914 Jy
! Component: 100  -  total flux cleaned = 0.00490416 Jy
! Component: 150  -  total flux cleaned = 0.00582473 Jy
! Component: 200  -  total flux cleaned = 0.00637675 Jy
! Total flux subtracted in 200 components = 0.00637675 Jy
! Clean residual min=-0.003227 max=0.003378 Jy/beam
! Clean residual mean=0.000122 rms=0.000814 Jy/beam
! Combined flux in latest and established models = 1.07713 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 107 components and 1.07713 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.410174Jy  sigma=0.002515
! Fit after  self-cal, rms=0.410175Jy  sigma=0.002515
! 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.410175Jy  sigma=0.002515
! Fit after  self-cal, rms=0.413008Jy  sigma=0.002513
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.452 mas, bmaj=4.951 mas, bpa=-4.451 degrees
! Estimated noise=299.868 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000740486 Jy
! Component: 100  -  total flux cleaned = -0.000741499 Jy
! Component: 150  -  total flux cleaned = -0.000499716 Jy
! Component: 200  -  total flux cleaned = -0.000429016 Jy
! Total flux subtracted in 200 components = -0.000429016 Jy
! Clean residual min=-0.002733 max=0.002954 Jy/beam
! Clean residual mean=0.000129 rms=0.000766 Jy/beam
! Combined flux in latest and established models = 1.0767 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 110 components and 1.0767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412962Jy  sigma=0.002512
! Fit after  self-cal, rms=0.412997Jy  sigma=0.002512
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.000133867 Jy
! Component: 100  -  total flux cleaned = 0.000559978 Jy
! Component: 150  -  total flux cleaned = 0.000888607 Jy
! Component: 200  -  total flux cleaned = 0.00114278 Jy
! Total flux subtracted in 200 components = 0.00114278 Jy
! Clean residual min=-0.002730 max=0.002949 Jy/beam
! Clean residual mean=0.000119 rms=0.000758 Jy/beam
! Combined flux in latest and established models = 1.07785 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 120 components and 1.07785 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412974Jy  sigma=0.002512
! Fit after  self-cal, rms=0.412976Jy  sigma=0.002512
! 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.412976Jy  sigma=0.002512
! Fit after  self-cal, rms=0.414753Jy  sigma=0.002512
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.159 mas, bmaj=8.847 mas, bpa=-1.613 degrees
! Estimated noise=398.433 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000946586 Jy
! Component: 100  -  total flux cleaned = 0.00174807 Jy
! Component: 150  -  total flux cleaned = 0.00240351 Jy
! Component: 200  -  total flux cleaned = 0.0028835 Jy
! Total flux subtracted in 200 components = 0.0028835 Jy
! Clean residual min=-0.004178 max=0.003401 Jy/beam
! Clean residual mean=0.000252 rms=0.001109 Jy/beam
! Combined flux in latest and established models = 1.08073 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 145 components and 1.08073 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414738Jy  sigma=0.002512
! Fit after  self-cal, rms=0.414739Jy  sigma=0.002512
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.00038826 Jy
! Component: 100  -  total flux cleaned = 0.000734692 Jy
! Component: 150  -  total flux cleaned = 0.000862826 Jy
! Component: 200  -  total flux cleaned = 0.000977688 Jy
! Total flux subtracted in 200 components = 0.000977688 Jy
! Clean residual min=-0.004123 max=0.003390 Jy/beam
! Clean residual mean=0.000227 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 1.08171 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 157 components and 1.08171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414736Jy  sigma=0.002512
! Fit after  self-cal, rms=0.414735Jy  sigma=0.002512
! 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.457 mas, bmaj=4.954 mas, bpa=-4.436 degrees
! Estimated noise=300.189 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.457 x 4.954 at -4.436 degrees (North through East)
! Clean map  min=-0.0026662  max=0.80507 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.414735Jy  sigma=0.002512
! Fit after  self-cal, rms=0.567288Jy  sigma=0.002226
! Inverting map and beam 
! Estimated beam: bmin=2.461 mas, bmaj=4.962 mas, bpa=-4.46 degrees
! Estimated noise=300.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00152852 Jy
! Component: 100  -  total flux cleaned = -0.00212295 Jy
! Component: 150  -  total flux cleaned = -0.00248626 Jy
! Component: 200  -  total flux cleaned = -0.00261258 Jy
! Total flux subtracted in 200 components = -0.00261258 Jy
! Clean residual min=-0.002597 max=0.002739 Jy/beam
! Clean residual mean=0.000091 rms=0.000710 Jy/beam
! Combined flux in latest and established models = 1.07909 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 164 components and 1.07909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.567244Jy  sigma=0.002226
! Fit after  self-cal, rms=0.567254Jy  sigma=0.002226
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.17173e-05 Jy
! Component: 100  -  total flux cleaned = -8.90012e-05 Jy
! Component: 150  -  total flux cleaned = -0.000140634 Jy
! Component: 200  -  total flux cleaned = -0.000235762 Jy
! Total flux subtracted in 200 components = -0.000235762 Jy
! Clean residual min=-0.002539 max=0.002661 Jy/beam
! Clean residual mean=0.000093 rms=0.000701 Jy/beam
! Combined flux in latest and established models = 1.07886 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 175 components and 1.07886 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.567237Jy  sigma=0.002226
! Fit after  self-cal, rms=0.567240Jy  sigma=0.002226
! 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.567240Jy  sigma=0.002226
! Fit after  self-cal, rms=0.586045Jy  sigma=0.002225
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.971 mas, bmaj=3.529 mas, bpa=-2.43 degrees
! Estimated noise=723.947 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.595698 Jy
! Component: 100  -  total flux cleaned = 0.776807 Jy
! Component: 150  -  total flux cleaned = 0.869852 Jy
! Component: 200  -  total flux cleaned = 0.924968 Jy
! Total flux subtracted in 200 components = 0.924968 Jy
! Clean residual min=-0.006768 max=0.028900 Jy/beam
! Clean residual mean=0.000124 rms=0.002243 Jy/beam
! Combined flux in latest and established models = 0.924968 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.924968 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=4.967 mas, bpa=-4.441 degrees
! Estimated noise=300.599 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.0524216 Jy
! Component: 100  -  total flux cleaned = 0.0799114 Jy
! Component: 150  -  total flux cleaned = 0.0966168 Jy
! Component: 200  -  total flux cleaned = 0.108124 Jy
! Total flux subtracted in 200 components = 0.108124 Jy
! Clean residual min=-0.003065 max=0.006466 Jy/beam
! Clean residual mean=0.000474 rms=0.001152 Jy/beam
! Combined flux in latest and established models = 1.03309 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 49 components and 1.03309 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00839353 Jy
! Component: 100  -  total flux cleaned = 0.0147727 Jy
! Component: 150  -  total flux cleaned = 0.0196938 Jy
! Component: 200  -  total flux cleaned = 0.0236397 Jy
! Total flux subtracted in 200 components = 0.0236397 Jy
! Clean residual min=-0.002530 max=0.002951 Jy/beam
! Clean residual mean=0.000271 rms=0.000790 Jy/beam
! Combined flux in latest and established models = 1.05673 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 77 components and 1.05673 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.164 mas, bmaj=8.858 mas, bpa=-1.635 degrees
! Estimated noise=396.91 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00661069 Jy
! Component: 100  -  total flux cleaned = 0.0109327 Jy
! Component: 150  -  total flux cleaned = 0.0140315 Jy
! Component: 200  -  total flux cleaned = 0.0162969 Jy
! Total flux subtracted in 200 components = 0.0162969 Jy
! Clean residual min=-0.003712 max=0.004132 Jy/beam
! Clean residual mean=0.000388 rms=0.001090 Jy/beam
! Combined flux in latest and established models = 1.07303 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00168159 Jy
! Component: 100  -  total flux cleaned = 0.00281181 Jy
! Component: 150  -  total flux cleaned = 0.00338019 Jy
! Component: 200  -  total flux cleaned = 0.00384867 Jy
! Total flux subtracted in 200 components = 0.00384867 Jy
! Clean residual min=-0.003730 max=0.003857 Jy/beam
! Clean residual mean=0.000285 rms=0.001066 Jy/beam
! Combined flux in latest and established models = 1.07688 Jy
! Adding 96 model components to the UV plane model.
! The established model now contains 169 components and 1.07688 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.465 mas, bmaj=4.967 mas, bpa=-4.441 degrees
! Estimated noise=300.599 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000708724 Jy
! Component: 100  -  total flux cleaned = -0.000707259 Jy
! Component: 150  -  total flux cleaned = -0.000552811 Jy
! Component: 200  -  total flux cleaned = -0.000458254 Jy
! Total flux subtracted in 200 components = -0.000458254 Jy
! Clean residual min=-0.002440 max=0.002555 Jy/beam
! Clean residual mean=0.000100 rms=0.000696 Jy/beam
! Combined flux in latest and established models = 1.07642 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 184 components and 1.07642 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.585991Jy  sigma=0.002226
! Fit after  self-cal, rms=0.586075Jy  sigma=0.002226
wmodel J0854+2006_S_2000_12_04_pus_map.mod
! Writing 184 model components to file: J0854+2006_S_2000_12_04_pus_map.mod
wobs J0854+2006_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0854+2006_S_2000_12_04_pus_uvs.fits
wwins J0854+2006_S_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J0854+2006_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.000291505 Jy
! Component: 100  -  total flux cleaned = 0.00064491 Jy
! Component: 150  -  total flux cleaned = 0.000900784 Jy
! Component: 200  -  total flux cleaned = 0.00119116 Jy
! Component: 250  -  total flux cleaned = 0.00139368 Jy
! Component: 300  -  total flux cleaned = 0.00167039 Jy
! Component: 350  -  total flux cleaned = 0.00198011 Jy
! Component: 400  -  total flux cleaned = 0.00224653 Jy
! Component: 450  -  total flux cleaned = 0.00250819 Jy
! Component: 500  -  total flux cleaned = 0.00272853 Jy
! Component: 550  -  total flux cleaned = 0.00305301 Jy
! Component: 600  -  total flux cleaned = 0.00326552 Jy
! Component: 650  -  total flux cleaned = 0.00344035 Jy
! Component: 700  -  total flux cleaned = 0.00364745 Jy
! Component: 750  -  total flux cleaned = 0.00391929 Jy
! Component: 800  -  total flux cleaned = 0.00405329 Jy
! Component: 850  -  total flux cleaned = 0.0042191 Jy
! Component: 900  -  total flux cleaned = 0.00435035 Jy
! Component: 950  -  total flux cleaned = 0.00457682 Jy
! Component: 1000  -  total flux cleaned = 0.0046725 Jy
! Component: 1050  -  total flux cleaned = 0.00479925 Jy
! Component: 1100  -  total flux cleaned = 0.00495601 Jy
! Component: 1150  -  total flux cleaned = 0.00504885 Jy
! Component: 1200  -  total flux cleaned = 0.00517179 Jy
! Component: 1250  -  total flux cleaned = 0.00520239 Jy
! Component: 1300  -  total flux cleaned = 0.00538384 Jy
! Component: 1350  -  total flux cleaned = 0.00550325 Jy
! Component: 1400  -  total flux cleaned = 0.0055922 Jy
! Component: 1450  -  total flux cleaned = 0.00573888 Jy
! Component: 1500  -  total flux cleaned = 0.0057972 Jy
! Component: 1550  -  total flux cleaned = 0.00591283 Jy
! Component: 1600  -  total flux cleaned = 0.00605612 Jy
! Component: 1650  -  total flux cleaned = 0.00611309 Jy
! Component: 1700  -  total flux cleaned = 0.0062544 Jy
! Component: 1750  -  total flux cleaned = 0.00631034 Jy
! Component: 1800  -  total flux cleaned = 0.00644939 Jy
! Component: 1850  -  total flux cleaned = 0.00655942 Jy
! Component: 1900  -  total flux cleaned = 0.00661414 Jy
! Component: 1950  -  total flux cleaned = 0.00666865 Jy
! Component: 2000  -  total flux cleaned = 0.00674963 Jy
! Total flux subtracted in 2048 components = 0.00680341 Jy
! Clean residual min=-0.001879 max=0.001692 Jy/beam
! Clean residual mean=0.000047 rms=0.000537 Jy/beam
! Combined flux in latest and established models = 1.08322 Jy
keep
! Adding 148 model components to the UV plane model.
! The established model now contains 332 components and 1.08322 Jy
![Exited script file: muppet]
wmap "J0854+2006_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.465 x 4.967 at -4.441 degrees (North through East)
! Clean map  min=-0.0022169  max=0.80741 Jy/beam
! Writing clean map to FITS file: J0854+2006_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 0.807408 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000537059 
device "J0854+2006_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0854+2006_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.199549 0.199549 0.399099 0.798198 1.5964 3.19279 6.38558 12.7712 25.5423 51.0847
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.807 
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.465 x 4.967 at -4.441 degrees (North through East)
! Clean map  min=-0.0022169  max=0.80741 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0854+2006_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0854+2006_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0854+2006_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 17:01:59 2007