! Started logfile: J1037-2934_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:39:18 2007
obs J1037-2934_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1037-2934_X_2001_04_09_pus_uva.fits
! AN table 1: 83 integrations on 190 of 190 possible baselines.
! AN table 2: 78 integrations on 190 of 190 possible baselines.
! AN table 3: 114 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0630048 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1037-2934
! 
! 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 1926 lines of history.
! 
! Reading 13168 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 J1037-2934_X_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1263 telescope corrections were flagged in sub-array 1.
!  A total of 1160 telescope corrections were flagged in sub-array 2.
!  A total of 1900 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1263 telescope corrections were flagged in sub-array 1.
!  A total of 1160 telescope corrections were flagged in sub-array 2.
!  A total of 1900 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1263 telescope corrections were flagged in sub-array 1.
!  A total of 1160 telescope corrections were flagged in sub-array 2.
!  A total of 1900 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1263 telescope corrections were flagged in sub-array 1.
!  A total of 1160 telescope corrections were flagged in sub-array 2.
!  A total of 1900 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.802184Jy  sigma=0.006496
! Fit after  self-cal, rms=0.415210Jy  sigma=0.002544
! 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 6.23% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.6408 mas, bmaj=1.165 mas, bpa=8.384 degrees
! Estimated noise=1737.01 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.566847 Jy
! Component: 100  -  total flux cleaned = 0.719449 Jy
! Total flux subtracted in 100 components = 0.719449 Jy
! Clean residual min=-0.031072 max=0.054277 Jy/beam
! Clean residual mean=0.001970 rms=0.009225 Jy/beam
! Combined flux in latest and established models = 0.719449 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.719449 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240767Jy  sigma=0.001704
! Fit after  self-cal, rms=0.240448Jy  sigma=0.001701
! Inverting map 
! Your choice of large map pixels excluded 6.23% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0584205 Jy
! Component: 100  -  total flux cleaned = 0.087415 Jy
! Total flux subtracted in 100 components = 0.087415 Jy
! Clean residual min=-0.024516 max=0.033250 Jy/beam
! Clean residual mean=0.000956 rms=0.006640 Jy/beam
! Combined flux in latest and established models = 0.806864 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 12 components and 0.806864 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225025Jy  sigma=0.001459
! Fit after  self-cal, rms=0.224788Jy  sigma=0.001457
! Inverting map 
! Your choice of large map pixels excluded 6.23% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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 6.23% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.8553 mas, bmaj=1.671 mas, bpa=-3.851 degrees
! Estimated noise=812.318 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.0335607 Jy
! Component: 100  -  total flux cleaned = 0.0457925 Jy
! Component: 150  -  total flux cleaned = 0.0477214 Jy
! Component: 200  -  total flux cleaned = 0.0484435 Jy
! Total flux subtracted in 200 components = 0.0484435 Jy
! Clean residual min=-0.016402 max=0.037017 Jy/beam
! Clean residual mean=0.004236 rms=0.007196 Jy/beam
! Combined flux in latest and established models = 0.855308 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 16 components and 0.855308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220928Jy  sigma=0.001405
! Fit after  self-cal, rms=0.220811Jy  sigma=0.001405
! Inverting map 
! Your choice of large map pixels excluded 6.23% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.07     HN        1.22     KK        1.00*    KP        1.05     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.16     NY        1.00*    OV        1.00*    PT        1.01     
!   SC        1.10     TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.34     KK        1.01     KP        0.95     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.90     
!   NL        1.02     NY        1.00*    OV        0.97     PT        0.97     
!   SC        1.00*    TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        0.92     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        1.00*    NY        1.00*    OV        0.95     PT        0.96     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.06     HN        1.27     KK        1.00*    KP        1.03     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.06     NY        1.00*    OV        1.00*    PT        1.01     
!   SC        1.10     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.35     KK        0.99     KP        0.94     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.98     NY        1.00*    OV        1.00     PT        0.95     
!   SC        1.00*    TS        1.00*    WF        1.10     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.90     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.00*    NY        1.00*    OV        0.93     PT        0.97     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 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        0.95     HN        1.30     KK        1.00*    KP        0.93     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.07     NY        1.00*    OV        1.00*    PT        0.96     
!   SC        1.13     TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.35     KK        1.00     KP        0.86     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        0.98     NY        1.00*    OV        0.96     PT        0.92     
!   SC        1.00*    TS        1.00*    WF        1.10     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.81     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        1.00*    NY        1.00*    OV        0.93     PT        0.92     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.09     HN        1.41     KK        1.00*    KP        1.17     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.10     NY        1.00*    OV        1.00*    PT        1.00     
!   SC        1.10     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.35     KK        1.03     KP        1.07     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.93     
!   NL        0.97     NY        1.00*    OV        0.94     PT        0.95     
!   SC        1.00*    TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.02     KP        1.01     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.00*    NY        1.00*    OV        0.91     PT        0.97     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.220811Jy  sigma=0.001405
! Fit after  self-cal, rms=0.225759Jy  sigma=0.001243
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.8689 mas, bmaj=1.763 mas, bpa=-6.723 degrees
! Estimated noise=849.12 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 (1, -1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0136434 Jy
! Component: 100  -  total flux cleaned = 0.01396 Jy
! Component: 150  -  total flux cleaned = 0.0139969 Jy
! Component: 200  -  total flux cleaned = 0.0141869 Jy
! Total flux subtracted in 200 components = 0.0141869 Jy
! Clean residual min=-0.007479 max=0.006808 Jy/beam
! Clean residual mean=0.000007 rms=0.002162 Jy/beam
! Combined flux in latest and established models = 0.869495 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 27 components and 0.869495 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224596Jy  sigma=0.001230
! Fit after  self-cal, rms=0.225052Jy  sigma=0.001228
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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.225052Jy  sigma=0.001228
! Fit after  self-cal, rms=0.224406Jy  sigma=0.001226
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.8665 mas, bmaj=1.763 mas, bpa=-6.715 degrees
! Estimated noise=849.869 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00827748 Jy
! Component: 100  -  total flux cleaned = 0.00852389 Jy
! Component: 150  -  total flux cleaned = 0.00870279 Jy
! Component: 200  -  total flux cleaned = 0.00900663 Jy
! Total flux subtracted in 200 components = 0.00900663 Jy
! Clean residual min=-0.006371 max=0.005497 Jy/beam
! Clean residual mean=0.000111 rms=0.001761 Jy/beam
! Combined flux in latest and established models = 0.878501 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 35 components and 0.878501 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223882Jy  sigma=0.001220
! Fit after  self-cal, rms=0.223795Jy  sigma=0.001220
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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.00182463 Jy
! Component: 100  -  total flux cleaned = 0.00194524 Jy
! Component: 150  -  total flux cleaned = 0.00194348 Jy
! Component: 200  -  total flux cleaned = 0.00214282 Jy
! Total flux subtracted in 200 components = 0.00214282 Jy
! Clean residual min=-0.007168 max=0.004940 Jy/beam
! Clean residual mean=-0.000068 rms=0.001734 Jy/beam
! Combined flux in latest and established models = 0.880644 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 41 components and 0.880644 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223633Jy  sigma=0.001218
! Fit after  self-cal, rms=0.223615Jy  sigma=0.001218
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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.223615Jy  sigma=0.001218
! Fit after  self-cal, rms=0.224262Jy  sigma=0.001216
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.8658 mas, bmaj=1.779 mas, bpa=-6.922 degrees
! Estimated noise=850.144 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00479215 Jy
! Component: 100  -  total flux cleaned = 0.00493193 Jy
! Component: 150  -  total flux cleaned = 0.00505177 Jy
! Component: 200  -  total flux cleaned = 0.00526863 Jy
! Total flux subtracted in 200 components = 0.00526863 Jy
! Clean residual min=-0.005013 max=0.004598 Jy/beam
! Clean residual mean=0.000164 rms=0.001400 Jy/beam
! Combined flux in latest and established models = 0.885913 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 44 components and 0.885913 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224051Jy  sigma=0.001214
! Fit after  self-cal, rms=0.224012Jy  sigma=0.001214
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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.000951165 Jy
! Component: 100  -  total flux cleaned = 0.00114605 Jy
! Component: 150  -  total flux cleaned = 0.00123313 Jy
! Component: 200  -  total flux cleaned = 0.00138525 Jy
! Total flux subtracted in 200 components = 0.00138525 Jy
! Clean residual min=-0.005475 max=0.004213 Jy/beam
! Clean residual mean=0.000050 rms=0.001387 Jy/beam
! Combined flux in latest and established models = 0.887298 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 46 components and 0.887298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223910Jy  sigma=0.001213
! Fit after  self-cal, rms=0.223895Jy  sigma=0.001213
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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.223895Jy  sigma=0.001213
! Fit after  self-cal, rms=0.224489Jy  sigma=0.001213
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=2.516 mas, bmaj=5.609 mas, bpa=-4.637 degrees
! Estimated noise=968.035 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00307948 Jy
! Component: 100  -  total flux cleaned = 0.00322241 Jy
! Component: 150  -  total flux cleaned = 0.00332114 Jy
! Component: 200  -  total flux cleaned = 0.00339505 Jy
! Total flux subtracted in 200 components = 0.00339505 Jy
! Clean residual min=-0.003876 max=0.003896 Jy/beam
! Clean residual mean=0.000301 rms=0.001456 Jy/beam
! Combined flux in latest and established models = 0.890693 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 61 components and 0.890693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224473Jy  sigma=0.001212
! Fit after  self-cal, rms=0.224435Jy  sigma=0.001212
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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.000266514 Jy
! Component: 100  -  total flux cleaned = 0.000371813 Jy
! Component: 150  -  total flux cleaned = 0.000484494 Jy
! Component: 200  -  total flux cleaned = 0.000542052 Jy
! Total flux subtracted in 200 components = 0.000542052 Jy
! Clean residual min=-0.004033 max=0.003757 Jy/beam
! Clean residual mean=0.000221 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 0.891235 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 70 components and 0.891235 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224439Jy  sigma=0.001212
! Fit after  self-cal, rms=0.224425Jy  sigma=0.001212
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.8658 mas, bmaj=1.793 mas, bpa=-7.078 degrees
! Estimated noise=850.61 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8658 x 1.793 at -7.078 degrees (North through East)
! Clean map  min=-0.0045394  max=0.73875 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.224425Jy  sigma=0.001212
! Fit after  self-cal, rms=0.359889Jy  sigma=0.001091
! Inverting map and beam 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.8654 mas, bmaj=1.795 mas, bpa=-7.181 degrees
! Estimated noise=848.876 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00231605 Jy
! Component: 100  -  total flux cleaned = 0.00223775 Jy
! Component: 150  -  total flux cleaned = 0.00216833 Jy
! Component: 200  -  total flux cleaned = 0.00223324 Jy
! Total flux subtracted in 200 components = 0.00223324 Jy
! Clean residual min=-0.003687 max=0.003554 Jy/beam
! Clean residual mean=0.000139 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 0.893469 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 75 components and 0.893469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359841Jy  sigma=0.001091
! Fit after  self-cal, rms=0.359719Jy  sigma=0.001091
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000309796 Jy
! Component: 100  -  total flux cleaned = 0.000432713 Jy
! Component: 150  -  total flux cleaned = 0.000433389 Jy
! Component: 200  -  total flux cleaned = 0.000487274 Jy
! Total flux subtracted in 200 components = 0.000487274 Jy
! Clean residual min=-0.003686 max=0.003390 Jy/beam
! Clean residual mean=0.000099 rms=0.000980 Jy/beam
! Combined flux in latest and established models = 0.893956 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 75 components and 0.893956 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359686Jy  sigma=0.001091
! Fit after  self-cal, rms=0.359655Jy  sigma=0.001091
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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.359655Jy  sigma=0.001091
! Fit after  self-cal, rms=0.382296Jy  sigma=0.001090
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 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.6874 mas, bmaj=1.198 mas, bpa=1.913 degrees
! Estimated noise=1560.66 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.569707 Jy
! Component: 100  -  total flux cleaned = 0.718962 Jy
! Component: 150  -  total flux cleaned = 0.779071 Jy
! Component: 200  -  total flux cleaned = 0.813894 Jy
! Total flux subtracted in 200 components = 0.813894 Jy
! Clean residual min=-0.009767 max=0.017763 Jy/beam
! Clean residual mean=0.000931 rms=0.003594 Jy/beam
! Combined flux in latest and established models = 0.813893 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.813893 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.8656 mas, bmaj=1.801 mas, bpa=-7.245 degrees
! Estimated noise=849.071 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.0376521 Jy
! Component: 100  -  total flux cleaned = 0.0568726 Jy
! Component: 150  -  total flux cleaned = 0.0674469 Jy
! Component: 200  -  total flux cleaned = 0.0734938 Jy
! Total flux subtracted in 200 components = 0.0734938 Jy
! Clean residual min=-0.003318 max=0.004334 Jy/beam
! Clean residual mean=0.000806 rms=0.001095 Jy/beam
! Combined flux in latest and established models = 0.887387 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 43 components and 0.887387 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 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 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=2.509 mas, bmaj=5.595 mas, bpa=-4.592 degrees
! Estimated noise=968.477 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00456225 Jy
! Component: 100  -  total flux cleaned = 0.00656889 Jy
! Component: 150  -  total flux cleaned = 0.00723575 Jy
! Component: 200  -  total flux cleaned = 0.00736087 Jy
! Total flux subtracted in 200 components = 0.00736087 Jy
! Clean residual min=-0.002902 max=0.003116 Jy/beam
! Clean residual mean=0.000333 rms=0.001015 Jy/beam
! Combined flux in latest and established models = 0.894748 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 = 8.7895e-05 Jy
! Component: 100  -  total flux cleaned = 0.000198429 Jy
! Component: 150  -  total flux cleaned = 0.000276367 Jy
! Component: 200  -  total flux cleaned = 0.000350367 Jy
! Total flux subtracted in 200 components = 0.000350367 Jy
! Clean residual min=-0.002928 max=0.002993 Jy/beam
! Clean residual mean=0.000281 rms=0.001016 Jy/beam
! Combined flux in latest and established models = 0.895099 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 65 components and 0.895098 Jy
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! Estimated beam: bmin=0.8656 mas, bmaj=1.801 mas, bpa=-7.245 degrees
! Estimated noise=849.071 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000127884 Jy
! Component: 100  -  total flux cleaned = -0.000126722 Jy
! Component: 150  -  total flux cleaned = -0.000127352 Jy
! Component: 200  -  total flux cleaned = -8.25477e-05 Jy
! Total flux subtracted in 200 components = -8.25477e-05 Jy
! Clean residual min=-0.003349 max=0.003132 Jy/beam
! Clean residual mean=0.000161 rms=0.000914 Jy/beam
! Combined flux in latest and established models = 0.895016 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 76 components and 0.895016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382384Jy  sigma=0.001095
! Fit after  self-cal, rms=0.382172Jy  sigma=0.001094
wmodel J1037-2934_X_2001_04_09_pus_map.mod
! Writing 76 model components to file: J1037-2934_X_2001_04_09_pus_map.mod
wobs J1037-2934_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1037-2934_X_2001_04_09_pus_uvs.fits
wwins J1037-2934_X_2001_04_09_pus_map.win
! wwins: Wrote 2 windows to J1037-2934_X_2001_04_09_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -3.91477e-05 Jy
! Component: 100  -  total flux cleaned = 0.00040294 Jy
! Component: 150  -  total flux cleaned = 0.000806241 Jy
! Component: 200  -  total flux cleaned = 0.00128074 Jy
! Component: 250  -  total flux cleaned = 0.00159497 Jy
! Component: 300  -  total flux cleaned = 0.00180962 Jy
! Component: 350  -  total flux cleaned = 0.00201542 Jy
! Component: 400  -  total flux cleaned = 0.00225324 Jy
! Component: 450  -  total flux cleaned = 0.00236789 Jy
! Component: 500  -  total flux cleaned = 0.00255437 Jy
! Component: 550  -  total flux cleaned = 0.00269944 Jy
! Component: 600  -  total flux cleaned = 0.00280609 Jy
! Component: 650  -  total flux cleaned = 0.00294483 Jy
! Component: 700  -  total flux cleaned = 0.00304658 Jy
! Component: 750  -  total flux cleaned = 0.00314657 Jy
! Component: 800  -  total flux cleaned = 0.00324449 Jy
! Component: 850  -  total flux cleaned = 0.00334045 Jy
! Component: 900  -  total flux cleaned = 0.00340339 Jy
! Component: 950  -  total flux cleaned = 0.00346524 Jy
! Component: 1000  -  total flux cleaned = 0.00355634 Jy
! Total flux subtracted in 1024 components = 0.00355634 Jy
! Clean residual min=-0.001609 max=0.002220 Jy/beam
! Clean residual mean=0.000077 rms=0.000616 Jy/beam
! Combined flux in latest and established models = 0.898572 Jy
keep
! Adding 58 model components to the UV plane model.
! The established model now contains 134 components and 0.898572 Jy
![Exited script file: muppet]
wmap "J1037-2934_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8656 x 1.801 at -7.245 degrees (North through East)
! Clean map  min=-0.0029766  max=0.73327 Jy/beam
! Writing clean map to FITS file: J1037-2934_X_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.733271 
invert
! Inverting map 
! Your choice of large map pixels excluded 6.54% of the data.
!  The x-axis pixel size should ideally be below 0.1674 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000614453 
device "J1037-2934_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1037-2934_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.251388 0.251388 0.502777 1.00555 2.01111 4.02221 8.04443 16.0889 32.1777 64.3554
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.733 
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.8656 x 1.801 at -7.245 degrees (North through East)
! Clean map  min=-0.0029766  max=0.73327 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1037-2934_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1037-2934_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1037-2934_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:39:26 2007