! Started logfile: J1625-2527_S_1999_12_20_pus_uvs.log on Thu Dec 20 15:23:16 2007
obs J1625-2527_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1625-2527_S_1999_12_20_pus_uva.fits
! AN table 1: 84 integrations on 190 of 190 possible baselines.
! AN table 2: 85 integrations on 190 of 190 possible baselines.
! AN table 3: 142 integrations on 190 of 190 possible baselines.
! AN table 4: 2 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0516395 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 2298 lines of history.
! 
! Reading 12284 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_12_20_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 1320 telescope corrections were flagged in sub-array 1.
!  A total of 1532 telescope corrections were flagged in sub-array 2.
!  A total of 2283 telescope corrections were flagged in sub-array 3.
!  A total of 40 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1320 telescope corrections were flagged in sub-array 1.
!  A total of 1532 telescope corrections were flagged in sub-array 2.
!  A total of 2283 telescope corrections were flagged in sub-array 3.
!  A total of 40 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1320 telescope corrections were flagged in sub-array 1.
!  A total of 1670 telescope corrections were flagged in sub-array 2.
!  A total of 2283 telescope corrections were flagged in sub-array 3.
!  A total of 40 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1320 telescope corrections were flagged in sub-array 1.
!  A total of 1532 telescope corrections were flagged in sub-array 2.
!  A total of 2283 telescope corrections were flagged in sub-array 3.
!  A total of 40 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.142033Jy  sigma=0.008878
! Fit after  self-cal, rms=0.276347Jy  sigma=0.001872
! 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.348 mas, bmaj=5.793 mas, bpa=-0.9086 degrees
! Estimated noise=1791.36 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.69345 Jy
! Component: 100  -  total flux cleaned = 0.892396 Jy
! Total flux subtracted in 100 components = 0.892396 Jy
! Clean residual min=-0.032690 max=0.085276 Jy/beam
! Clean residual mean=0.000956 rms=0.012308 Jy/beam
! Combined flux in latest and established models = 0.892396 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.892396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285919Jy  sigma=0.002033
! Fit after  self-cal, rms=0.285727Jy  sigma=0.002032
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0979378 Jy
! Component: 100  -  total flux cleaned = 0.155835 Jy
! Total flux subtracted in 100 components = 0.155835 Jy
! Clean residual min=-0.020656 max=0.033116 Jy/beam
! Clean residual mean=0.000464 rms=0.006826 Jy/beam
! Combined flux in latest and established models = 1.04823 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 1.04823 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228323Jy  sigma=0.001513
! Fit after  self-cal, rms=0.228256Jy  sigma=0.001513
! 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.374 mas, bmaj=7.214 mas, bpa=1.076 degrees
! Estimated noise=914.841 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.0592895 Jy
! Component: 100  -  total flux cleaned = 0.08605 Jy
! Component: 150  -  total flux cleaned = 0.0996599 Jy
! Component: 200  -  total flux cleaned = 0.10676 Jy
! Total flux subtracted in 200 components = 0.10676 Jy
! Clean residual min=-0.017013 max=0.026614 Jy/beam
! Clean residual mean=0.001469 rms=0.006129 Jy/beam
! Combined flux in latest and established models = 1.15499 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 58 components and 1.15499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215302Jy  sigma=0.001383
! Fit after  self-cal, rms=0.215239Jy  sigma=0.001382
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.19     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00*    KP        1.01     LA        0.98     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.01     SC        1.04     TS        1.00*    
!   WF        0.96     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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.95     MK        1.00*    NY        1.00*    ON        1.04     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00     GN        1.00*    NL        1.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.92     GC        1.00*    HH        1.00*    
!   HN        0.99     KK        1.05     KP        0.92     LA        0.94     
!   MC        1.00*    MK        1.03     NY        1.00*    ON        1.00*    
!   OV        0.94     PT        0.97     SC        0.98     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.21     FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.04     KK        1.00*    KP        1.01     LA        0.96     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.99     SC        0.99     TS        1.00*    
!   WF        0.97     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.15     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.97     MK        1.00*    NY        1.00*    ON        1.16     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.02     GN        1.00*    NL        1.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.05     KK        1.02     KP        0.95     LA        0.93     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        0.94     PT        0.95     SC        0.95     TS        1.00*    
!   WF        0.96     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.21     FD        1.04     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        0.95     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.04     PT        0.96     SC        1.04     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        1.00*    NL        1.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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.05     KP        0.93     LA        0.95     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        0.94     SC        0.97     TS        1.00*    
!   WF        1.00     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.18     FD        1.03     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.01     LA        0.99     
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.89     SC        1.04     TS        1.00*    
!   WF        0.95     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.97     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.98     MK        1.00*    NY        1.00*    ON        1.04     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.12     GN        1.00*    NL        1.00*    
! 
!  A total of 228 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.04     KP        0.98     LA        0.96     
!   MC        1.00*    MK        1.05     NY        1.00*    ON        1.00*    
!   OV        0.94     PT        1.11     SC        0.98     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  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*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
! 
! Fit before self-cal, rms=0.215239Jy  sigma=0.001382
! Fit after  self-cal, rms=0.192320Jy  sigma=0.001225
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.31 mas, bmaj=9.3 mas, bpa=-2.174 degrees
! Estimated noise=935.301 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 (-13.5, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.012833 Jy
! Component: 100  -  total flux cleaned = 0.0167955 Jy
! Component: 150  -  total flux cleaned = 0.0178118 Jy
! Component: 200  -  total flux cleaned = 0.0181153 Jy
! Total flux subtracted in 200 components = 0.0181153 Jy
! Clean residual min=-0.005336 max=0.007878 Jy/beam
! Clean residual mean=0.000832 rms=0.001790 Jy/beam
! Combined flux in latest and established models = 1.17311 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 78 components and 1.17311 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191253Jy  sigma=0.001219
! Fit after  self-cal, rms=0.191456Jy  sigma=0.001218
! 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.191456Jy  sigma=0.001218
! Fit after  self-cal, rms=0.191212Jy  sigma=0.001218
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.308 mas, bmaj=9.3 mas, bpa=-2.172 degrees
! Estimated noise=934.725 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00469043 Jy
! Component: 100  -  total flux cleaned = 0.00535912 Jy
! Component: 150  -  total flux cleaned = 0.00572026 Jy
! Component: 200  -  total flux cleaned = 0.0060526 Jy
! Total flux subtracted in 200 components = 0.0060526 Jy
! Clean residual min=-0.005257 max=0.006616 Jy/beam
! Clean residual mean=0.000737 rms=0.001703 Jy/beam
! Combined flux in latest and established models = 1.17916 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 89 components and 1.17916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190940Jy  sigma=0.001216
! Fit after  self-cal, rms=0.190937Jy  sigma=0.001216
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.00100815 Jy
! Component: 100  -  total flux cleaned = 0.00130514 Jy
! Component: 150  -  total flux cleaned = 0.00148546 Jy
! Component: 200  -  total flux cleaned = 0.00165723 Jy
! Total flux subtracted in 200 components = 0.00165723 Jy
! Clean residual min=-0.005151 max=0.006364 Jy/beam
! Clean residual mean=0.000722 rms=0.001673 Jy/beam
! Combined flux in latest and established models = 1.18082 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 94 components and 1.18082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190816Jy  sigma=0.001216
! Fit after  self-cal, rms=0.190818Jy  sigma=0.001216
! 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.190818Jy  sigma=0.001216
! Fit after  self-cal, rms=0.190826Jy  sigma=0.001215
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.305 mas, bmaj=9.287 mas, bpa=-2.185 degrees
! Estimated noise=935.702 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00247117 Jy
! Component: 100  -  total flux cleaned = 0.00282501 Jy
! Component: 150  -  total flux cleaned = 0.00298624 Jy
! Component: 200  -  total flux cleaned = 0.00313758 Jy
! Total flux subtracted in 200 components = 0.00313758 Jy
! Clean residual min=-0.005154 max=0.005873 Jy/beam
! Clean residual mean=0.000689 rms=0.001642 Jy/beam
! Combined flux in latest and established models = 1.18395 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 97 components and 1.18395 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190712Jy  sigma=0.001215
! Fit after  self-cal, rms=0.190710Jy  sigma=0.001215
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.000473578 Jy
! Component: 100  -  total flux cleaned = 0.000542725 Jy
! Component: 150  -  total flux cleaned = 0.000673917 Jy
! Component: 200  -  total flux cleaned = 0.000733867 Jy
! Total flux subtracted in 200 components = 0.000733867 Jy
! Clean residual min=-0.005153 max=0.005728 Jy/beam
! Clean residual mean=0.000682 rms=0.001625 Jy/beam
! Combined flux in latest and established models = 1.18469 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 102 components and 1.18469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190646Jy  sigma=0.001215
! Fit after  self-cal, rms=0.190648Jy  sigma=0.001215
! 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.190648Jy  sigma=0.001215
! Fit after  self-cal, rms=0.190622Jy  sigma=0.001215
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.571 mas, bmaj=19.9 mas, bpa=0.3758 degrees
! Estimated noise=1148.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00293513 Jy
! Component: 100  -  total flux cleaned = 0.00336487 Jy
! Component: 150  -  total flux cleaned = 0.00347843 Jy
! Component: 200  -  total flux cleaned = 0.003432 Jy
! Total flux subtracted in 200 components = 0.003432 Jy
! Clean residual min=-0.006228 max=0.008433 Jy/beam
! Clean residual mean=0.001204 rms=0.002420 Jy/beam
! Combined flux in latest and established models = 1.18812 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 110 components and 1.18812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190562Jy  sigma=0.001214
! Fit after  self-cal, rms=0.190550Jy  sigma=0.001214
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.00036712 Jy
! Component: 100  -  total flux cleaned = 0.000326579 Jy
! Component: 150  -  total flux cleaned = 0.000327317 Jy
! Component: 200  -  total flux cleaned = 0.000288195 Jy
! Total flux subtracted in 200 components = 0.000288195 Jy
! Clean residual min=-0.006153 max=0.008376 Jy/beam
! Clean residual mean=0.001200 rms=0.002430 Jy/beam
! Combined flux in latest and established models = 1.18841 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 111 components and 1.18841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190535Jy  sigma=0.001214
! Fit after  self-cal, rms=0.190532Jy  sigma=0.001214
! 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.303 mas, bmaj=9.277 mas, bpa=-2.194 degrees
! Estimated noise=936.49 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.303 x 9.277 at -2.194 degrees (North through East)
! Clean map  min=-0.0051519  max=0.98302 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.190532Jy  sigma=0.001214
! Fit after  self-cal, rms=0.189022Jy  sigma=0.001092
! Inverting map and beam 
! Estimated beam: bmin=3.304 mas, bmaj=9.262 mas, bpa=-2.132 degrees
! Estimated noise=937.235 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000796044 Jy
! Component: 100  -  total flux cleaned = -0.000942958 Jy
! Component: 150  -  total flux cleaned = -0.00101383 Jy
! Component: 200  -  total flux cleaned = -0.00101427 Jy
! Total flux subtracted in 200 components = -0.00101427 Jy
! Clean residual min=-0.005449 max=0.005492 Jy/beam
! Clean residual mean=0.000510 rms=0.001571 Jy/beam
! Combined flux in latest and established models = 1.18739 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 117 components and 1.18739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188945Jy  sigma=0.001091
! Fit after  self-cal, rms=0.188952Jy  sigma=0.001091
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000124879 Jy
! Component: 100  -  total flux cleaned = -6.94841e-05 Jy
! Component: 150  -  total flux cleaned = -6.98818e-05 Jy
! Component: 200  -  total flux cleaned = -7.15694e-05 Jy
! Total flux subtracted in 200 components = -7.15694e-05 Jy
! Clean residual min=-0.005545 max=0.005486 Jy/beam
! Clean residual mean=0.000510 rms=0.001557 Jy/beam
! Combined flux in latest and established models = 1.18732 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 119 components and 1.18732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188908Jy  sigma=0.001091
! Fit after  self-cal, rms=0.188908Jy  sigma=0.001091
! 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.188908Jy  sigma=0.001091
! Fit after  self-cal, rms=0.191722Jy  sigma=0.001091
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.388 mas, bmaj=6.115 mas, bpa=-3.786 degrees
! Estimated noise=1864.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.714642 Jy
! Component: 100  -  total flux cleaned = 0.90946 Jy
! Component: 150  -  total flux cleaned = 1.00481 Jy
! Component: 200  -  total flux cleaned = 1.06002 Jy
! Total flux subtracted in 200 components = 1.06002 Jy
! Clean residual min=-0.014941 max=0.029449 Jy/beam
! Clean residual mean=0.000447 rms=0.004738 Jy/beam
! Combined flux in latest and established models = 1.06002 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 28 model components to the UV plane model.
! The established model now contains 28 components and 1.06002 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.304 mas, bmaj=9.256 mas, bpa=-2.121 degrees
! Estimated noise=937.407 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.0548094 Jy
! Component: 100  -  total flux cleaned = 0.0816432 Jy
! Component: 150  -  total flux cleaned = 0.0979471 Jy
! Component: 200  -  total flux cleaned = 0.108593 Jy
! Total flux subtracted in 200 components = 0.108593 Jy
! Clean residual min=-0.006370 max=0.009127 Jy/beam
! Clean residual mean=0.000669 rms=0.002146 Jy/beam
! Combined flux in latest and established models = 1.16861 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 73 components and 1.16861 Jy
! Inverting map 
! Added new window around map position (-4.5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00872811 Jy
! Component: 100  -  total flux cleaned = 0.0116169 Jy
! Component: 150  -  total flux cleaned = 0.0132414 Jy
! Component: 200  -  total flux cleaned = 0.0144734 Jy
! Total flux subtracted in 200 components = 0.0144734 Jy
! Clean residual min=-0.005344 max=0.005669 Jy/beam
! Clean residual mean=0.000538 rms=0.001669 Jy/beam
! Combined flux in latest and established models = 1.18309 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 98 components and 1.18309 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=8.567 mas, bmaj=19.87 mas, bpa=0.4273 degrees
! Estimated noise=1149.54 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0039123 Jy
! Component: 100  -  total flux cleaned = 0.00411675 Jy
! Component: 150  -  total flux cleaned = 0.00437479 Jy
! Component: 200  -  total flux cleaned = 0.00459472 Jy
! Total flux subtracted in 200 components = 0.00459472 Jy
! Clean residual min=-0.006491 max=0.007936 Jy/beam
! Clean residual mean=0.000946 rms=0.002338 Jy/beam
! Combined flux in latest and established models = 1.18768 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.000126757 Jy
! Component: 100  -  total flux cleaned = 0.000125038 Jy
! Component: 150  -  total flux cleaned = 0.000232929 Jy
! Component: 200  -  total flux cleaned = 0.000332169 Jy
! Total flux subtracted in 200 components = 0.000332169 Jy
! Clean residual min=-0.006353 max=0.007716 Jy/beam
! Clean residual mean=0.000942 rms=0.002319 Jy/beam
! Combined flux in latest and established models = 1.18801 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 113 components and 1.18801 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.304 mas, bmaj=9.256 mas, bpa=-2.121 degrees
! Estimated noise=937.407 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000858951 Jy
! Component: 100  -  total flux cleaned = -0.000852115 Jy
! Component: 150  -  total flux cleaned = -0.00084552 Jy
! Component: 200  -  total flux cleaned = -0.000768449 Jy
! Total flux subtracted in 200 components = -0.000768449 Jy
! Clean residual min=-0.004962 max=0.005164 Jy/beam
! Clean residual mean=0.000503 rms=0.001523 Jy/beam
! Combined flux in latest and established models = 1.18724 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 127 components and 1.18724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191502Jy  sigma=0.001091
! Fit after  self-cal, rms=0.191494Jy  sigma=0.001091
wmodel J1625-2527_S_1999_12_20_pus_map.mod
! Writing 127 model components to file: J1625-2527_S_1999_12_20_pus_map.mod
wobs J1625-2527_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1625-2527_S_1999_12_20_pus_uvs.fits
wwins J1625-2527_S_1999_12_20_pus_map.win
! wwins: Wrote 3 windows to J1625-2527_S_1999_12_20_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.00133932 Jy
! Component: 100  -  total flux cleaned = 0.00229456 Jy
! Component: 150  -  total flux cleaned = 0.00269733 Jy
! Component: 200  -  total flux cleaned = 0.00329887 Jy
! Component: 250  -  total flux cleaned = 0.00408681 Jy
! Component: 300  -  total flux cleaned = 0.00477162 Jy
! Component: 350  -  total flux cleaned = 0.00562703 Jy
! Component: 400  -  total flux cleaned = 0.00638562 Jy
! Component: 450  -  total flux cleaned = 0.00724057 Jy
! Component: 500  -  total flux cleaned = 0.00789117 Jy
! Component: 550  -  total flux cleaned = 0.00869385 Jy
! Component: 600  -  total flux cleaned = 0.00936137 Jy
! Component: 650  -  total flux cleaned = 0.0100662 Jy
! Component: 700  -  total flux cleaned = 0.0108569 Jy
! Component: 750  -  total flux cleaned = 0.0115241 Jy
! Component: 800  -  total flux cleaned = 0.0121754 Jy
! Component: 850  -  total flux cleaned = 0.0127127 Jy
! Component: 900  -  total flux cleaned = 0.0132388 Jy
! Component: 950  -  total flux cleaned = 0.0137549 Jy
! Component: 1000  -  total flux cleaned = 0.0141696 Jy
! Component: 1050  -  total flux cleaned = 0.0146227 Jy
! Component: 1100  -  total flux cleaned = 0.0150681 Jy
! Component: 1150  -  total flux cleaned = 0.0153754 Jy
! Component: 1200  -  total flux cleaned = 0.015765 Jy
! Component: 1250  -  total flux cleaned = 0.0161914 Jy
! Component: 1300  -  total flux cleaned = 0.0165699 Jy
! Component: 1350  -  total flux cleaned = 0.0169847 Jy
! Component: 1400  -  total flux cleaned = 0.017394 Jy
! Component: 1450  -  total flux cleaned = 0.0177167 Jy
! Component: 1500  -  total flux cleaned = 0.0180756 Jy
! Component: 1550  -  total flux cleaned = 0.0184695 Jy
! Component: 1600  -  total flux cleaned = 0.0188589 Jy
! Component: 1650  -  total flux cleaned = 0.0192052 Jy
! Component: 1700  -  total flux cleaned = 0.0195856 Jy
! Component: 1750  -  total flux cleaned = 0.0199244 Jy
! Component: 1800  -  total flux cleaned = 0.0203714 Jy
! Component: 1850  -  total flux cleaned = 0.0207396 Jy
! Component: 1900  -  total flux cleaned = 0.0211042 Jy
! Component: 1950  -  total flux cleaned = 0.0214649 Jy
! Component: 2000  -  total flux cleaned = 0.0218225 Jy
! Total flux subtracted in 2048 components = 0.0221056 Jy
! Clean residual min=-0.002520 max=0.002348 Jy/beam
! Clean residual mean=0.000248 rms=0.000733 Jy/beam
! Combined flux in latest and established models = 1.20935 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 262 components and 1.20935 Jy
![Exited script file: muppet]
wmap "J1625-2527_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.304 x 9.256 at -2.121 degrees (North through East)
! Clean map  min=-0.0050615  max=0.98639 Jy/beam
! Writing clean map to FITS file: J1625-2527_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.986393 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000708058 
device "J1625-2527_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1625-2527_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.215348 0.215348 0.430695 0.86139 1.72278 3.44556 6.89112 13.7822 27.5645 55.129
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.986 
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.304 x 9.256 at -2.121 degrees (North through East)
! Clean map  min=-0.0050615  max=0.98639 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1625-2527_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1625-2527_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1625-2527_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 15:23:34 2007