! Started logfile: J1037-2934_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:35:38 2008
obs J1037-2934_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1037-2934_S_1999_05_10_pus_uva.fits
! AN table 1: 11 integrations on 153 of 153 possible baselines.
! AN table 2: 102 integrations on 153 of 153 possible baselines.
! AN table 3: 48 integrations on 153 of 153 possible baselines.
! AN table 4: 20 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.150074 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1998 lines of history.
! 
! Reading 16624 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1037-2934_S_1999_05_10_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 = 512x512 pixels with 0.500x0.500 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 198 telescope corrections were flagged in sub-array 1.
!  A total of 1135 telescope corrections were flagged in sub-array 2.
!  A total of 727 telescope corrections were flagged in sub-array 3.
!  A total of 197 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 1135 telescope corrections were flagged in sub-array 2.
!  A total of 727 telescope corrections were flagged in sub-array 3.
!  A total of 197 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 1135 telescope corrections were flagged in sub-array 2.
!  A total of 727 telescope corrections were flagged in sub-array 3.
!  A total of 197 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 198 telescope corrections were flagged in sub-array 1.
!  A total of 1135 telescope corrections were flagged in sub-array 2.
!  A total of 727 telescope corrections were flagged in sub-array 3.
!  A total of 197 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.764832Jy  sigma=0.005200
! Fit after  self-cal, rms=0.308748Jy  sigma=0.002241
! 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 
! Estimated beam: bmin=2.355 mas, bmaj=6.743 mas, bpa=-4.121 degrees
! Estimated noise=1303.84 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.646629 Jy
! Component: 100  -  total flux cleaned = 0.851121 Jy
! Total flux subtracted in 100 components = 0.851121 Jy
! Clean residual min=-0.029011 max=0.093524 Jy/beam
! Clean residual mean=-0.000095 rms=0.010081 Jy/beam
! Combined flux in latest and established models = 0.851121 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.851121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272946Jy  sigma=0.002072
! Fit after  self-cal, rms=0.272915Jy  sigma=0.002072
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.107009 Jy
! Component: 100  -  total flux cleaned = 0.16787 Jy
! Total flux subtracted in 100 components = 0.16787 Jy
! Clean residual min=-0.016013 max=0.030298 Jy/beam
! Clean residual mean=-0.000152 rms=0.004715 Jy/beam
! Combined flux in latest and established models = 1.01899 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 17 components and 1.01899 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209311Jy  sigma=0.001499
! Fit after  self-cal, rms=0.209313Jy  sigma=0.001499
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0354018 Jy
! Component: 100  -  total flux cleaned = 0.0574889 Jy
! Total flux subtracted in 100 components = 0.0574889 Jy
! Clean residual min=-0.012644 max=0.019598 Jy/beam
! Clean residual mean=-0.000172 rms=0.003564 Jy/beam
! Combined flux in latest and established models = 1.07648 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 35 components and 1.07648 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199353Jy  sigma=0.001399
! Fit after  self-cal, rms=0.199355Jy  sigma=0.001399
! Inverting map 
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 
! Estimated beam: bmin=2.687 mas, bmaj=7.948 mas, bpa=-12.08 degrees
! Estimated noise=729.764 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.029161 Jy
! Component: 100  -  total flux cleaned = 0.0444708 Jy
! Component: 150  -  total flux cleaned = 0.0533351 Jy
! Component: 200  -  total flux cleaned = 0.0585532 Jy
! Total flux subtracted in 200 components = 0.0585532 Jy
! Clean residual min=-0.012841 max=0.011101 Jy/beam
! Clean residual mean=-0.001276 rms=0.003105 Jy/beam
! Combined flux in latest and established models = 1.13503 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 59 components and 1.13503 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195884Jy  sigma=0.001359
! Fit after  self-cal, rms=0.195881Jy  sigma=0.001359
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        1.14     KK        1.12     KP        1.02     LA        0.99     
!   MC        1.00*    MK        0.95     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.02     SC        1.04     
!   WF        1.04     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.11     KK        1.00*    KP        1.01     LA        1.00     
!   MC        1.00*    MK        1.00*    NL        1.07     NY        1.00*    
!   ON        1.00*    OV        1.05     PT        1.03     SC        1.05     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.04     KP        0.99     LA        0.99     
!   MC        1.00*    MK        0.93     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.02     SC        1.07     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.03     GC        1.00*    HH        1.00*    
!   HN        1.09     KK        1.10     KP        1.02     LA        0.96     
!   MC        1.00*    MK        1.04     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.99     SC        1.03     
!   WF        1.07     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.06     KK        1.00*    KP        1.05     LA        0.96     
!   MC        1.00*    MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        1.00     SC        1.05     
!   WF        1.06     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00     KP        1.02     LA        0.94     
!   MC        1.00*    MK        1.02     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00     SC        1.01     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.08     KP        0.97     LA        0.97     
!   MC        1.00*    MK        0.96     NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.94     SC        0.97     
!   WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.10     KK        1.00*    KP        0.96     LA        1.00     
!   MC        1.00*    MK        1.00*    NL        1.08     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        0.97     SC        1.03     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.06     LA        0.98     
!   MC        1.00*    MK        0.91     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.93     SC        1.01     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.04     KK        1.07     KP        0.99     LA        0.97     
!   MC        1.00*    MK        0.96     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.98     SC        0.96     
!   WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.09     KK        1.00*    KP        0.99     LA        1.01     
!   MC        1.00*    MK        1.00*    NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.01     SC        1.02     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00     KP        0.99     LA        0.98     
!   MC        1.00*    MK        0.96     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.81     SC        0.98     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.195881Jy  sigma=0.001359
! Fit after  self-cal, rms=0.188606Jy  sigma=0.001279
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.707 mas, bmaj=7.942 mas, bpa=-11.89 degrees
! Estimated noise=733.608 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.00279961 Jy
! Component: 100  -  total flux cleaned = -0.00325807 Jy
! Component: 150  -  total flux cleaned = -0.0035686 Jy
! Component: 200  -  total flux cleaned = -0.00386 Jy
! Total flux subtracted in 200 components = -0.00386 Jy
! Clean residual min=-0.005925 max=0.008431 Jy/beam
! Clean residual mean=-0.000101 rms=0.001788 Jy/beam
! Combined flux in latest and established models = 1.13117 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 72 components and 1.13117 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188512Jy  sigma=0.001279
! Fit after  self-cal, rms=0.188595Jy  sigma=0.001278
! Inverting map 
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.188595Jy  sigma=0.001278
! Fit after  self-cal, rms=0.188885Jy  sigma=0.001278
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.711 mas, bmaj=7.942 mas, bpa=-11.84 degrees
! Estimated noise=734.246 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00144119 Jy
! Component: 100  -  total flux cleaned = -0.00174165 Jy
! Component: 150  -  total flux cleaned = -0.00187775 Jy
! Component: 200  -  total flux cleaned = -0.0020293 Jy
! Total flux subtracted in 200 components = -0.0020293 Jy
! Clean residual min=-0.005548 max=0.008670 Jy/beam
! Clean residual mean=0.000054 rms=0.001782 Jy/beam
! Combined flux in latest and established models = 1.12914 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 78 components and 1.12914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188844Jy  sigma=0.001278
! Fit after  self-cal, rms=0.188843Jy  sigma=0.001278
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (12, -15.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00804571 Jy
! Component: 100  -  total flux cleaned = 0.0121974 Jy
! Component: 150  -  total flux cleaned = 0.0135953 Jy
! Component: 200  -  total flux cleaned = 0.0140102 Jy
! Total flux subtracted in 200 components = 0.0140102 Jy
! Clean residual min=-0.005051 max=0.005010 Jy/beam
! Clean residual mean=-0.000139 rms=0.001387 Jy/beam
! Combined flux in latest and established models = 1.14315 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 103 components and 1.14315 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188528Jy  sigma=0.001275
! Fit after  self-cal, rms=0.188494Jy  sigma=0.001274
! Inverting map 
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.188494Jy  sigma=0.001274
! Fit after  self-cal, rms=0.188507Jy  sigma=0.001274
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.714 mas, bmaj=7.945 mas, bpa=-11.82 degrees
! Estimated noise=734.468 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000963201 Jy
! Component: 100  -  total flux cleaned = 0.00149372 Jy
! Component: 150  -  total flux cleaned = 0.00206287 Jy
! Component: 200  -  total flux cleaned = 0.0022483 Jy
! Total flux subtracted in 200 components = 0.0022483 Jy
! Clean residual min=-0.004960 max=0.004653 Jy/beam
! Clean residual mean=-0.000083 rms=0.001345 Jy/beam
! Combined flux in latest and established models = 1.1454 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 111 components and 1.1454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188431Jy  sigma=0.001273
! Fit after  self-cal, rms=0.188422Jy  sigma=0.001273
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000826277 Jy
! Component: 100  -  total flux cleaned = 0.00093688 Jy
! Component: 150  -  total flux cleaned = 0.00104167 Jy
! Component: 200  -  total flux cleaned = 0.00108968 Jy
! Total flux subtracted in 200 components = 0.00108968 Jy
! Clean residual min=-0.004911 max=0.004521 Jy/beam
! Clean residual mean=-0.000099 rms=0.001324 Jy/beam
! Combined flux in latest and established models = 1.14649 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 119 components and 1.14649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188392Jy  sigma=0.001273
! Fit after  self-cal, rms=0.188389Jy  sigma=0.001273
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.188389Jy  sigma=0.001273
! Fit after  self-cal, rms=0.188404Jy  sigma=0.001273
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.766 mas, bmaj=20.06 mas, bpa=-5.27 degrees
! Estimated noise=971.509 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000559985 Jy
! Component: 100  -  total flux cleaned = 0.0010354 Jy
! Component: 150  -  total flux cleaned = 0.00119029 Jy
! Component: 200  -  total flux cleaned = 0.00125953 Jy
! Total flux subtracted in 200 components = 0.00125953 Jy
! Clean residual min=-0.005031 max=0.007365 Jy/beam
! Clean residual mean=-0.000102 rms=0.002057 Jy/beam
! Combined flux in latest and established models = 1.14775 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 130 components and 1.14775 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188403Jy  sigma=0.001273
! Fit after  self-cal, rms=0.188376Jy  sigma=0.001272
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 = 9.81037e-05 Jy
! Component: 100  -  total flux cleaned = 0.000168115 Jy
! Component: 150  -  total flux cleaned = 0.000236042 Jy
! Component: 200  -  total flux cleaned = 0.000297318 Jy
! Total flux subtracted in 200 components = 0.000297318 Jy
! Clean residual min=-0.004940 max=0.007131 Jy/beam
! Clean residual mean=-0.000116 rms=0.002021 Jy/beam
! Combined flux in latest and established models = 1.14805 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 134 components and 1.14805 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188391Jy  sigma=0.001273
! Fit after  self-cal, rms=0.188373Jy  sigma=0.001273
! Inverting map 
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 
! Estimated beam: bmin=2.716 mas, bmaj=7.947 mas, bpa=-11.79 degrees
! Estimated noise=734.757 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.716 x 7.947 at -11.79 degrees (North through East)
! Clean map  min=-0.0042655  max=0.8968 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.188373Jy  sigma=0.001273
! Fit after  self-cal, rms=0.171416Jy  sigma=0.001117
! Inverting map and beam 
! Estimated beam: bmin=2.714 mas, bmaj=7.936 mas, bpa=-11.73 degrees
! Estimated noise=733.273 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000658149 Jy
! Component: 100  -  total flux cleaned = -0.00127418 Jy
! Component: 150  -  total flux cleaned = -0.00145853 Jy
! Component: 200  -  total flux cleaned = -0.00154178 Jy
! Total flux subtracted in 200 components = -0.00154178 Jy
! Clean residual min=-0.004072 max=0.004310 Jy/beam
! Clean residual mean=-0.000004 rms=0.001141 Jy/beam
! Combined flux in latest and established models = 1.14651 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 147 components and 1.14651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171378Jy  sigma=0.001117
! Fit after  self-cal, rms=0.171378Jy  sigma=0.001117
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000140653 Jy
! Component: 100  -  total flux cleaned = -0.000141746 Jy
! Component: 150  -  total flux cleaned = -0.000106815 Jy
! Component: 200  -  total flux cleaned = -0.000139611 Jy
! Total flux subtracted in 200 components = -0.000139611 Jy
! Clean residual min=-0.004030 max=0.004238 Jy/beam
! Clean residual mean=-0.000002 rms=0.001137 Jy/beam
! Combined flux in latest and established models = 1.14637 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 154 components and 1.14637 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171360Jy  sigma=0.001117
! Fit after  self-cal, rms=0.171360Jy  sigma=0.001116
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171360Jy  sigma=0.001116
! Fit after  self-cal, rms=0.171368Jy  sigma=0.001116
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 
! Estimated beam: bmin=2.362 mas, bmaj=6.726 mas, bpa=-3.851 degrees
! Estimated noise=1319.36 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.65133 Jy
! Component: 100  -  total flux cleaned = 0.857587 Jy
! Component: 150  -  total flux cleaned = 0.96366 Jy
! Component: 200  -  total flux cleaned = 1.02389 Jy
! Total flux subtracted in 200 components = 1.02389 Jy
! Clean residual min=-0.009884 max=0.029704 Jy/beam
! Clean residual mean=0.000102 rms=0.003661 Jy/beam
! Combined flux in latest and established models = 1.02389 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.02389 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.715 mas, bmaj=7.937 mas, bpa=-11.72 degrees
! Estimated noise=733.127 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.0500078 Jy
! Component: 100  -  total flux cleaned = 0.0738971 Jy
! Component: 150  -  total flux cleaned = 0.087475 Jy
! Component: 200  -  total flux cleaned = 0.0967197 Jy
! Total flux subtracted in 200 components = 0.0967197 Jy
! Clean residual min=-0.004681 max=0.008009 Jy/beam
! Clean residual mean=0.000322 rms=0.001703 Jy/beam
! Combined flux in latest and established models = 1.1206 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 49 components and 1.1206 Jy
! Inverting map 
! Added new window around map position (4, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00781232 Jy
! Component: 100  -  total flux cleaned = 0.0128304 Jy
! Component: 150  -  total flux cleaned = 0.0165494 Jy
! Component: 200  -  total flux cleaned = 0.0193584 Jy
! Total flux subtracted in 200 components = 0.0193584 Jy
! Clean residual min=-0.004175 max=0.004507 Jy/beam
! Clean residual mean=0.000107 rms=0.001201 Jy/beam
! Combined flux in latest and established models = 1.13996 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 78 components and 1.13996 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.764 mas, bmaj=20.03 mas, bpa=-5.235 degrees
! Estimated noise=969.627 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00390907 Jy
! Component: 100  -  total flux cleaned = 0.00524032 Jy
! Component: 150  -  total flux cleaned = 0.00563641 Jy
! Component: 200  -  total flux cleaned = 0.00575371 Jy
! Total flux subtracted in 200 components = 0.00575371 Jy
! Clean residual min=-0.003845 max=0.006341 Jy/beam
! Clean residual mean=0.000082 rms=0.001823 Jy/beam
! Combined flux in latest and established models = 1.14572 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 = 5.37782e-05 Jy
! Component: 100  -  total flux cleaned = 0.000152964 Jy
! Component: 150  -  total flux cleaned = 0.000150831 Jy
! Component: 200  -  total flux cleaned = 0.000195052 Jy
! Total flux subtracted in 200 components = 0.000195052 Jy
! Clean residual min=-0.003773 max=0.006206 Jy/beam
! Clean residual mean=0.000077 rms=0.001798 Jy/beam
! Combined flux in latest and established models = 1.14591 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 100 components and 1.14591 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.715 mas, bmaj=7.937 mas, bpa=-11.72 degrees
! Estimated noise=733.127 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00119462 Jy
! Component: 100  -  total flux cleaned = -0.00126289 Jy
! Component: 150  -  total flux cleaned = -0.00132198 Jy
! Component: 200  -  total flux cleaned = -0.00132138 Jy
! Total flux subtracted in 200 components = -0.00132138 Jy
! Clean residual min=-0.003932 max=0.003999 Jy/beam
! Clean residual mean=0.000051 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 1.14459 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 117 components and 1.14459 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171357Jy  sigma=0.001116
! Fit after  self-cal, rms=0.171330Jy  sigma=0.001116
wmodel J1037-2934_S_1999_05_10_pus_map.mod
! Writing 117 model components to file: J1037-2934_S_1999_05_10_pus_map.mod
wobs J1037-2934_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1037-2934_S_1999_05_10_pus_uvs.fits
wwins J1037-2934_S_1999_05_10_pus_map.win
! wwins: Wrote 3 windows to J1037-2934_S_1999_05_10_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000292431 Jy
! Component: 100  -  total flux cleaned = 0.000492743 Jy
! Component: 150  -  total flux cleaned = 0.000494388 Jy
! Component: 200  -  total flux cleaned = 0.00049324 Jy
! Component: 250  -  total flux cleaned = 0.000493696 Jy
! Component: 300  -  total flux cleaned = 0.000493149 Jy
! Component: 350  -  total flux cleaned = 0.00044097 Jy
! Component: 400  -  total flux cleaned = 0.000292962 Jy
! Component: 450  -  total flux cleaned = 0.000197976 Jy
! Component: 500  -  total flux cleaned = 0.000105983 Jy
! Component: 550  -  total flux cleaned = 1.59819e-05 Jy
! Component: 600  -  total flux cleaned = -0.000114861 Jy
! Component: 650  -  total flux cleaned = -0.000156466 Jy
! Component: 700  -  total flux cleaned = -0.000196572 Jy
! Component: 750  -  total flux cleaned = -0.000277595 Jy
! Component: 800  -  total flux cleaned = -0.00039741 Jy
! Component: 850  -  total flux cleaned = -0.00047546 Jy
! Component: 900  -  total flux cleaned = -0.000474945 Jy
! Component: 950  -  total flux cleaned = -0.000437219 Jy
! Component: 1000  -  total flux cleaned = -0.000474471 Jy
! Component: 1050  -  total flux cleaned = -0.000402244 Jy
! Component: 1100  -  total flux cleaned = -0.000367298 Jy
! Component: 1150  -  total flux cleaned = -0.000367778 Jy
! Component: 1200  -  total flux cleaned = -0.000333069 Jy
! Component: 1250  -  total flux cleaned = -0.00019628 Jy
! Component: 1300  -  total flux cleaned = -0.000162907 Jy
! Component: 1350  -  total flux cleaned = -2.96867e-05 Jy
! Component: 1400  -  total flux cleaned = 3.59369e-05 Jy
! Component: 1450  -  total flux cleaned = 0.000132764 Jy
! Component: 1500  -  total flux cleaned = 0.000228986 Jy
! Component: 1550  -  total flux cleaned = 0.000418198 Jy
! Component: 1600  -  total flux cleaned = 0.000542463 Jy
! Component: 1650  -  total flux cleaned = 0.000634653 Jy
! Component: 1700  -  total flux cleaned = 0.000726002 Jy
! Component: 1750  -  total flux cleaned = 0.000815994 Jy
! Component: 1800  -  total flux cleaned = 0.000905584 Jy
! Component: 1850  -  total flux cleaned = 0.00099409 Jy
! Component: 1900  -  total flux cleaned = 0.00111099 Jy
! Component: 1950  -  total flux cleaned = 0.00116882 Jy
! Component: 2000  -  total flux cleaned = 0.00128362 Jy
! Total flux subtracted in 2048 components = 0.00131195 Jy
! Clean residual min=-0.001581 max=0.001618 Jy/beam
! Clean residual mean=0.000027 rms=0.000580 Jy/beam
! Combined flux in latest and established models = 1.1459 Jy
keep
! Adding 179 model components to the UV plane model.
! The established model now contains 296 components and 1.1459 Jy
![Exited script file: muppet]
wmap "J1037-2934_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.715 x 7.937 at -11.72 degrees (North through East)
! Clean map  min=-0.0026601  max=0.89909 Jy/beam
! Writing clean map to FITS file: J1037-2934_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.89909 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000580685 
device "J1037-2934_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1037-2934_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.193757 0.193757 0.387515 0.775029 1.55006 3.10012 6.20023 12.4005 24.8009 49.6019 99.2038
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.899 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.715 x 7.937 at -11.72 degrees (North through East)
! Clean map  min=-0.0026601  max=0.89909 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1037-2934_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1037-2934_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1037-2934_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:35:48 2008