! Started logfile: J0050-0929_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:10:30 2007
obs J0050-0929_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0050-0929_X_2000_12_04_pus_uva.fits
! AN table 1: 103 integrations on 190 of 190 possible baselines.
! AN table 2: 40 integrations on 190 of 190 possible baselines.
! AN table 3: 10 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.12408 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0050-0929
! 
! 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 14428 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 J0050-0929_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 1352 telescope corrections were flagged in sub-array 1.
!  A total of 653 telescope corrections were flagged in sub-array 2.
!  A total of 200 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1352 telescope corrections were flagged in sub-array 1.
!  A total of 653 telescope corrections were flagged in sub-array 2.
!  A total of 200 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1352 telescope corrections were flagged in sub-array 1.
!  A total of 653 telescope corrections were flagged in sub-array 2.
!  A total of 200 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1352 telescope corrections were flagged in sub-array 1.
!  A total of 653 telescope corrections were flagged in sub-array 2.
!  A total of 200 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.756424Jy  sigma=0.007356
! Fit after  self-cal, rms=0.420277Jy  sigma=0.004035
! 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 1.06% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.6048 mas, bmaj=1.733 mas, bpa=-3.765 degrees
! Estimated noise=1099.73 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.464561 Jy
! Component: 100  -  total flux cleaned = 0.570358 Jy
! Total flux subtracted in 100 components = 0.570358 Jy
! Clean residual min=-0.011646 max=0.037869 Jy/beam
! Clean residual mean=0.000352 rms=0.004309 Jy/beam
! Combined flux in latest and established models = 0.570358 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.570358 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174004Jy  sigma=0.001490
! Fit after  self-cal, rms=0.174000Jy  sigma=0.001490
! Inverting map 
! Your choice of large map pixels excluded 1.06% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0383462 Jy
! Component: 100  -  total flux cleaned = 0.0604037 Jy
! Total flux subtracted in 100 components = 0.0604037 Jy
! Clean residual min=-0.009486 max=0.011550 Jy/beam
! Clean residual mean=0.000143 rms=0.002599 Jy/beam
! Combined flux in latest and established models = 0.630762 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 10 components and 0.630762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163069Jy  sigma=0.001320
! Fit after  self-cal, rms=0.163095Jy  sigma=0.001320
! Inverting map 
! Your choice of large map pixels excluded 1.06% of the data.
!  The x-axis pixel size should ideally be below 0.187 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 1.06% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.7911 mas, bmaj=2.291 mas, bpa=-9.699 degrees
! Estimated noise=611.067 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.0195841 Jy
! Component: 100  -  total flux cleaned = 0.0287882 Jy
! Component: 150  -  total flux cleaned = 0.0335709 Jy
! Component: 200  -  total flux cleaned = 0.036109 Jy
! Total flux subtracted in 200 components = 0.036109 Jy
! Clean residual min=-0.004729 max=0.004836 Jy/beam
! Clean residual mean=-0.000112 rms=0.001362 Jy/beam
! Combined flux in latest and established models = 0.666871 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 26 components and 0.666871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161335Jy  sigma=0.001289
! Fit after  self-cal, rms=0.161367Jy  sigma=0.001289
! Inverting map 
! Your choice of large map pixels excluded 1.06% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.06     KP        0.99     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.01     NY        1.00*    OV        0.98     PT        1.00     
!   SC        1.06     TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        1.04     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.00*    NY        1.00*    OV        1.02     PT        1.01     
!   SC        1.00*    TS        0.94     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.08     KP        0.99     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.95     NY        1.00*    OV        0.99     PT        0.99     
!   SC        1.06     TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.01     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.00*    NY        1.00*    OV        1.01     PT        1.01     
!   SC        1.00*    TS        0.94     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.05     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.02     KP        0.99     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.96     NY        1.00*    OV        0.95     PT        0.97     
!   SC        1.05     TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.06     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.05     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00*    NY        1.00*    OV        1.01     PT        0.99     
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.04     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.06     KP        1.01     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.96     NY        1.00*    OV        0.98     PT        0.95     
!   SC        1.06     TS        1.00*    WF        1.07     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.04     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.05     
!   LA        1.04     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        1.00*    OV        1.04     PT        0.97     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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*    
! 
! 
! Fit before self-cal, rms=0.161367Jy  sigma=0.001289
! Fit after  self-cal, rms=0.161652Jy  sigma=0.001265
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.7908 mas, bmaj=2.327 mas, bpa=-9.634 degrees
! Estimated noise=612.397 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.000868317 Jy
! Component: 100  -  total flux cleaned = -0.000939323 Jy
! Component: 150  -  total flux cleaned = -0.00103589 Jy
! Component: 200  -  total flux cleaned = -0.00112315 Jy
! Total flux subtracted in 200 components = -0.00112315 Jy
! Clean residual min=-0.002499 max=0.003419 Jy/beam
! Clean residual mean=0.000233 rms=0.000861 Jy/beam
! Combined flux in latest and established models = 0.665748 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 33 components and 0.665748 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161634Jy  sigma=0.001265
! Fit after  self-cal, rms=0.161708Jy  sigma=0.001265
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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.161708Jy  sigma=0.001265
! Fit after  self-cal, rms=0.162010Jy  sigma=0.001261
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.791 mas, bmaj=2.334 mas, bpa=-9.65 degrees
! Estimated noise=612.454 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00104883 Jy
! Component: 100  -  total flux cleaned = -0.00108788 Jy
! Component: 150  -  total flux cleaned = -0.00108733 Jy
! Component: 200  -  total flux cleaned = -0.00111909 Jy
! Total flux subtracted in 200 components = -0.00111909 Jy
! Clean residual min=-0.002198 max=0.002638 Jy/beam
! Clean residual mean=0.000198 rms=0.000710 Jy/beam
! Combined flux in latest and established models = 0.664629 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 35 components and 0.664629 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161988Jy  sigma=0.001261
! Fit after  self-cal, rms=0.161996Jy  sigma=0.001261
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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 = -5.48095e-05 Jy
! Component: 100  -  total flux cleaned = -0.000130292 Jy
! Component: 150  -  total flux cleaned = -0.000153938 Jy
! Component: 200  -  total flux cleaned = -0.000175386 Jy
! Total flux subtracted in 200 components = -0.000175386 Jy
! Clean residual min=-0.002161 max=0.002621 Jy/beam
! Clean residual mean=0.000202 rms=0.000709 Jy/beam
! Combined flux in latest and established models = 0.664453 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 36 components and 0.664453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161987Jy  sigma=0.001261
! Fit after  self-cal, rms=0.161987Jy  sigma=0.001261
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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.161987Jy  sigma=0.001261
! Fit after  self-cal, rms=0.162348Jy  sigma=0.001261
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.7911 mas, bmaj=2.338 mas, bpa=-9.662 degrees
! Estimated noise=612.477 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000836676 Jy
! Component: 100  -  total flux cleaned = -0.00090288 Jy
! Component: 150  -  total flux cleaned = -0.000931309 Jy
! Component: 200  -  total flux cleaned = -0.000981642 Jy
! Total flux subtracted in 200 components = -0.000981642 Jy
! Clean residual min=-0.002134 max=0.002633 Jy/beam
! Clean residual mean=0.000193 rms=0.000701 Jy/beam
! Combined flux in latest and established models = 0.663472 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 38 components and 0.663472 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162333Jy  sigma=0.001261
! Fit after  self-cal, rms=0.162336Jy  sigma=0.001261
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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 = -6.84542e-05 Jy
! Component: 100  -  total flux cleaned = -9.00303e-05 Jy
! Component: 150  -  total flux cleaned = -0.000110775 Jy
! Component: 200  -  total flux cleaned = -0.000130567 Jy
! Total flux subtracted in 200 components = -0.000130567 Jy
! Clean residual min=-0.002114 max=0.002623 Jy/beam
! Clean residual mean=0.000196 rms=0.000700 Jy/beam
! Combined flux in latest and established models = 0.663341 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 39 components and 0.663341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162328Jy  sigma=0.001261
! Fit after  self-cal, rms=0.162329Jy  sigma=0.001261
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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.162329Jy  sigma=0.001261
! Fit after  self-cal, rms=0.162606Jy  sigma=0.001261
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=2.135 mas, bmaj=3.861 mas, bpa=-0.3054 degrees
! Estimated noise=770.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000621809 Jy
! Component: 100  -  total flux cleaned = -0.000634314 Jy
! Component: 150  -  total flux cleaned = -0.000670646 Jy
! Component: 200  -  total flux cleaned = -0.000693653 Jy
! Total flux subtracted in 200 components = -0.000693652 Jy
! Clean residual min=-0.001600 max=0.002969 Jy/beam
! Clean residual mean=0.000445 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 0.662647 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 44 components and 0.662647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162601Jy  sigma=0.001261
! Fit after  self-cal, rms=0.162601Jy  sigma=0.001261
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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 = -8.08982e-05 Jy
! Component: 100  -  total flux cleaned = -8.08706e-05 Jy
! Component: 150  -  total flux cleaned = -9.12651e-05 Jy
! Component: 200  -  total flux cleaned = -0.000111032 Jy
! Total flux subtracted in 200 components = -0.000111032 Jy
! Clean residual min=-0.001580 max=0.002960 Jy/beam
! Clean residual mean=0.000450 rms=0.000797 Jy/beam
! Combined flux in latest and established models = 0.662536 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 45 components and 0.662536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162600Jy  sigma=0.001261
! Fit after  self-cal, rms=0.162597Jy  sigma=0.001261
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.7914 mas, bmaj=2.342 mas, bpa=-9.676 degrees
! Estimated noise=612.498 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7914 x 2.342 at -9.676 degrees (North through East)
! Clean map  min=-0.0018181  max=0.62101 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.162597Jy  sigma=0.001261
! Fit after  self-cal, rms=0.157322Jy  sigma=0.001175
! Inverting map and beam 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.7913 mas, bmaj=2.343 mas, bpa=-9.686 degrees
! Estimated noise=611.977 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000754845 Jy
! Component: 100  -  total flux cleaned = -0.000824863 Jy
! Component: 150  -  total flux cleaned = -0.000910121 Jy
! Component: 200  -  total flux cleaned = -0.000948854 Jy
! Total flux subtracted in 200 components = -0.000948854 Jy
! Clean residual min=-0.001994 max=0.002661 Jy/beam
! Clean residual mean=0.000200 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.661587 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 45 components and 0.661587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157313Jy  sigma=0.001175
! Fit after  self-cal, rms=0.157314Jy  sigma=0.001175
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.67311e-05 Jy
! Component: 100  -  total flux cleaned = -6.59751e-05 Jy
! Component: 150  -  total flux cleaned = -6.60483e-05 Jy
! Component: 200  -  total flux cleaned = -6.58908e-05 Jy
! Total flux subtracted in 200 components = -6.58908e-05 Jy
! Clean residual min=-0.001990 max=0.002664 Jy/beam
! Clean residual mean=0.000201 rms=0.000681 Jy/beam
! Combined flux in latest and established models = 0.661522 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 45 components and 0.661522 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157308Jy  sigma=0.001175
! Fit after  self-cal, rms=0.157310Jy  sigma=0.001175
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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.157310Jy  sigma=0.001175
! Fit after  self-cal, rms=0.157437Jy  sigma=0.001175
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 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.6079 mas, bmaj=1.757 mas, bpa=-4.207 degrees
! Estimated noise=1117.11 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.469884 Jy
! Component: 100  -  total flux cleaned = 0.573879 Jy
! Component: 150  -  total flux cleaned = 0.608312 Jy
! Component: 200  -  total flux cleaned = 0.627762 Jy
! Total flux subtracted in 200 components = 0.627762 Jy
! Clean residual min=-0.006502 max=0.010117 Jy/beam
! Clean residual mean=0.000177 rms=0.001855 Jy/beam
! Combined flux in latest and established models = 0.627762 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 0.627762 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.7915 mas, bmaj=2.345 mas, bpa=-9.699 degrees
! Estimated noise=611.795 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.0171799 Jy
! Component: 100  -  total flux cleaned = 0.0252055 Jy
! Component: 150  -  total flux cleaned = 0.0294387 Jy
! Component: 200  -  total flux cleaned = 0.0317639 Jy
! Total flux subtracted in 200 components = 0.0317639 Jy
! Clean residual min=-0.001929 max=0.002569 Jy/beam
! Clean residual mean=0.000228 rms=0.000691 Jy/beam
! Combined flux in latest and established models = 0.659526 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 40 components and 0.659526 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 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 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=2.135 mas, bmaj=3.864 mas, bpa=-0.331 degrees
! Estimated noise=768.912 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00134909 Jy
! Component: 100  -  total flux cleaned = 0.00169049 Jy
! Component: 150  -  total flux cleaned = 0.00169855 Jy
! Component: 200  -  total flux cleaned = 0.00170578 Jy
! Total flux subtracted in 200 components = 0.00170578 Jy
! Clean residual min=-0.001406 max=0.002670 Jy/beam
! Clean residual mean=0.000453 rms=0.000769 Jy/beam
! Combined flux in latest and established models = 0.661232 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.72854e-06 Jy
! Component: 100  -  total flux cleaned = 1.28602e-05 Jy
! Component: 150  -  total flux cleaned = 7.04089e-06 Jy
! Component: 200  -  total flux cleaned = 1.07658e-06 Jy
! Total flux subtracted in 200 components = 1.07658e-06 Jy
! Clean residual min=-0.001403 max=0.002669 Jy/beam
! Clean residual mean=0.000453 rms=0.000768 Jy/beam
! Combined flux in latest and established models = 0.661233 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 44 components and 0.661233 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! Estimated beam: bmin=0.7915 mas, bmaj=2.345 mas, bpa=-9.699 degrees
! Estimated noise=611.795 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000583111 Jy
! Component: 100  -  total flux cleaned = -0.000342902 Jy
! Component: 150  -  total flux cleaned = -0.000133067 Jy
! Component: 200  -  total flux cleaned = 1.85616e-05 Jy
! Total flux subtracted in 200 components = 1.85616e-05 Jy
! Clean residual min=-0.002040 max=0.002433 Jy/beam
! Clean residual mean=0.000193 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.661252 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 45 components and 0.661252 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157503Jy  sigma=0.001175
! Fit after  self-cal, rms=0.157489Jy  sigma=0.001175
wmodel J0050-0929_X_2000_12_04_pus_map.mod
! Writing 45 model components to file: J0050-0929_X_2000_12_04_pus_map.mod
wobs J0050-0929_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0050-0929_X_2000_12_04_pus_uvs.fits
wwins J0050-0929_X_2000_12_04_pus_map.win
! wwins: Wrote 1 windows to J0050-0929_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 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00112824 Jy
! Component: 100  -  total flux cleaned = 0.00216637 Jy
! Component: 150  -  total flux cleaned = 0.00310236 Jy
! Component: 200  -  total flux cleaned = 0.00373336 Jy
! Component: 250  -  total flux cleaned = 0.00426791 Jy
! Component: 300  -  total flux cleaned = 0.00461174 Jy
! Component: 350  -  total flux cleaned = 0.00487857 Jy
! Component: 400  -  total flux cleaned = 0.0050087 Jy
! Component: 450  -  total flux cleaned = 0.00516754 Jy
! Component: 500  -  total flux cleaned = 0.00526078 Jy
! Component: 550  -  total flux cleaned = 0.00535271 Jy
! Component: 600  -  total flux cleaned = 0.00556272 Jy
! Component: 650  -  total flux cleaned = 0.0057684 Jy
! Component: 700  -  total flux cleaned = 0.00594148 Jy
! Component: 750  -  total flux cleaned = 0.00611143 Jy
! Component: 800  -  total flux cleaned = 0.00627911 Jy
! Component: 850  -  total flux cleaned = 0.00647192 Jy
! Component: 900  -  total flux cleaned = 0.00663497 Jy
! Component: 950  -  total flux cleaned = 0.00682251 Jy
! Component: 1000  -  total flux cleaned = 0.00695463 Jy
! Total flux subtracted in 1024 components = 0.00703298 Jy
! Clean residual min=-0.001446 max=0.001376 Jy/beam
! Clean residual mean=0.000093 rms=0.000532 Jy/beam
! Combined flux in latest and established models = 0.668285 Jy
keep
! Adding 57 model components to the UV plane model.
! The established model now contains 102 components and 0.668285 Jy
![Exited script file: muppet]
wmap "J0050-0929_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7915 x 2.345 at -9.699 degrees (North through East)
! Clean map  min=-0.0016716  max=0.62031 Jy/beam
! Writing clean map to FITS file: J0050-0929_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 0.620313 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.08% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000532921 
device "J0050-0929_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0050-0929_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.257735 0.257735 0.51547 1.03094 2.06188 4.12376 8.24752 16.495 32.9901 65.9801
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.62 
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.7915 x 2.345 at -9.699 degrees (North through East)
! Clean map  min=-0.0016716  max=0.62031 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0050-0929_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0050-0929_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0050-0929_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:10:35 2007