! Started logfile: J1037-2934_S_2001_10_29_pus_uvs.log on Thu Feb 28 14:20:08 2008
obs J1037-2934_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1037-2934_S_2001_10_29_pus_uva.fits
! AN table 1: 52 integrations on 153 of 153 possible baselines.
! AN table 2: 25 integrations on 153 of 153 possible baselines.
! AN table 3: 237 integrations on 153 of 153 possible baselines.
! AN table 4: 34 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0440613 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2612 lines of history.
! 
! Reading 9384 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_2001_10_29_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 852 telescope corrections were flagged in sub-array 1.
!  A total of 450 telescope corrections were flagged in sub-array 2.
!  A total of 3579 telescope corrections were flagged in sub-array 3.
!  A total of 612 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 865 telescope corrections were flagged in sub-array 1.
!  A total of 450 telescope corrections were flagged in sub-array 2.
!  A total of 3578 telescope corrections were flagged in sub-array 3.
!  A total of 612 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 848 telescope corrections were flagged in sub-array 1.
!  A total of 450 telescope corrections were flagged in sub-array 2.
!  A total of 3578 telescope corrections were flagged in sub-array 3.
!  A total of 612 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 936 telescope corrections were flagged in sub-array 1.
!  A total of 450 telescope corrections were flagged in sub-array 2.
!  A total of 3583 telescope corrections were flagged in sub-array 3.
!  A total of 612 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.412075Jy  sigma=0.002324
! Fit after  self-cal, rms=0.410093Jy  sigma=0.002317
! 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=1.715 mas, bmaj=4.349 mas, bpa=32.04 degrees
! Estimated noise=3982.51 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.47103 Jy
! Component: 100  -  total flux cleaned = 0.620851 Jy
! Total flux subtracted in 100 components = 0.620851 Jy
! Clean residual min=-0.029087 max=0.056444 Jy/beam
! Clean residual mean=0.000244 rms=0.009905 Jy/beam
! Combined flux in latest and established models = 0.620851 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.620851 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237697Jy  sigma=0.001266
! Fit after  self-cal, rms=0.237752Jy  sigma=0.001265
! 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=3.046 mas, bmaj=5.623 mas, bpa=21.94 degrees
! Estimated noise=1375.99 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.0790253 Jy
! Component: 100  -  total flux cleaned = 0.109882 Jy
! Component: 150  -  total flux cleaned = 0.126339 Jy
! Component: 200  -  total flux cleaned = 0.13523 Jy
! Total flux subtracted in 200 components = 0.13523 Jy
! Clean residual min=-0.006764 max=0.011529 Jy/beam
! Clean residual mean=0.000151 rms=0.002691 Jy/beam
! Combined flux in latest and established models = 0.756081 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 26 components and 0.756081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213769Jy  sigma=0.001076
! Fit after  self-cal, rms=0.213712Jy  sigma=0.001075
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.08     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.02     MC        0.97     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.01     
!   HN        1.00     KK        1.02     KP        1.00     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        0.99     
!   OV        0.99     PT        0.99     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.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        1.00*    GG        1.00*    HH        1.08     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.02     MC        0.98     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.02     
!   HN        1.00     KK        1.03     KP        1.00     LA        0.99     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.99     
!   OV        0.99     PT        0.99     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.09     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.01     MC        0.98     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        1.00     KK        1.02     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.99     
!   OV        1.00     PT        0.99     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        0.97     
!   HN        1.00     KK        1.07     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        0.99     
!   OV        0.98     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.213712Jy  sigma=0.001075
! Fit after  self-cal, rms=0.214139Jy  sigma=0.001076
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.046 mas, bmaj=5.685 mas, bpa=21.58 degrees
! Estimated noise=1378.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)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00276803 Jy
! Component: 100  -  total flux cleaned = 0.00330306 Jy
! Component: 150  -  total flux cleaned = 0.00376227 Jy
! Component: 200  -  total flux cleaned = 0.00408174 Jy
! Total flux subtracted in 200 components = 0.00408174 Jy
! Clean residual min=-0.005653 max=0.010445 Jy/beam
! Clean residual mean=-0.000026 rms=0.002264 Jy/beam
! Combined flux in latest and established models = 0.760163 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 32 components and 0.760163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214013Jy  sigma=0.001075
! Fit after  self-cal, rms=0.214066Jy  sigma=0.001075
! 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.214066Jy  sigma=0.001075
! Fit after  self-cal, rms=0.214380Jy  sigma=0.001075
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.033 mas, bmaj=5.676 mas, bpa=21.8 degrees
! Estimated noise=1378.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00143516 Jy
! Component: 100  -  total flux cleaned = 0.00172606 Jy
! Component: 150  -  total flux cleaned = 0.00185708 Jy
! Component: 200  -  total flux cleaned = 0.00203603 Jy
! Total flux subtracted in 200 components = 0.00203603 Jy
! Clean residual min=-0.005477 max=0.010199 Jy/beam
! Clean residual mean=-0.000013 rms=0.002153 Jy/beam
! Combined flux in latest and established models = 0.762199 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 36 components and 0.762199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214315Jy  sigma=0.001074
! Fit after  self-cal, rms=0.214321Jy  sigma=0.001074
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 (22, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00850185 Jy
! Component: 100  -  total flux cleaned = 0.0110779 Jy
! Component: 150  -  total flux cleaned = 0.0118856 Jy
! Component: 200  -  total flux cleaned = 0.0125663 Jy
! Total flux subtracted in 200 components = 0.0125663 Jy
! Clean residual min=-0.003811 max=0.004999 Jy/beam
! Clean residual mean=-0.000041 rms=0.001088 Jy/beam
! Combined flux in latest and established models = 0.774765 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 54 components and 0.774765 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213943Jy  sigma=0.001072
! Fit after  self-cal, rms=0.213912Jy  sigma=0.001072
! Inverting map 
! Added new window around map position (-40.5, -34).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00195784 Jy
! Component: 100  -  total flux cleaned = 0.00194482 Jy
! Component: 150  -  total flux cleaned = 0.00202535 Jy
! Component: 200  -  total flux cleaned = 0.00239105 Jy
! Total flux subtracted in 200 components = 0.00239105 Jy
! Clean residual min=-0.003532 max=0.003079 Jy/beam
! Clean residual mean=-0.000041 rms=0.000853 Jy/beam
! Combined flux in latest and established models = 0.777156 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 68 components and 0.777156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213769Jy  sigma=0.001071
! Fit after  self-cal, rms=0.213766Jy  sigma=0.001071
! 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.213766Jy  sigma=0.001071
! Fit after  self-cal, rms=0.213244Jy  sigma=0.001071
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.024 mas, bmaj=5.678 mas, bpa=21.89 degrees
! Estimated noise=1376.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0019573 Jy
! Component: 100  -  total flux cleaned = 0.00217041 Jy
! Component: 150  -  total flux cleaned = 0.00211058 Jy
! Component: 200  -  total flux cleaned = 0.00205677 Jy
! Total flux subtracted in 200 components = 0.00205677 Jy
! Clean residual min=-0.003053 max=0.002909 Jy/beam
! Clean residual mean=-0.000012 rms=0.000735 Jy/beam
! Combined flux in latest and established models = 0.779213 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 76 components and 0.779213 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213188Jy  sigma=0.001071
! Fit after  self-cal, rms=0.213183Jy  sigma=0.001071
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.0004767 Jy
! Component: 100  -  total flux cleaned = 0.0005767 Jy
! Component: 150  -  total flux cleaned = 0.000623577 Jy
! Component: 200  -  total flux cleaned = 0.000624495 Jy
! Total flux subtracted in 200 components = 0.000624495 Jy
! Clean residual min=-0.002903 max=0.002812 Jy/beam
! Clean residual mean=-0.000012 rms=0.000707 Jy/beam
! Combined flux in latest and established models = 0.779838 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 83 components and 0.779838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213151Jy  sigma=0.001071
! Fit after  self-cal, rms=0.213149Jy  sigma=0.001071
! 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.213149Jy  sigma=0.001071
! Fit after  self-cal, rms=0.213255Jy  sigma=0.001071
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.505 mas, bmaj=14.68 mas, bpa=-15.81 degrees
! Estimated noise=1658.05 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000197635 Jy
! Component: 100  -  total flux cleaned = -0.000254152 Jy
! Component: 150  -  total flux cleaned = -0.000329356 Jy
! Component: 200  -  total flux cleaned = -0.000373156 Jy
! Total flux subtracted in 200 components = -0.000373156 Jy
! Clean residual min=-0.001871 max=0.002232 Jy/beam
! Clean residual mean=-0.000009 rms=0.000521 Jy/beam
! Combined flux in latest and established models = 0.779465 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 98 components and 0.779465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213247Jy  sigma=0.001071
! Fit after  self-cal, rms=0.213252Jy  sigma=0.001071
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 = -4.88922e-05 Jy
! Component: 100  -  total flux cleaned = -9.02879e-05 Jy
! Component: 150  -  total flux cleaned = -0.00012741 Jy
! Component: 200  -  total flux cleaned = -0.000160893 Jy
! Total flux subtracted in 200 components = -0.000160893 Jy
! Clean residual min=-0.001793 max=0.002173 Jy/beam
! Clean residual mean=-0.000007 rms=0.000498 Jy/beam
! Combined flux in latest and established models = 0.779304 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 103 components and 0.779304 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213249Jy  sigma=0.001071
! Fit after  self-cal, rms=0.213249Jy  sigma=0.001071
! Inverting map 
! Added new window around map position (32, 49.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00117171 Jy
! Component: 100  -  total flux cleaned = 0.00121616 Jy
! Component: 150  -  total flux cleaned = 0.00113738 Jy
! Component: 200  -  total flux cleaned = 0.00113642 Jy
! Total flux subtracted in 200 components = 0.00113642 Jy
! Clean residual min=-0.001842 max=0.001736 Jy/beam
! Clean residual mean=0.000002 rms=0.000429 Jy/beam
! Combined flux in latest and established models = 0.78044 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 127 components and 0.78044 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213224Jy  sigma=0.001070
! Fit after  self-cal, rms=0.213221Jy  sigma=0.001070
! 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=3.024 mas, bmaj=5.679 mas, bpa=21.88 degrees
! Estimated noise=1376.29 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.024 x 5.679 at 21.88 degrees (North through East)
! Clean map  min=-0.0039529  max=0.65922 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.213221Jy  sigma=0.001070
! Fit after  self-cal, rms=0.222945Jy  sigma=0.001069
! Inverting map and beam 
! Estimated beam: bmin=3.028 mas, bmaj=5.682 mas, bpa=21.85 degrees
! Estimated noise=1375.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000139663 Jy
! Component: 100  -  total flux cleaned = -0.000206648 Jy
! Component: 150  -  total flux cleaned = -1.87572e-05 Jy
! Component: 200  -  total flux cleaned = 0.000150576 Jy
! Total flux subtracted in 200 components = 0.000150576 Jy
! Clean residual min=-0.002348 max=0.002731 Jy/beam
! Clean residual mean=-0.000003 rms=0.000601 Jy/beam
! Combined flux in latest and established models = 0.780591 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 149 components and 0.780591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222892Jy  sigma=0.001069
! Fit after  self-cal, rms=0.222888Jy  sigma=0.001069
! Inverting map 
! Added new window around map position (-42, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00113746 Jy
! Component: 100  -  total flux cleaned = 0.000819727 Jy
! Component: 150  -  total flux cleaned = 0.000819941 Jy
! Component: 200  -  total flux cleaned = 0.000643213 Jy
! Total flux subtracted in 200 components = 0.000643213 Jy
! Clean residual min=-0.001994 max=0.001835 Jy/beam
! Clean residual mean=-0.000006 rms=0.000493 Jy/beam
! Combined flux in latest and established models = 0.781234 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 163 components and 0.781234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222831Jy  sigma=0.001069
! Fit after  self-cal, rms=0.222829Jy  sigma=0.001068
! 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.222829Jy  sigma=0.001068
! Fit after  self-cal, rms=0.225816Jy  sigma=0.001068
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=1.7 mas, bmaj=4.389 mas, bpa=32.17 degrees
! Estimated noise=4017.69 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.474645 Jy
! Component: 100  -  total flux cleaned = 0.62642 Jy
! Component: 150  -  total flux cleaned = 0.683996 Jy
! Component: 200  -  total flux cleaned = 0.710639 Jy
! Total flux subtracted in 200 components = 0.710639 Jy
! Clean residual min=-0.017556 max=0.016633 Jy/beam
! Clean residual mean=0.000075 rms=0.004685 Jy/beam
! Combined flux in latest and established models = 0.710639 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 0.710639 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.027 mas, bmaj=5.683 mas, bpa=21.85 degrees
! Estimated noise=1375.56 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.0239232 Jy
! Component: 100  -  total flux cleaned = 0.0365107 Jy
! Component: 150  -  total flux cleaned = 0.0452139 Jy
! Component: 200  -  total flux cleaned = 0.0502497 Jy
! Total flux subtracted in 200 components = 0.0502497 Jy
! Clean residual min=-0.004737 max=0.005868 Jy/beam
! Clean residual mean=0.000096 rms=0.001673 Jy/beam
! Combined flux in latest and established models = 0.760889 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 43 components and 0.760889 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=6.506 mas, bmaj=14.68 mas, bpa=-15.82 degrees
! Estimated noise=1656.41 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00486449 Jy
! Component: 100  -  total flux cleaned = 0.00598709 Jy
! Component: 150  -  total flux cleaned = 0.00695836 Jy
! Component: 200  -  total flux cleaned = 0.00765748 Jy
! Total flux subtracted in 200 components = 0.00765748 Jy
! Clean residual min=-0.002657 max=0.002475 Jy/beam
! Clean residual mean=0.000077 rms=0.000947 Jy/beam
! Combined flux in latest and established models = 0.768546 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.000338288 Jy
! Component: 100  -  total flux cleaned = 0.000648343 Jy
! Component: 150  -  total flux cleaned = 0.00106614 Jy
! Component: 200  -  total flux cleaned = 0.00143977 Jy
! Total flux subtracted in 200 components = 0.00143977 Jy
! Clean residual min=-0.001946 max=0.001823 Jy/beam
! Clean residual mean=0.000059 rms=0.000680 Jy/beam
! Combined flux in latest and established models = 0.769986 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 107 components and 0.769986 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.027 mas, bmaj=5.683 mas, bpa=21.85 degrees
! Estimated noise=1375.56 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000375925 Jy
! Component: 100  -  total flux cleaned = -0.000824909 Jy
! Component: 150  -  total flux cleaned = -0.000931773 Jy
! Component: 200  -  total flux cleaned = -0.000840238 Jy
! Total flux subtracted in 200 components = -0.000840238 Jy
! Clean residual min=-0.002703 max=0.002669 Jy/beam
! Clean residual mean=0.000021 rms=0.000675 Jy/beam
! Combined flux in latest and established models = 0.769146 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 131 components and 0.769146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225962Jy  sigma=0.001069
! Fit after  self-cal, rms=0.225955Jy  sigma=0.001069
wmodel J1037-2934_S_2001_10_29_pus_map.mod
! Writing 131 model components to file: J1037-2934_S_2001_10_29_pus_map.mod
wobs J1037-2934_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1037-2934_S_2001_10_29_pus_uvs.fits
wwins J1037-2934_S_2001_10_29_pus_map.win
! wwins: Wrote 5 windows to J1037-2934_S_2001_10_29_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.000653188 Jy
! Component: 100  -  total flux cleaned = 0.000652441 Jy
! Component: 150  -  total flux cleaned = 0.000809166 Jy
! Component: 200  -  total flux cleaned = 0.000846284 Jy
! Component: 250  -  total flux cleaned = 0.000881911 Jy
! Component: 300  -  total flux cleaned = 0.00098698 Jy
! Component: 350  -  total flux cleaned = 0.00119277 Jy
! Component: 400  -  total flux cleaned = 0.00132732 Jy
! Component: 450  -  total flux cleaned = 0.00139397 Jy
! Component: 500  -  total flux cleaned = 0.00139421 Jy
! Component: 550  -  total flux cleaned = 0.00129817 Jy
! Component: 600  -  total flux cleaned = 0.00129836 Jy
! Component: 650  -  total flux cleaned = 0.00123561 Jy
! Component: 700  -  total flux cleaned = 0.00123569 Jy
! Component: 750  -  total flux cleaned = 0.0012046 Jy
! Component: 800  -  total flux cleaned = 0.00117438 Jy
! Component: 850  -  total flux cleaned = 0.0012347 Jy
! Component: 900  -  total flux cleaned = 0.00132419 Jy
! Component: 950  -  total flux cleaned = 0.00138355 Jy
! Component: 1000  -  total flux cleaned = 0.00141337 Jy
! Component: 1050  -  total flux cleaned = 0.00156 Jy
! Component: 1100  -  total flux cleaned = 0.00150212 Jy
! Component: 1150  -  total flux cleaned = 0.00144473 Jy
! Component: 1200  -  total flux cleaned = 0.00141589 Jy
! Component: 1250  -  total flux cleaned = 0.00133004 Jy
! Component: 1300  -  total flux cleaned = 0.00127337 Jy
! Component: 1350  -  total flux cleaned = 0.00116036 Jy
! Component: 1400  -  total flux cleaned = 0.00113259 Jy
! Component: 1450  -  total flux cleaned = 0.00110461 Jy
! Component: 1500  -  total flux cleaned = 0.00110465 Jy
! Component: 1550  -  total flux cleaned = 0.00118775 Jy
! Component: 1600  -  total flux cleaned = 0.00107705 Jy
! Component: 1650  -  total flux cleaned = 0.00102193 Jy
! Component: 1700  -  total flux cleaned = 0.000912232 Jy
! Component: 1750  -  total flux cleaned = 0.000912205 Jy
! Component: 1800  -  total flux cleaned = 0.00083068 Jy
! Component: 1850  -  total flux cleaned = 0.000803425 Jy
! Component: 1900  -  total flux cleaned = 0.000722574 Jy
! Component: 1950  -  total flux cleaned = 0.000668695 Jy
! Component: 2000  -  total flux cleaned = 0.000588204 Jy
! Total flux subtracted in 2048 components = 0.000454332 Jy
! Clean residual min=-0.001398 max=0.001602 Jy/beam
! Clean residual mean=-0.000011 rms=0.000447 Jy/beam
! Combined flux in latest and established models = 0.7696 Jy
keep
! Adding 77 model components to the UV plane model.
! The established model now contains 208 components and 0.7696 Jy
![Exited script file: muppet]
wmap "J1037-2934_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.027 x 5.683 at 21.85 degrees (North through East)
! Clean map  min=-0.0034627  max=0.66052 Jy/beam
! Writing clean map to FITS file: J1037-2934_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.660521 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000443585 
device "J1037-2934_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1037-2934_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.201471 0.201471 0.402941 0.805883 1.61177 3.22353 6.44706 12.8941 25.7882 51.5765
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.66 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.027 x 5.683 at 21.85 degrees (North through East)
! Clean map  min=-0.0034627  max=0.66052 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1037-2934_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1037-2934_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1037-2934_S_2001_10_29_pus_uvs.log closed on Thu Feb 28 14:20:21 2008