! Started logfile: J0102+5824_S_2001_04_09_pus_uvs.log on Fri Oct  5 15:48:05 2007
obs J0102+5824_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0102+5824_S_2001_04_09_pus_uva.fits
! AN table 1: 43 integrations on 190 of 190 possible baselines.
! AN table 2: 156 integrations on 190 of 190 possible baselines.
! AN table 3: 79 integrations on 190 of 190 possible baselines.
! AN table 4: 132 integrations on 190 of 190 possible baselines.
! AN table 5: 300 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.197976 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0102+5824
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 106828 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 J0102+5824_S_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 267 telescope corrections were flagged in sub-array 1.
!  A total of 2330 telescope corrections were flagged in sub-array 2.
!  A total of 1079 telescope corrections were flagged in sub-array 3.
!  A total of 1801 telescope corrections were flagged in sub-array 4.
!  A total of 4033 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 267 telescope corrections were flagged in sub-array 1.
!  A total of 2330 telescope corrections were flagged in sub-array 2.
!  A total of 1079 telescope corrections were flagged in sub-array 3.
!  A total of 1801 telescope corrections were flagged in sub-array 4.
!  A total of 4033 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 267 telescope corrections were flagged in sub-array 1.
!  A total of 2330 telescope corrections were flagged in sub-array 2.
!  A total of 1079 telescope corrections were flagged in sub-array 3.
!  A total of 1801 telescope corrections were flagged in sub-array 4.
!  A total of 4033 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 267 telescope corrections were flagged in sub-array 1.
!  A total of 2330 telescope corrections were flagged in sub-array 2.
!  A total of 1090 telescope corrections were flagged in sub-array 3.
!  A total of 1802 telescope corrections were flagged in sub-array 4.
!  A total of 4033 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.880485Jy  sigma=0.006390
! Fit after  self-cal, rms=0.737845Jy  sigma=0.005328
! 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.888 mas, bmaj=2.199 mas, bpa=7.056 degrees
! Estimated noise=614.699 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.233169 Jy
! Component: 100  -  total flux cleaned = 0.30531 Jy
! Total flux subtracted in 100 components = 0.30531 Jy
! Clean residual min=-0.006710 max=0.033668 Jy/beam
! Clean residual mean=0.000094 rms=0.002036 Jy/beam
! Combined flux in latest and established models = 0.30531 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.30531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346538Jy  sigma=0.001778
! Fit after  self-cal, rms=0.346210Jy  sigma=0.001777
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0414721 Jy
! Component: 100  -  total flux cleaned = 0.0692136 Jy
! Total flux subtracted in 100 components = 0.0692136 Jy
! Clean residual min=-0.005763 max=0.016561 Jy/beam
! Clean residual mean=0.000070 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 0.374524 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 0.374524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336221Jy  sigma=0.001634
! Fit after  self-cal, rms=0.336003Jy  sigma=0.001633
! Inverting map 
! Added new window around map position (-2, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.021265 Jy
! Component: 100  -  total flux cleaned = 0.0371344 Jy
! Total flux subtracted in 100 components = 0.0371344 Jy
! Clean residual min=-0.005091 max=0.009223 Jy/beam
! Clean residual mean=0.000057 rms=0.001374 Jy/beam
! Combined flux in latest and established models = 0.411658 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 36 components and 0.411658 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332989Jy  sigma=0.001588
! Fit after  self-cal, rms=0.332869Jy  sigma=0.001587
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0129903 Jy
! Component: 100  -  total flux cleaned = 0.0228999 Jy
! Total flux subtracted in 100 components = 0.0228999 Jy
! Clean residual min=-0.005020 max=0.006581 Jy/beam
! Clean residual mean=0.000048 rms=0.001302 Jy/beam
! Combined flux in latest and established models = 0.434558 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 40 components and 0.434558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331685Jy  sigma=0.001569
! Fit after  self-cal, rms=0.331620Jy  sigma=0.001568
! 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.345 mas, bmaj=2.831 mas, bpa=9.381 degrees
! Estimated noise=289.036 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.0183794 Jy
! Component: 100  -  total flux cleaned = 0.0294784 Jy
! Component: 150  -  total flux cleaned = 0.0365335 Jy
! Component: 200  -  total flux cleaned = 0.0410754 Jy
! Total flux subtracted in 200 components = 0.0410754 Jy
! Clean residual min=-0.005466 max=0.007326 Jy/beam
! Clean residual mean=0.000617 rms=0.001470 Jy/beam
! Combined flux in latest and established models = 0.475634 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 53 components and 0.475634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330648Jy  sigma=0.001552
! Fit after  self-cal, rms=0.330534Jy  sigma=0.001552
! Inverting map 
! Added new window around map position (-5.5, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00766718 Jy
! Component: 100  -  total flux cleaned = 0.0107908 Jy
! Component: 150  -  total flux cleaned = 0.0124035 Jy
! Component: 200  -  total flux cleaned = 0.0135642 Jy
! Total flux subtracted in 200 components = 0.0135642 Jy
! Clean residual min=-0.005275 max=0.005680 Jy/beam
! Clean residual mean=0.000489 rms=0.001394 Jy/beam
! Combined flux in latest and established models = 0.489198 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 78 components and 0.489198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330332Jy  sigma=0.001549
! Fit after  self-cal, rms=0.330289Jy  sigma=0.001549
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.09     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        1.17     
!   LA        1.04     MA        1.09     MC        0.84     MK        1.00*    
!   NL        1.01     NY        0.94     OV        1.08     PT        1.03     
!   SC        1.09     TS        1.01     WF        0.95     WZ        0.99     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00     KP        1.10     
!   LA        1.07     MA        1.27     MC        1.33     MK        0.99     
!   NL        0.96     NY        0.90     OV        1.05     PT        1.00     
!   SC        0.99     TS        1.03     WF        1.03     WZ        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.08     KK        1.09     KP        1.27     
!   LA        1.03     MA        0.86     MC        1.12     MK        1.06     
!   NL        1.03     NY        0.95     OV        1.07     PT        1.02     
!   SC        1.00*    TS        0.97     WF        0.96     WZ        1.04     
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.97     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.01     
!   LA        0.97     MA        0.95     MC        1.33     MK        1.06     
!   NL        1.00     NY        0.97     OV        1.01     PT        0.94     
!   SC        1.01     TS        1.04     WF        1.05     WZ        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        0.96     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.03     KP        1.03     
!   LA        1.09     MA        1.43     MC        1.95     MK        1.01     
!   NL        0.97     NY        0.98     OV        0.99     PT        0.94     
!   SC        0.98     TS        1.03     WF        0.98     WZ        0.98     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.07     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        1.12     
!   LA        1.06     MA        1.49     MC        0.92     MK        1.00*    
!   NL        1.03     NY        1.00     OV        1.04     PT        1.04     
!   SC        1.06     TS        1.02     WF        0.97     WZ        0.98     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.02     KP        1.00     
!   LA        1.01     MA        1.33     MC        1.03     MK        0.98     
!   NL        0.99     NY        1.00     OV        1.03     PT        1.03     
!   SC        1.00     TS        1.03     WF        0.98     WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.13     KK        1.08     KP        0.95     
!   LA        1.01     MA        0.87     MC        0.94     MK        1.04     
!   NL        1.02     NY        1.03     OV        1.06     PT        1.04     
!   SC        1.00*    TS        1.00     WF        1.01     WZ        0.98     
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.98     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        1.03     
!   LA        0.99     MA        0.89     MC        1.10     MK        1.06     
!   NL        1.00     NY        0.99     OV        0.95     PT        0.98     
!   SC        1.01     TS        1.10     WF        1.00     WZ        0.99     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        0.95     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.09     KP        0.93     
!   LA        1.12     MA        1.38     MC        1.37     MK        1.04     
!   NL        0.98     NY        1.00     OV        0.97     PT        0.96     
!   SC        0.98     TS        1.06     WF        0.96     WZ        0.99     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.08     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.14     
!   LA        0.99     MA        0.91     MC        1.02     MK        1.00*    
!   NL        1.01     NY        0.98     OV        1.04     PT        1.04     
!   SC        1.02     TS        0.96     WF        0.98     WZ        0.95     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.02     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.98     KP        1.06     
!   LA        0.94     MA        0.92     MC        1.07     MK        0.95     
!   NL        1.00     NY        0.90     OV        0.99     PT        1.00     
!   SC        0.94     TS        1.01     WF        0.99     WZ        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.09     KK        1.26     KP        1.15     
!   LA        0.98     MA        0.99     MC        0.89     MK        1.02     
!   NL        1.02     NY        0.95     OV        1.05     PT        1.03     
!   SC        1.00*    TS        0.93     WF        1.04     WZ        1.02     
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.00     
!   LA        0.94     MA        1.04     MC        1.16     MK        1.02     
!   NL        0.99     NY        0.97     OV        0.98     PT        0.97     
!   SC        0.97     TS        1.03     WF        1.01     WZ        0.95     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.95     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.08     KP        1.12     
!   LA        1.08     MA        0.95     MC        1.22     MK        1.00     
!   NL        0.97     NY        0.92     OV        0.95     PT        0.97     
!   SC        0.96     TS        0.99     WF        0.95     WZ        0.96     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.09     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.15     
!   LA        1.02     MA        1.21     MC        1.22     MK        1.00*    
!   NL        1.01     NY        1.01     OV        1.05     PT        1.01     
!   SC        1.10     TS        0.93     WF        0.96     WZ        0.97     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00     KP        1.07     
!   LA        1.02     MA        0.63     MC        0.64     MK        0.93     
!   NL        1.00     NY        1.16     OV        1.01     PT        1.02     
!   SC        1.01     TS        1.02     WF        0.89     WZ        1.10     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.16     KK        1.24     KP        1.07     
!   LA        1.00     MA        0.80     MC        0.45     MK        0.99     
!   NL        1.05     NY        0.94     OV        1.03     PT        1.07     
!   SC        1.00*    TS        0.92     WF        0.95     WZ        1.11     
! 
!  A total of 126 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.99     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00*    KP        1.02     
!   LA        0.98     MA        0.71     MC        0.54     MK        0.97     
!   NL        1.01     NY        1.00     OV        0.99     PT        1.03     
!   SC        1.01     TS        1.01     WF        0.95     WZ        1.09     
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.94     FD        0.98     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.06     KP        1.11     
!   LA        1.13     MA        0.97     MC        0.74     MK        0.98     
!   NL        0.96     NY        0.98     OV        0.95     PT        0.99     
!   SC        0.97     TS        0.99     WF        0.93     WZ        1.00     
! 
! 
! Fit before self-cal, rms=0.330289Jy  sigma=0.001549
! Fit after  self-cal, rms=0.311543Jy  sigma=0.001515
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.336 mas, bmaj=2.829 mas, bpa=7.91 degrees
! Estimated noise=289.676 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.00353996 Jy
! Component: 100  -  total flux cleaned = 0.0048762 Jy
! Component: 150  -  total flux cleaned = 0.00563126 Jy
! Component: 200  -  total flux cleaned = 0.00629851 Jy
! Total flux subtracted in 200 components = 0.00629851 Jy
! Clean residual min=-0.004245 max=0.003951 Jy/beam
! Clean residual mean=0.000375 rms=0.001082 Jy/beam
! Combined flux in latest and established models = 0.495496 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 90 components and 0.495496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311501Jy  sigma=0.001515
! Fit after  self-cal, rms=0.311969Jy  sigma=0.001513
! 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.311969Jy  sigma=0.001513
! Fit after  self-cal, rms=0.267178Jy  sigma=0.001485
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.33 mas, bmaj=2.834 mas, bpa=7.069 degrees
! Estimated noise=289.718 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00252938 Jy
! Component: 100  -  total flux cleaned = 0.00280529 Jy
! Component: 150  -  total flux cleaned = 0.00308097 Jy
! Component: 200  -  total flux cleaned = 0.00331068 Jy
! Total flux subtracted in 200 components = 0.00331068 Jy
! Clean residual min=-0.002029 max=0.002540 Jy/beam
! Clean residual mean=0.000163 rms=0.000524 Jy/beam
! Combined flux in latest and established models = 0.498807 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 97 components and 0.498807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267149Jy  sigma=0.001485
! Fit after  self-cal, rms=0.267440Jy  sigma=0.001485
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 (-16, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00255842 Jy
! Component: 100  -  total flux cleaned = 0.0038014 Jy
! Component: 150  -  total flux cleaned = 0.00435936 Jy
! Component: 200  -  total flux cleaned = 0.00475206 Jy
! Total flux subtracted in 200 components = 0.00475206 Jy
! Clean residual min=-0.001913 max=0.002278 Jy/beam
! Clean residual mean=0.000117 rms=0.000513 Jy/beam
! Combined flux in latest and established models = 0.503559 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 113 components and 0.503559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267408Jy  sigma=0.001484
! Fit after  self-cal, rms=0.267410Jy  sigma=0.001484
! Inverting map 
! Added new window around map position (-8.5, -12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00198599 Jy
! Component: 100  -  total flux cleaned = 0.0024264 Jy
! Component: 150  -  total flux cleaned = 0.00267667 Jy
! Component: 200  -  total flux cleaned = 0.00286831 Jy
! Total flux subtracted in 200 components = 0.00286831 Jy
! Clean residual min=-0.001922 max=0.002171 Jy/beam
! Clean residual mean=0.000092 rms=0.000509 Jy/beam
! Combined flux in latest and established models = 0.506428 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 125 components and 0.506428 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267383Jy  sigma=0.001484
! Fit after  self-cal, rms=0.267382Jy  sigma=0.001484
! 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.267382Jy  sigma=0.001484
! Fit after  self-cal, rms=0.266691Jy  sigma=0.001484
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.326 mas, bmaj=2.834 mas, bpa=6.742 degrees
! Estimated noise=289.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00136057 Jy
! Component: 100  -  total flux cleaned = 0.0020446 Jy
! Component: 150  -  total flux cleaned = 0.00245176 Jy
! Component: 200  -  total flux cleaned = 0.00263934 Jy
! Total flux subtracted in 200 components = 0.00263934 Jy
! Clean residual min=-0.001942 max=0.002114 Jy/beam
! Clean residual mean=0.000079 rms=0.000503 Jy/beam
! Combined flux in latest and established models = 0.509067 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 130 components and 0.509067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266678Jy  sigma=0.001484
! Fit after  self-cal, rms=0.266735Jy  sigma=0.001484
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.000375173 Jy
! Component: 100  -  total flux cleaned = 0.000548797 Jy
! Component: 150  -  total flux cleaned = 0.00064708 Jy
! Component: 200  -  total flux cleaned = 0.00074036 Jy
! Total flux subtracted in 200 components = 0.00074036 Jy
! Clean residual min=-0.001909 max=0.002103 Jy/beam
! Clean residual mean=0.000072 rms=0.000502 Jy/beam
! Combined flux in latest and established models = 0.509807 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 136 components and 0.509807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266726Jy  sigma=0.001484
! Fit after  self-cal, rms=0.266728Jy  sigma=0.001484
! 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.266728Jy  sigma=0.001484
! Fit after  self-cal, rms=0.266456Jy  sigma=0.001484
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.639 mas, bmaj=8.384 mas, bpa=50.96 degrees
! Estimated noise=457.714 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00189836 Jy
! Component: 100  -  total flux cleaned = 0.00267456 Jy
! Component: 150  -  total flux cleaned = 0.00302282 Jy
! Component: 200  -  total flux cleaned = 0.00327297 Jy
! Total flux subtracted in 200 components = 0.00327297 Jy
! Clean residual min=-0.002843 max=0.003860 Jy/beam
! Clean residual mean=0.000190 rms=0.001068 Jy/beam
! Combined flux in latest and established models = 0.51308 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 146 components and 0.51308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266455Jy  sigma=0.001483
! Fit after  self-cal, rms=0.266477Jy  sigma=0.001483
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.000457077 Jy
! Component: 100  -  total flux cleaned = 0.000702051 Jy
! Component: 150  -  total flux cleaned = 0.000895814 Jy
! Component: 200  -  total flux cleaned = 0.000992356 Jy
! Total flux subtracted in 200 components = 0.000992356 Jy
! Clean residual min=-0.002881 max=0.003874 Jy/beam
! Clean residual mean=0.000156 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 0.514073 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 150 components and 0.514073 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266477Jy  sigma=0.001484
! Fit after  self-cal, rms=0.266481Jy  sigma=0.001484
! 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.323 mas, bmaj=2.834 mas, bpa=6.544 degrees
! Estimated noise=289.493 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.323 x 2.834 at 6.544 degrees (North through East)
! Clean map  min=-0.0016633  max=0.32865 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
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.863 mas, bmaj=2.198 mas, bpa=3.578 degrees
! Estimated noise=606.934 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.228352 Jy
! Component: 100  -  total flux cleaned = 0.306543 Jy
! Component: 150  -  total flux cleaned = 0.349033 Jy
! Component: 200  -  total flux cleaned = 0.378758 Jy
! Total flux subtracted in 200 components = 0.378758 Jy
! Clean residual min=-0.005141 max=0.017063 Jy/beam
! Clean residual mean=0.000051 rms=0.001364 Jy/beam
! Combined flux in latest and established models = 0.378758 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 22 model components to the UV plane model.
! The established model now contains 22 components and 0.378758 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.323 mas, bmaj=2.834 mas, bpa=6.544 degrees
! Estimated noise=289.493 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.0424285 Jy
! Component: 100  -  total flux cleaned = 0.0667761 Jy
! Component: 150  -  total flux cleaned = 0.082522 Jy
! Component: 200  -  total flux cleaned = 0.0933504 Jy
! Total flux subtracted in 200 components = 0.0933504 Jy
! Clean residual min=-0.002189 max=0.005985 Jy/beam
! Clean residual mean=0.000457 rms=0.000814 Jy/beam
! Combined flux in latest and established models = 0.472109 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 58 components and 0.472109 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00767632 Jy
! Component: 100  -  total flux cleaned = 0.0133636 Jy
! Component: 150  -  total flux cleaned = 0.0179007 Jy
! Component: 200  -  total flux cleaned = 0.0216531 Jy
! Total flux subtracted in 200 components = 0.0216531 Jy
! Clean residual min=-0.001936 max=0.003421 Jy/beam
! Clean residual mean=0.000239 rms=0.000567 Jy/beam
! Combined flux in latest and established models = 0.493762 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 90 components and 0.493762 Jy
! Inverting map 
! Added new window around map position (-10, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00353359 Jy
! Component: 100  -  total flux cleaned = 0.00622232 Jy
! Component: 150  -  total flux cleaned = 0.00849228 Jy
! Component: 200  -  total flux cleaned = 0.0104209 Jy
! Total flux subtracted in 200 components = 0.0104209 Jy
! Clean residual min=-0.001891 max=0.002034 Jy/beam
! Clean residual mean=0.000136 rms=0.000508 Jy/beam
! Combined flux in latest and established models = 0.504183 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 111 components and 0.504182 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.639 mas, bmaj=8.384 mas, bpa=50.96 degrees
! Estimated noise=457.714 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00394945 Jy
! Component: 100  -  total flux cleaned = 0.00628784 Jy
! Component: 150  -  total flux cleaned = 0.00780248 Jy
! Component: 200  -  total flux cleaned = 0.00878874 Jy
! Total flux subtracted in 200 components = 0.00878874 Jy
! Clean residual min=-0.002800 max=0.003853 Jy/beam
! Clean residual mean=0.000196 rms=0.001066 Jy/beam
! Combined flux in latest and established models = 0.512971 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.000645866 Jy
! Component: 100  -  total flux cleaned = 0.00107054 Jy
! Component: 150  -  total flux cleaned = 0.00128674 Jy
! Component: 200  -  total flux cleaned = 0.00138185 Jy
! Total flux subtracted in 200 components = 0.00138185 Jy
! Clean residual min=-0.002837 max=0.003822 Jy/beam
! Clean residual mean=0.000146 rms=0.001072 Jy/beam
! Combined flux in latest and established models = 0.514353 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 158 components and 0.514353 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.323 mas, bmaj=2.834 mas, bpa=6.544 degrees
! Estimated noise=289.493 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00102622 Jy
! Component: 100  -  total flux cleaned = -0.00107065 Jy
! Component: 150  -  total flux cleaned = -0.0010294 Jy
! Component: 200  -  total flux cleaned = -0.00103014 Jy
! Total flux subtracted in 200 components = -0.00103014 Jy
! Clean residual min=-0.001807 max=0.002041 Jy/beam
! Clean residual mean=0.000048 rms=0.000497 Jy/beam
! Combined flux in latest and established models = 0.513323 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 164 components and 0.513323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266463Jy  sigma=0.001483
! Fit after  self-cal, rms=0.266456Jy  sigma=0.001483
wmodel J0102+5824_S_2001_04_09_pus_map.mod
! Writing 164 model components to file: J0102+5824_S_2001_04_09_pus_map.mod
wobs J0102+5824_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0102+5824_S_2001_04_09_pus_uvs.fits
wwins J0102+5824_S_2001_04_09_pus_map.win
! wwins: Wrote 6 windows to J0102+5824_S_2001_04_09_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00073935 Jy
! Component: 100  -  total flux cleaned = 0.000978482 Jy
! Component: 150  -  total flux cleaned = 0.00107705 Jy
! Component: 200  -  total flux cleaned = 0.0012365 Jy
! Component: 250  -  total flux cleaned = 0.00129857 Jy
! Component: 300  -  total flux cleaned = 0.00139031 Jy
! Component: 350  -  total flux cleaned = 0.00151032 Jy
! Component: 400  -  total flux cleaned = 0.00165773 Jy
! Component: 450  -  total flux cleaned = 0.00180287 Jy
! Component: 500  -  total flux cleaned = 0.00197436 Jy
! Component: 550  -  total flux cleaned = 0.00211521 Jy
! Component: 600  -  total flux cleaned = 0.00219877 Jy
! Component: 650  -  total flux cleaned = 0.00230945 Jy
! Component: 700  -  total flux cleaned = 0.002419 Jy
! Component: 750  -  total flux cleaned = 0.00255435 Jy
! Component: 800  -  total flux cleaned = 0.00263477 Jy
! Component: 850  -  total flux cleaned = 0.00266158 Jy
! Component: 900  -  total flux cleaned = 0.0027937 Jy
! Component: 950  -  total flux cleaned = 0.00284578 Jy
! Component: 1000  -  total flux cleaned = 0.00289731 Jy
! Component: 1050  -  total flux cleaned = 0.00294863 Jy
! Component: 1100  -  total flux cleaned = 0.00294857 Jy
! Component: 1150  -  total flux cleaned = 0.00302456 Jy
! Component: 1200  -  total flux cleaned = 0.00302451 Jy
! Component: 1250  -  total flux cleaned = 0.00304965 Jy
! Component: 1300  -  total flux cleaned = 0.00317341 Jy
! Component: 1350  -  total flux cleaned = 0.00319778 Jy
! Component: 1400  -  total flux cleaned = 0.00317322 Jy
! Component: 1450  -  total flux cleaned = 0.00319752 Jy
! Component: 1500  -  total flux cleaned = 0.00324586 Jy
! Component: 1550  -  total flux cleaned = 0.00326993 Jy
! Component: 1600  -  total flux cleaned = 0.00334143 Jy
! Component: 1650  -  total flux cleaned = 0.0033414 Jy
! Component: 1700  -  total flux cleaned = 0.00334132 Jy
! Component: 1750  -  total flux cleaned = 0.00334141 Jy
! Component: 1800  -  total flux cleaned = 0.00343484 Jy
! Component: 1850  -  total flux cleaned = 0.00348127 Jy
! Component: 1900  -  total flux cleaned = 0.00350422 Jy
! Component: 1950  -  total flux cleaned = 0.00350403 Jy
! Component: 2000  -  total flux cleaned = 0.00350404 Jy
! Total flux subtracted in 2048 components = 0.00357226 Jy
! Clean residual min=-0.001318 max=0.001434 Jy/beam
! Clean residual mean=0.000029 rms=0.000419 Jy/beam
! Combined flux in latest and established models = 0.516895 Jy
keep
! Adding 153 model components to the UV plane model.
! The established model now contains 317 components and 0.516895 Jy
![Exited script file: muppet]
wmap "J0102+5824_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.323 x 2.834 at 6.544 degrees (North through East)
! Clean map  min=-0.0015563  max=0.32865 Jy/beam
! Writing clean map to FITS file: J0102+5824_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.328653 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00041854 
device "J0102+5824_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0102+5824_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.38205 0.38205 0.764101 1.5282 3.0564 6.1128 12.2256 24.4512 48.9024 97.8049
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.328 
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.323 x 2.834 at 6.544 degrees (North through East)
! Clean map  min=-0.0015563  max=0.32865 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0102+5824_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0102+5824_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0102+5824_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 15:48:45 2007