! Started logfile: J1517-2422_S_2001_04_09_pus_uvs.log on Fri Oct  5 17:48:50 2007
obs J1517-2422_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1517-2422_S_2001_04_09_pus_uva.fits
! AN table 1: 33 integrations on 190 of 190 possible baselines.
! AN table 2: 6 integrations on 190 of 190 possible baselines.
! AN table 3: 56 integrations on 190 of 190 possible baselines.
! AN table 4: 33 integrations on 190 of 190 possible baselines.
! AN table 5: 12 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0593985 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1517-2422
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1953 lines of history.
! 
! Reading 6320 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 J1517-2422_S_2001_04_09_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 501 telescope corrections were flagged in sub-array 1.
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  A total of 1032 telescope corrections were flagged in sub-array 3.
!  A total of 483 telescope corrections were flagged in sub-array 4.
!  A total of 151 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 531 telescope corrections were flagged in sub-array 1.
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  A total of 1054 telescope corrections were flagged in sub-array 3.
!  A total of 483 telescope corrections were flagged in sub-array 4.
!  A total of 151 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 501 telescope corrections were flagged in sub-array 1.
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  A total of 1067 telescope corrections were flagged in sub-array 3.
!  A total of 483 telescope corrections were flagged in sub-array 4.
!  A total of 151 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 501 telescope corrections were flagged in sub-array 1.
!  A total of 120 telescope corrections were flagged in sub-array 2.
!  A total of 1064 telescope corrections were flagged in sub-array 3.
!  A total of 483 telescope corrections were flagged in sub-array 4.
!  A total of 151 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.841132Jy  sigma=0.007342
! Fit after  self-cal, rms=0.434625Jy  sigma=0.003584
! 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.235 mas, bmaj=6.353 mas, bpa=4.677 degrees
! Estimated noise=1618.38 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.76922 Jy
! Component: 100  -  total flux cleaned = 1.02506 Jy
! Total flux subtracted in 100 components = 1.02506 Jy
! Clean residual min=-0.066177 max=0.182207 Jy/beam
! Clean residual mean=0.001323 rms=0.020222 Jy/beam
! Combined flux in latest and established models = 1.02506 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 1.02506 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366255Jy  sigma=0.003095
! Fit after  self-cal, rms=0.365518Jy  sigma=0.003091
! Inverting map 
! Added new window around map position (3.5, -8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.173224 Jy
! Component: 100  -  total flux cleaned = 0.279123 Jy
! Total flux subtracted in 100 components = 0.279123 Jy
! Clean residual min=-0.053018 max=0.100632 Jy/beam
! Clean residual mean=0.000588 rms=0.013374 Jy/beam
! Combined flux in latest and established models = 1.30418 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 35 components and 1.30418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268141Jy  sigma=0.002197
! Fit after  self-cal, rms=0.262104Jy  sigma=0.002161
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0818725 Jy
! Component: 100  -  total flux cleaned = 0.135002 Jy
! Total flux subtracted in 100 components = 0.135002 Jy
! Clean residual min=-0.048327 max=0.061732 Jy/beam
! Clean residual mean=0.000240 rms=0.010411 Jy/beam
! Combined flux in latest and established models = 1.43918 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 55 components and 1.43918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240075Jy  sigma=0.001949
! Fit after  self-cal, rms=0.237341Jy  sigma=0.001931
! 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.484 mas, bmaj=7.682 mas, bpa=4.357 degrees
! Estimated noise=1101.79 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.0375852 Jy
! Component: 100  -  total flux cleaned = 0.0459566 Jy
! Component: 150  -  total flux cleaned = 0.0510318 Jy
! Component: 200  -  total flux cleaned = 0.0551465 Jy
! Total flux subtracted in 200 components = 0.0551465 Jy
! Clean residual min=-0.052861 max=0.050170 Jy/beam
! Clean residual mean=-0.003111 rms=0.012864 Jy/beam
! Combined flux in latest and established models = 1.49433 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 75 components and 1.49433 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231680Jy  sigma=0.001872
! Fit after  self-cal, rms=0.230167Jy  sigma=0.001862
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.25     FD        1.19     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.01     
!   LA        1.08     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00*    NY        1.00*    OV        1.21     PT        1.07     
!   SC        1.00*    TS        0.93     WF        1.00*    WZ        1.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 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.44     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.74     MC        0.92     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.85     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        0.91     
!   LA        0.91     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00     NY        1.00*    OV        1.01     PT        0.91     
!   SC        1.05     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.94     
!   LA        0.90     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.94     NY        1.00*    OV        1.00     PT        0.89     
!   SC        0.96     TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.23     FD        1.18     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.08     
!   LA        1.08     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.00*    NY        1.00*    OV        1.15     PT        1.11     
!   SC        1.00*    TS        0.96     WF        1.00*    WZ        1.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 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.05     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.27     MC        1.22     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.77     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.07     KP        0.92     
!   LA        0.92     MA        1.00*    MC        1.00*    MK        1.07     
!   NL        1.00     NY        1.00*    OV        1.02     PT        0.95     
!   SC        1.08     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        1.00     
!   LA        0.92     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.96     NY        1.00*    OV        0.98     PT        0.92     
!   SC        0.95     TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.27     FD        1.17     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.96     KP        1.09     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.00*    OV        1.12     PT        1.09     
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        1.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 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.24     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.14     MC        0.75     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        0.98     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        0.97     
!   LA        0.91     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00     NY        1.00*    OV        0.99     PT        0.94     
!   SC        1.04     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.07     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00*    KP        0.94     
!   LA        0.91     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.95     NY        1.00*    OV        0.96     PT        0.93     
!   SC        0.92     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.20     FD        1.16     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.13     
!   LA        1.11     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        1.00*    OV        1.11     PT        1.17     
!   SC        1.00*    TS        0.91     WF        1.00*    WZ        1.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 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.48     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.01     MC        0.66     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.77     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        0.94     
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        0.99     NY        1.00*    OV        0.98     PT        1.04     
!   SC        1.14     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        0.95     
!   LA        0.92     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        0.95     NY        1.00*    OV        0.99     PT        0.94     
!   SC        0.93     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.230167Jy  sigma=0.001862
! Fit after  self-cal, rms=0.183451Jy  sigma=0.001410
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.518 mas, bmaj=8.779 mas, bpa=3.038 degrees
! Estimated noise=1132.4 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 (11, -20).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0373556 Jy
! Component: 100  -  total flux cleaned = 0.0541643 Jy
! Component: 150  -  total flux cleaned = 0.0583785 Jy
! Component: 200  -  total flux cleaned = 0.061825 Jy
! Total flux subtracted in 200 components = 0.061825 Jy
! Clean residual min=-0.011478 max=0.016549 Jy/beam
! Clean residual mean=0.000603 rms=0.003818 Jy/beam
! Combined flux in latest and established models = 1.55616 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 110 components and 1.55616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174798Jy  sigma=0.001331
! Fit after  self-cal, rms=0.174942Jy  sigma=0.001322
! 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.174942Jy  sigma=0.001322
! Fit after  self-cal, rms=0.170725Jy  sigma=0.001315
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.518 mas, bmaj=8.677 mas, bpa=3.094 degrees
! Estimated noise=1126.76 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133207 Jy
! Component: 100  -  total flux cleaned = 0.0207874 Jy
! Component: 150  -  total flux cleaned = 0.0235027 Jy
! Component: 200  -  total flux cleaned = 0.0257952 Jy
! Total flux subtracted in 200 components = 0.0257952 Jy
! Clean residual min=-0.010623 max=0.012061 Jy/beam
! Clean residual mean=0.000413 rms=0.003034 Jy/beam
! Combined flux in latest and established models = 1.58195 Jy
selfcal
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 132 components and 1.58195 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168111Jy  sigma=0.001291
! Fit after  self-cal, rms=0.167705Jy  sigma=0.001288
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.00187364 Jy
! Component: 100  -  total flux cleaned = 0.00565198 Jy
! Component: 150  -  total flux cleaned = 0.00719528 Jy
! Component: 200  -  total flux cleaned = 0.00811443 Jy
! Total flux subtracted in 200 components = 0.00811443 Jy
! Clean residual min=-0.010825 max=0.009934 Jy/beam
! Clean residual mean=0.000195 rms=0.002707 Jy/beam
! Combined flux in latest and established models = 1.59007 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 146 components and 1.59007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166673Jy  sigma=0.001279
! Fit after  self-cal, rms=0.166440Jy  sigma=0.001277
! 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.166440Jy  sigma=0.001277
! Fit after  self-cal, rms=0.164759Jy  sigma=0.001274
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.518 mas, bmaj=8.651 mas, bpa=3.102 degrees
! Estimated noise=1125 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00435973 Jy
! Component: 100  -  total flux cleaned = 0.00840584 Jy
! Component: 150  -  total flux cleaned = 0.0102591 Jy
! Component: 200  -  total flux cleaned = 0.011453 Jy
! Total flux subtracted in 200 components = 0.011453 Jy
! Clean residual min=-0.009255 max=0.009394 Jy/beam
! Clean residual mean=0.000329 rms=0.002432 Jy/beam
! Combined flux in latest and established models = 1.60152 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 158 components and 1.60152 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163893Jy  sigma=0.001266
! Fit after  self-cal, rms=0.163620Jy  sigma=0.001265
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.000365934 Jy
! Component: 100  -  total flux cleaned = 0.00214957 Jy
! Component: 150  -  total flux cleaned = 0.00316782 Jy
! Component: 200  -  total flux cleaned = 0.00390777 Jy
! Total flux subtracted in 200 components = 0.00390777 Jy
! Clean residual min=-0.009097 max=0.008753 Jy/beam
! Clean residual mean=0.000225 rms=0.002290 Jy/beam
! Combined flux in latest and established models = 1.60543 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 168 components and 1.60543 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163186Jy  sigma=0.001261
! Fit after  self-cal, rms=0.163045Jy  sigma=0.001260
! 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.163045Jy  sigma=0.001260
! Fit after  self-cal, rms=0.162521Jy  sigma=0.001258
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.423 mas, bmaj=16.57 mas, bpa=5.896 degrees
! Estimated noise=1533.21 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00918694 Jy
! Component: 100  -  total flux cleaned = 0.0131054 Jy
! Component: 150  -  total flux cleaned = 0.0142947 Jy
! Component: 200  -  total flux cleaned = 0.0146601 Jy
! Total flux subtracted in 200 components = 0.0146601 Jy
! Clean residual min=-0.009817 max=0.011414 Jy/beam
! Clean residual mean=0.000215 rms=0.003261 Jy/beam
! Combined flux in latest and established models = 1.62009 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 180 components and 1.62009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162266Jy  sigma=0.001257
! Fit after  self-cal, rms=0.162215Jy  sigma=0.001256
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.00134237 Jy
! Component: 100  -  total flux cleaned = 0.00159159 Jy
! Component: 150  -  total flux cleaned = 0.00169457 Jy
! Component: 200  -  total flux cleaned = 0.00160115 Jy
! Total flux subtracted in 200 components = 0.00160115 Jy
! Clean residual min=-0.009976 max=0.011102 Jy/beam
! Clean residual mean=0.000108 rms=0.003201 Jy/beam
! Combined flux in latest and established models = 1.62169 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 186 components and 1.62169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162115Jy  sigma=0.001255
! Fit after  self-cal, rms=0.162106Jy  sigma=0.001255
! 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.519 mas, bmaj=8.65 mas, bpa=3.087 degrees
! Estimated noise=1125.09 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.519 x 8.65 at 3.087 degrees (North through East)
! Clean map  min=-0.0078254  max=0.94393 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.162106Jy  sigma=0.001255
! Fit after  self-cal, rms=0.187652Jy  sigma=0.001145
! Inverting map and beam 
! Estimated beam: bmin=2.522 mas, bmaj=8.622 mas, bpa=3.091 degrees
! Estimated noise=1126.42 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000262295 Jy
! Component: 100  -  total flux cleaned = 0.0014833 Jy
! Component: 150  -  total flux cleaned = 0.00148379 Jy
! Component: 200  -  total flux cleaned = 0.0013737 Jy
! Total flux subtracted in 200 components = 0.0013737 Jy
! Clean residual min=-0.007724 max=0.008171 Jy/beam
! Clean residual mean=0.000208 rms=0.001967 Jy/beam
! Combined flux in latest and established models = 1.62306 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 195 components and 1.62306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187390Jy  sigma=0.001142
! Fit after  self-cal, rms=0.187308Jy  sigma=0.001141
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000211012 Jy
! Component: 100  -  total flux cleaned = 2.56077e-05 Jy
! Component: 150  -  total flux cleaned = -0.000167173 Jy
! Component: 200  -  total flux cleaned = -0.000253185 Jy
! Total flux subtracted in 200 components = -0.000253185 Jy
! Clean residual min=-0.007497 max=0.007938 Jy/beam
! Clean residual mean=0.000214 rms=0.001911 Jy/beam
! Combined flux in latest and established models = 1.62281 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 205 components and 1.62281 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187140Jy  sigma=0.001140
! Fit after  self-cal, rms=0.187024Jy  sigma=0.001139
! 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.187024Jy  sigma=0.001139
! Fit after  self-cal, rms=0.171306Jy  sigma=0.001139
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.317 mas, bmaj=6.197 mas, bpa=3.79 degrees
! Estimated noise=1711.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.756683 Jy
! Component: 100  -  total flux cleaned = 1.03684 Jy
! Component: 150  -  total flux cleaned = 1.19649 Jy
! Component: 200  -  total flux cleaned = 1.29502 Jy
! Total flux subtracted in 200 components = 1.29502 Jy
! Clean residual min=-0.019510 max=0.056534 Jy/beam
! Clean residual mean=0.000862 rms=0.008793 Jy/beam
! Combined flux in latest and established models = 1.29502 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 43 model components to the UV plane model.
! The established model now contains 43 components and 1.29502 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.521 mas, bmaj=8.601 mas, bpa=3.078 degrees
! Estimated noise=1126.49 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.0836149 Jy
! Component: 100  -  total flux cleaned = 0.141218 Jy
! Component: 150  -  total flux cleaned = 0.183297 Jy
! Component: 200  -  total flux cleaned = 0.214698 Jy
! Total flux subtracted in 200 components = 0.214698 Jy
! Clean residual min=-0.010394 max=0.020052 Jy/beam
! Clean residual mean=0.003160 rms=0.003970 Jy/beam
! Combined flux in latest and established models = 1.50972 Jy
! Adding 71 model components to the UV plane model.
! The established model now contains 101 components and 1.50972 Jy
! Inverting map 
! Added new window around map position (6.5, -14).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0243281 Jy
! Component: 100  -  total flux cleaned = 0.0431557 Jy
! Component: 150  -  total flux cleaned = 0.0580605 Jy
! Component: 200  -  total flux cleaned = 0.069971 Jy
! Total flux subtracted in 200 components = 0.069971 Jy
! Clean residual min=-0.008763 max=0.012086 Jy/beam
! Clean residual mean=0.001373 rms=0.002483 Jy/beam
! Combined flux in latest and established models = 1.57969 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 159 components and 1.57969 Jy
! Inverting map 
! Added new window around map position (-3.5, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0115549 Jy
! Component: 100  -  total flux cleaned = 0.0198289 Jy
! Component: 150  -  total flux cleaned = 0.0250558 Jy
! Component: 200  -  total flux cleaned = 0.0283739 Jy
! Total flux subtracted in 200 components = 0.0283739 Jy
! Clean residual min=-0.008011 max=0.008566 Jy/beam
! Clean residual mean=0.000647 rms=0.002039 Jy/beam
! Combined flux in latest and established models = 1.60806 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 190 components and 1.60806 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.417 mas, bmaj=16.57 mas, bpa=5.847 degrees
! Estimated noise=1537.1 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0103938 Jy
! Component: 100  -  total flux cleaned = 0.0162549 Jy
! Component: 150  -  total flux cleaned = 0.0180541 Jy
! Component: 200  -  total flux cleaned = 0.0192047 Jy
! Total flux subtracted in 200 components = 0.0192047 Jy
! Clean residual min=-0.007934 max=0.010517 Jy/beam
! Clean residual mean=0.000362 rms=0.002940 Jy/beam
! Combined flux in latest and established models = 1.62727 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.000417388 Jy
! Component: 100  -  total flux cleaned = 0.00068966 Jy
! Component: 150  -  total flux cleaned = 0.000847893 Jy
! Component: 200  -  total flux cleaned = 0.00106425 Jy
! Total flux subtracted in 200 components = 0.00106425 Jy
! Clean residual min=-0.007654 max=0.010392 Jy/beam
! Clean residual mean=0.000295 rms=0.002902 Jy/beam
! Combined flux in latest and established models = 1.62833 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 219 components and 1.62833 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.521 mas, bmaj=8.601 mas, bpa=3.078 degrees
! Estimated noise=1126.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00322934 Jy
! Component: 100  -  total flux cleaned = -0.00323008 Jy
! Component: 150  -  total flux cleaned = -0.00307321 Jy
! Component: 200  -  total flux cleaned = -0.00252677 Jy
! Total flux subtracted in 200 components = -0.00252677 Jy
! Clean residual min=-0.007132 max=0.008171 Jy/beam
! Clean residual mean=0.000187 rms=0.001847 Jy/beam
! Combined flux in latest and established models = 1.6258 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 241 components and 1.6258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170616Jy  sigma=0.001137
! Fit after  self-cal, rms=0.170502Jy  sigma=0.001135
wmodel J1517-2422_S_2001_04_09_pus_map.mod
! Writing 241 model components to file: J1517-2422_S_2001_04_09_pus_map.mod
wobs J1517-2422_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1517-2422_S_2001_04_09_pus_uvs.fits
wwins J1517-2422_S_2001_04_09_pus_map.win
! wwins: Wrote 5 windows to J1517-2422_S_2001_04_09_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.00268334 Jy
! Component: 100  -  total flux cleaned = 0.00408704 Jy
! Component: 150  -  total flux cleaned = 0.00516511 Jy
! Component: 200  -  total flux cleaned = 0.00606835 Jy
! Component: 250  -  total flux cleaned = 0.00711909 Jy
! Component: 300  -  total flux cleaned = 0.0078506 Jy
! Component: 350  -  total flux cleaned = 0.00829263 Jy
! Component: 400  -  total flux cleaned = 0.00855096 Jy
! Component: 450  -  total flux cleaned = 0.00880167 Jy
! Component: 500  -  total flux cleaned = 0.00888306 Jy
! Component: 550  -  total flux cleaned = 0.00896175 Jy
! Component: 600  -  total flux cleaned = 0.00896241 Jy
! Component: 650  -  total flux cleaned = 0.00903865 Jy
! Component: 700  -  total flux cleaned = 0.00918429 Jy
! Component: 750  -  total flux cleaned = 0.00911174 Jy
! Component: 800  -  total flux cleaned = 0.00911226 Jy
! Component: 850  -  total flux cleaned = 0.00911327 Jy
! Component: 900  -  total flux cleaned = 0.00911322 Jy
! Component: 950  -  total flux cleaned = 0.00904633 Jy
! Component: 1000  -  total flux cleaned = 0.00885018 Jy
! Component: 1050  -  total flux cleaned = 0.00878713 Jy
! Component: 1100  -  total flux cleaned = 0.0087873 Jy
! Component: 1150  -  total flux cleaned = 0.00872554 Jy
! Component: 1200  -  total flux cleaned = 0.00872591 Jy
! Component: 1250  -  total flux cleaned = 0.0087869 Jy
! Component: 1300  -  total flux cleaned = 0.0086674 Jy
! Component: 1350  -  total flux cleaned = 0.00872594 Jy
! Component: 1400  -  total flux cleaned = 0.00855048 Jy
! Component: 1450  -  total flux cleaned = 0.00855026 Jy
! Component: 1500  -  total flux cleaned = 0.00843616 Jy
! Component: 1550  -  total flux cleaned = 0.00837983 Jy
! Component: 1600  -  total flux cleaned = 0.0082686 Jy
! Component: 1650  -  total flux cleaned = 0.00821383 Jy
! Component: 1700  -  total flux cleaned = 0.00810498 Jy
! Component: 1750  -  total flux cleaned = 0.00799762 Jy
! Component: 1800  -  total flux cleaned = 0.0079446 Jy
! Component: 1850  -  total flux cleaned = 0.0079447 Jy
! Component: 1900  -  total flux cleaned = 0.00778785 Jy
! Component: 1950  -  total flux cleaned = 0.00773598 Jy
! Component: 2000  -  total flux cleaned = 0.007582 Jy
! Total flux subtracted in 2048 components = 0.00748063 Jy
! Clean residual min=-0.002924 max=0.002578 Jy/beam
! Clean residual mean=-0.000042 rms=0.001068 Jy/beam
! Combined flux in latest and established models = 1.63328 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 390 components and 1.63328 Jy
![Exited script file: muppet]
wmap "J1517-2422_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.521 x 8.601 at 3.078 degrees (North through East)
! Clean map  min=-0.0055228  max=0.94497 Jy/beam
! Writing clean map to FITS file: J1517-2422_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.944971 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00106491 
device "J1517-2422_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1517-2422_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.338077 0.338077 0.676154 1.35231 2.70462 5.40923 10.8185 21.6369 43.2738 86.5477
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0031 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.944 
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.521 x 8.601 at 3.078 degrees (North through East)
! Clean map  min=-0.0055228  max=0.94497 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1517-2422_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1517-2422_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1517-2422_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 17:48:58 2007