! Started logfile: J0006-0623_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:17:14 2008
obs J0006-0623_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0006-0623_X_1998_10_01_pus_uva.fits
! AN table 1: 100 integrations on 136 of 136 possible baselines.
! AN table 2: 111 integrations on 136 of 136 possible baselines.
! AN table 3: 19 integrations on 136 of 136 possible baselines.
! AN table 4: 32 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.178828 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0006-0623
! 
! 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 25488 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 J0006-0623_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 1281 telescope corrections were flagged in sub-array 1.
!  A total of 981 telescope corrections were flagged in sub-array 2.
!  A total of 269 telescope corrections were flagged in sub-array 3.
!  A total of 355 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1281 telescope corrections were flagged in sub-array 1.
!  A total of 981 telescope corrections were flagged in sub-array 2.
!  A total of 269 telescope corrections were flagged in sub-array 3.
!  A total of 355 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1281 telescope corrections were flagged in sub-array 1.
!  A total of 981 telescope corrections were flagged in sub-array 2.
!  A total of 269 telescope corrections were flagged in sub-array 3.
!  A total of 355 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1281 telescope corrections were flagged in sub-array 1.
!  A total of 981 telescope corrections were flagged in sub-array 2.
!  A total of 269 telescope corrections were flagged in sub-array 3.
!  A total of 355 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.934501Jy  sigma=0.009047
! Fit after  self-cal, rms=0.840504Jy  sigma=0.008322
! 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.602% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.5655 mas, bmaj=1.943 mas, bpa=-6.564 degrees
! Estimated noise=783.847 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.18432 Jy
! Component: 100  -  total flux cleaned = 1.53417 Jy
! Total flux subtracted in 100 components = 1.53417 Jy
! Clean residual min=-0.047378 max=0.151305 Jy/beam
! Clean residual mean=0.001139 rms=0.017946 Jy/beam
! Combined flux in latest and established models = 1.53417 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.53417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.507585Jy  sigma=0.004628
! Fit after  self-cal, rms=0.506756Jy  sigma=0.004625
! Inverting map 
! Your choice of large map pixels excluded 0.602% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.161896 Jy
! Component: 100  -  total flux cleaned = 0.246533 Jy
! Total flux subtracted in 100 components = 0.246533 Jy
! Clean residual min=-0.034576 max=0.112099 Jy/beam
! Clean residual mean=0.000690 rms=0.011850 Jy/beam
! Combined flux in latest and established models = 1.7807 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 24 components and 1.7807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424043Jy  sigma=0.003512
! Fit after  self-cal, rms=0.423663Jy  sigma=0.003510
! Inverting map 
! Your choice of large map pixels excluded 0.602% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Added new window around map position (-1, 0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0982464 Jy
! Component: 100  -  total flux cleaned = 0.14987 Jy
! Total flux subtracted in 100 components = 0.14987 Jy
! Clean residual min=-0.029696 max=0.046812 Jy/beam
! Clean residual mean=0.000355 rms=0.008528 Jy/beam
! Combined flux in latest and established models = 1.93057 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 32 components and 1.93058 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393128Jy  sigma=0.003050
! Fit after  self-cal, rms=0.389499Jy  sigma=0.003023
! Inverting map 
! Your choice of large map pixels excluded 0.602% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.602% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.777 mas, bmaj=2.531 mas, bpa=-8.238 degrees
! Estimated noise=480.61 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.0735588 Jy
! Component: 100  -  total flux cleaned = 0.113108 Jy
! Component: 150  -  total flux cleaned = 0.137204 Jy
! Component: 200  -  total flux cleaned = 0.152157 Jy
! Total flux subtracted in 200 components = 0.152157 Jy
! Clean residual min=-0.027586 max=0.049686 Jy/beam
! Clean residual mean=0.001398 rms=0.009465 Jy/beam
! Combined flux in latest and established models = 2.08273 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 52 components and 2.08273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379325Jy  sigma=0.002815
! Fit after  self-cal, rms=0.378251Jy  sigma=0.002806
! Inverting map 
! Your choice of large map pixels excluded 0.602% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.03     GC        1.00*    HN        0.95     
!   KK        1.05     KP        0.95     LA        0.96     MK        0.95     
!   NL        0.95     NY        1.00*    ON        1.00*    OV        1.03     
!   PT        0.98     SC        1.00     WF        1.05     MC        1.00*    
!   GN        0.99     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.99     GC        1.00*    HN        0.97     
!   KK        1.00*    KP        0.99     LA        1.01     MK        1.00*    
!   NL        1.05     NY        1.00*    ON        1.00     OV        1.02     
!   PT        0.98     SC        1.01     WF        1.07     MC        1.06     
!   GN        1.05     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.07     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.99     LA        1.02     MK        0.95     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.09     
!   PT        0.97     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.04     GC        1.00*    HN        1.02     
!   KK        1.05     KP        0.97     LA        0.92     MK        0.95     
!   NL        0.97     NY        1.00*    ON        1.00*    OV        1.02     
!   PT        0.97     SC        0.98     WF        1.06     MC        1.00*    
!   GN        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        1.00*    HN        1.03     
!   KK        1.00*    KP        1.01     LA        0.96     MK        1.00*    
!   NL        1.06     NY        1.00*    ON        1.01     OV        1.02     
!   PT        0.98     SC        0.99     WF        1.09     MC        1.03     
!   GN        1.06     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.08     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00     LA        0.97     MK        0.93     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.09     
!   PT        0.99     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GC        1.00*    HN        0.98     
!   KK        1.02     KP        1.00     LA        0.92     MK        0.99     
!   NL        0.95     NY        1.00*    ON        1.00*    OV        0.97     
!   PT        0.99     SC        1.01     WF        1.06     MC        1.00*    
!   GN        0.99     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.00*    HN        0.98     
!   KK        1.00*    KP        1.03     LA        0.96     MK        1.00*    
!   NL        1.04     NY        1.00*    ON        0.99     OV        0.99     
!   PT        0.98     SC        1.02     WF        1.07     MC        1.15     
!   GN        1.05     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.05     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.05     LA        0.96     MK        0.98     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.04     
!   PT        0.99     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GC        1.00*    HN        1.02     
!   KK        1.04     KP        0.97     LA        0.94     MK        0.95     
!   NL        0.97     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        0.95     SC        0.97     WF        1.06     MC        1.00*    
!   GN        0.98     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GC        1.00*    HN        1.03     
!   KK        1.00*    KP        1.01     LA        0.98     MK        1.00*    
!   NL        1.06     NY        1.00*    ON        1.00     OV        1.02     
!   PT        0.95     SC        0.99     WF        1.08     MC        1.07     
!   GN        1.06     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WF        0.00*    MC        0.00*    
!   GN        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.03     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.99     LA        1.00     MK        0.92     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        1.07     
!   PT        0.94     SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.378251Jy  sigma=0.002806
! Fit after  self-cal, rms=0.374405Jy  sigma=0.002650
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7885 mas, bmaj=2.556 mas, bpa=-7.909 degrees
! Estimated noise=480.823 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 (-3.2, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0347807 Jy
! Component: 100  -  total flux cleaned = 0.0468278 Jy
! Component: 150  -  total flux cleaned = 0.0502859 Jy
! Component: 200  -  total flux cleaned = 0.0507474 Jy
! Total flux subtracted in 200 components = 0.0507473 Jy
! Clean residual min=-0.016893 max=0.017773 Jy/beam
! Clean residual mean=-0.000286 rms=0.004657 Jy/beam
! Combined flux in latest and established models = 2.13348 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 73 components and 2.13348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371071Jy  sigma=0.002600
! Fit after  self-cal, rms=0.370869Jy  sigma=0.002596
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.370869Jy  sigma=0.002596
! Fit after  self-cal, rms=0.369054Jy  sigma=0.002560
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7906 mas, bmaj=2.551 mas, bpa=-7.898 degrees
! Estimated noise=481.701 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.019137 Jy
! Component: 100  -  total flux cleaned = 0.0254942 Jy
! Component: 150  -  total flux cleaned = 0.0271482 Jy
! Component: 200  -  total flux cleaned = 0.0275145 Jy
! Total flux subtracted in 200 components = 0.0275145 Jy
! Clean residual min=-0.011630 max=0.018644 Jy/beam
! Clean residual mean=0.000097 rms=0.003680 Jy/beam
! Combined flux in latest and established models = 2.16099 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 81 components and 2.16099 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367751Jy  sigma=0.002539
! Fit after  self-cal, rms=0.367577Jy  sigma=0.002537
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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 (-6.2, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0166186 Jy
! Component: 100  -  total flux cleaned = 0.0200036 Jy
! Component: 150  -  total flux cleaned = 0.0216953 Jy
! Component: 200  -  total flux cleaned = 0.0225971 Jy
! Total flux subtracted in 200 components = 0.0225971 Jy
! Clean residual min=-0.012718 max=0.011010 Jy/beam
! Clean residual mean=-0.000315 rms=0.002925 Jy/beam
! Combined flux in latest and established models = 2.18359 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 106 components and 2.18359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366566Jy  sigma=0.002521
! Fit after  self-cal, rms=0.366458Jy  sigma=0.002519
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.366458Jy  sigma=0.002519
! Fit after  self-cal, rms=0.365324Jy  sigma=0.002507
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7921 mas, bmaj=2.547 mas, bpa=-7.889 degrees
! Estimated noise=481.939 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133711 Jy
! Component: 100  -  total flux cleaned = 0.0184342 Jy
! Component: 150  -  total flux cleaned = 0.0215503 Jy
! Component: 200  -  total flux cleaned = 0.0228738 Jy
! Total flux subtracted in 200 components = 0.0228738 Jy
! Clean residual min=-0.007771 max=0.007825 Jy/beam
! Clean residual mean=0.000067 rms=0.002094 Jy/beam
! Combined flux in latest and established models = 2.20646 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 119 components and 2.20646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364625Jy  sigma=0.002496
! Fit after  self-cal, rms=0.364557Jy  sigma=0.002495
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.00351639 Jy
! Component: 100  -  total flux cleaned = 0.00527754 Jy
! Component: 150  -  total flux cleaned = 0.00614422 Jy
! Component: 200  -  total flux cleaned = 0.00711101 Jy
! Total flux subtracted in 200 components = 0.00711101 Jy
! Clean residual min=-0.007419 max=0.007345 Jy/beam
! Clean residual mean=-0.000065 rms=0.001934 Jy/beam
! Combined flux in latest and established models = 2.21358 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 131 components and 2.21358 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364286Jy  sigma=0.002491
! Fit after  self-cal, rms=0.364250Jy  sigma=0.002490
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.364250Jy  sigma=0.002490
! Fit after  self-cal, rms=0.363757Jy  sigma=0.002488
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=2.137 mas, bmaj=3.882 mas, bpa=-12.65 degrees
! Estimated noise=591.382 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0110612 Jy
! Component: 100  -  total flux cleaned = 0.0134822 Jy
! Component: 150  -  total flux cleaned = 0.015369 Jy
! Component: 200  -  total flux cleaned = 0.0163528 Jy
! Total flux subtracted in 200 components = 0.0163528 Jy
! Clean residual min=-0.005461 max=0.004488 Jy/beam
! Clean residual mean=-0.000176 rms=0.001740 Jy/beam
! Combined flux in latest and established models = 2.22993 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 156 components and 2.22993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363537Jy  sigma=0.002484
! Fit after  self-cal, rms=0.363487Jy  sigma=0.002484
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.00239817 Jy
! Component: 100  -  total flux cleaned = 0.00325584 Jy
! Component: 150  -  total flux cleaned = 0.00381478 Jy
! Component: 200  -  total flux cleaned = 0.00381782 Jy
! Total flux subtracted in 200 components = 0.00381782 Jy
! Clean residual min=-0.004991 max=0.004087 Jy/beam
! Clean residual mean=-0.000326 rms=0.001733 Jy/beam
! Combined flux in latest and established models = 2.23375 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 174 components and 2.23375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363418Jy  sigma=0.002483
! Fit after  self-cal, rms=0.363414Jy  sigma=0.002483
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7935 mas, bmaj=2.544 mas, bpa=-7.865 degrees
! Estimated noise=481.977 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7935 x 2.544 at -7.865 degrees (North through East)
! Clean map  min=-0.0055141  max=1.6197 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.363414Jy  sigma=0.002483
! Fit after  self-cal, rms=0.353146Jy  sigma=0.002310
! Inverting map and beam 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7938 mas, bmaj=2.543 mas, bpa=-7.857 degrees
! Estimated noise=481.456 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00195472 Jy
! Component: 100  -  total flux cleaned = 0.00322963 Jy
! Component: 150  -  total flux cleaned = 0.00404145 Jy
! Component: 200  -  total flux cleaned = 0.00463268 Jy
! Total flux subtracted in 200 components = 0.00463268 Jy
! Clean residual min=-0.005436 max=0.004660 Jy/beam
! Clean residual mean=-0.000096 rms=0.001430 Jy/beam
! Combined flux in latest and established models = 2.23838 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 189 components and 2.23838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352979Jy  sigma=0.002307
! Fit after  self-cal, rms=0.352965Jy  sigma=0.002307
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000928309 Jy
! Component: 100  -  total flux cleaned = 0.00120719 Jy
! Component: 150  -  total flux cleaned = 0.00133389 Jy
! Component: 200  -  total flux cleaned = 0.00133098 Jy
! Total flux subtracted in 200 components = 0.00133098 Jy
! Clean residual min=-0.005092 max=0.004496 Jy/beam
! Clean residual mean=-0.000119 rms=0.001384 Jy/beam
! Combined flux in latest and established models = 2.23971 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 199 components and 2.23971 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352862Jy  sigma=0.002306
! Fit after  self-cal, rms=0.352856Jy  sigma=0.002306
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.352856Jy  sigma=0.002306
! Fit after  self-cal, rms=0.352393Jy  sigma=0.002305
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.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.5767 mas, bmaj=1.989 mas, bpa=-5.775 degrees
! Estimated noise=785.626 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.19186 Jy
! Component: 100  -  total flux cleaned = 1.53528 Jy
! Component: 150  -  total flux cleaned = 1.71362 Jy
! Component: 200  -  total flux cleaned = 1.81865 Jy
! Total flux subtracted in 200 components = 1.81865 Jy
! Clean residual min=-0.021266 max=0.054140 Jy/beam
! Clean residual mean=0.000998 rms=0.008295 Jy/beam
! Combined flux in latest and established models = 1.81864 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 14 model components to the UV plane model.
! The established model now contains 14 components and 1.81864 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7945 mas, bmaj=2.54 mas, bpa=-7.841 degrees
! Estimated noise=481.373 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.125791 Jy
! Component: 100  -  total flux cleaned = 0.204305 Jy
! Component: 150  -  total flux cleaned = 0.259219 Jy
! Component: 200  -  total flux cleaned = 0.299452 Jy
! Total flux subtracted in 200 components = 0.299452 Jy
! Clean residual min=-0.011810 max=0.023175 Jy/beam
! Clean residual mean=0.002347 rms=0.006180 Jy/beam
! Combined flux in latest and established models = 2.1181 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 73 components and 2.1181 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 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.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=2.135 mas, bmaj=3.875 mas, bpa=-12.61 degrees
! Estimated noise=590.792 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0509742 Jy
! Component: 100  -  total flux cleaned = 0.0788998 Jy
! Component: 150  -  total flux cleaned = 0.0953509 Jy
! Component: 200  -  total flux cleaned = 0.105674 Jy
! Total flux subtracted in 200 components = 0.105674 Jy
! Clean residual min=-0.005499 max=0.005595 Jy/beam
! Clean residual mean=0.000564 rms=0.002190 Jy/beam
! Combined flux in latest and established models = 2.22377 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.00675117 Jy
! Component: 100  -  total flux cleaned = 0.0112968 Jy
! Component: 150  -  total flux cleaned = 0.0142165 Jy
! Component: 200  -  total flux cleaned = 0.0150999 Jy
! Total flux subtracted in 200 components = 0.0150999 Jy
! Clean residual min=-0.004608 max=0.003004 Jy/beam
! Clean residual mean=-0.000085 rms=0.001328 Jy/beam
! Combined flux in latest and established models = 2.23887 Jy
! Adding 130 model components to the UV plane model.
! The established model now contains 192 components and 2.23887 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! Estimated beam: bmin=0.7945 mas, bmaj=2.54 mas, bpa=-7.841 degrees
! Estimated noise=481.373 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00100229 Jy
! Component: 100  -  total flux cleaned = 0.00140899 Jy
! Component: 150  -  total flux cleaned = 0.00179346 Jy
! Component: 200  -  total flux cleaned = 0.00195989 Jy
! Total flux subtracted in 200 components = 0.00195989 Jy
! Clean residual min=-0.004961 max=0.005235 Jy/beam
! Clean residual mean=-0.000051 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 2.24083 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 204 components and 2.24083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352536Jy  sigma=0.002306
! Fit after  self-cal, rms=0.352324Jy  sigma=0.002304
wmodel J0006-0623_X_1998_10_01_pus_map.mod
! Writing 204 model components to file: J0006-0623_X_1998_10_01_pus_map.mod
wobs J0006-0623_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0006-0623_X_1998_10_01_pus_uvs.fits
wwins J0006-0623_X_1998_10_01_pus_map.win
! wwins: Wrote 4 windows to J0006-0623_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.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00219202 Jy
! Component: 100  -  total flux cleaned = 0.00276137 Jy
! Component: 150  -  total flux cleaned = 0.00336178 Jy
! Component: 200  -  total flux cleaned = 0.00357921 Jy
! Component: 250  -  total flux cleaned = 0.00371891 Jy
! Component: 300  -  total flux cleaned = 0.00378638 Jy
! Component: 350  -  total flux cleaned = 0.00378615 Jy
! Component: 400  -  total flux cleaned = 0.00385058 Jy
! Component: 450  -  total flux cleaned = 0.00385113 Jy
! Component: 500  -  total flux cleaned = 0.00391343 Jy
! Component: 550  -  total flux cleaned = 0.0038526 Jy
! Component: 600  -  total flux cleaned = 0.0037922 Jy
! Component: 650  -  total flux cleaned = 0.00361621 Jy
! Component: 700  -  total flux cleaned = 0.00344333 Jy
! Component: 750  -  total flux cleaned = 0.00338615 Jy
! Component: 800  -  total flux cleaned = 0.00316125 Jy
! Component: 850  -  total flux cleaned = 0.0030503 Jy
! Component: 900  -  total flux cleaned = 0.00299565 Jy
! Component: 950  -  total flux cleaned = 0.00288709 Jy
! Component: 1000  -  total flux cleaned = 0.00277938 Jy
! Total flux subtracted in 1024 components = 0.00272598 Jy
! Clean residual min=-0.003789 max=0.002679 Jy/beam
! Clean residual mean=-0.000120 rms=0.001106 Jy/beam
! Combined flux in latest and established models = 2.24356 Jy
keep
! Adding 75 model components to the UV plane model.
! The established model now contains 278 components and 2.24356 Jy
![Exited script file: muppet]
wmap "J0006-0623_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7945 x 2.54 at -7.841 degrees (North through East)
! Clean map  min=-0.0038163  max=1.6171 Jy/beam
! Writing clean map to FITS file: J0006-0623_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.61712 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.613% of the data.
!  The x-axis pixel size should ideally be below 0.1944 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00110675 
device "J0006-0623_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0006-0623_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.205318 0.205318 0.410636 0.821273 1.64255 3.28509 6.57018 13.1404 26.2807 52.5615
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0033 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.617 
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.7945 x 2.54 at -7.841 degrees (North through East)
! Clean map  min=-0.0038163  max=1.6171 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0006-0623_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0006-0623_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0006-0623_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:17:23 2008