! Started logfile: J2246-1206_X_1999_03_08_pus_uvs.log on Thu Jan  3 14:57:49 2008
obs J2246-1206_X_1999_03_08_pus_uva.fits
! Reading UV FITS file: J2246-1206_X_1999_03_08_pus_uva.fits
! AN table 1: 77 integrations on 190 of 190 possible baselines.
! AN table 2: 19 integrations on 190 of 190 possible baselines.
! AN table 3: 146 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0700304 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2246-1206
! 
! 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 2464 lines of history.
! 
! Reading 12880 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 J2246-1206_X_1999_03_08_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 1152 telescope corrections were flagged in sub-array 1.
!  A total of 248 telescope corrections were flagged in sub-array 2.
!  A total of 2237 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1152 telescope corrections were flagged in sub-array 1.
!  A total of 248 telescope corrections were flagged in sub-array 2.
!  A total of 2237 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1152 telescope corrections were flagged in sub-array 1.
!  A total of 248 telescope corrections were flagged in sub-array 2.
!  A total of 2237 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1152 telescope corrections were flagged in sub-array 1.
!  A total of 248 telescope corrections were flagged in sub-array 2.
!  A total of 2237 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.043124Jy  sigma=0.008204
! Fit after  self-cal, rms=0.471748Jy  sigma=0.004151
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.511% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.5174 mas, bmaj=1.904 mas, bpa=-4.267 degrees
! Estimated noise=1425.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.674069 Jy
! Component: 100  -  total flux cleaned = 0.861963 Jy
! Total flux subtracted in 100 components = 0.861963 Jy
! Clean residual min=-0.093833 max=0.132008 Jy/beam
! Clean residual mean=0.003986 rms=0.028661 Jy/beam
! Combined flux in latest and established models = 0.861964 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.861964 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441164Jy  sigma=0.003794
! Fit after  self-cal, rms=0.440610Jy  sigma=0.003791
! Inverting map 
! Your choice of large map pixels excluded 0.511% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.511% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.6009 mas, bmaj=1.981 mas, bpa=-4.185 degrees
! Estimated noise=795.92 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.146216 Jy
! Component: 100  -  total flux cleaned = 0.227008 Jy
! Component: 150  -  total flux cleaned = 0.254366 Jy
! Component: 200  -  total flux cleaned = 0.265414 Jy
! Total flux subtracted in 200 components = 0.265414 Jy
! Clean residual min=-0.091284 max=0.125215 Jy/beam
! Clean residual mean=0.010576 rms=0.025803 Jy/beam
! Combined flux in latest and established models = 1.12738 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 27 components and 1.12738 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.392901Jy  sigma=0.003336
! Fit after  self-cal, rms=0.391151Jy  sigma=0.003326
! Inverting map 
! Your choice of large map pixels excluded 0.511% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.95     GC        1.00*    GG        1.00*    
!   HN        0.95     KP        1.00*    LA        1.00*    NL        1.00     
!   OV        1.00*    PT        1.00*    SC        0.67     WF        0.95     
!   GN        1.00*    HH        1.00*    KK        0.87     MC        1.00*    
!   MK        0.86     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.88     FD        0.96     GC        1.00*    GG        1.00*    
!   HN        0.90     KP        1.00*    LA        1.00*    NL        1.10     
!   OV        1.00*    PT        1.00*    SC        0.95     WF        0.93     
!   GN        0.91     HH        1.00*    KK        0.78     MC        1.00*    
!   MK        0.85     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.30     FD        0.85     GC        1.00*    GG        1.00*    
!   HN        0.94     KP        0.89     LA        1.00*    NL        1.05     
!   OV        1.00*    PT        0.89     SC        1.13     WF        0.85     
!   GN        1.31     HH        1.00*    KK        0.76     MC        4.97     
!   MK        0.88     NY        1.00*    ON        1.00*    WZ        1.56     
! 
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.95     GC        1.00*    GG        1.00*    
!   HN        0.95     KP        1.00*    LA        1.00*    NL        1.03     
!   OV        1.00*    PT        1.00*    SC        0.65     WF        0.95     
!   GN        1.00*    HH        1.00*    KK        0.88     MC        1.00*    
!   MK        0.86     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.86     FD        0.95     GC        1.00*    GG        1.00*    
!   HN        0.92     KP        1.00*    LA        1.00*    NL        1.08     
!   OV        1.00*    PT        1.00*    SC        0.93     WF        0.92     
!   GN        0.91     HH        1.00*    KK        0.81     MC        1.00*    
!   MK        0.86     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.29     FD        0.84     GC        1.00*    GG        1.00*    
!   HN        0.94     KP        0.90     LA        1.00*    NL        1.09     
!   OV        1.00*    PT        0.88     SC        1.16     WF        0.86     
!   GN        1.29     HH        1.00*    KK        0.78     MC        2.13     
!   MK        0.88     NY        1.00*    ON        1.00*    WZ        1.00     
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.95     GC        1.00*    GG        1.00*    
!   HN        0.91     KP        1.00*    LA        1.00*    NL        0.98     
!   OV        1.00*    PT        1.00*    SC        0.67     WF        0.91     
!   GN        1.00*    HH        1.00*    KK        0.87     MC        1.00*    
!   MK        0.85     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.80     FD        0.96     GC        1.00*    GG        1.00*    
!   HN        0.88     KP        1.00*    LA        1.00*    NL        1.19     
!   OV        1.00*    PT        1.00*    SC        0.93     WF        0.92     
!   GN        0.90     HH        1.00*    KK        0.80     MC        1.00*    
!   MK        0.85     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.29     FD        0.83     GC        1.00*    GG        1.00*    
!   HN        0.92     KP        0.90     LA        1.00*    NL        1.06     
!   OV        1.00*    PT        0.88     SC        1.17     WF        0.87     
!   GN        1.30     HH        1.00*    KK        0.76     MC        2.14     
!   MK        0.86     NY        1.00*    ON        1.00*    WZ        1.00     
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.94     GC        1.00*    GG        1.00*    
!   HN        0.91     KP        1.00*    LA        1.00*    NL        1.01     
!   OV        1.00*    PT        1.00*    SC        0.67     WF        0.93     
!   GN        1.00*    HH        1.00*    KK        0.86     MC        1.00*    
!   MK        0.86     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.84     FD        0.95     GC        1.00*    GG        1.00*    
!   HN        0.92     KP        1.00*    LA        1.00*    NL        1.10     
!   OV        1.00*    PT        1.00*    SC        0.94     WF        0.88     
!   GN        0.90     HH        1.00*    KK        0.77     MC        1.00*    
!   MK        0.83     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.29     FD        0.83     GC        1.00*    GG        1.00*    
!   HN        0.94     KP        0.85     LA        1.00*    NL        1.08     
!   OV        1.00*    PT        0.83     SC        1.14     WF        0.86     
!   GN        1.36     HH        1.00*    KK        0.77     MC        2.29     
!   MK        0.86     NY        1.00*    ON        1.00*    WZ        1.13     
! 
! 
! Fit before self-cal, rms=0.391151Jy  sigma=0.003326
! Fit after  self-cal, rms=0.442429Jy  sigma=0.002322
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.6035 mas, bmaj=1.879 mas, bpa=-4.57 degrees
! Estimated noise=805.087 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.0442046 Jy
! Component: 100  -  total flux cleaned = 0.0476108 Jy
! Component: 150  -  total flux cleaned = 0.0482346 Jy
! Component: 200  -  total flux cleaned = 0.0487764 Jy
! Total flux subtracted in 200 components = 0.0487764 Jy
! Clean residual min=-0.058519 max=0.047576 Jy/beam
! Clean residual mean=-0.000424 rms=0.015322 Jy/beam
! Combined flux in latest and established models = 1.17615 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 33 components and 1.17615 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437901Jy  sigma=0.002202
! Fit after  self-cal, rms=0.440241Jy  sigma=0.002193
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.440241Jy  sigma=0.002193
! Fit after  self-cal, rms=0.587149Jy  sigma=0.001703
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.6068 mas, bmaj=1.846 mas, bpa=-4.666 degrees
! Estimated noise=805.973 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0306196 Jy
! Component: 100  -  total flux cleaned = 0.0328866 Jy
! Component: 150  -  total flux cleaned = 0.0336562 Jy
! Component: 200  -  total flux cleaned = 0.0343144 Jy
! Total flux subtracted in 200 components = 0.0343144 Jy
! Clean residual min=-0.029339 max=0.034611 Jy/beam
! Clean residual mean=0.000445 rms=0.008035 Jy/beam
! Combined flux in latest and established models = 1.21047 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 37 components and 1.21047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586166Jy  sigma=0.001637
! Fit after  self-cal, rms=0.587272Jy  sigma=0.001633
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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 (0.8, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0276417 Jy
! Component: 100  -  total flux cleaned = 0.0308188 Jy
! Component: 150  -  total flux cleaned = 0.0333549 Jy
! Component: 200  -  total flux cleaned = 0.0348794 Jy
! Total flux subtracted in 200 components = 0.0348794 Jy
! Clean residual min=-0.026178 max=0.019834 Jy/beam
! Clean residual mean=-0.000844 rms=0.006767 Jy/beam
! Combined flux in latest and established models = 1.24535 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 57 components and 1.24535 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.583760Jy  sigma=0.001583
! Fit after  self-cal, rms=0.583214Jy  sigma=0.001579
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.583214Jy  sigma=0.001579
! Fit after  self-cal, rms=0.642381Jy  sigma=0.001458
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.617 mas, bmaj=1.806 mas, bpa=-4.833 degrees
! Estimated noise=814.821 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0164102 Jy
! Component: 100  -  total flux cleaned = 0.0210259 Jy
! Component: 150  -  total flux cleaned = 0.0238529 Jy
! Component: 200  -  total flux cleaned = 0.0262383 Jy
! Total flux subtracted in 200 components = 0.0262383 Jy
! Clean residual min=-0.019381 max=0.013016 Jy/beam
! Clean residual mean=-0.000754 rms=0.004820 Jy/beam
! Combined flux in latest and established models = 1.27159 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 74 components and 1.27159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.641437Jy  sigma=0.001429
! Fit after  self-cal, rms=0.641894Jy  sigma=0.001428
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.00385168 Jy
! Component: 100  -  total flux cleaned = 0.00448111 Jy
! Component: 150  -  total flux cleaned = 0.00534209 Jy
! Component: 200  -  total flux cleaned = 0.00588179 Jy
! Total flux subtracted in 200 components = 0.00588179 Jy
! Clean residual min=-0.018316 max=0.012847 Jy/beam
! Clean residual mean=-0.000973 rms=0.004633 Jy/beam
! Combined flux in latest and established models = 1.27747 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 82 components and 1.27747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.641649Jy  sigma=0.001421
! Fit after  self-cal, rms=0.641664Jy  sigma=0.001421
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.641664Jy  sigma=0.001421
! Fit after  self-cal, rms=0.626333Jy  sigma=0.001335
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=1.995 mas, bmaj=3.042 mas, bpa=15.4 degrees
! Estimated noise=1322.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0061096 Jy
! Component: 100  -  total flux cleaned = 0.00457778 Jy
! Component: 150  -  total flux cleaned = 0.00365162 Jy
! Component: 200  -  total flux cleaned = 0.00326887 Jy
! Total flux subtracted in 200 components = 0.00326887 Jy
! Clean residual min=-0.012436 max=0.011789 Jy/beam
! Clean residual mean=-0.001326 rms=0.004173 Jy/beam
! Combined flux in latest and established models = 1.28074 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 89 components and 1.28074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.626046Jy  sigma=0.001343
! Fit after  self-cal, rms=0.626374Jy  sigma=0.001341
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 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.000846283 Jy
! Component: 100  -  total flux cleaned = 0.000344257 Jy
! Component: 150  -  total flux cleaned = -8.3183e-05 Jy
! Component: 200  -  total flux cleaned = -0.000466474 Jy
! Total flux subtracted in 200 components = -0.000466474 Jy
! Clean residual min=-0.011304 max=0.011154 Jy/beam
! Clean residual mean=-0.001311 rms=0.003997 Jy/beam
! Combined flux in latest and established models = 1.28027 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 95 components and 1.28027 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.626485Jy  sigma=0.001340
! Fit after  self-cal, rms=0.626418Jy  sigma=0.001340
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.6163 mas, bmaj=1.804 mas, bpa=-4.732 degrees
! Estimated noise=807.43 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6163 x 1.804 at -4.732 degrees (North through East)
! Clean map  min=-0.015267  max=0.8568 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.626418Jy  sigma=0.001340
! Fit after  self-cal, rms=2.341511Jy  sigma=0.001200
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.617 mas, bmaj=1.808 mas, bpa=-4.833 degrees
! Estimated noise=806.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00265993 Jy
! Component: 100  -  total flux cleaned = 0.00292238 Jy
! Component: 150  -  total flux cleaned = 0.00290712 Jy
! Component: 200  -  total flux cleaned = 0.00289896 Jy
! Total flux subtracted in 200 components = 0.00289896 Jy
! Clean residual min=-0.016064 max=0.011004 Jy/beam
! Clean residual mean=-0.000576 rms=0.003276 Jy/beam
! Combined flux in latest and established models = 1.28317 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 106 components and 1.28317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.341352Jy  sigma=0.001192
! Fit after  self-cal, rms=2.339948Jy  sigma=0.001191
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00131729 Jy
! Component: 100  -  total flux cleaned = 0.00082985 Jy
! Component: 150  -  total flux cleaned = 0.000822787 Jy
! Component: 200  -  total flux cleaned = 0.000684263 Jy
! Total flux subtracted in 200 components = 0.000684263 Jy
! Clean residual min=-0.015809 max=0.011112 Jy/beam
! Clean residual mean=-0.000604 rms=0.003216 Jy/beam
! Combined flux in latest and established models = 1.28385 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 115 components and 1.28385 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.339851Jy  sigma=0.001190
! Fit after  self-cal, rms=2.338939Jy  sigma=0.001189
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.338939Jy  sigma=0.001189
! Fit after  self-cal, rms=2.193700Jy  sigma=0.001188
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.5208 mas, bmaj=1.757 mas, bpa=-4.214 degrees
! Estimated noise=1352.38 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.636516 Jy
! Component: 100  -  total flux cleaned = 0.838105 Jy
! Component: 150  -  total flux cleaned = 0.94146 Jy
! Component: 200  -  total flux cleaned = 1.01251 Jy
! Total flux subtracted in 200 components = 1.01251 Jy
! Clean residual min=-0.027904 max=0.041052 Jy/beam
! Clean residual mean=0.001908 rms=0.008319 Jy/beam
! Combined flux in latest and established models = 1.01251 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 21 model components to the UV plane model.
! The established model now contains 21 components and 1.01251 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.6181 mas, bmaj=1.806 mas, bpa=-4.771 degrees
! Estimated noise=806.184 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.0835174 Jy
! Component: 100  -  total flux cleaned = 0.138794 Jy
! Component: 150  -  total flux cleaned = 0.177565 Jy
! Component: 200  -  total flux cleaned = 0.205621 Jy
! Total flux subtracted in 200 components = 0.205621 Jy
! Clean residual min=-0.016191 max=0.017857 Jy/beam
! Clean residual mean=0.001980 rms=0.004346 Jy/beam
! Combined flux in latest and established models = 1.21813 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 38 components and 1.21813 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=1.992 mas, bmaj=3.045 mas, bpa=15.31 degrees
! Estimated noise=1316.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0360303 Jy
! Component: 100  -  total flux cleaned = 0.0528525 Jy
! Component: 150  -  total flux cleaned = 0.0599622 Jy
! Component: 200  -  total flux cleaned = 0.061045 Jy
! Total flux subtracted in 200 components = 0.061045 Jy
! Clean residual min=-0.014128 max=0.010911 Jy/beam
! Clean residual mean=-0.000715 rms=0.004131 Jy/beam
! Combined flux in latest and established models = 1.27918 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.000478205 Jy
! Component: 100  -  total flux cleaned = 0.000908809 Jy
! Component: 150  -  total flux cleaned = 0.00109988 Jy
! Component: 200  -  total flux cleaned = 0.00108559 Jy
! Total flux subtracted in 200 components = 0.00108559 Jy
! Clean residual min=-0.012582 max=0.011084 Jy/beam
! Clean residual mean=-0.000861 rms=0.003923 Jy/beam
! Combined flux in latest and established models = 1.28026 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 54 components and 1.28026 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! Estimated beam: bmin=0.6181 mas, bmaj=1.806 mas, bpa=-4.771 degrees
! Estimated noise=806.184 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000594226 Jy
! Component: 100  -  total flux cleaned = 0.00237613 Jy
! Component: 150  -  total flux cleaned = 0.00311468 Jy
! Component: 200  -  total flux cleaned = 0.00345561 Jy
! Total flux subtracted in 200 components = 0.00345561 Jy
! Clean residual min=-0.014126 max=0.013110 Jy/beam
! Clean residual mean=-0.000384 rms=0.003315 Jy/beam
! Combined flux in latest and established models = 1.28372 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 67 components and 1.28372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.193824Jy  sigma=0.001194
! Fit after  self-cal, rms=2.198560Jy  sigma=0.001190
wmodel J2246-1206_X_1999_03_08_pus_map.mod
! Writing 67 model components to file: J2246-1206_X_1999_03_08_pus_map.mod
wobs J2246-1206_X_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J2246-1206_X_1999_03_08_pus_uvs.fits
wwins J2246-1206_X_1999_03_08_pus_map.win
! wwins: Wrote 2 windows to J2246-1206_X_1999_03_08_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00400242 Jy
! Component: 100  -  total flux cleaned = -0.00674293 Jy
! Component: 150  -  total flux cleaned = -0.00950339 Jy
! Component: 200  -  total flux cleaned = -0.0117369 Jy
! Component: 250  -  total flux cleaned = -0.0136776 Jy
! Component: 300  -  total flux cleaned = -0.0151971 Jy
! Component: 350  -  total flux cleaned = -0.0161754 Jy
! Component: 400  -  total flux cleaned = -0.0169659 Jy
! Component: 450  -  total flux cleaned = -0.0175825 Jy
! Component: 500  -  total flux cleaned = -0.0181832 Jy
! Component: 550  -  total flux cleaned = -0.0190622 Jy
! Component: 600  -  total flux cleaned = -0.0194923 Jy
! Component: 650  -  total flux cleaned = -0.0196342 Jy
! Component: 700  -  total flux cleaned = -0.019911 Jy
! Component: 750  -  total flux cleaned = -0.0201834 Jy
! Component: 800  -  total flux cleaned = -0.0204515 Jy
! Component: 850  -  total flux cleaned = -0.0207155 Jy
! Component: 900  -  total flux cleaned = -0.0209759 Jy
! Component: 950  -  total flux cleaned = -0.0211047 Jy
! Component: 1000  -  total flux cleaned = -0.0212328 Jy
! Total flux subtracted in 1024 components = -0.0214831 Jy
! Clean residual min=-0.007003 max=0.006744 Jy/beam
! Clean residual mean=0.000246 rms=0.002365 Jy/beam
! Combined flux in latest and established models = 1.26223 Jy
keep
! Adding 69 model components to the UV plane model.
! The established model now contains 134 components and 1.26223 Jy
![Exited script file: muppet]
wmap "J2246-1206_X_1999_03_08_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6181 x 1.806 at -4.771 degrees (North through East)
! Clean map  min=-0.011213  max=0.85234 Jy/beam
! Writing clean map to FITS file: J2246-1206_X_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.852343 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.524% of the data.
!  The x-axis pixel size should ideally be below 0.1932 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00235645 
device "J2246-1206_X_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J2246-1206_X_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.829404 0.829404 1.65881 3.31761 6.63523 13.2705 26.5409 53.0818
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.007 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.852 
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.6181 x 1.806 at -4.771 degrees (North through East)
! Clean map  min=-0.011213  max=0.85234 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2246-1206_X_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J2246-1206_X_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2246-1206_X_1999_03_08_pus_uvs.log closed on Thu Jan  3 14:57:59 2008