! Started logfile: J2246-1206_X_1998_10_01_pus_uvs.log on Wed Feb  6 12:41:08 2008
obs J2246-1206_X_1998_10_01_pus_uva.fits
! Reading UV FITS file: J2246-1206_X_1998_10_01_pus_uva.fits
! AN table 1: 202 integrations on 136 of 136 possible baselines.
! AN table 2: 69 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.142039 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.40798e+09        4e+06          1        4e+06
!  02        2  8.47798e+09        4e+06          1        4e+06
!  03        3  8.79298e+09        4e+06          1        4e+06
!  04        4  8.89798e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 2049 lines of history.
! 
! Reading 20940 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_1998_10_01_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 2252 telescope corrections were flagged in sub-array 1.
!  A total of 1073 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 2252 telescope corrections were flagged in sub-array 1.
!  A total of 1073 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 2252 telescope corrections were flagged in sub-array 1.
!  A total of 1073 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 2252 telescope corrections were flagged in sub-array 1.
!  A total of 1073 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.539111Jy  sigma=0.004911
! Fit after  self-cal, rms=0.421059Jy  sigma=0.003814
! 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.185% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.6432 mas, bmaj=1.859 mas, bpa=-5.863 degrees
! Estimated noise=733.925 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.656443 Jy
! Component: 100  -  total flux cleaned = 0.880794 Jy
! Total flux subtracted in 100 components = 0.880794 Jy
! Clean residual min=-0.029959 max=0.102732 Jy/beam
! Clean residual mean=0.001655 rms=0.013044 Jy/beam
! Combined flux in latest and established models = 0.880794 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.880794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.368263Jy  sigma=0.003479
! Fit after  self-cal, rms=0.367782Jy  sigma=0.003473
! Inverting map 
! Your choice of large map pixels excluded 0.185% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.117096 Jy
! Component: 100  -  total flux cleaned = 0.179546 Jy
! Total flux subtracted in 100 components = 0.179546 Jy
! Clean residual min=-0.021813 max=0.076202 Jy/beam
! Clean residual mean=0.000854 rms=0.008432 Jy/beam
! Combined flux in latest and established models = 1.06034 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 16 components and 1.06034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322385Jy  sigma=0.002851
! Fit after  self-cal, rms=0.321981Jy  sigma=0.002846
! Inverting map 
! Your choice of large map pixels excluded 0.185% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Added new window around map position (0.8, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0683358 Jy
! Component: 100  -  total flux cleaned = 0.109476 Jy
! Total flux subtracted in 100 components = 0.109476 Jy
! Clean residual min=-0.016521 max=0.024582 Jy/beam
! Clean residual mean=0.000411 rms=0.005741 Jy/beam
! Combined flux in latest and established models = 1.16982 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 33 components and 1.16982 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304552Jy  sigma=0.002600
! Fit after  self-cal, rms=0.303133Jy  sigma=0.002586
! Inverting map 
! Your choice of large map pixels excluded 0.185% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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.185% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.7934 mas, bmaj=2.206 mas, bpa=-6.921 degrees
! Estimated noise=500.284 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.0424943 Jy
! Component: 100  -  total flux cleaned = 0.0694845 Jy
! Component: 150  -  total flux cleaned = 0.0878158 Jy
! Component: 200  -  total flux cleaned = 0.100506 Jy
! Total flux subtracted in 200 components = 0.100506 Jy
! Clean residual min=-0.010774 max=0.022055 Jy/beam
! Clean residual mean=-0.000160 rms=0.004001 Jy/beam
! Combined flux in latest and established models = 1.27032 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 44 components and 1.27032 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297408Jy  sigma=0.002490
! Fit after  self-cal, rms=0.296967Jy  sigma=0.002486
! Inverting map 
! Your choice of large map pixels excluded 0.185% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Added new window around map position (6.2, 9.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0201721 Jy
! Component: 100  -  total flux cleaned = 0.03271 Jy
! Component: 150  -  total flux cleaned = 0.042325 Jy
! Component: 200  -  total flux cleaned = 0.0499311 Jy
! Total flux subtracted in 200 components = 0.0499311 Jy
! Clean residual min=-0.009289 max=0.012828 Jy/beam
! Clean residual mean=-0.000805 rms=0.002900 Jy/beam
! Combined flux in latest and established models = 1.32025 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 69 components and 1.32025 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295608Jy  sigma=0.002462
! Fit after  self-cal, rms=0.295445Jy  sigma=0.002461
! Inverting map 
! Your choice of large map pixels excluded 0.185% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     GC        1.00*    HN        0.98     
!   KK        1.07     KP        0.99     LA        1.01     MK        0.99     
!   NL        1.02     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        1.01     SC        1.03     WF        1.08     MC        0.95     
!   GN        1.00     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.00*    
!   KK        1.03     KP        0.97     LA        1.00*    MK        0.95     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        0.98     
!   PT        1.00*    SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        1.00*    HN        1.02     
!   KK        1.06     KP        1.00     LA        0.97     MK        0.98     
!   NL        1.02     NY        1.00*    ON        1.00*    OV        0.99     
!   PT        1.02     SC        1.01     WF        1.09     MC        1.06     
!   GN        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.00*    
!   KK        1.01     KP        0.98     LA        1.00*    MK        0.98     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        0.93     
!   PT        1.00*    SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        1.00*    HN        1.00     
!   KK        1.08     KP        1.03     LA        0.96     MK        1.02     
!   NL        1.00     NY        1.00*    ON        1.00*    OV        0.95     
!   PT        1.01     SC        1.01     WF        1.08     MC        1.02     
!   GN        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.00*    
!   KK        0.99     KP        0.93     LA        1.00*    MK        1.01     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        0.93     
!   PT        1.00*    SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 117 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     GC        1.00*    HN        1.04     
!   KK        1.03     KP        1.00     LA        0.97     MK        0.97     
!   NL        1.01     NY        1.00*    ON        1.00*    OV        0.96     
!   PT        0.97     SC        0.97     WF        1.07     MC        1.13     
!   GN        1.00     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.00*    
!   KK        1.01     KP        0.96     LA        1.00*    MK        0.93     
!   NL        1.00*    NY        1.00*    ON        1.00*    OV        0.96     
!   PT        1.00*    SC        1.00*    WF        1.00*    MC        1.00*    
!   GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.295445Jy  sigma=0.002461
! Fit after  self-cal, rms=0.299292Jy  sigma=0.002434
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.8056 mas, bmaj=2.194 mas, bpa=-6.368 degrees
! Estimated noise=503.708 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.00915174 Jy
! Component: 100  -  total flux cleaned = 0.0128867 Jy
! Component: 150  -  total flux cleaned = 0.0143048 Jy
! Component: 200  -  total flux cleaned = 0.0152137 Jy
! Total flux subtracted in 200 components = 0.0152137 Jy
! Clean residual min=-0.006969 max=0.008753 Jy/beam
! Clean residual mean=-0.000093 rms=0.002254 Jy/beam
! Combined flux in latest and established models = 1.33547 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 88 components and 1.33547 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298929Jy  sigma=0.002429
! Fit after  self-cal, rms=0.299108Jy  sigma=0.002429
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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.299108Jy  sigma=0.002429
! Fit after  self-cal, rms=0.300419Jy  sigma=0.002419
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.8065 mas, bmaj=2.204 mas, bpa=-6.471 degrees
! Estimated noise=504.373 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00282858 Jy
! Component: 100  -  total flux cleaned = 0.00379695 Jy
! Component: 150  -  total flux cleaned = 0.00478624 Jy
! Component: 200  -  total flux cleaned = 0.00530156 Jy
! Total flux subtracted in 200 components = 0.00530156 Jy
! Clean residual min=-0.006622 max=0.007889 Jy/beam
! Clean residual mean=0.000086 rms=0.001892 Jy/beam
! Combined flux in latest and established models = 1.34077 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 93 components and 1.34077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300257Jy  sigma=0.002417
! Fit after  self-cal, rms=0.300364Jy  sigma=0.002417
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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.000676044 Jy
! Component: 100  -  total flux cleaned = 0.00104007 Jy
! Component: 150  -  total flux cleaned = 0.00160707 Jy
! Component: 200  -  total flux cleaned = 0.00203406 Jy
! Total flux subtracted in 200 components = 0.00203406 Jy
! Clean residual min=-0.006146 max=0.007361 Jy/beam
! Clean residual mean=0.000059 rms=0.001841 Jy/beam
! Combined flux in latest and established models = 1.3428 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 97 components and 1.3428 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300273Jy  sigma=0.002416
! Fit after  self-cal, rms=0.300259Jy  sigma=0.002416
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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.300259Jy  sigma=0.002416
! Fit after  self-cal, rms=0.300021Jy  sigma=0.002412
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.8066 mas, bmaj=2.203 mas, bpa=-6.477 degrees
! Estimated noise=504.051 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000744735 Jy
! Component: 100  -  total flux cleaned = 0.00131725 Jy
! Component: 150  -  total flux cleaned = 0.00163088 Jy
! Component: 200  -  total flux cleaned = 0.00200983 Jy
! Total flux subtracted in 200 components = 0.00200983 Jy
! Clean residual min=-0.005637 max=0.007329 Jy/beam
! Clean residual mean=0.000120 rms=0.001683 Jy/beam
! Combined flux in latest and established models = 1.34481 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 101 components and 1.34481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299944Jy  sigma=0.002411
! Fit after  self-cal, rms=0.299969Jy  sigma=0.002411
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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 (4, 10.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00751404 Jy
! Component: 100  -  total flux cleaned = 0.0118894 Jy
! Component: 150  -  total flux cleaned = 0.0133998 Jy
! Component: 200  -  total flux cleaned = 0.0136115 Jy
! Total flux subtracted in 200 components = 0.0136115 Jy
! Clean residual min=-0.005394 max=0.005986 Jy/beam
! Clean residual mean=-0.000029 rms=0.001426 Jy/beam
! Combined flux in latest and established models = 1.35842 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 115 components and 1.35842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299774Jy  sigma=0.002408
! Fit after  self-cal, rms=0.299734Jy  sigma=0.002408
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Added new window around map position (2.4, 3.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0048862 Jy
! Component: 100  -  total flux cleaned = 0.00425874 Jy
! Component: 150  -  total flux cleaned = 0.00362128 Jy
! Component: 200  -  total flux cleaned = 0.00373385 Jy
! Total flux subtracted in 200 components = 0.00373385 Jy
! Clean residual min=-0.005597 max=0.004890 Jy/beam
! Clean residual mean=-0.000093 rms=0.001307 Jy/beam
! Combined flux in latest and established models = 1.36216 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 131 components and 1.36216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299543Jy  sigma=0.002406
! Fit after  self-cal, rms=0.299526Jy  sigma=0.002406
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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.299526Jy  sigma=0.002406
! Fit after  self-cal, rms=0.299759Jy  sigma=0.002406
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=2.029 mas, bmaj=3.713 mas, bpa=-2.341 degrees
! Estimated noise=646.758 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000757036 Jy
! Component: 100  -  total flux cleaned = -0.000224422 Jy
! Component: 150  -  total flux cleaned = -0.000226018 Jy
! Component: 200  -  total flux cleaned = -0.000147767 Jy
! Total flux subtracted in 200 components = -0.000147767 Jy
! Clean residual min=-0.004540 max=0.005117 Jy/beam
! Clean residual mean=-0.000112 rms=0.001562 Jy/beam
! Combined flux in latest and established models = 1.36201 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 145 components and 1.36201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299726Jy  sigma=0.002406
! Fit after  self-cal, rms=0.299759Jy  sigma=0.002406
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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 = 1.23653e-05 Jy
! Component: 100  -  total flux cleaned = -5.86068e-05 Jy
! Component: 150  -  total flux cleaned = -6.30971e-05 Jy
! Component: 200  -  total flux cleaned = -0.000120967 Jy
! Total flux subtracted in 200 components = -0.000120967 Jy
! Clean residual min=-0.004387 max=0.004871 Jy/beam
! Clean residual mean=-0.000117 rms=0.001529 Jy/beam
! Combined flux in latest and established models = 1.36189 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 153 components and 1.36189 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299750Jy  sigma=0.002406
! Fit after  self-cal, rms=0.299748Jy  sigma=0.002406
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.8067 mas, bmaj=2.203 mas, bpa=-6.46 degrees
! Estimated noise=503.789 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8067 x 2.203 at -6.46 degrees (North through East)
! Clean map  min=-0.0046938  max=0.8831 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.299748Jy  sigma=0.002406
! Fit after  self-cal, rms=0.317049Jy  sigma=0.002240
! Inverting map and beam 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.8065 mas, bmaj=2.202 mas, bpa=-6.431 degrees
! Estimated noise=503.367 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000489961 Jy
! Component: 100  -  total flux cleaned = 0.000783321 Jy
! Component: 150  -  total flux cleaned = 0.000958363 Jy
! Component: 200  -  total flux cleaned = 0.00128276 Jy
! Total flux subtracted in 200 components = 0.00128276 Jy
! Clean residual min=-0.004366 max=0.004339 Jy/beam
! Clean residual mean=0.000000 rms=0.001232 Jy/beam
! Combined flux in latest and established models = 1.36317 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 165 components and 1.36317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316979Jy  sigma=0.002239
! Fit after  self-cal, rms=0.316977Jy  sigma=0.002239
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000152972 Jy
! Component: 100  -  total flux cleaned = 0.000383291 Jy
! Component: 150  -  total flux cleaned = 0.000598311 Jy
! Component: 200  -  total flux cleaned = 0.000939676 Jy
! Total flux subtracted in 200 components = 0.000939676 Jy
! Clean residual min=-0.004336 max=0.004347 Jy/beam
! Clean residual mean=-0.000012 rms=0.001216 Jy/beam
! Combined flux in latest and established models = 1.36411 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 171 components and 1.36411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316932Jy  sigma=0.002239
! Fit after  self-cal, rms=0.316924Jy  sigma=0.002239
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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.316924Jy  sigma=0.002239
! Fit after  self-cal, rms=0.328128Jy  sigma=0.002239
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.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.6498 mas, bmaj=1.864 mas, bpa=-5.747 degrees
! Estimated noise=724.813 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.654206 Jy
! Component: 100  -  total flux cleaned = 0.881388 Jy
! Component: 150  -  total flux cleaned = 1.00338 Jy
! Component: 200  -  total flux cleaned = 1.07716 Jy
! Total flux subtracted in 200 components = 1.07716 Jy
! Clean residual min=-0.020415 max=0.039777 Jy/beam
! Clean residual mean=0.000860 rms=0.006550 Jy/beam
! Combined flux in latest and established models = 1.07716 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 19 model components to the UV plane model.
! The established model now contains 19 components and 1.07716 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.8067 mas, bmaj=2.204 mas, bpa=-6.446 degrees
! Estimated noise=503.591 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.0726564 Jy
! Component: 100  -  total flux cleaned = 0.118247 Jy
! Component: 150  -  total flux cleaned = 0.148863 Jy
! Component: 200  -  total flux cleaned = 0.172272 Jy
! Total flux subtracted in 200 components = 0.172272 Jy
! Clean residual min=-0.006504 max=0.013851 Jy/beam
! Clean residual mean=0.001482 rms=0.003406 Jy/beam
! Combined flux in latest and established models = 1.24943 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 51 components and 1.24943 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 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.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=2.028 mas, bmaj=3.716 mas, bpa=-2.316 degrees
! Estimated noise=646.614 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0337924 Jy
! Component: 100  -  total flux cleaned = 0.0555704 Jy
! Component: 150  -  total flux cleaned = 0.070678 Jy
! Component: 200  -  total flux cleaned = 0.0816276 Jy
! Total flux subtracted in 200 components = 0.0816276 Jy
! Clean residual min=-0.005056 max=0.006277 Jy/beam
! Clean residual mean=0.001009 rms=0.002279 Jy/beam
! Combined flux in latest and established models = 1.33106 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.00827464 Jy
! Component: 100  -  total flux cleaned = 0.014673 Jy
! Component: 150  -  total flux cleaned = 0.019643 Jy
! Component: 200  -  total flux cleaned = 0.0235196 Jy
! Total flux subtracted in 200 components = 0.0235196 Jy
! Clean residual min=-0.004558 max=0.005179 Jy/beam
! Clean residual mean=0.000342 rms=0.001637 Jy/beam
! Combined flux in latest and established models = 1.35458 Jy
! Adding 95 model components to the UV plane model.
! The established model now contains 129 components and 1.35458 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! Estimated beam: bmin=0.8067 mas, bmaj=2.204 mas, bpa=-6.446 degrees
! Estimated noise=503.591 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00200636 Jy
! Component: 100  -  total flux cleaned = 0.00297211 Jy
! Component: 150  -  total flux cleaned = 0.00399237 Jy
! Component: 200  -  total flux cleaned = 0.00490568 Jy
! Total flux subtracted in 200 components = 0.00490568 Jy
! Clean residual min=-0.005031 max=0.004828 Jy/beam
! Clean residual mean=0.000054 rms=0.001337 Jy/beam
! Combined flux in latest and established models = 1.35949 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 148 components and 1.35949 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328391Jy  sigma=0.002242
! Fit after  self-cal, rms=0.328319Jy  sigma=0.002242
wmodel J2246-1206_X_1998_10_01_pus_map.mod
! Writing 148 model components to file: J2246-1206_X_1998_10_01_pus_map.mod
wobs J2246-1206_X_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J2246-1206_X_1998_10_01_pus_uvs.fits
wwins J2246-1206_X_1998_10_01_pus_map.win
! wwins: Wrote 5 windows to J2246-1206_X_1998_10_01_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.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000466057 Jy
! Component: 100  -  total flux cleaned = -0.0004691 Jy
! Component: 150  -  total flux cleaned = -0.000169171 Jy
! Component: 200  -  total flux cleaned = -0.000168625 Jy
! Component: 250  -  total flux cleaned = -0.000168283 Jy
! Component: 300  -  total flux cleaned = -0.000101418 Jy
! Component: 350  -  total flux cleaned = 2.64375e-05 Jy
! Component: 400  -  total flux cleaned = -3.68049e-05 Jy
! Component: 450  -  total flux cleaned = 0.00027191 Jy
! Component: 500  -  total flux cleaned = 0.000450776 Jy
! Component: 550  -  total flux cleaned = 0.000567735 Jy
! Component: 600  -  total flux cleaned = 0.00062551 Jy
! Component: 650  -  total flux cleaned = 0.000793739 Jy
! Component: 700  -  total flux cleaned = 0.00101367 Jy
! Component: 750  -  total flux cleaned = 0.00112252 Jy
! Component: 800  -  total flux cleaned = 0.00138874 Jy
! Component: 850  -  total flux cleaned = 0.00159769 Jy
! Component: 900  -  total flux cleaned = 0.00180334 Jy
! Component: 950  -  total flux cleaned = 0.00205671 Jy
! Component: 1000  -  total flux cleaned = 0.00220598 Jy
! Total flux subtracted in 1024 components = 0.00230462 Jy
! Clean residual min=-0.002462 max=0.002760 Jy/beam
! Clean residual mean=0.000069 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 1.36179 Jy
keep
! Adding 67 model components to the UV plane model.
! The established model now contains 213 components and 1.36179 Jy
![Exited script file: muppet]
wmap "J2246-1206_X_1998_10_01_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8067 x 2.204 at -6.446 degrees (North through East)
! Clean map  min=-0.0037642  max=0.88414 Jy/beam
! Writing clean map to FITS file: J2246-1206_X_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.884137 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.19% of the data.
!  The x-axis pixel size should ideally be below 0.1945 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000992596 
device "J2246-1206_X_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J2246-1206_X_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.336802 0.336802 0.673603 1.34721 2.69441 5.38883 10.7777 21.5553 43.1106 86.2212
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.884 
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.8067 x 2.204 at -6.446 degrees (North through East)
! Clean map  min=-0.0037642  max=0.88414 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2246-1206_X_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J2246-1206_X_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2246-1206_X_1998_10_01_pus_uvs.log closed on Wed Feb  6 12:41:17 2008