! Started logfile: J1957-3845_S_2000_12_04_pus_uvs.log on Wed Oct 17 17:20:44 2007
obs J1957-3845_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1957-3845_S_2000_12_04_pus_uva.fits
! AN table 1: 10 integrations on 190 of 190 possible baselines.
! AN table 2: 88 integrations on 190 of 190 possible baselines.
! AN table 3: 41 integrations on 190 of 190 possible baselines.
! AN table 4: 48 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.033718 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1957-3845
! 
! 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 2169 lines of history.
! 
! Reading 4792 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 J1957-3845_S_2000_12_04_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 200 telescope corrections were flagged in sub-array 1.
!  A total of 1733 telescope corrections were flagged in sub-array 2.
!  A total of 579 telescope corrections were flagged in sub-array 3.
!  A total of 776 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 1733 telescope corrections were flagged in sub-array 2.
!  A total of 579 telescope corrections were flagged in sub-array 3.
!  A total of 776 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 1733 telescope corrections were flagged in sub-array 2.
!  A total of 579 telescope corrections were flagged in sub-array 3.
!  A total of 776 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 200 telescope corrections were flagged in sub-array 1.
!  A total of 1760 telescope corrections were flagged in sub-array 2.
!  A total of 579 telescope corrections were flagged in sub-array 3.
!  A total of 776 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.195276Jy  sigma=0.009485
! Fit after  self-cal, rms=0.372206Jy  sigma=0.002858
! 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.536 mas, bmaj=7.911 mas, bpa=7.288 degrees
! Estimated noise=2214.7 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.600441 Jy
! Component: 100  -  total flux cleaned = 0.743536 Jy
! Total flux subtracted in 100 components = 0.743536 Jy
! Clean residual min=-0.034258 max=0.056419 Jy/beam
! Clean residual mean=0.001733 rms=0.012275 Jy/beam
! Combined flux in latest and established models = 0.743536 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.743536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346342Jy  sigma=0.002555
! Fit after  self-cal, rms=0.346364Jy  sigma=0.002555
! 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.521 mas, bmaj=14.72 mas, bpa=1.146 degrees
! Estimated noise=1367.82 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.0952382 Jy
! Component: 100  -  total flux cleaned = 0.135588 Jy
! Component: 150  -  total flux cleaned = 0.154211 Jy
! Component: 200  -  total flux cleaned = 0.163042 Jy
! Total flux subtracted in 200 components = 0.163042 Jy
! Clean residual min=-0.030003 max=0.031476 Jy/beam
! Clean residual mean=-0.001584 rms=0.009123 Jy/beam
! Combined flux in latest and established models = 0.906577 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 39 components and 0.906577 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323215Jy  sigma=0.002363
! Fit after  self-cal, rms=0.323021Jy  sigma=0.002362
! 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*    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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        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*    NY        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        0.92     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.96     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.08     NY        1.00*    OV        1.06     PT        1.01     
!   SC        1.04     TS        1.00*    WF        1.14     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.08     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        0.84     
!   LA        1.16     MA        1.00*    MC        1.00*    MK        1.09     
!   NL        1.00*    NY        1.00*    OV        1.16     PT        1.17     
!   SC        1.00*    TS        1.00*    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*    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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        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*    NY        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        0.92     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.95     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.07     NY        1.00*    OV        1.05     PT        1.01     
!   SC        1.01     TS        1.00*    WF        1.06     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.09     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.03     
!   LA        1.14     MA        1.00*    MC        1.00*    MK        1.14     
!   NL        1.00*    NY        1.00*    OV        1.13     PT        1.15     
!   SC        1.00*    TS        1.00*    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*    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*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        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*    NY        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        0.67     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.82     
!   LA        0.88     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.19     NY        1.00*    OV        0.94     PT        0.76     
!   SC        0.97     TS        1.00*    WF        0.92     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.00     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.00*    NY        1.00*    OV        0.67     PT        0.77     
!   SC        1.00*    TS        1.00*    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*    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*    NY        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*    GC        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*    NY        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        0.93     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.98     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.07     NY        1.00*    OV        1.07     PT        1.06     
!   SC        1.04     TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.08     
!   LA        1.14     MA        1.00*    MC        1.00*    MK        1.12     
!   NL        1.00*    NY        1.00*    OV        1.13     PT        1.21     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.323021Jy  sigma=0.002362
! Fit after  self-cal, rms=0.229349Jy  sigma=0.001862
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.716 mas, bmaj=23.71 mas, bpa=-2.058 degrees
! Estimated noise=1401 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.00469403 Jy
! Component: 100  -  total flux cleaned = -0.00514711 Jy
! Component: 150  -  total flux cleaned = -0.00523721 Jy
! Component: 200  -  total flux cleaned = -0.00530942 Jy
! Total flux subtracted in 200 components = -0.00530942 Jy
! Clean residual min=-0.010138 max=0.010716 Jy/beam
! Clean residual mean=0.000602 rms=0.003089 Jy/beam
! Combined flux in latest and established models = 0.901268 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 44 components and 0.901268 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229183Jy  sigma=0.001861
! Fit after  self-cal, rms=0.230053Jy  sigma=0.001858
! 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.230053Jy  sigma=0.001858
! Fit after  self-cal, rms=0.230450Jy  sigma=0.001857
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.724 mas, bmaj=23.72 mas, bpa=-2.029 degrees
! Estimated noise=1400.62 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00328232 Jy
! Component: 100  -  total flux cleaned = -0.00336401 Jy
! Component: 150  -  total flux cleaned = -0.0034269 Jy
! Component: 200  -  total flux cleaned = -0.00347817 Jy
! Total flux subtracted in 200 components = -0.00347817 Jy
! Clean residual min=-0.010048 max=0.010582 Jy/beam
! Clean residual mean=0.000561 rms=0.003076 Jy/beam
! Combined flux in latest and established models = 0.89779 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 44 components and 0.89779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230355Jy  sigma=0.001857
! Fit after  self-cal, rms=0.230375Jy  sigma=0.001857
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.000184453 Jy
! Component: 100  -  total flux cleaned = -0.000224356 Jy
! Component: 150  -  total flux cleaned = -0.000262527 Jy
! Component: 200  -  total flux cleaned = -0.000333324 Jy
! Total flux subtracted in 200 components = -0.000333324 Jy
! Clean residual min=-0.010124 max=0.010510 Jy/beam
! Clean residual mean=0.000564 rms=0.003078 Jy/beam
! Combined flux in latest and established models = 0.897456 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 52 components and 0.897456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230355Jy  sigma=0.001857
! Fit after  self-cal, rms=0.230352Jy  sigma=0.001857
! 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.230352Jy  sigma=0.001857
! Fit after  self-cal, rms=0.230607Jy  sigma=0.001857
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.73 mas, bmaj=23.71 mas, bpa=-1.996 degrees
! Estimated noise=1400.33 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00203977 Jy
! Component: 100  -  total flux cleaned = -0.00217081 Jy
! Component: 150  -  total flux cleaned = -0.00222325 Jy
! Component: 200  -  total flux cleaned = -0.00226851 Jy
! Total flux subtracted in 200 components = -0.00226851 Jy
! Clean residual min=-0.010007 max=0.010468 Jy/beam
! Clean residual mean=0.000523 rms=0.003040 Jy/beam
! Combined flux in latest and established models = 0.895188 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 52 components and 0.895188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230554Jy  sigma=0.001856
! Fit after  self-cal, rms=0.230562Jy  sigma=0.001856
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.000133332 Jy
! Component: 100  -  total flux cleaned = -0.000170811 Jy
! Component: 150  -  total flux cleaned = -0.00023828 Jy
! Component: 200  -  total flux cleaned = -0.000270517 Jy
! Total flux subtracted in 200 components = -0.000270517 Jy
! Clean residual min=-0.010065 max=0.010435 Jy/beam
! Clean residual mean=0.000525 rms=0.003042 Jy/beam
! Combined flux in latest and established models = 0.894917 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 55 components and 0.894917 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230547Jy  sigma=0.001856
! Fit after  self-cal, rms=0.230545Jy  sigma=0.001856
! 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.230545Jy  sigma=0.001856
! Fit after  self-cal, rms=0.230717Jy  sigma=0.001856
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.338 mas, bmaj=30.44 mas, bpa=-4.85 degrees
! Estimated noise=1628.94 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00146864 Jy
! Component: 100  -  total flux cleaned = -0.00156012 Jy
! Component: 150  -  total flux cleaned = -0.00163648 Jy
! Component: 200  -  total flux cleaned = -0.00166908 Jy
! Total flux subtracted in 200 components = -0.00166908 Jy
! Clean residual min=-0.009481 max=0.013133 Jy/beam
! Clean residual mean=0.000808 rms=0.004057 Jy/beam
! Combined flux in latest and established models = 0.893248 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 61 components and 0.893248 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230698Jy  sigma=0.001856
! Fit after  self-cal, rms=0.230700Jy  sigma=0.001856
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 = 2.51588e-06 Jy
! Component: 100  -  total flux cleaned = -8.41795e-05 Jy
! Component: 150  -  total flux cleaned = -8.46326e-05 Jy
! Component: 200  -  total flux cleaned = -8.86037e-05 Jy
! Total flux subtracted in 200 components = -8.86037e-05 Jy
! Clean residual min=-0.009495 max=0.013081 Jy/beam
! Clean residual mean=0.000809 rms=0.004053 Jy/beam
! Combined flux in latest and established models = 0.89316 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 63 components and 0.89316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230694Jy  sigma=0.001856
! Fit after  self-cal, rms=0.230688Jy  sigma=0.001856
! 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.732 mas, bmaj=23.7 mas, bpa=-1.972 degrees
! Estimated noise=1399.85 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.732 x 23.7 at -1.972 degrees (North through East)
! Clean map  min=-0.009825  max=0.8314 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.230688Jy  sigma=0.001856
! Fit after  self-cal, rms=0.221586Jy  sigma=0.001542
! Inverting map and beam 
! Estimated beam: bmin=3.735 mas, bmaj=23.74 mas, bpa=-1.973 degrees
! Estimated noise=1399.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00153207 Jy
! Component: 100  -  total flux cleaned = -0.00172114 Jy
! Component: 150  -  total flux cleaned = -0.001763 Jy
! Component: 200  -  total flux cleaned = -0.00180197 Jy
! Total flux subtracted in 200 components = -0.00180197 Jy
! Clean residual min=-0.008526 max=0.010456 Jy/beam
! Clean residual mean=0.000402 rms=0.002864 Jy/beam
! Combined flux in latest and established models = 0.891358 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 64 components and 0.891358 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221546Jy  sigma=0.001542
! Fit after  self-cal, rms=0.221544Jy  sigma=0.001542
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.90418e-05 Jy
! Component: 100  -  total flux cleaned = -0.000127153 Jy
! Component: 150  -  total flux cleaned = -0.000163725 Jy
! Component: 200  -  total flux cleaned = -0.000198091 Jy
! Total flux subtracted in 200 components = -0.000198091 Jy
! Clean residual min=-0.008496 max=0.010414 Jy/beam
! Clean residual mean=0.000403 rms=0.002864 Jy/beam
! Combined flux in latest and established models = 0.89116 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 66 components and 0.89116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221525Jy  sigma=0.001542
! Fit after  self-cal, rms=0.221524Jy  sigma=0.001542
! 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.221524Jy  sigma=0.001542
! Fit after  self-cal, rms=0.221746Jy  sigma=0.001542
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.827 mas, bmaj=19.06 mas, bpa=-0.7168 degrees
! Estimated noise=2187.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.627961 Jy
! Component: 100  -  total flux cleaned = 0.766906 Jy
! Component: 150  -  total flux cleaned = 0.819616 Jy
! Component: 200  -  total flux cleaned = 0.848036 Jy
! Total flux subtracted in 200 components = 0.848036 Jy
! Clean residual min=-0.013444 max=0.013679 Jy/beam
! Clean residual mean=0.000659 rms=0.003951 Jy/beam
! Combined flux in latest and established models = 0.848036 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 0.848036 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.738 mas, bmaj=23.74 mas, bpa=-1.961 degrees
! Estimated noise=1399.05 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.0226788 Jy
! Component: 100  -  total flux cleaned = 0.0318904 Jy
! Component: 150  -  total flux cleaned = 0.0359978 Jy
! Component: 200  -  total flux cleaned = 0.0378462 Jy
! Total flux subtracted in 200 components = 0.0378462 Jy
! Clean residual min=-0.008527 max=0.009474 Jy/beam
! Clean residual mean=0.000403 rms=0.002953 Jy/beam
! Combined flux in latest and established models = 0.885882 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 45 components and 0.885882 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=9.352 mas, bmaj=30.52 mas, bpa=-4.86 degrees
! Estimated noise=1625.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00173883 Jy
! Component: 100  -  total flux cleaned = 0.00184711 Jy
! Component: 150  -  total flux cleaned = 0.00189487 Jy
! Component: 200  -  total flux cleaned = 0.0019404 Jy
! Total flux subtracted in 200 components = 0.0019404 Jy
! Clean residual min=-0.008228 max=0.012748 Jy/beam
! Clean residual mean=0.000636 rms=0.004001 Jy/beam
! Combined flux in latest and established models = 0.887822 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.1339e-05 Jy
! Component: 100  -  total flux cleaned = 0.000118766 Jy
! Component: 150  -  total flux cleaned = 0.000188481 Jy
! Component: 200  -  total flux cleaned = 0.000220929 Jy
! Total flux subtracted in 200 components = 0.000220929 Jy
! Clean residual min=-0.008263 max=0.012668 Jy/beam
! Clean residual mean=0.000633 rms=0.003967 Jy/beam
! Combined flux in latest and established models = 0.888043 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 50 components and 0.888043 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.738 mas, bmaj=23.74 mas, bpa=-1.961 degrees
! Estimated noise=1399.05 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00100789 Jy
! Component: 100  -  total flux cleaned = -0.000935866 Jy
! Component: 150  -  total flux cleaned = -0.000884558 Jy
! Component: 200  -  total flux cleaned = -0.000882126 Jy
! Total flux subtracted in 200 components = -0.000882126 Jy
! Clean residual min=-0.008468 max=0.009681 Jy/beam
! Clean residual mean=0.000396 rms=0.002901 Jy/beam
! Combined flux in latest and established models = 0.887161 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 63 components and 0.887161 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221614Jy  sigma=0.001542
! Fit after  self-cal, rms=0.221580Jy  sigma=0.001542
wmodel J1957-3845_S_2000_12_04_pus_map.mod
! Writing 63 model components to file: J1957-3845_S_2000_12_04_pus_map.mod
wobs J1957-3845_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1957-3845_S_2000_12_04_pus_uvs.fits
wwins J1957-3845_S_2000_12_04_pus_map.win
! wwins: Wrote 1 windows to J1957-3845_S_2000_12_04_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.00197084 Jy
! Component: 100  -  total flux cleaned = 0.00254978 Jy
! Component: 150  -  total flux cleaned = 0.00267184 Jy
! Component: 200  -  total flux cleaned = 0.00301112 Jy
! Component: 250  -  total flux cleaned = 0.00332539 Jy
! Component: 300  -  total flux cleaned = 0.003512 Jy
! Component: 350  -  total flux cleaned = 0.00351152 Jy
! Component: 400  -  total flux cleaned = 0.00350996 Jy
! Component: 450  -  total flux cleaned = 0.00373925 Jy
! Component: 500  -  total flux cleaned = 0.00396037 Jy
! Component: 550  -  total flux cleaned = 0.00395898 Jy
! Component: 600  -  total flux cleaned = 0.00436653 Jy
! Component: 650  -  total flux cleaned = 0.00456317 Jy
! Component: 700  -  total flux cleaned = 0.00482043 Jy
! Component: 750  -  total flux cleaned = 0.00500824 Jy
! Component: 800  -  total flux cleaned = 0.00500933 Jy
! Component: 850  -  total flux cleaned = 0.00506958 Jy
! Component: 900  -  total flux cleaned = 0.00518695 Jy
! Component: 950  -  total flux cleaned = 0.0052441 Jy
! Component: 1000  -  total flux cleaned = 0.00518884 Jy
! Component: 1050  -  total flux cleaned = 0.00529808 Jy
! Component: 1100  -  total flux cleaned = 0.00540583 Jy
! Component: 1150  -  total flux cleaned = 0.00551195 Jy
! Component: 1200  -  total flux cleaned = 0.00566799 Jy
! Component: 1250  -  total flux cleaned = 0.00582065 Jy
! Component: 1300  -  total flux cleaned = 0.00592019 Jy
! Component: 1350  -  total flux cleaned = 0.00606764 Jy
! Component: 1400  -  total flux cleaned = 0.00606774 Jy
! Component: 1450  -  total flux cleaned = 0.00616422 Jy
! Component: 1500  -  total flux cleaned = 0.00616475 Jy
! Component: 1550  -  total flux cleaned = 0.00621191 Jy
! Component: 1600  -  total flux cleaned = 0.00616551 Jy
! Component: 1650  -  total flux cleaned = 0.00625682 Jy
! Component: 1700  -  total flux cleaned = 0.0062566 Jy
! Component: 1750  -  total flux cleaned = 0.00630088 Jy
! Component: 1800  -  total flux cleaned = 0.00630087 Jy
! Component: 1850  -  total flux cleaned = 0.00634433 Jy
! Component: 1900  -  total flux cleaned = 0.00634447 Jy
! Component: 1950  -  total flux cleaned = 0.00625944 Jy
! Component: 2000  -  total flux cleaned = 0.00630221 Jy
! Total flux subtracted in 2048 components = 0.00630236 Jy
! Clean residual min=-0.002324 max=0.002163 Jy/beam
! Clean residual mean=0.000155 rms=0.000904 Jy/beam
! Combined flux in latest and established models = 0.893463 Jy
keep
! Adding 170 model components to the UV plane model.
! The established model now contains 233 components and 0.893464 Jy
![Exited script file: muppet]
wmap "J1957-3845_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.738 x 23.74 at -1.961 degrees (North through East)
! Clean map  min=-0.007232  max=0.83029 Jy/beam
! Writing clean map to FITS file: J1957-3845_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.830293 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000875587 
device "J1957-3845_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1957-3845_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.316365 0.316365 0.632731 1.26546 2.53092 5.06185 10.1237 20.2474 40.4948 80.9896
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.83 
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.738 x 23.74 at -1.961 degrees (North through East)
! Clean map  min=-0.007232  max=0.83029 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1957-3845_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1957-3845_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1957-3845_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 17:20:52 2007