! Started logfile: J0555+3948_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:25:01 2008
obs J0555+3948_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0555+3948_X_1998_10_01_pus_uva.fits
! AN table 1: 635 integrations on 136 of 136 possible baselines.
! AN table 2: 382 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.349001 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0555+3948
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  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 193084 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 J0555+3948_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 5469 telescope corrections were flagged in sub-array 1.
!  A total of 2211 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 5469 telescope corrections were flagged in sub-array 1.
!  A total of 2211 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 5469 telescope corrections were flagged in sub-array 1.
!  A total of 2211 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 5469 telescope corrections were flagged in sub-array 1.
!  A total of 2211 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=2.799878Jy  sigma=0.030622
! Fit after  self-cal, rms=2.718767Jy  sigma=0.030005
! 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 0.396% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.5981 mas, bmaj=0.7908 mas, bpa=-21.62 degrees
! Estimated noise=581.962 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 = 2.28884 Jy
! Component: 100  -  total flux cleaned = 3.04507 Jy
! Total flux subtracted in 100 components = 3.04507 Jy
! Clean residual min=-0.076612 max=0.361672 Jy/beam
! Clean residual mean=0.003028 rms=0.030996 Jy/beam
! Combined flux in latest and established models = 3.04507 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 3.04507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.126776Jy  sigma=0.012675
! Fit after  self-cal, rms=1.125430Jy  sigma=0.012670
! Inverting map 
! Your choice of large map pixels excluded 0.396% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.436302 Jy
! Component: 100  -  total flux cleaned = 0.72557 Jy
! Total flux subtracted in 100 components = 0.72557 Jy
! Clean residual min=-0.054706 max=0.225415 Jy/beam
! Clean residual mean=0.001830 rms=0.019873 Jy/beam
! Combined flux in latest and established models = 3.77064 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 3.77064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.754467Jy  sigma=0.008004
! Fit after  self-cal, rms=0.754035Jy  sigma=0.008002
! Inverting map 
! Your choice of large map pixels excluded 0.396% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Added new window around map position (-0.8, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.232458 Jy
! Component: 100  -  total flux cleaned = 0.394573 Jy
! Total flux subtracted in 100 components = 0.394573 Jy
! Clean residual min=-0.046047 max=0.098512 Jy/beam
! Clean residual mean=0.001174 rms=0.015057 Jy/beam
! Combined flux in latest and established models = 4.16521 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 26 components and 4.16521 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.611374Jy  sigma=0.005906
! Fit after  self-cal, rms=0.608114Jy  sigma=0.005885
! Inverting map 
! Your choice of large map pixels excluded 0.396% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.13044 Jy
! Component: 100  -  total flux cleaned = 0.228449 Jy
! Total flux subtracted in 100 components = 0.228449 Jy
! Clean residual min=-0.043071 max=0.067398 Jy/beam
! Clean residual mean=0.000792 rms=0.012722 Jy/beam
! Combined flux in latest and established models = 4.39366 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 34 components and 4.39366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556149Jy  sigma=0.004924
! Fit after  self-cal, rms=0.554800Jy  sigma=0.004914
! Inverting map 
! Your choice of large map pixels excluded 0.396% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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 0.396% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.8112 mas, bmaj=1.285 mas, bpa=-12.1 degrees
! Estimated noise=162.396 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.165903 Jy
! Component: 100  -  total flux cleaned = 0.256299 Jy
! Component: 150  -  total flux cleaned = 0.311075 Jy
! Component: 200  -  total flux cleaned = 0.345531 Jy
! Total flux subtracted in 200 components = 0.345531 Jy
! Clean residual min=-0.053159 max=0.067626 Jy/beam
! Clean residual mean=0.000376 rms=0.015419 Jy/beam
! Combined flux in latest and established models = 4.73919 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 47 components and 4.73919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.526010Jy  sigma=0.004048
! Fit after  self-cal, rms=0.523804Jy  sigma=0.004023
! Inverting map 
! Your choice of large map pixels excluded 0.396% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        0.97     HN        1.09     
!   KK        1.02     KP        0.96     LA        1.00     MK        0.97     
!   NL        0.96     NY        0.97     ON        1.03     OV        0.98     
!   PT        1.03     SC        1.03     WF        1.12     MC        0.94     
!   GN        0.97     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        0.96     HN        0.95     
!   KK        0.99     KP        0.95     LA        0.98     MK        0.99     
!   NL        1.18     NY        0.95     ON        1.03     OV        0.98     
!   PT        1.00     SC        1.06     WF        0.98     MC        1.43     
!   GN        0.94     
! 
! 
! Correcting IF 2.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        1.00     HN        1.16     
!   KK        1.03     KP        0.98     LA        0.96     MK        0.97     
!   NL        0.98     NY        0.98     ON        1.03     OV        0.97     
!   PT        1.03     SC        1.02     WF        1.12     MC        0.92     
!   GN        0.98     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        0.98     HN        0.99     
!   KK        1.00     KP        0.97     LA        0.93     MK        0.98     
!   NL        1.23     NY        0.97     ON        1.03     OV        0.97     
!   PT        1.01     SC        1.05     WF        0.98     MC        1.37     
!   GN        0.95     
! 
! 
! Correcting IF 3.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.99     GC        1.00     HN        1.12     
!   KK        1.03     KP        1.01     LA        0.96     MK        1.01     
!   NL        0.97     NY        0.95     ON        1.05     OV        0.94     
!   PT        1.05     SC        1.06     WF        1.12     MC        0.95     
!   GN        0.98     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.97     GC        0.99     HN        0.95     
!   KK        0.99     KP        1.00     LA        0.94     MK        1.02     
!   NL        1.21     NY        0.94     ON        1.06     OV        0.95     
!   PT        1.02     SC        1.08     WF        0.98     MC        1.51     
!   GN        0.96     
! 
! 
! Correcting IF 4.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.96     GC        0.99     HN        1.19     
!   KK        1.03     KP        0.99     LA        0.98     MK        0.96     
!   NL        0.99     NY        0.97     ON        1.05     OV        0.97     
!   PT        1.01     SC        1.02     WF        1.13     MC        0.92     
!   GN        0.99     
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.95     GC        0.97     HN        1.00     
!   KK        1.00     KP        0.98     LA        0.95     MK        0.97     
!   NL        1.27     NY        0.97     ON        1.05     OV        0.97     
!   PT        0.98     SC        1.04     WF        0.99     MC        1.46     
!   GN        0.96     
! 
! 
! Fit before self-cal, rms=0.523804Jy  sigma=0.004023
! Fit after  self-cal, rms=0.444482Jy  sigma=0.003046
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.8147 mas, bmaj=1.291 mas, bpa=-11.77 degrees
! Estimated noise=161.705 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.00263642 Jy
! Component: 100  -  total flux cleaned = 0.000364263 Jy
! Component: 150  -  total flux cleaned = -0.00136764 Jy
! Component: 200  -  total flux cleaned = -0.0021639 Jy
! Total flux subtracted in 200 components = -0.0021639 Jy
! Clean residual min=-0.014757 max=0.018435 Jy/beam
! Clean residual mean=-0.000474 rms=0.003820 Jy/beam
! Combined flux in latest and established models = 4.73703 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 48 components and 4.73703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443509Jy  sigma=0.003039
! Fit after  self-cal, rms=0.443634Jy  sigma=0.003038
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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.443634Jy  sigma=0.003038
! Fit after  self-cal, rms=0.428522Jy  sigma=0.002866
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.8151 mas, bmaj=1.296 mas, bpa=-11.9 degrees
! Estimated noise=161.673 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00380482 Jy
! Component: 100  -  total flux cleaned = 0.00308714 Jy
! Component: 150  -  total flux cleaned = 0.00250037 Jy
! Component: 200  -  total flux cleaned = 0.00200578 Jy
! Total flux subtracted in 200 components = 0.00200578 Jy
! Clean residual min=-0.008651 max=0.010825 Jy/beam
! Clean residual mean=-0.000188 rms=0.002501 Jy/beam
! Combined flux in latest and established models = 4.73903 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 50 components and 4.73903 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428289Jy  sigma=0.002862
! Fit after  self-cal, rms=0.428213Jy  sigma=0.002861
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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.000212688 Jy
! Component: 100  -  total flux cleaned = 0.000201907 Jy
! Component: 150  -  total flux cleaned = 0.00019769 Jy
! Component: 200  -  total flux cleaned = 0.000193373 Jy
! Total flux subtracted in 200 components = 0.000193373 Jy
! Clean residual min=-0.008626 max=0.010850 Jy/beam
! Clean residual mean=-0.000191 rms=0.002463 Jy/beam
! Combined flux in latest and established models = 4.73923 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 51 components and 4.73923 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428132Jy  sigma=0.002860
! Fit after  self-cal, rms=0.428109Jy  sigma=0.002860
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Added new window around map position (-11.8, 10.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00175388 Jy
! Component: 100  -  total flux cleaned = 0.00141551 Jy
! Component: 150  -  total flux cleaned = 0.00198126 Jy
! Component: 200  -  total flux cleaned = 0.0022334 Jy
! Total flux subtracted in 200 components = 0.0022334 Jy
! Clean residual min=-0.008683 max=0.010075 Jy/beam
! Clean residual mean=-0.000217 rms=0.002475 Jy/beam
! Combined flux in latest and established models = 4.74146 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 71 components and 4.74146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.427155Jy  sigma=0.002856
! Fit after  self-cal, rms=0.427120Jy  sigma=0.002856
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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.427120Jy  sigma=0.002856
! Fit after  self-cal, rms=0.424413Jy  sigma=0.002823
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.815 mas, bmaj=1.298 mas, bpa=-11.85 degrees
! Estimated noise=161.444 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00250504 Jy
! Component: 100  -  total flux cleaned = -0.00350256 Jy
! Component: 150  -  total flux cleaned = -0.00415336 Jy
! Component: 200  -  total flux cleaned = -0.00451911 Jy
! Total flux subtracted in 200 components = -0.00451911 Jy
! Clean residual min=-0.009047 max=0.009113 Jy/beam
! Clean residual mean=-0.000246 rms=0.002228 Jy/beam
! Combined flux in latest and established models = 4.73694 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 81 components and 4.73694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423978Jy  sigma=0.002821
! Fit after  self-cal, rms=0.424821Jy  sigma=0.002821
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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.000862748 Jy
! Component: 100  -  total flux cleaned = -0.00102731 Jy
! Component: 150  -  total flux cleaned = -0.000870978 Jy
! Component: 200  -  total flux cleaned = -0.000723569 Jy
! Total flux subtracted in 200 components = -0.000723569 Jy
! Clean residual min=-0.007893 max=0.008584 Jy/beam
! Clean residual mean=-0.000246 rms=0.002226 Jy/beam
! Combined flux in latest and established models = 4.73622 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 89 components and 4.73622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424607Jy  sigma=0.002820
! Fit after  self-cal, rms=0.424587Jy  sigma=0.002820
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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.424587Jy  sigma=0.002820
! Fit after  self-cal, rms=0.425121Jy  sigma=0.002819
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=2.163 mas, bmaj=2.498 mas, bpa=-8.393 degrees
! Estimated noise=216.424 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0034582 Jy
! Component: 100  -  total flux cleaned = -0.00344962 Jy
! Component: 150  -  total flux cleaned = -0.00314026 Jy
! Component: 200  -  total flux cleaned = -0.0029654 Jy
! Total flux subtracted in 200 components = -0.0029654 Jy
! Clean residual min=-0.006984 max=0.006213 Jy/beam
! Clean residual mean=-0.000855 rms=0.002017 Jy/beam
! Combined flux in latest and established models = 4.73325 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 92 components and 4.73325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425004Jy  sigma=0.002820
! Fit after  self-cal, rms=0.425008Jy  sigma=0.002820
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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.000220928 Jy
! Component: 100  -  total flux cleaned = 0.000119052 Jy
! Component: 150  -  total flux cleaned = 0.00012111 Jy
! Component: 200  -  total flux cleaned = 0.000189025 Jy
! Total flux subtracted in 200 components = 0.000189025 Jy
! Clean residual min=-0.007095 max=0.006171 Jy/beam
! Clean residual mean=-0.000877 rms=0.002004 Jy/beam
! Combined flux in latest and established models = 4.73344 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 92 components and 4.73344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424933Jy  sigma=0.002820
! Fit after  self-cal, rms=0.424922Jy  sigma=0.002820
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.815 mas, bmaj=1.298 mas, bpa=-11.82 degrees
! Estimated noise=161.283 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.815 x 1.298 at -11.82 degrees (North through East)
! Clean map  min=-0.013284  max=3.4785 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.424922Jy  sigma=0.002820
! Fit after  self-cal, rms=0.376489Jy  sigma=0.002280
! Inverting map and beam 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.8151 mas, bmaj=1.298 mas, bpa=-11.8 degrees
! Estimated noise=161.282 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00371342 Jy
! Component: 100  -  total flux cleaned = -0.00424051 Jy
! Component: 150  -  total flux cleaned = -0.0050917 Jy
! Component: 200  -  total flux cleaned = -0.00583819 Jy
! Total flux subtracted in 200 components = -0.00583819 Jy
! Clean residual min=-0.005781 max=0.005460 Jy/beam
! Clean residual mean=-0.000305 rms=0.001108 Jy/beam
! Combined flux in latest and established models = 4.7276 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 105 components and 4.7276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376139Jy  sigma=0.002275
! Fit after  self-cal, rms=0.376103Jy  sigma=0.002274
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000540923 Jy
! Component: 100  -  total flux cleaned = -0.00103966 Jy
! Component: 150  -  total flux cleaned = -0.00177579 Jy
! Component: 200  -  total flux cleaned = -0.00203729 Jy
! Total flux subtracted in 200 components = -0.00203729 Jy
! Clean residual min=-0.005072 max=0.005347 Jy/beam
! Clean residual mean=-0.000290 rms=0.000997 Jy/beam
! Combined flux in latest and established models = 4.72557 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 107 components and 4.72557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375963Jy  sigma=0.002272
! Fit after  self-cal, rms=0.375942Jy  sigma=0.002272
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Added new window around map position (-2, -0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00202674 Jy
! Component: 100  -  total flux cleaned = 0.00148239 Jy
! Component: 150  -  total flux cleaned = 0.0013595 Jy
! Component: 200  -  total flux cleaned = 0.00113613 Jy
! Total flux subtracted in 200 components = 0.00113613 Jy
! Clean residual min=-0.004573 max=0.003246 Jy/beam
! Clean residual mean=-0.000312 rms=0.000893 Jy/beam
! Combined flux in latest and established models = 4.7267 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 119 components and 4.7267 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375841Jy  sigma=0.002271
! Fit after  self-cal, rms=0.375828Jy  sigma=0.002270
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375828Jy  sigma=0.002270
! Fit after  self-cal, rms=0.385295Jy  sigma=0.002270
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 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.6045 mas, bmaj=0.8049 mas, bpa=-19.04 degrees
! Estimated noise=590.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.32171 Jy
! Component: 100  -  total flux cleaned = 3.09263 Jy
! Component: 150  -  total flux cleaned = 3.51937 Jy
! Component: 200  -  total flux cleaned = 3.80598 Jy
! Total flux subtracted in 200 components = 3.80598 Jy
! Clean residual min=-0.032506 max=0.158770 Jy/beam
! Clean residual mean=0.001581 rms=0.014502 Jy/beam
! Combined flux in latest and established models = 3.80598 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 18 model components to the UV plane model.
! The established model now contains 18 components and 3.80598 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.8152 mas, bmaj=1.298 mas, bpa=-11.76 degrees
! Estimated noise=161.261 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.388045 Jy
! Component: 100  -  total flux cleaned = 0.595283 Jy
! Component: 150  -  total flux cleaned = 0.718731 Jy
! Component: 200  -  total flux cleaned = 0.795138 Jy
! Total flux subtracted in 200 components = 0.795138 Jy
! Clean residual min=-0.011462 max=0.045290 Jy/beam
! Clean residual mean=0.001197 rms=0.006369 Jy/beam
! Combined flux in latest and established models = 4.60111 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 43 components and 4.60111 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Added new window around map position (0.6, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0496447 Jy
! Component: 100  -  total flux cleaned = 0.0812426 Jy
! Component: 150  -  total flux cleaned = 0.101925 Jy
! Component: 200  -  total flux cleaned = 0.110221 Jy
! Total flux subtracted in 200 components = 0.110221 Jy
! Clean residual min=-0.008753 max=0.008773 Jy/beam
! Clean residual mean=-0.000066 rms=0.001592 Jy/beam
! Combined flux in latest and established models = 4.71134 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 55 components and 4.71134 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00348848 Jy
! Component: 100  -  total flux cleaned = 0.00574824 Jy
! Component: 150  -  total flux cleaned = 0.00657656 Jy
! Component: 200  -  total flux cleaned = 0.00735762 Jy
! Total flux subtracted in 200 components = 0.00735762 Jy
! Clean residual min=-0.006121 max=0.006233 Jy/beam
! Clean residual mean=-0.000148 rms=0.001275 Jy/beam
! Combined flux in latest and established models = 4.71869 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 60 components and 4.71869 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00107943 Jy
! Component: 100  -  total flux cleaned = 0.00175534 Jy
! Component: 150  -  total flux cleaned = 0.00240318 Jy
! Component: 200  -  total flux cleaned = 0.00302081 Jy
! Total flux subtracted in 200 components = 0.00302081 Jy
! Clean residual min=-0.004974 max=0.005032 Jy/beam
! Clean residual mean=-0.000181 rms=0.001117 Jy/beam
! Combined flux in latest and established models = 4.72171 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 62 components and 4.72171 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000588268 Jy
! Component: 100  -  total flux cleaned = 0.00087751 Jy
! Component: 150  -  total flux cleaned = 0.00140698 Jy
! Component: 200  -  total flux cleaned = 0.00165899 Jy
! Total flux subtracted in 200 components = 0.00165899 Jy
! Clean residual min=-0.004132 max=0.004108 Jy/beam
! Clean residual mean=-0.000200 rms=0.001014 Jy/beam
! Combined flux in latest and established models = 4.72337 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 64 components and 4.72337 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 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 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=2.164 mas, bmaj=2.499 mas, bpa=-8.116 degrees
! Estimated noise=216.252 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000727426 Jy
! Component: 100  -  total flux cleaned = 0.00054014 Jy
! Component: 150  -  total flux cleaned = 0.00024977 Jy
! Component: 200  -  total flux cleaned = -4.76901e-05 Jy
! Total flux subtracted in 200 components = -4.76901e-05 Jy
! Clean residual min=-0.003312 max=0.002574 Jy/beam
! Clean residual mean=-0.000599 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 4.72333 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.000309874 Jy
! Component: 100  -  total flux cleaned = -0.000627591 Jy
! Component: 150  -  total flux cleaned = -0.000831364 Jy
! Component: 200  -  total flux cleaned = -0.000980445 Jy
! Total flux subtracted in 200 components = -0.000980445 Jy
! Clean residual min=-0.003116 max=0.002414 Jy/beam
! Clean residual mean=-0.000570 rms=0.000832 Jy/beam
! Combined flux in latest and established models = 4.72235 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 90 components and 4.72234 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! Estimated beam: bmin=0.8152 mas, bmaj=1.298 mas, bpa=-11.76 degrees
! Estimated noise=161.261 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00146157 Jy
! Component: 100  -  total flux cleaned = -0.00123905 Jy
! Component: 150  -  total flux cleaned = -0.00123833 Jy
! Component: 200  -  total flux cleaned = -0.00123949 Jy
! Total flux subtracted in 200 components = -0.00123949 Jy
! Clean residual min=-0.003453 max=0.003459 Jy/beam
! Clean residual mean=-0.000186 rms=0.000909 Jy/beam
! Combined flux in latest and established models = 4.7211 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 94 components and 4.72111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386773Jy  sigma=0.002282
! Fit after  self-cal, rms=0.386102Jy  sigma=0.002279
wmodel J0555+3948_X_1998_10_01_pus_map.mod
! Writing 94 model components to file: J0555+3948_X_1998_10_01_pus_map.mod
wobs J0555+3948_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0555+3948_X_1998_10_01_pus_uvs.fits
wwins J0555+3948_X_1998_10_01_pus_map.win
! wwins: Wrote 5 windows to J0555+3948_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 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00023378 Jy
! Component: 100  -  total flux cleaned = 0.000235329 Jy
! Component: 150  -  total flux cleaned = 0.00016592 Jy
! Component: 200  -  total flux cleaned = 0.000234545 Jy
! Component: 250  -  total flux cleaned = 0.000234628 Jy
! Component: 300  -  total flux cleaned = 0.000234868 Jy
! Component: 350  -  total flux cleaned = 0.000170292 Jy
! Component: 400  -  total flux cleaned = 0.00017066 Jy
! Component: 450  -  total flux cleaned = 0.000232834 Jy
! Component: 500  -  total flux cleaned = 0.000293853 Jy
! Component: 550  -  total flux cleaned = 0.00029353 Jy
! Component: 600  -  total flux cleaned = 0.000293901 Jy
! Component: 650  -  total flux cleaned = 0.000234997 Jy
! Component: 700  -  total flux cleaned = 0.000177531 Jy
! Component: 750  -  total flux cleaned = 0.000178192 Jy
! Component: 800  -  total flux cleaned = 0.000122231 Jy
! Component: 850  -  total flux cleaned = 1.11228e-05 Jy
! Component: 900  -  total flux cleaned = 1.10247e-05 Jy
! Component: 950  -  total flux cleaned = -4.34387e-05 Jy
! Component: 1000  -  total flux cleaned = -9.74532e-05 Jy
! Total flux subtracted in 1024 components = -9.70798e-05 Jy
! Clean residual min=-0.002682 max=0.002688 Jy/beam
! Clean residual mean=-0.000186 rms=0.000789 Jy/beam
! Combined flux in latest and established models = 4.72101 Jy
keep
! Adding 22 model components to the UV plane model.
! The established model now contains 104 components and 4.72101 Jy
![Exited script file: muppet]
wmap "J0555+3948_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8152 x 1.298 at -11.76 degrees (North through East)
! Clean map  min=-0.0034489  max=3.4792 Jy/beam
! Writing clean map to FITS file: J0555+3948_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 3.47916 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.394% of the data.
!  The x-axis pixel size should ideally be below 0.1836 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000788578 
device "J0555+3948_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0679973 0.0679973 0.135995 0.271989 0.543978 1.08796 2.17591 4.35183 8.70366 17.4073 34.8146 69.6292
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.479 
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.8152 x 1.298 at -11.76 degrees (North through East)
! Clean map  min=-0.0034489  max=3.4792 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:25:54 2008