! Started logfile: J2147+0929_X_2000_12_04_pus_uvs.log on Fri Oct 12 15:33:49 2007
obs J2147+0929_X_2000_12_04_pus_uva.fits
! Reading UV FITS file: J2147+0929_X_2000_12_04_pus_uva.fits
! AN table 1: 293 integrations on 190 of 190 possible baselines.
! AN table 2: 231 integrations on 190 of 190 possible baselines.
! AN table 3: 70 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.164753 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2147+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 74376 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 J2147+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 3914 telescope corrections were flagged in sub-array 1.
!  A total of 2345 telescope corrections were flagged in sub-array 2.
!  A total of 1185 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3914 telescope corrections were flagged in sub-array 1.
!  A total of 2345 telescope corrections were flagged in sub-array 2.
!  A total of 1185 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3914 telescope corrections were flagged in sub-array 1.
!  A total of 2345 telescope corrections were flagged in sub-array 2.
!  A total of 1185 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3914 telescope corrections were flagged in sub-array 1.
!  A total of 2440 telescope corrections were flagged in sub-array 2.
!  A total of 1232 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.796586Jy  sigma=0.007723
! Fit after  self-cal, rms=0.765459Jy  sigma=0.007468
! 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.66% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.5135 mas, bmaj=1.423 mas, bpa=-8.477 degrees
! Estimated noise=805.308 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.175144 Jy
! Component: 100  -  total flux cleaned = 0.231386 Jy
! Total flux subtracted in 100 components = 0.231386 Jy
! Clean residual min=-0.013266 max=0.035925 Jy/beam
! Clean residual mean=0.000190 rms=0.004737 Jy/beam
! Combined flux in latest and established models = 0.231386 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.231386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198425Jy  sigma=0.001564
! Fit after  self-cal, rms=0.198186Jy  sigma=0.001563
! Inverting map 
! Your choice of large map pixels excluded 1.66% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Added new window around map position (0.8, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0379304 Jy
! Component: 100  -  total flux cleaned = 0.0609049 Jy
! Total flux subtracted in 100 components = 0.0609049 Jy
! Clean residual min=-0.010179 max=0.016518 Jy/beam
! Clean residual mean=0.000134 rms=0.003207 Jy/beam
! Combined flux in latest and established models = 0.292291 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 19 components and 0.292291 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187778Jy  sigma=0.001399
! Fit after  self-cal, rms=0.187132Jy  sigma=0.001393
! Inverting map 
! Your choice of large map pixels excluded 1.66% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.66% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6723 mas, bmaj=1.786 mas, bpa=-7.279 degrees
! Estimated noise=272.08 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.0309178 Jy
! Component: 100  -  total flux cleaned = 0.0468359 Jy
! Component: 150  -  total flux cleaned = 0.056026 Jy
! Component: 200  -  total flux cleaned = 0.0616748 Jy
! Total flux subtracted in 200 components = 0.0616748 Jy
! Clean residual min=-0.004007 max=0.007067 Jy/beam
! Clean residual mean=0.000414 rms=0.001389 Jy/beam
! Combined flux in latest and established models = 0.353966 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 39 components and 0.353966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182717Jy  sigma=0.001321
! Fit after  self-cal, rms=0.182488Jy  sigma=0.001319
! Inverting map 
! Your choice of large map pixels excluded 1.66% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.02     MA        0.93     MC        0.95     MK        1.00*    
!   NL        1.02     NY        0.92     OV        1.00*    PT        1.00     
!   SC        0.99     TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.11     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.13     MK        1.03     
!   NL        1.03     NY        3.71     OV        1.02     PT        0.98     
!   SC        1.03     TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 171 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        1.00*    KK        0.89     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.08     
!   NL        1.00*    NY        1.74     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        0.81     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        1.00*    
!   LA        1.05     MA        0.97     MC        0.95     MK        1.00*    
!   NL        0.96     NY        0.89     OV        1.00*    PT        1.01     
!   SC        0.94     TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.06     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.18     MK        1.03     
!   NL        0.98     NY        3.36     OV        1.00     PT        0.98     
!   SC        0.99     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 171 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        1.00*    KK        0.81     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.00*    NY        1.22     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        0.95     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.04     MA        0.93     MC        0.95     MK        1.00*    
!   NL        0.98     NY        0.92     OV        1.00*    PT        0.97     
!   SC        1.04     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.10     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.17     MK        1.02     
!   NL        0.98     NY        3.14     OV        0.98     PT        0.96     
!   SC        1.03     TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 171 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        1.00*    KK        0.94     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.00*    NY        1.41     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.00*    
!   LA        1.05     MA        0.92     MC        0.96     MK        1.00*    
!   NL        0.98     NY        0.88     OV        1.00*    PT        0.97     
!   SC        0.99     TS        1.00*    WF        0.94     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.08     KP        0.99     
!   LA        0.98     MA        1.00*    MC        1.22     MK        0.99     
!   NL        0.99     NY        1.00*    OV        1.00     PT        0.94     
!   SC        1.00     TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  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.182488Jy  sigma=0.001319
! Fit after  self-cal, rms=0.207134Jy  sigma=0.001304
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6772 mas, bmaj=1.847 mas, bpa=-6.495 degrees
! Estimated noise=272.13 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.00123869 Jy
! Component: 100  -  total flux cleaned = 0.00133613 Jy
! Component: 150  -  total flux cleaned = 0.00160063 Jy
! Component: 200  -  total flux cleaned = 0.00183183 Jy
! Total flux subtracted in 200 components = 0.00183183 Jy
! Clean residual min=-0.003065 max=0.004040 Jy/beam
! Clean residual mean=0.000280 rms=0.000809 Jy/beam
! Combined flux in latest and established models = 0.355798 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 50 components and 0.355798 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207049Jy  sigma=0.001302
! Fit after  self-cal, rms=0.207370Jy  sigma=0.001302
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Added new window around map position (5.6, 1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00394871 Jy
! Component: 100  -  total flux cleaned = 0.00611937 Jy
! Component: 150  -  total flux cleaned = 0.00724161 Jy
! Component: 200  -  total flux cleaned = 0.00791672 Jy
! Total flux subtracted in 200 components = 0.00791672 Jy
! Clean residual min=-0.002767 max=0.002833 Jy/beam
! Clean residual mean=0.000152 rms=0.000643 Jy/beam
! Combined flux in latest and established models = 0.363715 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 69 components and 0.363715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207268Jy  sigma=0.001300
! Fit after  self-cal, rms=0.207239Jy  sigma=0.001300
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.207239Jy  sigma=0.001300
! Fit after  self-cal, rms=0.211431Jy  sigma=0.001300
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6766 mas, bmaj=1.849 mas, bpa=-6.393 degrees
! Estimated noise=271.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000375763 Jy
! Component: 100  -  total flux cleaned = 0.000682911 Jy
! Component: 150  -  total flux cleaned = 0.00100167 Jy
! Component: 200  -  total flux cleaned = 0.00137784 Jy
! Total flux subtracted in 200 components = 0.00137784 Jy
! Clean residual min=-0.002521 max=0.002703 Jy/beam
! Clean residual mean=0.000097 rms=0.000597 Jy/beam
! Combined flux in latest and established models = 0.365093 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 73 components and 0.365093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211398Jy  sigma=0.001300
! Fit after  self-cal, rms=0.211405Jy  sigma=0.001300
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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 (2.6, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00290872 Jy
! Component: 100  -  total flux cleaned = 0.00352401 Jy
! Component: 150  -  total flux cleaned = 0.00391101 Jy
! Component: 200  -  total flux cleaned = 0.00424457 Jy
! Total flux subtracted in 200 components = 0.00424457 Jy
! Clean residual min=-0.002276 max=0.001896 Jy/beam
! Clean residual mean=0.000020 rms=0.000494 Jy/beam
! Combined flux in latest and established models = 0.369337 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 90 components and 0.369337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211333Jy  sigma=0.001299
! Fit after  self-cal, rms=0.211331Jy  sigma=0.001299
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.211331Jy  sigma=0.001299
! Fit after  self-cal, rms=0.211643Jy  sigma=0.001299
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6765 mas, bmaj=1.848 mas, bpa=-6.331 degrees
! Estimated noise=271.096 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00121066 Jy
! Component: 100  -  total flux cleaned = 0.00157942 Jy
! Component: 150  -  total flux cleaned = 0.00185558 Jy
! Component: 200  -  total flux cleaned = 0.00202299 Jy
! Total flux subtracted in 200 components = 0.00202299 Jy
! Clean residual min=-0.002029 max=0.001765 Jy/beam
! Clean residual mean=-0.000022 rms=0.000452 Jy/beam
! Combined flux in latest and established models = 0.37136 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 97 components and 0.37136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211613Jy  sigma=0.001298
! Fit after  self-cal, rms=0.211620Jy  sigma=0.001298
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.000535116 Jy
! Component: 100  -  total flux cleaned = 0.000651041 Jy
! Component: 150  -  total flux cleaned = 0.000651258 Jy
! Component: 200  -  total flux cleaned = 0.000685688 Jy
! Total flux subtracted in 200 components = 0.000685688 Jy
! Clean residual min=-0.001917 max=0.001800 Jy/beam
! Clean residual mean=-0.000034 rms=0.000438 Jy/beam
! Combined flux in latest and established models = 0.372046 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 102 components and 0.372046 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211600Jy  sigma=0.001298
! Fit after  self-cal, rms=0.211602Jy  sigma=0.001298
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.211602Jy  sigma=0.001298
! Fit after  self-cal, rms=0.211794Jy  sigma=0.001298
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=2.057 mas, bmaj=3.018 mas, bpa=-8.678 degrees
! Estimated noise=362.751 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00101602 Jy
! Component: 100  -  total flux cleaned = 0.00107487 Jy
! Component: 150  -  total flux cleaned = 0.00109805 Jy
! Component: 200  -  total flux cleaned = 0.00111869 Jy
! Total flux subtracted in 200 components = 0.00111869 Jy
! Clean residual min=-0.001790 max=0.002205 Jy/beam
! Clean residual mean=-0.000131 rms=0.000632 Jy/beam
! Combined flux in latest and established models = 0.373165 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 124 components and 0.373164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211787Jy  sigma=0.001298
! Fit after  self-cal, rms=0.211788Jy  sigma=0.001298
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.000186379 Jy
! Component: 100  -  total flux cleaned = 0.000205129 Jy
! Component: 150  -  total flux cleaned = 0.000239372 Jy
! Component: 200  -  total flux cleaned = 0.000255531 Jy
! Total flux subtracted in 200 components = 0.000255531 Jy
! Clean residual min=-0.001821 max=0.002219 Jy/beam
! Clean residual mean=-0.000144 rms=0.000623 Jy/beam
! Combined flux in latest and established models = 0.37342 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 133 components and 0.37342 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211785Jy  sigma=0.001298
! Fit after  self-cal, rms=0.211782Jy  sigma=0.001298
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6766 mas, bmaj=1.847 mas, bpa=-6.298 degrees
! Estimated noise=270.943 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6766 x 1.847 at -6.298 degrees (North through East)
! Clean map  min=-0.0015767  max=0.2526 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
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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.517 mas, bmaj=1.536 mas, bpa=-7.282 degrees
! Estimated noise=858.381 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.18472 Jy
! Component: 100  -  total flux cleaned = 0.247362 Jy
! Component: 150  -  total flux cleaned = 0.28037 Jy
! Component: 200  -  total flux cleaned = 0.300143 Jy
! Total flux subtracted in 200 components = 0.300143 Jy
! Clean residual min=-0.004908 max=0.010641 Jy/beam
! Clean residual mean=0.000120 rms=0.001862 Jy/beam
! Combined flux in latest and established models = 0.300143 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.300143 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6766 mas, bmaj=1.847 mas, bpa=-6.298 degrees
! Estimated noise=270.943 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.0215211 Jy
! Component: 100  -  total flux cleaned = 0.0341978 Jy
! Component: 150  -  total flux cleaned = 0.0423123 Jy
! Component: 200  -  total flux cleaned = 0.0480398 Jy
! Total flux subtracted in 200 components = 0.0480398 Jy
! Clean residual min=-0.001901 max=0.003672 Jy/beam
! Clean residual mean=0.000373 rms=0.000884 Jy/beam
! Combined flux in latest and established models = 0.348183 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 55 components and 0.348183 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=2.057 mas, bmaj=3.018 mas, bpa=-8.678 degrees
! Estimated noise=362.751 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00863206 Jy
! Component: 100  -  total flux cleaned = 0.01379 Jy
! Component: 150  -  total flux cleaned = 0.0172459 Jy
! Component: 200  -  total flux cleaned = 0.0196495 Jy
! Total flux subtracted in 200 components = 0.0196495 Jy
! Clean residual min=-0.001830 max=0.002824 Jy/beam
! Clean residual mean=0.000116 rms=0.000760 Jy/beam
! Combined flux in latest and established models = 0.367833 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.00168891 Jy
! Component: 100  -  total flux cleaned = 0.0028895 Jy
! Component: 150  -  total flux cleaned = 0.00375739 Jy
! Component: 200  -  total flux cleaned = 0.00438663 Jy
! Total flux subtracted in 200 components = 0.00438663 Jy
! Clean residual min=-0.001790 max=0.002339 Jy/beam
! Clean residual mean=-0.000090 rms=0.000622 Jy/beam
! Combined flux in latest and established models = 0.372219 Jy
! Adding 91 model components to the UV plane model.
! The established model now contains 134 components and 0.372219 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! Estimated beam: bmin=0.6766 mas, bmaj=1.847 mas, bpa=-6.298 degrees
! Estimated noise=270.943 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000298235 Jy
! Component: 100  -  total flux cleaned = -0.000254464 Jy
! Component: 150  -  total flux cleaned = -0.000212909 Jy
! Component: 200  -  total flux cleaned = -9.78398e-05 Jy
! Total flux subtracted in 200 components = -9.78398e-05 Jy
! Clean residual min=-0.001258 max=0.001666 Jy/beam
! Clean residual mean=-0.000033 rms=0.000416 Jy/beam
! Combined flux in latest and established models = 0.372121 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 145 components and 0.372121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211842Jy  sigma=0.001299
! Fit after  self-cal, rms=0.211913Jy  sigma=0.001298
wmodel J2147+0929_X_2000_12_04_pus_map.mod
! Writing 145 model components to file: J2147+0929_X_2000_12_04_pus_map.mod
wobs J2147+0929_X_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J2147+0929_X_2000_12_04_pus_uvs.fits
wwins J2147+0929_X_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J2147+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.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000578521 Jy
! Component: 100  -  total flux cleaned = 0.000488733 Jy
! Component: 150  -  total flux cleaned = 0.000359026 Jy
! Component: 200  -  total flux cleaned = 0.000214388 Jy
! Component: 250  -  total flux cleaned = 0.000134435 Jy
! Component: 300  -  total flux cleaned = 7.63798e-05 Jy
! Component: 350  -  total flux cleaned = 2.0219e-05 Jy
! Component: 400  -  total flux cleaned = -1.64046e-05 Jy
! Component: 450  -  total flux cleaned = -1.65983e-05 Jy
! Component: 500  -  total flux cleaned = -3.38615e-05 Jy
! Component: 550  -  total flux cleaned = -1.65838e-05 Jy
! Component: 600  -  total flux cleaned = -3.34584e-05 Jy
! Component: 650  -  total flux cleaned = -3.33351e-05 Jy
! Component: 700  -  total flux cleaned = -4.9591e-05 Jy
! Component: 750  -  total flux cleaned = -8.18134e-05 Jy
! Component: 800  -  total flux cleaned = -8.19661e-05 Jy
! Component: 850  -  total flux cleaned = -0.000128934 Jy
! Component: 900  -  total flux cleaned = -0.000159633 Jy
! Component: 950  -  total flux cleaned = -0.000159577 Jy
! Component: 1000  -  total flux cleaned = -0.000189612 Jy
! Total flux subtracted in 1024 components = -0.000159788 Jy
! Clean residual min=-0.000973 max=0.000991 Jy/beam
! Clean residual mean=-0.000021 rms=0.000302 Jy/beam
! Combined flux in latest and established models = 0.371962 Jy
keep
! Adding 84 model components to the UV plane model.
! The established model now contains 228 components and 0.371961 Jy
![Exited script file: muppet]
wmap "J2147+0929_X_2000_12_04_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6766 x 1.847 at -6.298 degrees (North through East)
! Clean map  min=-0.0011425  max=0.25354 Jy/beam
! Writing clean map to FITS file: J2147+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.253545 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.68% of the data.
!  The x-axis pixel size should ideally be below 0.1614 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000302415 
device "J2147+0929_X_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J2147+0929_X_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.357824 0.357824 0.715648 1.4313 2.86259 5.72519 11.4504 22.9007 45.8015 91.603
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.253 
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.6766 x 1.847 at -6.298 degrees (North through East)
! Clean map  min=-0.0011425  max=0.25354 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2147+0929_X_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J2147+0929_X_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2147+0929_X_2000_12_04_pus_uvs.log closed on Fri Oct 12 15:34:10 2007