! Started logfile: J0006-0623_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:09:37 2007
obs J0006-0623_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0006-0623_X_2000_12_04_pus_uva.fits
! AN table 1: 99 integrations on 190 of 190 possible baselines.
! AN table 2: 95 integrations on 190 of 190 possible baselines.
! AN table 3: 73 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0469348 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.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2126 lines of history.
! 
! Reading 9524 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_2000_12_04_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 1890 telescope corrections were flagged in sub-array 1.
!  A total of 1430 telescope corrections were flagged in sub-array 2.
!  A total of 1255 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1890 telescope corrections were flagged in sub-array 1.
!  A total of 1430 telescope corrections were flagged in sub-array 2.
!  A total of 1255 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1890 telescope corrections were flagged in sub-array 1.
!  A total of 1430 telescope corrections were flagged in sub-array 2.
!  A total of 1255 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1890 telescope corrections were flagged in sub-array 1.
!  A total of 1430 telescope corrections were flagged in sub-array 2.
!  A total of 1255 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.152873Jy  sigma=0.012655
! Fit after  self-cal, rms=0.495384Jy  sigma=0.005386
! 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 6.37% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.651 mas, bmaj=1.252 mas, bpa=1.056 degrees
! Estimated noise=1527.3 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.00376 Jy
! Component: 100  -  total flux cleaned = 1.2587 Jy
! Total flux subtracted in 100 components = 1.2587 Jy
! Clean residual min=-0.040173 max=0.129019 Jy/beam
! Clean residual mean=0.004253 rms=0.018022 Jy/beam
! Combined flux in latest and established models = 1.2587 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.2587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332192Jy  sigma=0.003442
! Fit after  self-cal, rms=0.332282Jy  sigma=0.003441
! Inverting map 
! Your choice of large map pixels excluded 6.37% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Added new window around map position (-1.2, 0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.127636 Jy
! Component: 100  -  total flux cleaned = 0.2039 Jy
! Total flux subtracted in 100 components = 0.2039 Jy
! Clean residual min=-0.031199 max=0.057629 Jy/beam
! Clean residual mean=0.002950 rms=0.011136 Jy/beam
! Combined flux in latest and established models = 1.4626 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 23 components and 1.4626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243263Jy  sigma=0.002366
! Fit after  self-cal, rms=0.241652Jy  sigma=0.002349
! Inverting map 
! Your choice of large map pixels excluded 6.37% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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 6.37% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.7629 mas, bmaj=2.124 mas, bpa=-1.951 degrees
! Estimated noise=725.88 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.100043 Jy
! Component: 100  -  total flux cleaned = 0.154063 Jy
! Component: 150  -  total flux cleaned = 0.184956 Jy
! Component: 200  -  total flux cleaned = 0.202737 Jy
! Total flux subtracted in 200 components = 0.202737 Jy
! Clean residual min=-0.020007 max=0.070353 Jy/beam
! Clean residual mean=0.006515 rms=0.014933 Jy/beam
! Combined flux in latest and established models = 1.66534 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 47 components and 1.66534 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201010Jy  sigma=0.001859
! Fit after  self-cal, rms=0.199253Jy  sigma=0.001835
! Inverting map 
! Your choice of large map pixels excluded 6.37% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.06     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        0.96     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00     NY        1.00*    OV        1.04     PT        0.97     
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.25     HN        1.01     KK        1.00*    KP        1.07     
!   LA        0.99     MA        0.94     MC        0.93     MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.13     PT        0.97     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.91     
! 
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.06     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.96     NY        1.00*    OV        1.04     PT        0.96     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.28     HN        1.01     KK        1.00*    KP        1.07     
!   LA        0.99     MA        0.96     MC        0.94     MK        1.00*    
!   NL        0.94     NY        1.00*    OV        1.13     PT        0.96     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.90     
! 
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.13     GC        1.12     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.96     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.95     NY        1.00*    OV        1.00     PT        0.94     
!   SC        1.00*    TS        1.01     WF        1.00*    WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.07     GC        1.00*    GG        1.00*    
!   HH        1.01     HN        1.02     KK        1.00*    KP        1.09     
!   LA        0.98     MA        0.93     MC        0.98     MK        1.00*    
!   NL        0.94     NY        1.00*    OV        1.09     PT        0.93     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.92     
! 
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.11     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.04     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.96     NY        1.00*    OV        1.04     PT        0.92     
!   SC        1.00*    TS        1.02     WF        1.00*    WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.07     GC        1.00*    GG        1.00*    
!   HH        1.00     HN        0.97     KK        1.00*    KP        1.08     
!   LA        0.99     MA        1.01     MC        0.97     MK        1.00*    
!   NL        0.95     NY        1.00*    OV        1.12     PT        0.94     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.94     
! 
! 
! Fit before self-cal, rms=0.199253Jy  sigma=0.001835
! Fit after  self-cal, rms=0.171663Jy  sigma=0.001555
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.7571 mas, bmaj=2.331 mas, bpa=-2.445 degrees
! Estimated noise=736.854 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 (-6.4, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0458425 Jy
! Component: 100  -  total flux cleaned = 0.0615948 Jy
! Component: 150  -  total flux cleaned = 0.0661496 Jy
! Component: 200  -  total flux cleaned = 0.0683094 Jy
! Total flux subtracted in 200 components = 0.0683094 Jy
! Clean residual min=-0.013792 max=0.023342 Jy/beam
! Clean residual mean=0.000595 rms=0.005389 Jy/beam
! Combined flux in latest and established models = 1.73365 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 72 components and 1.73365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161043Jy  sigma=0.001413
! Fit after  self-cal, rms=0.159375Jy  sigma=0.001389
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.159375Jy  sigma=0.001389
! Fit after  self-cal, rms=0.155445Jy  sigma=0.001361
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.7574 mas, bmaj=2.329 mas, bpa=-2.459 degrees
! Estimated noise=733.925 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0198061 Jy
! Component: 100  -  total flux cleaned = 0.0253423 Jy
! Component: 150  -  total flux cleaned = 0.0283183 Jy
! Component: 200  -  total flux cleaned = 0.0298151 Jy
! Total flux subtracted in 200 components = 0.0298151 Jy
! Clean residual min=-0.010324 max=0.016375 Jy/beam
! Clean residual mean=0.000350 rms=0.003886 Jy/beam
! Combined flux in latest and established models = 1.76346 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 87 components and 1.76346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152720Jy  sigma=0.001325
! Fit after  self-cal, rms=0.152234Jy  sigma=0.001319
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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 (-3, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0150584 Jy
! Component: 100  -  total flux cleaned = 0.0167325 Jy
! Component: 150  -  total flux cleaned = 0.0177701 Jy
! Component: 200  -  total flux cleaned = 0.0186785 Jy
! Total flux subtracted in 200 components = 0.0186785 Jy
! Clean residual min=-0.010466 max=0.011738 Jy/beam
! Clean residual mean=-0.000173 rms=0.002941 Jy/beam
! Combined flux in latest and established models = 1.78214 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 100 components and 1.78214 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150483Jy  sigma=0.001296
! Fit after  self-cal, rms=0.150383Jy  sigma=0.001294
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.150383Jy  sigma=0.001294
! Fit after  self-cal, rms=0.148037Jy  sigma=0.001278
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.7585 mas, bmaj=2.32 mas, bpa=-2.464 degrees
! Estimated noise=732.217 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0106866 Jy
! Component: 100  -  total flux cleaned = 0.0138156 Jy
! Component: 150  -  total flux cleaned = 0.0160178 Jy
! Component: 200  -  total flux cleaned = 0.0162079 Jy
! Total flux subtracted in 200 components = 0.0162079 Jy
! Clean residual min=-0.007227 max=0.008810 Jy/beam
! Clean residual mean=-0.000024 rms=0.002209 Jy/beam
! Combined flux in latest and established models = 1.79835 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 110 components and 1.79835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146856Jy  sigma=0.001263
! Fit after  self-cal, rms=0.146734Jy  sigma=0.001260
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.00246456 Jy
! Component: 100  -  total flux cleaned = 0.00408172 Jy
! Component: 150  -  total flux cleaned = 0.00463843 Jy
! Component: 200  -  total flux cleaned = 0.00464381 Jy
! Total flux subtracted in 200 components = 0.00464381 Jy
! Clean residual min=-0.008826 max=0.008231 Jy/beam
! Clean residual mean=-0.000157 rms=0.002108 Jy/beam
! Combined flux in latest and established models = 1.80299 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 120 components and 1.80299 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146476Jy  sigma=0.001259
! Fit after  self-cal, rms=0.146470Jy  sigma=0.001258
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.146470Jy  sigma=0.001258
! Fit after  self-cal, rms=0.145618Jy  sigma=0.001252
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=2.702 mas, bmaj=3.883 mas, bpa=9.133 degrees
! Estimated noise=897.548 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00920875 Jy
! Component: 100  -  total flux cleaned = 0.00998127 Jy
! Component: 150  -  total flux cleaned = 0.0098354 Jy
! Component: 200  -  total flux cleaned = 0.00960397 Jy
! Total flux subtracted in 200 components = 0.00960397 Jy
! Clean residual min=-0.005595 max=0.007742 Jy/beam
! Clean residual mean=-0.000163 rms=0.002150 Jy/beam
! Combined flux in latest and established models = 1.8126 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 142 components and 1.8126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145362Jy  sigma=0.001249
! Fit after  self-cal, rms=0.145330Jy  sigma=0.001248
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.00144252 Jy
! Component: 100  -  total flux cleaned = 0.00158739 Jy
! Component: 150  -  total flux cleaned = 0.00159263 Jy
! Component: 200  -  total flux cleaned = 0.00150305 Jy
! Total flux subtracted in 200 components = 0.00150305 Jy
! Clean residual min=-0.007118 max=0.007323 Jy/beam
! Clean residual mean=-0.000247 rms=0.002087 Jy/beam
! Combined flux in latest and established models = 1.8141 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 151 components and 1.8141 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145231Jy  sigma=0.001247
! Fit after  self-cal, rms=0.145228Jy  sigma=0.001247
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.7603 mas, bmaj=2.314 mas, bpa=-2.485 degrees
! Estimated noise=731.628 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7603 x 2.314 at -2.485 degrees (North through East)
! Clean map  min=-0.0066436  max=1.3198 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.145228Jy  sigma=0.001247
! Fit after  self-cal, rms=0.137306Jy  sigma=0.001150
! Inverting map and beam 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.7609 mas, bmaj=2.312 mas, bpa=-2.494 degrees
! Estimated noise=731.504 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00400242 Jy
! Component: 100  -  total flux cleaned = 0.00463415 Jy
! Component: 150  -  total flux cleaned = 0.00477383 Jy
! Component: 200  -  total flux cleaned = 0.00477698 Jy
! Total flux subtracted in 200 components = 0.00477698 Jy
! Clean residual min=-0.005504 max=0.005498 Jy/beam
! Clean residual mean=-0.000093 rms=0.001494 Jy/beam
! Combined flux in latest and established models = 1.81888 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 163 components and 1.81888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137028Jy  sigma=0.001147
! Fit after  self-cal, rms=0.137000Jy  sigma=0.001147
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00117304 Jy
! Component: 100  -  total flux cleaned = 0.0018138 Jy
! Component: 150  -  total flux cleaned = 0.00171808 Jy
! Component: 200  -  total flux cleaned = 0.00153981 Jy
! Total flux subtracted in 200 components = 0.00153981 Jy
! Clean residual min=-0.005264 max=0.005389 Jy/beam
! Clean residual mean=-0.000138 rms=0.001455 Jy/beam
! Combined flux in latest and established models = 1.82042 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 168 components and 1.82042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136904Jy  sigma=0.001147
! Fit after  self-cal, rms=0.136902Jy  sigma=0.001147
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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.136902Jy  sigma=0.001147
! Fit after  self-cal, rms=0.136791Jy  sigma=0.001144
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 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.6627 mas, bmaj=1.481 mas, bpa=-0.8714 degrees
! Estimated noise=1505.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.02774 Jy
! Component: 100  -  total flux cleaned = 1.29479 Jy
! Component: 150  -  total flux cleaned = 1.42456 Jy
! Component: 200  -  total flux cleaned = 1.50774 Jy
! Total flux subtracted in 200 components = 1.50774 Jy
! Clean residual min=-0.021670 max=0.045781 Jy/beam
! Clean residual mean=0.002494 rms=0.009649 Jy/beam
! Combined flux in latest and established models = 1.50774 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 26 model components to the UV plane model.
! The established model now contains 26 components and 1.50774 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.7625 mas, bmaj=2.313 mas, bpa=-2.512 degrees
! Estimated noise=731.726 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.0913139 Jy
! Component: 100  -  total flux cleaned = 0.152214 Jy
! Component: 150  -  total flux cleaned = 0.194861 Jy
! Component: 200  -  total flux cleaned = 0.225505 Jy
! Total flux subtracted in 200 components = 0.225505 Jy
! Clean residual min=-0.007632 max=0.020495 Jy/beam
! Clean residual mean=0.002228 rms=0.005687 Jy/beam
! Combined flux in latest and established models = 1.73324 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 75 components and 1.73324 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 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 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=2.696 mas, bmaj=3.881 mas, bpa=9.141 degrees
! Estimated noise=897.108 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0349741 Jy
! Component: 100  -  total flux cleaned = 0.0545675 Jy
! Component: 150  -  total flux cleaned = 0.0666893 Jy
! Component: 200  -  total flux cleaned = 0.0745203 Jy
! Total flux subtracted in 200 components = 0.0745203 Jy
! Clean residual min=-0.003784 max=0.006557 Jy/beam
! Clean residual mean=0.000652 rms=0.001980 Jy/beam
! Combined flux in latest and established models = 1.80776 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.00465635 Jy
! Component: 100  -  total flux cleaned = 0.00623654 Jy
! Component: 150  -  total flux cleaned = 0.00763008 Jy
! Component: 200  -  total flux cleaned = 0.00866621 Jy
! Total flux subtracted in 200 components = 0.00866621 Jy
! Clean residual min=-0.003696 max=0.004160 Jy/beam
! Clean residual mean=0.000242 rms=0.001352 Jy/beam
! Combined flux in latest and established models = 1.81643 Jy
! Adding 74 model components to the UV plane model.
! The established model now contains 132 components and 1.81643 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! Estimated beam: bmin=0.7625 mas, bmaj=2.313 mas, bpa=-2.512 degrees
! Estimated noise=731.726 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.77078e-05 Jy
! Component: 100  -  total flux cleaned = 7.13356e-05 Jy
! Component: 150  -  total flux cleaned = 0.0003883 Jy
! Component: 200  -  total flux cleaned = 0.000684889 Jy
! Total flux subtracted in 200 components = 0.000684889 Jy
! Clean residual min=-0.004682 max=0.005014 Jy/beam
! Clean residual mean=0.000108 rms=0.001432 Jy/beam
! Combined flux in latest and established models = 1.81711 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 147 components and 1.81711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137107Jy  sigma=0.001145
! Fit after  self-cal, rms=0.136999Jy  sigma=0.001143
wmodel J0006-0623_X_2000_12_04_pus_map.mod
! Writing 147 model components to file: J0006-0623_X_2000_12_04_pus_map.mod
wobs J0006-0623_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0006-0623_X_2000_12_04_pus_uvs.fits
wwins J0006-0623_X_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J0006-0623_X_2000_12_04_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00151788 Jy
! Component: 100  -  total flux cleaned = -0.00175708 Jy
! Component: 150  -  total flux cleaned = -0.00183925 Jy
! Component: 200  -  total flux cleaned = -0.00163604 Jy
! Component: 250  -  total flux cleaned = -0.00131039 Jy
! Component: 300  -  total flux cleaned = -0.000930527 Jy
! Component: 350  -  total flux cleaned = -0.000258482 Jy
! Component: 400  -  total flux cleaned = 0.000156191 Jy
! Component: 450  -  total flux cleaned = 0.00067505 Jy
! Component: 500  -  total flux cleaned = 0.00112526 Jy
! Component: 550  -  total flux cleaned = 0.00161905 Jy
! Component: 600  -  total flux cleaned = 0.00199508 Jy
! Component: 650  -  total flux cleaned = 0.00246698 Jy
! Component: 700  -  total flux cleaned = 0.00292739 Jy
! Component: 750  -  total flux cleaned = 0.00322764 Jy
! Component: 800  -  total flux cleaned = 0.00352159 Jy
! Component: 850  -  total flux cleaned = 0.00376265 Jy
! Component: 900  -  total flux cleaned = 0.0039523 Jy
! Component: 950  -  total flux cleaned = 0.0042318 Jy
! Component: 1000  -  total flux cleaned = 0.00455179 Jy
! Total flux subtracted in 1024 components = 0.00464181 Jy
! Clean residual min=-0.003111 max=0.002629 Jy/beam
! Clean residual mean=0.000065 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 1.82175 Jy
keep
! Adding 73 model components to the UV plane model.
! The established model now contains 218 components and 1.82175 Jy
![Exited script file: muppet]
wmap "J0006-0623_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7625 x 2.313 at -2.512 degrees (North through East)
! Clean map  min=-0.0041786  max=1.3197 Jy/beam
! Writing clean map to FITS file: J0006-0623_X_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.31972 
invert
! Inverting map 
! Your choice of large map pixels excluded 6.34% of the data.
!  The x-axis pixel size should ideally be below 0.1863 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000908358 
device "J0006-0623_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0006-0623_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.206488 0.206488 0.412977 0.825953 1.65191 3.30381 6.60763 13.2153 26.4305 52.861
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0027 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.319 
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.7625 x 2.313 at -2.512 degrees (North through East)
! Clean map  min=-0.0041786  max=1.3197 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0006-0623_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0006-0623_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0006-0623_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:09:44 2007