! Started logfile: J1625-2527_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:43:18 2008
obs J1625-2527_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1625-2527_S_1999_05_10_pus_uva.fits
! AN table 1: 25 integrations on 153 of 153 possible baselines.
! AN table 2: 33 integrations on 153 of 153 possible baselines.
! AN table 3: 68 integrations on 153 of 153 possible baselines.
! AN table 4: 122 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.088736 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1625-2527
! 
! 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 13468 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 J1625-2527_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 417 telescope corrections were flagged in sub-array 1.
!  A total of 564 telescope corrections were flagged in sub-array 2.
!  A total of 597 telescope corrections were flagged in sub-array 3.
!  A total of 2011 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 417 telescope corrections were flagged in sub-array 1.
!  A total of 564 telescope corrections were flagged in sub-array 2.
!  A total of 597 telescope corrections were flagged in sub-array 3.
!  A total of 2011 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 417 telescope corrections were flagged in sub-array 1.
!  A total of 564 telescope corrections were flagged in sub-array 2.
!  A total of 596 telescope corrections were flagged in sub-array 3.
!  A total of 2011 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 417 telescope corrections were flagged in sub-array 1.
!  A total of 594 telescope corrections were flagged in sub-array 2.
!  A total of 596 telescope corrections were flagged in sub-array 3.
!  A total of 2163 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.791875Jy  sigma=0.009090
! Fit after  self-cal, rms=1.607313Jy  sigma=0.007382
! 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.146 mas, bmaj=4.911 mas, bpa=-3.39 degrees
! Estimated noise=1581.37 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 = 1.02037 Jy
! Component: 100  -  total flux cleaned = 1.30322 Jy
! Total flux subtracted in 100 components = 1.30322 Jy
! Clean residual min=-0.046179 max=0.135168 Jy/beam
! Clean residual mean=-0.001116 rms=0.018994 Jy/beam
! Combined flux in latest and established models = 1.30322 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 1.30322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.515649Jy  sigma=0.006448
! Fit after  self-cal, rms=1.515678Jy  sigma=0.006448
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.159919 Jy
! Component: 100  -  total flux cleaned = 0.259775 Jy
! Total flux subtracted in 100 components = 0.259775 Jy
! Clean residual min=-0.043961 max=0.078203 Jy/beam
! Clean residual mean=-0.001139 rms=0.014142 Jy/beam
! Combined flux in latest and established models = 1.563 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 26 components and 1.563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.466614Jy  sigma=0.006020
! Fit after  self-cal, rms=1.466669Jy  sigma=0.006020
! 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.917 mas, bmaj=7.273 mas, bpa=-5.6 degrees
! Estimated noise=857.451 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.151972 Jy
! Component: 100  -  total flux cleaned = 0.222681 Jy
! Component: 150  -  total flux cleaned = 0.258159 Jy
! Component: 200  -  total flux cleaned = 0.276164 Jy
! Total flux subtracted in 200 components = 0.276164 Jy
! Clean residual min=-0.092084 max=0.072438 Jy/beam
! Clean residual mean=-0.004955 rms=0.026125 Jy/beam
! Combined flux in latest and established models = 1.83916 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 56 components and 1.83916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.438778Jy  sigma=0.005929
! Fit after  self-cal, rms=1.438848Jy  sigma=0.005929
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 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 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.03     GC        1.00*    HH        1.00*    
!   HN        1.10     KK        1.22     KP        1.02     LA        1.02     
!   MC        1.00*    MK        0.94     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.08     PT        1.05     SC        1.00     
!   WF        1.09     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.98     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.01     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.12     OV        1.00*    PT        1.00*    SC        1.09     
!   WF        1.00*    WZ        1.19     
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 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 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.07     GC        1.00*    HH        1.00*    
!   HN        1.13     KK        1.27     KP        0.76     LA        1.00     
!   MC        1.00*    MK        1.06     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.06     PT        1.03     SC        1.00     
!   WF        1.08     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.99     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.99     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.16     OV        1.00*    PT        1.00*    SC        1.16     
!   WF        1.00*    WZ        1.15     
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 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 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.15     KK        1.18     KP        0.90     LA        1.02     
!   MC        1.00*    MK        0.93     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.98     SC        0.98     
!   WF        1.07     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.77     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.68     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.69     
!   WF        1.00*    WZ        1.24     
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 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*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.02     GC        1.00*    HH        1.00*    
!   HN        1.12     KK        1.23     KP        0.73     LA        1.02     
!   MC        1.00*    MK        1.00     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.03     SC        0.98     
!   WF        1.07     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Fit before self-cal, rms=1.438848Jy  sigma=0.005929
! Fit after  self-cal, rms=1.168327Jy  sigma=0.005861
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.92 mas, bmaj=7.989 mas, bpa=-5.613 degrees
! Estimated noise=901.377 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.0565438 Jy
! Component: 100  -  total flux cleaned = 0.0768369 Jy
! Component: 150  -  total flux cleaned = 0.0852249 Jy
! Component: 200  -  total flux cleaned = 0.0876077 Jy
! Total flux subtracted in 200 components = 0.0876077 Jy
! Clean residual min=-0.064942 max=0.054458 Jy/beam
! Clean residual mean=-0.000914 rms=0.019175 Jy/beam
! Combined flux in latest and established models = 1.92677 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 68 components and 1.92677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.161256Jy  sigma=0.005882
! Fit after  self-cal, rms=1.161809Jy  sigma=0.005882
! 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=1.161809Jy  sigma=0.005882
! Fit after  self-cal, rms=1.114026Jy  sigma=0.005708
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.909 mas, bmaj=7.966 mas, bpa=-5.413 degrees
! Estimated noise=935.871 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.054465 Jy
! Component: 100  -  total flux cleaned = 0.0751044 Jy
! Component: 150  -  total flux cleaned = 0.0857106 Jy
! Component: 200  -  total flux cleaned = 0.0912472 Jy
! Total flux subtracted in 200 components = 0.0912472 Jy
! Clean residual min=-0.053079 max=0.035459 Jy/beam
! Clean residual mean=-0.000718 rms=0.015460 Jy/beam
! Combined flux in latest and established models = 2.01801 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 73 components and 2.01801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.107711Jy  sigma=0.005726
! Fit after  self-cal, rms=1.107607Jy  sigma=0.005725
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.00222374 Jy
! Component: 100  -  total flux cleaned = 0.00254698 Jy
! Component: 150  -  total flux cleaned = 0.00281863 Jy
! Component: 200  -  total flux cleaned = 0.00290647 Jy
! Total flux subtracted in 200 components = 0.00290647 Jy
! Clean residual min=-0.053069 max=0.034771 Jy/beam
! Clean residual mean=-0.000732 rms=0.015434 Jy/beam
! Combined flux in latest and established models = 2.02092 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 75 components and 2.02092 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.107497Jy  sigma=0.005726
! Fit after  self-cal, rms=1.107503Jy  sigma=0.005726
! 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=1.107503Jy  sigma=0.005726
! Fit after  self-cal, rms=1.237292Jy  sigma=0.005716
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.891 mas, bmaj=7.903 mas, bpa=-5.319 degrees
! Estimated noise=983.156 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0733786 Jy
! Component: 100  -  total flux cleaned = 0.101221 Jy
! Component: 150  -  total flux cleaned = 0.115328 Jy
! Component: 200  -  total flux cleaned = 0.12273 Jy
! Total flux subtracted in 200 components = 0.12273 Jy
! Clean residual min=-0.065006 max=0.037834 Jy/beam
! Clean residual mean=-0.001282 rms=0.018122 Jy/beam
! Combined flux in latest and established models = 2.14365 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 81 components and 2.14365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.227894Jy  sigma=0.005728
! Fit after  self-cal, rms=1.227965Jy  sigma=0.005728
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.00402811 Jy
! Component: 100  -  total flux cleaned = 0.0046232 Jy
! Component: 150  -  total flux cleaned = 0.00514718 Jy
! Component: 200  -  total flux cleaned = 0.00553185 Jy
! Total flux subtracted in 200 components = 0.00553185 Jy
! Clean residual min=-0.065017 max=0.037377 Jy/beam
! Clean residual mean=-0.001307 rms=0.018081 Jy/beam
! Combined flux in latest and established models = 2.14918 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 83 components and 2.14918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.227761Jy  sigma=0.005729
! Fit after  self-cal, rms=1.227770Jy  sigma=0.005729
! 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=1.227770Jy  sigma=0.005729
! Fit after  self-cal, rms=1.301907Jy  sigma=0.005711
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.292 mas, bmaj=17.74 mas, bpa=0.1544 degrees
! Estimated noise=1351.05 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.110553 Jy
! Component: 100  -  total flux cleaned = 0.142624 Jy
! Component: 150  -  total flux cleaned = 0.152139 Jy
! Component: 200  -  total flux cleaned = 0.152521 Jy
! Total flux subtracted in 200 components = 0.152521 Jy
! Clean residual min=-0.097265 max=0.055841 Jy/beam
! Clean residual mean=-0.003751 rms=0.035142 Jy/beam
! Combined flux in latest and established models = 2.3017 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 88 components and 2.3017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.292600Jy  sigma=0.005742
! Fit after  self-cal, rms=1.292547Jy  sigma=0.005741
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.00164356 Jy
! Component: 100  -  total flux cleaned = 0.00140693 Jy
! Component: 150  -  total flux cleaned = 0.00139104 Jy
! Component: 200  -  total flux cleaned = 0.00119734 Jy
! Total flux subtracted in 200 components = 0.00119734 Jy
! Clean residual min=-0.097377 max=0.055995 Jy/beam
! Clean residual mean=-0.003767 rms=0.035111 Jy/beam
! Combined flux in latest and established models = 2.3029 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 89 components and 2.3029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.292807Jy  sigma=0.005744
! Fit after  self-cal, rms=1.292831Jy  sigma=0.005744
! 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.878 mas, bmaj=7.86 mas, bpa=-5.206 degrees
! Estimated noise=1033.66 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.878 x 7.86 at -5.206 degrees (North through East)
! Clean map  min=-0.060943  max=1.7588 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=1.292831Jy  sigma=0.005744
! Fit after  self-cal, rms=1.417643Jy  sigma=0.001278
! Inverting map and beam 
! Estimated beam: bmin=2.879 mas, bmaj=7.842 mas, bpa=-3.969 degrees
! Estimated noise=1032.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00668152 Jy
! Component: 100  -  total flux cleaned = -0.00788967 Jy
! Component: 150  -  total flux cleaned = -0.00893778 Jy
! Component: 200  -  total flux cleaned = -0.0100991 Jy
! Total flux subtracted in 200 components = -0.0100991 Jy
! Clean residual min=-0.016659 max=0.013502 Jy/beam
! Clean residual mean=0.000202 rms=0.003431 Jy/beam
! Combined flux in latest and established models = 2.2928 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 92 components and 2.2928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.417516Jy  sigma=0.001273
! Fit after  self-cal, rms=1.417432Jy  sigma=0.001273
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00109452 Jy
! Component: 100  -  total flux cleaned = -0.00202991 Jy
! Component: 150  -  total flux cleaned = -0.00284553 Jy
! Component: 200  -  total flux cleaned = -0.00357696 Jy
! Total flux subtracted in 200 components = -0.00357696 Jy
! Clean residual min=-0.015473 max=0.013765 Jy/beam
! Clean residual mean=0.000217 rms=0.003395 Jy/beam
! Combined flux in latest and established models = 2.28922 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 93 components and 2.28922 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.417373Jy  sigma=0.001272
! Fit after  self-cal, rms=1.417367Jy  sigma=0.001272
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.417367Jy  sigma=0.001272
! Fit after  self-cal, rms=1.415712Jy  sigma=0.001270
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.127 mas, bmaj=5.291 mas, bpa=-2.222 degrees
! Estimated noise=1969.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.25756 Jy
! Component: 100  -  total flux cleaned = 1.64029 Jy
! Component: 150  -  total flux cleaned = 1.85223 Jy
! Component: 200  -  total flux cleaned = 1.98927 Jy
! Total flux subtracted in 200 components = 1.98927 Jy
! Clean residual min=-0.026857 max=0.076336 Jy/beam
! Clean residual mean=-0.000232 rms=0.010065 Jy/beam
! Combined flux in latest and established models = 1.98927 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 40 model components to the UV plane model.
! The established model now contains 40 components and 1.98927 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.89 mas, bmaj=7.871 mas, bpa=-3.909 degrees
! Estimated noise=1034.62 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)
! Added new window around map position (-0.5, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.143539 Jy
! Component: 100  -  total flux cleaned = 0.211832 Jy
! Component: 150  -  total flux cleaned = 0.247639 Jy
! Component: 200  -  total flux cleaned = 0.267974 Jy
! Total flux subtracted in 200 components = 0.267974 Jy
! Clean residual min=-0.015318 max=0.014732 Jy/beam
! Clean residual mean=0.000478 rms=0.003447 Jy/beam
! Combined flux in latest and established models = 2.25725 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 88 components and 2.25725 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.379 mas, bmaj=17.66 mas, bpa=0.6055 degrees
! Estimated noise=1340.03 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0168253 Jy
! Component: 100  -  total flux cleaned = 0.023959 Jy
! Component: 150  -  total flux cleaned = 0.0260542 Jy
! Component: 200  -  total flux cleaned = 0.0267607 Jy
! Total flux subtracted in 200 components = 0.0267607 Jy
! Clean residual min=-0.010829 max=0.011830 Jy/beam
! Clean residual mean=0.000775 rms=0.003747 Jy/beam
! Combined flux in latest and established models = 2.28401 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.000251299 Jy
! Component: 100  -  total flux cleaned = 0.000607671 Jy
! Component: 150  -  total flux cleaned = 0.000830546 Jy
! Component: 200  -  total flux cleaned = 0.000936657 Jy
! Total flux subtracted in 200 components = 0.000936657 Jy
! Clean residual min=-0.010573 max=0.011499 Jy/beam
! Clean residual mean=0.000760 rms=0.003686 Jy/beam
! Combined flux in latest and established models = 2.28494 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 115 components and 2.28494 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.89 mas, bmaj=7.871 mas, bpa=-3.909 degrees
! Estimated noise=1034.62 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0035223 Jy
! Component: 100  -  total flux cleaned = -0.00440006 Jy
! Component: 150  -  total flux cleaned = -0.00491593 Jy
! Component: 200  -  total flux cleaned = -0.0051502 Jy
! Total flux subtracted in 200 components = -0.0051502 Jy
! Clean residual min=-0.012375 max=0.010104 Jy/beam
! Clean residual mean=0.000373 rms=0.002787 Jy/beam
! Combined flux in latest and established models = 2.27979 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 127 components and 2.27979 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.415303Jy  sigma=0.001263
! Fit after  self-cal, rms=1.415149Jy  sigma=0.001262
wmodel J1625-2527_S_1999_05_10_pus_map.mod
! Writing 127 model components to file: J1625-2527_S_1999_05_10_pus_map.mod
wobs J1625-2527_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1625-2527_S_1999_05_10_pus_uvs.fits
wwins J1625-2527_S_1999_05_10_pus_map.win
! wwins: Wrote 2 windows to J1625-2527_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.00298392 Jy
! Component: 100  -  total flux cleaned = -0.00444875 Jy
! Component: 150  -  total flux cleaned = -0.00599081 Jy
! Component: 200  -  total flux cleaned = -0.00759596 Jy
! Component: 250  -  total flux cleaned = -0.00896095 Jy
! Component: 300  -  total flux cleaned = -0.0101063 Jy
! Component: 350  -  total flux cleaned = -0.0109285 Jy
! Component: 400  -  total flux cleaned = -0.0111911 Jy
! Component: 450  -  total flux cleaned = -0.0114404 Jy
! Component: 500  -  total flux cleaned = -0.0110701 Jy
! Component: 550  -  total flux cleaned = -0.0104796 Jy
! Component: 600  -  total flux cleaned = -0.0100189 Jy
! Component: 650  -  total flux cleaned = -0.00945641 Jy
! Component: 700  -  total flux cleaned = -0.0087968 Jy
! Component: 750  -  total flux cleaned = -0.00815217 Jy
! Component: 800  -  total flux cleaned = -0.007416 Jy
! Component: 850  -  total flux cleaned = -0.00669328 Jy
! Component: 900  -  total flux cleaned = -0.00618554 Jy
! Component: 950  -  total flux cleaned = -0.00548756 Jy
! Component: 1000  -  total flux cleaned = -0.00470548 Jy
! Component: 1050  -  total flux cleaned = -0.00412739 Jy
! Component: 1100  -  total flux cleaned = -0.00336756 Jy
! Component: 1150  -  total flux cleaned = -0.00252781 Jy
! Component: 1200  -  total flux cleaned = -0.00206884 Jy
! Component: 1250  -  total flux cleaned = -0.00143559 Jy
! Component: 1300  -  total flux cleaned = -0.000900283 Jy
! Component: 1350  -  total flux cleaned = -0.000285269 Jy
! Component: 1400  -  total flux cleaned = 0.000148842 Jy
! Component: 1450  -  total flux cleaned = 0.000748203 Jy
! Component: 1500  -  total flux cleaned = 0.00142276 Jy
! Component: 1550  -  total flux cleaned = 0.0019221 Jy
! Component: 1600  -  total flux cleaned = 0.00233375 Jy
! Component: 1650  -  total flux cleaned = 0.00298407 Jy
! Component: 1700  -  total flux cleaned = 0.00354739 Jy
! Component: 1750  -  total flux cleaned = 0.00418274 Jy
! Component: 1800  -  total flux cleaned = 0.00473222 Jy
! Component: 1850  -  total flux cleaned = 0.00527519 Jy
! Component: 1900  -  total flux cleaned = 0.0057361 Jy
! Component: 1950  -  total flux cleaned = 0.00634401 Jy
! Component: 2000  -  total flux cleaned = 0.00701898 Jy
! Total flux subtracted in 2048 components = 0.0073905 Jy
! Clean residual min=-0.005741 max=0.004036 Jy/beam
! Clean residual mean=0.000300 rms=0.001483 Jy/beam
! Combined flux in latest and established models = 2.28718 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 268 components and 2.28719 Jy
![Exited script file: muppet]
wmap "J1625-2527_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.89 x 7.871 at -3.909 degrees (North through East)
! Clean map  min=-0.0089408  max=1.7795 Jy/beam
! Writing clean map to FITS file: J1625-2527_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 1.77948 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00148481 
device "J1625-2527_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1625-2527_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.250323 0.250323 0.500645 1.00129 2.00258 4.00516 8.01032 16.0206 32.0413 64.0826
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0044 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.779 
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.89 x 7.871 at -3.909 degrees (North through East)
! Clean map  min=-0.0089408  max=1.7795 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1625-2527_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1625-2527_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1625-2527_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:43:27 2008