! Started logfile: J1147-0724_X_2001_04_09_pus_uvs.log on Tue Oct  2 14:23:18 2007
obs J1147-0724_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1147-0724_X_2001_04_09_pus_uva.fits
! AN table 1: 12 integrations on 190 of 190 possible baselines.
! AN table 2: 102 integrations on 190 of 190 possible baselines.
! AN table 3: 209 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0331921 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1147-0724
! 
! 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 1930 lines of history.
! 
! Reading 8148 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 J1147-0724_X_2001_04_09_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 240 telescope corrections were flagged in sub-array 1.
!  A total of 1862 telescope corrections were flagged in sub-array 2.
!  A total of 3550 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 240 telescope corrections were flagged in sub-array 1.
!  A total of 1862 telescope corrections were flagged in sub-array 2.
!  A total of 3550 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 240 telescope corrections were flagged in sub-array 1.
!  A total of 1862 telescope corrections were flagged in sub-array 2.
!  A total of 3553 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 240 telescope corrections were flagged in sub-array 1.
!  A total of 1862 telescope corrections were flagged in sub-array 2.
!  A total of 3555 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.674483Jy  sigma=0.004754
! Fit after  self-cal, rms=0.548898Jy  sigma=0.004045
! 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 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5515 mas, bmaj=1.203 mas, bpa=-0.4433 degrees
! Estimated noise=1721.36 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.398632 Jy
! Component: 100  -  total flux cleaned = 0.490602 Jy
! Total flux subtracted in 100 components = 0.490602 Jy
! Clean residual min=-0.016507 max=0.035183 Jy/beam
! Clean residual mean=0.001614 rms=0.006570 Jy/beam
! Combined flux in latest and established models = 0.490602 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.490602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220116Jy  sigma=0.001404
! Fit after  self-cal, rms=0.220222Jy  sigma=0.001404
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.566 mas, bmaj=0.8545 mas, bpa=7.588 degrees
! Estimated noise=1131.74 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.0519422 Jy
! Component: 100  -  total flux cleaned = 0.0778805 Jy
! Component: 150  -  total flux cleaned = 0.0924928 Jy
! Component: 200  -  total flux cleaned = 0.101285 Jy
! Total flux subtracted in 200 components = 0.101285 Jy
! Clean residual min=-0.010130 max=0.024040 Jy/beam
! Clean residual mean=0.001348 rms=0.003989 Jy/beam
! Combined flux in latest and established models = 0.591887 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 17 components and 0.591887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209281Jy  sigma=0.001275
! Fit after  self-cal, rms=0.209373Jy  sigma=0.001273
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Added new window around map position (-2, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219316 Jy
! Component: 100  -  total flux cleaned = 0.0331691 Jy
! Component: 150  -  total flux cleaned = 0.0382341 Jy
! Component: 200  -  total flux cleaned = 0.0397336 Jy
! Total flux subtracted in 200 components = 0.0397336 Jy
! Clean residual min=-0.007872 max=0.011694 Jy/beam
! Clean residual mean=0.000715 rms=0.002721 Jy/beam
! Combined flux in latest and established models = 0.631621 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 42 components and 0.631621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207610Jy  sigma=0.001248
! Fit after  self-cal, rms=0.207275Jy  sigma=0.001244
! Inverting map 
! Your choice of large map pixels excluded 2.98% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 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 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.04     GC        0.88     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        0.96     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.90     
!   NL        1.12     NY        1.00*    OV        1.05     PT        0.98     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.04     HN        1.03     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.99     MC        0.98     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00     TS        1.00*    WF        1.00*    WZ        0.98     
! 
! 
! Correcting IF 2.
!  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 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.04     GC        0.92     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.96     KP        0.96     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.07     NY        1.00*    OV        1.08     PT        0.97     
!   SC        1.00*    TS        0.96     WF        1.00*    WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00     HN        0.99     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.98     MC        0.96     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        0.99     TS        1.00*    WF        1.00*    WZ        0.91     
! 
! 
! Correcting IF 3.
!  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 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.04     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.88     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.06     NY        1.00*    OV        1.07     PT        0.94     
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.02     HN        1.03     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.02     MC        1.02     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.01     TS        1.00*    WF        1.00*    WZ        1.01     
! 
! 
! Correcting IF 4.
!  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 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     GC        1.12     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        1.11     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.09     NY        1.00*    OV        1.02     PT        0.98     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.04     HN        1.02     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00     MC        0.99     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.01     TS        1.00*    WF        1.00*    WZ        0.98     
! 
! 
! Fit before self-cal, rms=0.207275Jy  sigma=0.001244
! Fit after  self-cal, rms=0.207251Jy  sigma=0.001221
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5585 mas, bmaj=0.8893 mas, bpa=5.394 degrees
! Estimated noise=1145.87 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.0069264 Jy
! Component: 100  -  total flux cleaned = 0.00893921 Jy
! Component: 150  -  total flux cleaned = 0.0100026 Jy
! Component: 200  -  total flux cleaned = 0.010385 Jy
! Total flux subtracted in 200 components = 0.010385 Jy
! Clean residual min=-0.004870 max=0.006144 Jy/beam
! Clean residual mean=0.000080 rms=0.001466 Jy/beam
! Combined flux in latest and established models = 0.642006 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 54 components and 0.642006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207002Jy  sigma=0.001218
! Fit after  self-cal, rms=0.207038Jy  sigma=0.001217
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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.207038Jy  sigma=0.001217
! Fit after  self-cal, rms=0.207357Jy  sigma=0.001217
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5584 mas, bmaj=0.889 mas, bpa=5.345 degrees
! Estimated noise=1146.36 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00415845 Jy
! Component: 100  -  total flux cleaned = 0.00505089 Jy
! Component: 150  -  total flux cleaned = 0.00545501 Jy
! Component: 200  -  total flux cleaned = 0.0055922 Jy
! Total flux subtracted in 200 components = 0.0055922 Jy
! Clean residual min=-0.004652 max=0.005465 Jy/beam
! Clean residual mean=0.000089 rms=0.001339 Jy/beam
! Combined flux in latest and established models = 0.647598 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 58 components and 0.647598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207254Jy  sigma=0.001216
! Fit after  self-cal, rms=0.207245Jy  sigma=0.001216
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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.00154678 Jy
! Component: 100  -  total flux cleaned = 0.00168045 Jy
! Component: 150  -  total flux cleaned = 0.00179561 Jy
! Component: 200  -  total flux cleaned = 0.00184714 Jy
! Total flux subtracted in 200 components = 0.00184714 Jy
! Clean residual min=-0.004643 max=0.005065 Jy/beam
! Clean residual mean=0.000059 rms=0.001281 Jy/beam
! Combined flux in latest and established models = 0.649445 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 64 components and 0.649445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207209Jy  sigma=0.001215
! Fit after  self-cal, rms=0.207199Jy  sigma=0.001215
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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.207199Jy  sigma=0.001215
! Fit after  self-cal, rms=0.207738Jy  sigma=0.001215
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5586 mas, bmaj=0.8896 mas, bpa=5.293 degrees
! Estimated noise=1147.75 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00265113 Jy
! Component: 100  -  total flux cleaned = 0.00297447 Jy
! Component: 150  -  total flux cleaned = 0.00302217 Jy
! Component: 200  -  total flux cleaned = 0.00320072 Jy
! Total flux subtracted in 200 components = 0.00320072 Jy
! Clean residual min=-0.004411 max=0.004858 Jy/beam
! Clean residual mean=0.000080 rms=0.001234 Jy/beam
! Combined flux in latest and established models = 0.652646 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 67 components and 0.652646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207698Jy  sigma=0.001214
! Fit after  self-cal, rms=0.207696Jy  sigma=0.001214
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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.000848216 Jy
! Component: 100  -  total flux cleaned = 0.000941591 Jy
! Component: 150  -  total flux cleaned = 0.000982766 Jy
! Component: 200  -  total flux cleaned = 0.0010896 Jy
! Total flux subtracted in 200 components = 0.0010896 Jy
! Clean residual min=-0.004399 max=0.004932 Jy/beam
! Clean residual mean=0.000062 rms=0.001210 Jy/beam
! Combined flux in latest and established models = 0.653735 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 72 components and 0.653735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207679Jy  sigma=0.001214
! Fit after  self-cal, rms=0.207677Jy  sigma=0.001214
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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.207677Jy  sigma=0.001214
! Fit after  self-cal, rms=0.208361Jy  sigma=0.001214
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=2.736 mas, bmaj=3.265 mas, bpa=37.3 degrees
! Estimated noise=1726.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00192942 Jy
! Component: 100  -  total flux cleaned = 0.00198163 Jy
! Component: 150  -  total flux cleaned = 0.00194529 Jy
! Component: 200  -  total flux cleaned = 0.0018785 Jy
! Total flux subtracted in 200 components = 0.0018785 Jy
! Clean residual min=-0.004291 max=0.004782 Jy/beam
! Clean residual mean=0.000281 rms=0.001847 Jy/beam
! Combined flux in latest and established models = 0.655614 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 76 components and 0.655614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208378Jy  sigma=0.001214
! Fit after  self-cal, rms=0.208353Jy  sigma=0.001214
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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.000431264 Jy
! Component: 100  -  total flux cleaned = 0.000402608 Jy
! Component: 150  -  total flux cleaned = 0.00037511 Jy
! Component: 200  -  total flux cleaned = 0.000323958 Jy
! Total flux subtracted in 200 components = 0.000323958 Jy
! Clean residual min=-0.004222 max=0.004677 Jy/beam
! Clean residual mean=0.000263 rms=0.001782 Jy/beam
! Combined flux in latest and established models = 0.655938 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 78 components and 0.655938 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208371Jy  sigma=0.001214
! Fit after  self-cal, rms=0.208361Jy  sigma=0.001214
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5589 mas, bmaj=0.8908 mas, bpa=5.224 degrees
! Estimated noise=1149.5 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5589 x 0.8908 at 5.224 degrees (North through East)
! Clean map  min=-0.0035976  max=0.50145 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.208361Jy  sigma=0.001214
! Fit after  self-cal, rms=0.221693Jy  sigma=0.001063
! Inverting map and beam 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5581 mas, bmaj=0.8877 mas, bpa=5.484 degrees
! Estimated noise=1146.68 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000698028 Jy
! Component: 100  -  total flux cleaned = 0.000694266 Jy
! Component: 150  -  total flux cleaned = 0.000755223 Jy
! Component: 200  -  total flux cleaned = 0.00070308 Jy
! Total flux subtracted in 200 components = 0.00070308 Jy
! Clean residual min=-0.003955 max=0.004639 Jy/beam
! Clean residual mean=0.000057 rms=0.001188 Jy/beam
! Combined flux in latest and established models = 0.656641 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 83 components and 0.656641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221612Jy  sigma=0.001062
! Fit after  self-cal, rms=0.221628Jy  sigma=0.001062
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000381359 Jy
! Component: 100  -  total flux cleaned = 0.000431022 Jy
! Component: 150  -  total flux cleaned = 0.000344341 Jy
! Component: 200  -  total flux cleaned = 0.000226529 Jy
! Total flux subtracted in 200 components = 0.000226529 Jy
! Clean residual min=-0.003893 max=0.004601 Jy/beam
! Clean residual mean=0.000053 rms=0.001174 Jy/beam
! Combined flux in latest and established models = 0.656867 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 86 components and 0.656867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221586Jy  sigma=0.001062
! Fit after  self-cal, rms=0.221594Jy  sigma=0.001062
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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.221594Jy  sigma=0.001062
! Fit after  self-cal, rms=0.220735Jy  sigma=0.001062
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 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5482 mas, bmaj=1.206 mas, bpa=-0.658 degrees
! Estimated noise=1731.72 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.398626 Jy
! Component: 100  -  total flux cleaned = 0.493678 Jy
! Component: 150  -  total flux cleaned = 0.538239 Jy
! Component: 200  -  total flux cleaned = 0.567439 Jy
! Total flux subtracted in 200 components = 0.567439 Jy
! Clean residual min=-0.010880 max=0.016026 Jy/beam
! Clean residual mean=0.000843 rms=0.003865 Jy/beam
! Combined flux in latest and established models = 0.567439 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.567439 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5582 mas, bmaj=0.8879 mas, bpa=5.482 degrees
! Estimated noise=1148.3 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.0270445 Jy
! Component: 100  -  total flux cleaned = 0.0450506 Jy
! Component: 150  -  total flux cleaned = 0.0576116 Jy
! Component: 200  -  total flux cleaned = 0.0664849 Jy
! Total flux subtracted in 200 components = 0.0664849 Jy
! Clean residual min=-0.005068 max=0.005920 Jy/beam
! Clean residual mean=0.000483 rms=0.001691 Jy/beam
! Combined flux in latest and established models = 0.633924 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 42 components and 0.633924 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 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 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=2.73 mas, bmaj=3.272 mas, bpa=36.97 degrees
! Estimated noise=1729.18 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0134722 Jy
! Component: 100  -  total flux cleaned = 0.0189062 Jy
! Component: 150  -  total flux cleaned = 0.0211937 Jy
! Component: 200  -  total flux cleaned = 0.0220663 Jy
! Total flux subtracted in 200 components = 0.0220663 Jy
! Clean residual min=-0.004177 max=0.004449 Jy/beam
! Clean residual mean=0.000313 rms=0.001723 Jy/beam
! Combined flux in latest and established models = 0.65599 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.000107629 Jy
! Component: 100  -  total flux cleaned = 0.000181017 Jy
! Component: 150  -  total flux cleaned = 0.000269098 Jy
! Component: 200  -  total flux cleaned = 0.000329978 Jy
! Total flux subtracted in 200 components = 0.000329978 Jy
! Clean residual min=-0.004105 max=0.004454 Jy/beam
! Clean residual mean=0.000295 rms=0.001716 Jy/beam
! Combined flux in latest and established models = 0.65632 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 64 components and 0.65632 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! Estimated beam: bmin=0.5582 mas, bmaj=0.8879 mas, bpa=5.482 degrees
! Estimated noise=1148.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000391996 Jy
! Component: 100  -  total flux cleaned = 0.000556107 Jy
! Component: 150  -  total flux cleaned = 0.000624722 Jy
! Component: 200  -  total flux cleaned = 0.000526984 Jy
! Total flux subtracted in 200 components = 0.000526984 Jy
! Clean residual min=-0.003897 max=0.004871 Jy/beam
! Clean residual mean=0.000080 rms=0.001239 Jy/beam
! Combined flux in latest and established models = 0.656847 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 70 components and 0.656847 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220868Jy  sigma=0.001062
! Fit after  self-cal, rms=0.220819Jy  sigma=0.001062
wmodel J1147-0724_X_2001_04_09_pus_map.mod
! Writing 70 model components to file: J1147-0724_X_2001_04_09_pus_map.mod
wobs J1147-0724_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1147-0724_X_2001_04_09_pus_uvs.fits
wwins J1147-0724_X_2001_04_09_pus_map.win
! wwins: Wrote 2 windows to J1147-0724_X_2001_04_09_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 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00212026 Jy
! Component: 100  -  total flux cleaned = 0.00395282 Jy
! Component: 150  -  total flux cleaned = 0.0046288 Jy
! Component: 200  -  total flux cleaned = 0.00475574 Jy
! Component: 250  -  total flux cleaned = 0.00457793 Jy
! Component: 300  -  total flux cleaned = 0.00434931 Jy
! Component: 350  -  total flux cleaned = 0.00401814 Jy
! Component: 400  -  total flux cleaned = 0.00375271 Jy
! Component: 450  -  total flux cleaned = 0.00344522 Jy
! Component: 500  -  total flux cleaned = 0.00339661 Jy
! Component: 550  -  total flux cleaned = 0.00329964 Jy
! Component: 600  -  total flux cleaned = 0.0031113 Jy
! Component: 650  -  total flux cleaned = 0.00315835 Jy
! Component: 700  -  total flux cleaned = 0.00311319 Jy
! Component: 750  -  total flux cleaned = 0.00306871 Jy
! Component: 800  -  total flux cleaned = 0.00302604 Jy
! Component: 850  -  total flux cleaned = 0.00290077 Jy
! Component: 900  -  total flux cleaned = 0.00286009 Jy
! Component: 950  -  total flux cleaned = 0.00277943 Jy
! Component: 1000  -  total flux cleaned = 0.00270031 Jy
! Total flux subtracted in 1024 components = 0.00266131 Jy
! Clean residual min=-0.002501 max=0.002494 Jy/beam
! Clean residual mean=0.000028 rms=0.000722 Jy/beam
! Combined flux in latest and established models = 0.659508 Jy
keep
! Adding 58 model components to the UV plane model.
! The established model now contains 128 components and 0.659508 Jy
![Exited script file: muppet]
wmap "J1147-0724_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5582 x 0.8879 at 5.482 degrees (North through East)
! Clean map  min=-0.0034355  max=0.50176 Jy/beam
! Writing clean map to FITS file: J1147-0724_X_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.501757 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.13% of the data.
!  The x-axis pixel size should ideally be below 0.1879 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00072108 
device "J1147-0724_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1147-0724_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.431133 0.431133 0.862266 1.72453 3.44907 6.89813 13.7963 27.5925 55.1851
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.501 
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.5582 x 0.8879 at 5.482 degrees (North through East)
! Clean map  min=-0.0034355  max=0.50176 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1147-0724_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1147-0724_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1147-0724_X_2001_04_09_pus_uvs.log closed on Tue Oct  2 14:23:26 2007