! Started logfile: J0102+5824_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:19:48 2008
obs J0102+5824_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0102+5824_X_1998_10_01_pus_uva.fits
! AN table 1: 1254 integrations on 136 of 136 possible baselines.
! AN table 2: 355 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.203081 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  8.40798e+09        4e+06          1        4e+06
!  02        2  8.47798e+09        4e+06          1        4e+06
!  03        3  8.79298e+09        4e+06          1        4e+06
!  04        4  8.89798e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 2049 lines of history.
! 
! Reading 177756 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J0102+5824_X_1998_10_01_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 = 256x256 pixels with 0.200x0.200 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 14356 telescope corrections were flagged in sub-array 1.
!  A total of 3777 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 14355 telescope corrections were flagged in sub-array 1.
!  A total of 3777 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 14361 telescope corrections were flagged in sub-array 1.
!  A total of 3777 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 14355 telescope corrections were flagged in sub-array 1.
!  A total of 3777 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.292127Jy  sigma=0.010918
! Fit after  self-cal, rms=0.742253Jy  sigma=0.006254
! 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 
! Your choice of large map pixels excluded 3.33% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.5811 mas, bmaj=0.6435 mas, bpa=-26.18 degrees
! Estimated noise=461.844 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.15544 Jy
! Component: 100  -  total flux cleaned = 1.41244 Jy
! Total flux subtracted in 100 components = 1.41244 Jy
! Clean residual min=-0.026286 max=0.090915 Jy/beam
! Clean residual mean=0.000317 rms=0.006728 Jy/beam
! Combined flux in latest and established models = 1.41244 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.41244 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.531268Jy  sigma=0.003747
! Fit after  self-cal, rms=0.531260Jy  sigma=0.003747
! Inverting map 
! Your choice of large map pixels excluded 3.33% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.108622 Jy
! Component: 100  -  total flux cleaned = 0.182793 Jy
! Total flux subtracted in 100 components = 0.182793 Jy
! Clean residual min=-0.022790 max=0.041152 Jy/beam
! Clean residual mean=0.000120 rms=0.004979 Jy/beam
! Combined flux in latest and established models = 1.59523 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 1.59523 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.498607Jy  sigma=0.003185
! Fit after  self-cal, rms=0.498549Jy  sigma=0.003184
! Inverting map 
! Your choice of large map pixels excluded 3.33% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0524341 Jy
! Component: 100  -  total flux cleaned = 0.0892037 Jy
! Total flux subtracted in 100 components = 0.0892037 Jy
! Clean residual min=-0.020936 max=0.025146 Jy/beam
! Clean residual mean=0.000022 rms=0.004403 Jy/beam
! Combined flux in latest and established models = 1.68444 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 15 components and 1.68444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.491725Jy  sigma=0.003026
! Fit after  self-cal, rms=0.491661Jy  sigma=0.003025
! Inverting map 
! Your choice of large map pixels excluded 3.33% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Added new window around map position (-0.6, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0296924 Jy
! Component: 100  -  total flux cleaned = 0.050753 Jy
! Total flux subtracted in 100 components = 0.050753 Jy
! Clean residual min=-0.020436 max=0.017209 Jy/beam
! Clean residual mean=-0.000032 rms=0.004173 Jy/beam
! Combined flux in latest and established models = 1.73519 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 1.73519 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.490103Jy  sigma=0.002976
! Fit after  self-cal, rms=0.489974Jy  sigma=0.002975
! Inverting map 
! Your choice of large map pixels excluded 3.33% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
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 
! Your choice of large map pixels excluded 3.33% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.7544 mas, bmaj=0.8419 mas, bpa=-14.89 degrees
! Estimated noise=203.365 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.0231163 Jy
! Component: 100  -  total flux cleaned = 0.0350194 Jy
! Component: 150  -  total flux cleaned = 0.0417514 Jy
! Component: 200  -  total flux cleaned = 0.0455595 Jy
! Total flux subtracted in 200 components = 0.0455595 Jy
! Clean residual min=-0.019026 max=0.017051 Jy/beam
! Clean residual mean=-0.001078 rms=0.004258 Jy/beam
! Combined flux in latest and established models = 1.78075 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 23 components and 1.78075 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.489404Jy  sigma=0.002952
! Fit after  self-cal, rms=0.489296Jy  sigma=0.002950
! Inverting map 
! Your choice of large map pixels excluded 3.33% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 885 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.02     GC        0.95     HN        0.98     
!   KK        1.03     KP        0.96     LA        0.99     MK        0.99     
!   NL        0.99     NY        0.96     ON        0.97     OV        0.99     
!   PT        0.99     SC        1.00     WF        1.11     MC        1.06     
!   GN        0.96     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        0.97     HN        1.03     
!   KK        1.09     KP        1.05     LA        1.15     MK        1.04     
!   NL        1.01     NY        0.99     ON        0.98     OV        1.06     
!   PT        1.11     SC        1.13     WF        1.13     MC        1.06     
!   GN        1.05     
! 
! 
! Correcting IF 2.
!  A total of 885 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.03     GC        0.98     HN        1.02     
!   KK        1.04     KP        0.97     LA        0.94     MK        0.99     
!   NL        1.00     NY        0.98     ON        0.98     OV        0.98     
!   PT        0.99     SC        0.99     WF        1.10     MC        1.03     
!   GN        0.96     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        0.99     HN        1.08     
!   KK        1.11     KP        1.08     LA        1.10     MK        1.02     
!   NL        1.03     NY        1.00     ON        0.99     OV        1.04     
!   PT        1.11     SC        1.11     WF        1.12     MC        1.00     
!   GN        1.05     
! 
! 
! Correcting IF 3.
!  A total of 885 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        0.98     HN        0.97     
!   KK        1.03     KP        1.00     LA        0.94     MK        1.04     
!   NL        0.99     NY        0.95     ON        0.98     OV        0.94     
!   PT        1.00     SC        1.02     WF        1.09     MC        1.09     
!   GN        0.96     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.96     GC        1.00     HN        1.04     
!   KK        1.12     KP        1.10     LA        1.11     MK        1.07     
!   NL        1.02     NY        0.97     ON        1.01     OV        1.01     
!   PT        1.11     SC        1.14     WF        1.11     MC        1.07     
!   GN        1.04     
! 
! 
! Correcting IF 4.
!  A total of 885 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.97     HN        1.02     
!   KK        1.03     KP        0.97     LA        0.96     MK        0.99     
!   NL        1.00     NY        0.98     ON        0.99     OV        0.97     
!   PT        0.96     SC        1.00     WF        1.12     MC        1.05     
!   GN        0.96     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        0.98     HN        1.08     
!   KK        1.11     KP        1.08     LA        1.14     MK        1.03     
!   NL        1.04     NY        1.00     ON        1.00     OV        1.03     
!   PT        1.06     SC        1.12     WF        1.09     MC        1.02     
!   GN        1.03     
! 
! 
! Fit before self-cal, rms=0.489296Jy  sigma=0.002950
! Fit after  self-cal, rms=0.493175Jy  sigma=0.002812
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.7623 mas, bmaj=0.8461 mas, bpa=-13.11 degrees
! Estimated noise=203.943 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.0050791 Jy
! Component: 100  -  total flux cleaned = -0.00673957 Jy
! Component: 150  -  total flux cleaned = -0.00831616 Jy
! Component: 200  -  total flux cleaned = -0.00938694 Jy
! Total flux subtracted in 200 components = -0.00938694 Jy
! Clean residual min=-0.013358 max=0.013165 Jy/beam
! Clean residual mean=-0.000383 rms=0.003157 Jy/beam
! Combined flux in latest and established models = 1.77136 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 28 components and 1.77136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.492911Jy  sigma=0.002808
! Fit after  self-cal, rms=0.492977Jy  sigma=0.002807
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
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.492977Jy  sigma=0.002807
! Fit after  self-cal, rms=0.500285Jy  sigma=0.002655
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.7605 mas, bmaj=0.8495 mas, bpa=-14.58 degrees
! Estimated noise=204.089 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00320725 Jy
! Component: 100  -  total flux cleaned = -0.0038006 Jy
! Component: 150  -  total flux cleaned = -0.00396925 Jy
! Component: 200  -  total flux cleaned = -0.00438153 Jy
! Total flux subtracted in 200 components = -0.00438153 Jy
! Clean residual min=-0.007351 max=0.007301 Jy/beam
! Clean residual mean=0.000143 rms=0.001091 Jy/beam
! Combined flux in latest and established models = 1.76698 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 32 components and 1.76698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.500129Jy  sigma=0.002654
! Fit after  self-cal, rms=0.500188Jy  sigma=0.002653
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
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 (-1.6, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00760765 Jy
! Component: 100  -  total flux cleaned = 0.00868401 Jy
! Component: 150  -  total flux cleaned = 0.00955717 Jy
! Component: 200  -  total flux cleaned = 0.0102916 Jy
! Total flux subtracted in 200 components = 0.0102916 Jy
! Clean residual min=-0.006780 max=0.003503 Jy/beam
! Clean residual mean=0.000025 rms=0.000940 Jy/beam
! Combined flux in latest and established models = 1.77727 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 53 components and 1.77727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.500026Jy  sigma=0.002651
! Fit after  self-cal, rms=0.499991Jy  sigma=0.002651
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
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.499991Jy  sigma=0.002651
! Fit after  self-cal, rms=0.505837Jy  sigma=0.002642
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.7602 mas, bmaj=0.8501 mas, bpa=-14.97 degrees
! Estimated noise=204.116 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156413 Jy
! Component: 100  -  total flux cleaned = 0.00223391 Jy
! Component: 150  -  total flux cleaned = 0.0026598 Jy
! Component: 200  -  total flux cleaned = 0.00291649 Jy
! Total flux subtracted in 200 components = 0.00291649 Jy
! Clean residual min=-0.006803 max=0.003056 Jy/beam
! Clean residual mean=0.000016 rms=0.000751 Jy/beam
! Combined flux in latest and established models = 1.78019 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 58 components and 1.78019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505744Jy  sigma=0.002641
! Fit after  self-cal, rms=0.505769Jy  sigma=0.002641
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
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.000685754 Jy
! Component: 100  -  total flux cleaned = 0.000806526 Jy
! Component: 150  -  total flux cleaned = 0.00102877 Jy
! Component: 200  -  total flux cleaned = 0.00112928 Jy
! Total flux subtracted in 200 components = 0.00112928 Jy
! Clean residual min=-0.006135 max=0.002870 Jy/beam
! Clean residual mean=0.000003 rms=0.000728 Jy/beam
! Combined flux in latest and established models = 1.78132 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 62 components and 1.78132 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505715Jy  sigma=0.002640
! Fit after  self-cal, rms=0.505707Jy  sigma=0.002640
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.505707Jy  sigma=0.002640
! Fit after  self-cal, rms=0.506391Jy  sigma=0.002640
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=2.288 mas, bmaj=2.529 mas, bpa=28.98 degrees
! Estimated noise=294.558 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171422 Jy
! Component: 100  -  total flux cleaned = 0.00184376 Jy
! Component: 150  -  total flux cleaned = 0.0021175 Jy
! Component: 200  -  total flux cleaned = 0.0023075 Jy
! Total flux subtracted in 200 components = 0.0023075 Jy
! Clean residual min=-0.002538 max=0.003915 Jy/beam
! Clean residual mean=-0.000039 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 1.78363 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 73 components and 1.78363 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.506399Jy  sigma=0.002640
! Fit after  self-cal, rms=0.506380Jy  sigma=0.002640
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
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.000689729 Jy
! Component: 100  -  total flux cleaned = 0.000831681 Jy
! Component: 150  -  total flux cleaned = 0.000939491 Jy
! Component: 200  -  total flux cleaned = 0.00102511 Jy
! Total flux subtracted in 200 components = 0.00102511 Jy
! Clean residual min=-0.002732 max=0.003870 Jy/beam
! Clean residual mean=-0.000077 rms=0.001017 Jy/beam
! Combined flux in latest and established models = 1.78465 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 78 components and 1.78465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.506380Jy  sigma=0.002640
! Fit after  self-cal, rms=0.506374Jy  sigma=0.002640
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
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 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.7601 mas, bmaj=0.8506 mas, bpa=-15.15 degrees
! Estimated noise=204.193 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7601 x 0.8506 at -15.15 degrees (North through East)
! Clean map  min=-0.0025087  max=1.5484 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.506374Jy  sigma=0.002640
! Fit after  self-cal, rms=1.195705Jy  sigma=0.002458
! Inverting map and beam 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.7608 mas, bmaj=0.8498 mas, bpa=-15.11 degrees
! Estimated noise=203.904 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000316771 Jy
! Component: 100  -  total flux cleaned = 2.60547e-05 Jy
! Component: 150  -  total flux cleaned = 2.73394e-05 Jy
! Component: 200  -  total flux cleaned = 2.59586e-05 Jy
! Total flux subtracted in 200 components = 2.59586e-05 Jy
! Clean residual min=-0.005094 max=0.002360 Jy/beam
! Clean residual mean=0.000018 rms=0.000652 Jy/beam
! Combined flux in latest and established models = 1.78468 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 80 components and 1.78468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.195685Jy  sigma=0.002457
! Fit after  self-cal, rms=1.195694Jy  sigma=0.002457
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000147083 Jy
! Component: 100  -  total flux cleaned = -0.000147203 Jy
! Component: 150  -  total flux cleaned = -7.68183e-05 Jy
! Component: 200  -  total flux cleaned = -7.80605e-05 Jy
! Total flux subtracted in 200 components = -7.80605e-05 Jy
! Clean residual min=-0.004670 max=0.002345 Jy/beam
! Clean residual mean=0.000019 rms=0.000641 Jy/beam
! Combined flux in latest and established models = 1.7846 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 81 components and 1.7846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.195683Jy  sigma=0.002457
! Fit after  self-cal, rms=1.195683Jy  sigma=0.002457
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.195683Jy  sigma=0.002457
! Fit after  self-cal, rms=1.657064Jy  sigma=0.002457
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 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.5871 mas, bmaj=0.6506 mas, bpa=-25.07 degrees
! Estimated noise=462.839 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.15831 Jy
! Component: 100  -  total flux cleaned = 1.41717 Jy
! Component: 150  -  total flux cleaned = 1.51722 Jy
! Component: 200  -  total flux cleaned = 1.58132 Jy
! Total flux subtracted in 200 components = 1.58132 Jy
! Clean residual min=-0.008074 max=0.035542 Jy/beam
! Clean residual mean=0.000219 rms=0.002651 Jy/beam
! Combined flux in latest and established models = 1.58132 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 17 model components to the UV plane model.
! The established model now contains 17 components and 1.58132 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.7606 mas, bmaj=0.8502 mas, bpa=-15.13 degrees
! Estimated noise=204.006 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.0808243 Jy
! Component: 100  -  total flux cleaned = 0.123249 Jy
! Component: 150  -  total flux cleaned = 0.148603 Jy
! Component: 200  -  total flux cleaned = 0.165066 Jy
! Total flux subtracted in 200 components = 0.165066 Jy
! Clean residual min=-0.002854 max=0.010105 Jy/beam
! Clean residual mean=0.000458 rms=0.001315 Jy/beam
! Combined flux in latest and established models = 1.74638 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 39 components and 1.74638 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Added new window around map position (0, -0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0116338 Jy
! Component: 100  -  total flux cleaned = 0.0198487 Jy
! Component: 150  -  total flux cleaned = 0.0257705 Jy
! Component: 200  -  total flux cleaned = 0.0278215 Jy
! Total flux subtracted in 200 components = 0.0278215 Jy
! Clean residual min=-0.002888 max=0.003849 Jy/beam
! Clean residual mean=0.000142 rms=0.000732 Jy/beam
! Combined flux in latest and established models = 1.77421 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 56 components and 1.77421 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Added new window around map position (-3, -1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00233523 Jy
! Component: 100  -  total flux cleaned = 0.00352205 Jy
! Component: 150  -  total flux cleaned = 0.00458961 Jy
! Component: 200  -  total flux cleaned = 0.00520337 Jy
! Total flux subtracted in 200 components = 0.00520337 Jy
! Clean residual min=-0.002791 max=0.002551 Jy/beam
! Clean residual mean=0.000084 rms=0.000658 Jy/beam
! Combined flux in latest and established models = 1.77941 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 69 components and 1.77941 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=2.287 mas, bmaj=2.528 mas, bpa=28.87 degrees
! Estimated noise=294.28 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00419798 Jy
! Component: 100  -  total flux cleaned = 0.00592075 Jy
! Component: 150  -  total flux cleaned = 0.00624093 Jy
! Component: 200  -  total flux cleaned = 0.00635681 Jy
! Total flux subtracted in 200 components = 0.00635681 Jy
! Clean residual min=-0.002576 max=0.003410 Jy/beam
! Clean residual mean=0.000040 rms=0.000866 Jy/beam
! Combined flux in latest and established models = 1.78577 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 = 6.76385e-05 Jy
! Component: 100  -  total flux cleaned = 0.000127276 Jy
! Component: 150  -  total flux cleaned = 0.000163102 Jy
! Component: 200  -  total flux cleaned = 0.000211423 Jy
! Total flux subtracted in 200 components = 0.000211423 Jy
! Clean residual min=-0.002596 max=0.003358 Jy/beam
! Clean residual mean=0.000032 rms=0.000861 Jy/beam
! Combined flux in latest and established models = 1.78598 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 93 components and 1.78598 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! Estimated beam: bmin=0.7606 mas, bmaj=0.8502 mas, bpa=-15.13 degrees
! Estimated noise=204.006 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00105436 Jy
! Component: 100  -  total flux cleaned = -0.00105594 Jy
! Component: 150  -  total flux cleaned = -0.000958278 Jy
! Component: 200  -  total flux cleaned = -0.000957713 Jy
! Total flux subtracted in 200 components = -0.000957713 Jy
! Clean residual min=-0.002653 max=0.002321 Jy/beam
! Clean residual mean=0.000023 rms=0.000604 Jy/beam
! Combined flux in latest and established models = 1.78502 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 99 components and 1.78502 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.657035Jy  sigma=0.002455
! Fit after  self-cal, rms=1.657010Jy  sigma=0.002455
wmodel J0102+5824_X_1998_10_01_pus_map.mod
! Writing 99 model components to file: J0102+5824_X_1998_10_01_pus_map.mod
wobs J0102+5824_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0102+5824_X_1998_10_01_pus_uvs.fits
wwins J0102+5824_X_1998_10_01_pus_map.win
! wwins: Wrote 5 windows to J0102+5824_X_1998_10_01_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000109644 Jy
! Component: 100  -  total flux cleaned = 1.34038e-05 Jy
! Component: 150  -  total flux cleaned = 1.29312e-05 Jy
! Component: 200  -  total flux cleaned = 0.000163328 Jy
! Component: 250  -  total flux cleaned = 0.000163234 Jy
! Component: 300  -  total flux cleaned = 0.000234078 Jy
! Component: 350  -  total flux cleaned = 0.000338293 Jy
! Component: 400  -  total flux cleaned = 0.000372294 Jy
! Component: 450  -  total flux cleaned = 0.000406201 Jy
! Component: 500  -  total flux cleaned = 0.000439822 Jy
! Component: 550  -  total flux cleaned = 0.000538651 Jy
! Component: 600  -  total flux cleaned = 0.000636121 Jy
! Component: 650  -  total flux cleaned = 0.000732264 Jy
! Component: 700  -  total flux cleaned = 0.000795473 Jy
! Component: 750  -  total flux cleaned = 0.000921076 Jy
! Component: 800  -  total flux cleaned = 0.00101431 Jy
! Component: 850  -  total flux cleaned = 0.00110679 Jy
! Component: 900  -  total flux cleaned = 0.00116784 Jy
! Component: 950  -  total flux cleaned = 0.00122833 Jy
! Component: 1000  -  total flux cleaned = 0.00128832 Jy
! Total flux subtracted in 1024 components = 0.00134795 Jy
! Clean residual min=-0.002076 max=0.001765 Jy/beam
! Clean residual mean=0.000016 rms=0.000547 Jy/beam
! Combined flux in latest and established models = 1.78637 Jy
keep
! Adding 69 model components to the UV plane model.
! The established model now contains 162 components and 1.78637 Jy
![Exited script file: muppet]
wmap "J0102+5824_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7606 x 0.8502 at -15.13 degrees (North through East)
! Clean map  min=-0.0020609  max=1.5488 Jy/beam
! Writing clean map to FITS file: J0102+5824_X_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.54877 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.49% of the data.
!  The x-axis pixel size should ideally be below 0.1604 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1712 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000546989 
device "J0102+5824_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0102+5824_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.105953 0.105953 0.211905 0.423811 0.847621 1.69524 3.39049 6.78097 13.5619 27.1239 54.2478
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.548 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7606 x 0.8502 at -15.13 degrees (North through East)
! Clean map  min=-0.0020609  max=1.5488 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0102+5824_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0102+5824_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0102+5824_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:20:42 2008