! Started logfile: J1727+4530_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:44:27 2008
obs J1727+4530_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1727+4530_S_1999_05_10_pus_uva.fits
! AN table 1: 183 integrations on 153 of 153 possible baselines.
! AN table 2: 25 integrations on 153 of 153 possible baselines.
! AN table 3: 39 integrations on 153 of 153 possible baselines.
! AN table 4: 86 integrations on 153 of 153 possible baselines.
! AN table 5: 47 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.292122 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1727+4530
! 
! 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 67936 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 J1727+4530_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 1225 telescope corrections were flagged in sub-array 1.
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  A total of 354 telescope corrections were flagged in sub-array 3.
!  A total of 1416 telescope corrections were flagged in sub-array 4.
!  A total of 497 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1225 telescope corrections were flagged in sub-array 1.
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  A total of 354 telescope corrections were flagged in sub-array 3.
!  A total of 1416 telescope corrections were flagged in sub-array 4.
!  A total of 496 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1225 telescope corrections were flagged in sub-array 1.
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  A total of 354 telescope corrections were flagged in sub-array 3.
!  A total of 1416 telescope corrections were flagged in sub-array 4.
!  A total of 496 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1396 telescope corrections were flagged in sub-array 1.
!  A total of 243 telescope corrections were flagged in sub-array 2.
!  A total of 354 telescope corrections were flagged in sub-array 3.
!  A total of 1456 telescope corrections were flagged in sub-array 4.
!  A total of 496 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.727132Jy  sigma=0.005256
! Fit after  self-cal, rms=0.537491Jy  sigma=0.004145
! 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.251 mas, bmaj=2.798 mas, bpa=-18.6 degrees
! Estimated noise=866.148 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.453543 Jy
! Component: 100  -  total flux cleaned = 0.581931 Jy
! Total flux subtracted in 100 components = 0.581931 Jy
! Clean residual min=-0.015634 max=0.056612 Jy/beam
! Clean residual mean=0.000076 rms=0.004660 Jy/beam
! Combined flux in latest and established models = 0.581931 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.581931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379472Jy  sigma=0.002143
! Fit after  self-cal, rms=0.379328Jy  sigma=0.002142
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0648815 Jy
! Component: 100  -  total flux cleaned = 0.100973 Jy
! Total flux subtracted in 100 components = 0.100973 Jy
! Clean residual min=-0.013260 max=0.019061 Jy/beam
! Clean residual mean=0.000038 rms=0.003527 Jy/beam
! Combined flux in latest and established models = 0.682905 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 14 components and 0.682905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363970Jy  sigma=0.001813
! Fit after  self-cal, rms=0.363805Jy  sigma=0.001812
! Inverting map 
! Added new window around map position (-2.5, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0247942 Jy
! Component: 100  -  total flux cleaned = 0.0401403 Jy
! Total flux subtracted in 100 components = 0.0401403 Jy
! Clean residual min=-0.012718 max=0.014583 Jy/beam
! Clean residual mean=0.000022 rms=0.003302 Jy/beam
! Combined flux in latest and established models = 0.723045 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 20 components and 0.723045 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.361108Jy  sigma=0.001746
! Fit after  self-cal, rms=0.361094Jy  sigma=0.001745
! 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.648 mas, bmaj=3.709 mas, bpa=-26.75 degrees
! Estimated noise=295.795 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.0235329 Jy
! Component: 100  -  total flux cleaned = 0.0358519 Jy
! Component: 150  -  total flux cleaned = 0.0419889 Jy
! Component: 200  -  total flux cleaned = 0.0439642 Jy
! Total flux subtracted in 200 components = 0.0439642 Jy
! Clean residual min=-0.010026 max=0.012444 Jy/beam
! Clean residual mean=0.000132 rms=0.002447 Jy/beam
! Combined flux in latest and established models = 0.767009 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 33 components and 0.767009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359847Jy  sigma=0.001709
! Fit after  self-cal, rms=0.359805Jy  sigma=0.001709
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     GC        1.00     HH        1.00*    
!   HN        0.98     KK        0.99     KP        0.94     LA        0.97     
!   MC        0.93     MK        0.92     NL        1.00     NY        0.83     
!   ON        0.98     OV        1.01     PT        1.00     SC        1.03     
!   WF        0.98     WZ        0.95     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        1.00     HH        1.00*    
!   HN        0.98     KK        1.15     KP        1.01     LA        0.98     
!   MC        1.00*    MK        0.99     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.03     SC        1.02     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        1.06     HH        1.00*    
!   HN        1.00     KK        0.91     KP        0.63     LA        0.99     
!   MC        1.00*    MK        1.00*    NL        0.99     NY        0.89     
!   ON        1.02     OV        1.02     PT        0.99     SC        1.09     
!   WF        0.92     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        0.95     HH        1.00*    
!   HN        1.08     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.01     MK        1.00*    NL        1.00*    NY        0.94     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.06     WZ        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GC        1.06     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.23     LA        1.05     
!   MC        1.51     MK        0.90     NL        1.02     NY        0.78     
!   ON        0.24     OV        1.05     PT        1.04     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.01     GC        0.98     HH        1.00*    
!   HN        0.98     KK        0.99     KP        0.98     LA        0.95     
!   MC        0.97     MK        1.01     NL        1.01     NY        0.94     
!   ON        0.93     OV        0.98     PT        0.98     SC        1.05     
!   WF        0.97     WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        2.97     FD        1.02     GC        1.02     HH        1.00*    
!   HN        0.89     KK        1.15     KP        1.00     LA        0.95     
!   MC        1.00*    MK        1.30     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.97     SC        1.03     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.03     GC        1.00     HH        1.00*    
!   HN        0.99     KK        0.92     KP        0.97     LA        0.96     
!   MC        1.00*    MK        1.00*    NL        1.00     NY        0.94     
!   ON        1.09     OV        1.00     PT        0.98     SC        1.10     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        0.93     HH        1.00*    
!   HN        1.09     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.01     MK        1.00*    NL        1.00*    NY        0.91     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.06     WZ        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.97     KP        1.13     LA        0.99     
!   MC        1.06     MK        1.07     NL        1.01     NY        1.06     
!   ON        0.82     OV        1.02     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.02     KP        0.98     LA        0.99     
!   MC        2.31     MK        0.97     NL        1.04     NY        0.94     
!   ON        0.95     OV        0.98     PT        0.95     SC        1.06     
!   WF        0.97     WZ        0.87     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        0.99     HH        1.00*    
!   HN        0.87     KK        1.16     KP        1.01     LA        0.98     
!   MC        1.00*    MK        1.24     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.93     SC        1.04     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.01     GC        1.02     HH        1.00*    
!   HN        1.01     KK        0.91     KP        1.58     LA        0.99     
!   MC        1.00*    MK        1.00*    NL        1.02     NY        0.97     
!   ON        1.07     OV        1.00     PT        0.97     SC        1.13     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.06     HH        1.00*    
!   HN        1.16     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.96     MK        1.00*    NL        1.00*    NY        0.90     
!   ON        1.04     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.05     WZ        0.88     
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.00*    GC        0.99     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.07     LA        1.02     
!   MC        0.63     MK        1.02     NL        1.07     NY        0.95     
!   ON        1.16     OV        1.03     PT        1.05     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.98     GC        0.99     HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.00     LA        0.99     
!   MC        1.35     MK        1.00     NL        1.04     NY        0.90     
!   ON        0.89     OV        0.95     PT        1.05     SC        1.07     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        1.02     HH        1.00*    
!   HN        0.94     KK        1.11     KP        1.03     LA        0.98     
!   MC        1.00*    MK        1.28     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.95     SC        1.07     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.01     KK        0.89     KP        1.47     LA        1.00     
!   MC        1.00*    MK        1.00*    NL        1.04     NY        0.98     
!   ON        1.03     OV        0.96     PT        1.00     SC        1.20     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.06     HH        1.00*    
!   HN        1.09     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00     MK        1.00*    NL        1.00*    NY        0.95     
!   ON        1.05     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.10     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.00*    GC        1.02     HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.10     LA        1.01     
!   MC        0.77     MK        1.04     NL        1.07     NY        1.12     
!   ON        1.61     OV        0.99     PT        1.05     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.359805Jy  sigma=0.001709
! Fit after  self-cal, rms=0.304792Jy  sigma=0.001552
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.689 mas, bmaj=3.734 mas, bpa=-25.4 degrees
! Estimated noise=297.406 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 (-9.5, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00152955 Jy
! Component: 100  -  total flux cleaned = 0.00136797 Jy
! Component: 150  -  total flux cleaned = 0.0014781 Jy
! Component: 200  -  total flux cleaned = 0.00167465 Jy
! Total flux subtracted in 200 components = 0.00167465 Jy
! Clean residual min=-0.003722 max=0.003570 Jy/beam
! Clean residual mean=0.000067 rms=0.000829 Jy/beam
! Combined flux in latest and established models = 0.768684 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 54 components and 0.768684 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304675Jy  sigma=0.001550
! Fit after  self-cal, rms=0.305708Jy  sigma=0.001546
! 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.305708Jy  sigma=0.001546
! Fit after  self-cal, rms=0.304752Jy  sigma=0.001545
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.695 mas, bmaj=3.732 mas, bpa=-24.98 degrees
! Estimated noise=297.408 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -2.17388e-05 Jy
! Component: 100  -  total flux cleaned = 0.000412443 Jy
! Component: 150  -  total flux cleaned = 0.000685359 Jy
! Component: 200  -  total flux cleaned = 0.000771014 Jy
! Total flux subtracted in 200 components = 0.000771014 Jy
! Clean residual min=-0.003289 max=0.003434 Jy/beam
! Clean residual mean=0.000065 rms=0.000771 Jy/beam
! Combined flux in latest and established models = 0.769455 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 60 components and 0.769455 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304691Jy  sigma=0.001543
! Fit after  self-cal, rms=0.305065Jy  sigma=0.001543
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-22.5, -5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00354756 Jy
! Component: 100  -  total flux cleaned = 0.00536955 Jy
! Component: 150  -  total flux cleaned = 0.00638637 Jy
! Component: 200  -  total flux cleaned = 0.00680669 Jy
! Total flux subtracted in 200 components = 0.00680669 Jy
! Clean residual min=-0.003035 max=0.002939 Jy/beam
! Clean residual mean=0.000028 rms=0.000704 Jy/beam
! Combined flux in latest and established models = 0.776262 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 76 components and 0.776262 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305009Jy  sigma=0.001542
! Fit after  self-cal, rms=0.304987Jy  sigma=0.001541
! 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.304987Jy  sigma=0.001541
! Fit after  self-cal, rms=0.305609Jy  sigma=0.001541
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.701 mas, bmaj=3.733 mas, bpa=-24.62 degrees
! Estimated noise=297.545 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000555029 Jy
! Component: 100  -  total flux cleaned = 0.000111498 Jy
! Component: 150  -  total flux cleaned = 0.000921132 Jy
! Component: 200  -  total flux cleaned = 0.00144953 Jy
! Total flux subtracted in 200 components = 0.00144953 Jy
! Clean residual min=-0.002781 max=0.002745 Jy/beam
! Clean residual mean=0.000022 rms=0.000663 Jy/beam
! Combined flux in latest and established models = 0.777712 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 84 components and 0.777711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305571Jy  sigma=0.001540
! Fit after  self-cal, rms=0.305828Jy  sigma=0.001540
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.000383489 Jy
! Component: 100  -  total flux cleaned = 0.000739604 Jy
! Component: 150  -  total flux cleaned = 0.000963087 Jy
! Component: 200  -  total flux cleaned = 0.00112011 Jy
! Total flux subtracted in 200 components = 0.00112011 Jy
! Clean residual min=-0.002516 max=0.002618 Jy/beam
! Clean residual mean=0.000016 rms=0.000647 Jy/beam
! Combined flux in latest and established models = 0.778832 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 90 components and 0.778831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305805Jy  sigma=0.001540
! Fit after  self-cal, rms=0.305806Jy  sigma=0.001540
! 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.305806Jy  sigma=0.001540
! Fit after  self-cal, rms=0.306914Jy  sigma=0.001539
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.342 mas, bmaj=8.69 mas, bpa=9.482 degrees
! Estimated noise=418.712 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00107759 Jy
! Component: 100  -  total flux cleaned = 0.00161564 Jy
! Component: 150  -  total flux cleaned = 0.00197165 Jy
! Component: 200  -  total flux cleaned = 0.00208789 Jy
! Total flux subtracted in 200 components = 0.00208789 Jy
! Clean residual min=-0.002585 max=0.002695 Jy/beam
! Clean residual mean=0.000018 rms=0.000923 Jy/beam
! Combined flux in latest and established models = 0.780919 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 104 components and 0.780919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306923Jy  sigma=0.001539
! Fit after  self-cal, rms=0.307058Jy  sigma=0.001539
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 = 9.30677e-05 Jy
! Component: 100  -  total flux cleaned = 0.000176556 Jy
! Component: 150  -  total flux cleaned = 0.000222106 Jy
! Component: 200  -  total flux cleaned = 0.000242063 Jy
! Total flux subtracted in 200 components = 0.000242063 Jy
! Clean residual min=-0.002636 max=0.002697 Jy/beam
! Clean residual mean=0.000014 rms=0.000923 Jy/beam
! Combined flux in latest and established models = 0.781161 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 117 components and 0.781161 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307063Jy  sigma=0.001539
! Fit after  self-cal, rms=0.307062Jy  sigma=0.001539
! 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.706 mas, bmaj=3.735 mas, bpa=-24.34 degrees
! Estimated noise=297.777 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.706 x 3.735 at -24.34 degrees (North through East)
! Clean map  min=-0.0023386  max=0.62084 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.307062Jy  sigma=0.001539
! Fit after  self-cal, rms=0.595856Jy  sigma=0.001407
! Inverting map and beam 
! Estimated beam: bmin=2.704 mas, bmaj=3.736 mas, bpa=-24.44 degrees
! Estimated noise=297.412 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00140701 Jy
! Component: 100  -  total flux cleaned = -0.00173163 Jy
! Component: 150  -  total flux cleaned = -0.00185078 Jy
! Component: 200  -  total flux cleaned = -0.00190576 Jy
! Total flux subtracted in 200 components = -0.00190576 Jy
! Clean residual min=-0.002550 max=0.002238 Jy/beam
! Clean residual mean=0.000018 rms=0.000578 Jy/beam
! Combined flux in latest and established models = 0.779256 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 123 components and 0.779256 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.595847Jy  sigma=0.001406
! Fit after  self-cal, rms=0.595858Jy  sigma=0.001406
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.45982e-05 Jy
! Component: 100  -  total flux cleaned = -3.33154e-05 Jy
! Component: 150  -  total flux cleaned = -3.35796e-05 Jy
! Component: 200  -  total flux cleaned = -3.33394e-05 Jy
! Total flux subtracted in 200 components = -3.33394e-05 Jy
! Clean residual min=-0.002400 max=0.002278 Jy/beam
! Clean residual mean=0.000018 rms=0.000572 Jy/beam
! Combined flux in latest and established models = 0.779222 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 131 components and 0.779223 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.595852Jy  sigma=0.001406
! Fit after  self-cal, rms=0.595857Jy  sigma=0.001406
! 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.595857Jy  sigma=0.001406
! Fit after  self-cal, rms=0.740730Jy  sigma=0.001406
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.241 mas, bmaj=2.801 mas, bpa=-12.78 degrees
! Estimated noise=869.392 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.456385 Jy
! Component: 100  -  total flux cleaned = 0.594522 Jy
! Component: 150  -  total flux cleaned = 0.65956 Jy
! Component: 200  -  total flux cleaned = 0.692381 Jy
! Total flux subtracted in 200 components = 0.692381 Jy
! Clean residual min=-0.007893 max=0.016244 Jy/beam
! Clean residual mean=0.000044 rms=0.002063 Jy/beam
! Combined flux in latest and established models = 0.692381 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.692381 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.708 mas, bmaj=3.738 mas, bpa=-24.2 degrees
! Estimated noise=297.55 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.0288395 Jy
! Component: 100  -  total flux cleaned = 0.0442549 Jy
! Component: 150  -  total flux cleaned = 0.0540312 Jy
! Component: 200  -  total flux cleaned = 0.060577 Jy
! Total flux subtracted in 200 components = 0.060577 Jy
! Clean residual min=-0.003184 max=0.003664 Jy/beam
! Clean residual mean=0.000154 rms=0.000858 Jy/beam
! Combined flux in latest and established models = 0.752958 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 45 components and 0.752958 Jy
! Inverting map 
! Added new window around map position (10, -46).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0048431 Jy
! Component: 100  -  total flux cleaned = 0.00872739 Jy
! Component: 150  -  total flux cleaned = 0.0119434 Jy
! Component: 200  -  total flux cleaned = 0.0146527 Jy
! Total flux subtracted in 200 components = 0.0146527 Jy
! Clean residual min=-0.002707 max=0.002501 Jy/beam
! Clean residual mean=0.000076 rms=0.000628 Jy/beam
! Combined flux in latest and established models = 0.767611 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 66 components and 0.767611 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.344 mas, bmaj=8.699 mas, bpa=9.268 degrees
! Estimated noise=417.385 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00417949 Jy
! Component: 100  -  total flux cleaned = 0.00689211 Jy
! Component: 150  -  total flux cleaned = 0.00876078 Jy
! Component: 200  -  total flux cleaned = 0.0100708 Jy
! Total flux subtracted in 200 components = 0.0100708 Jy
! Clean residual min=-0.002087 max=0.002370 Jy/beam
! Clean residual mean=0.000073 rms=0.000778 Jy/beam
! Combined flux in latest and established models = 0.777681 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.000661119 Jy
! Component: 100  -  total flux cleaned = 0.000914135 Jy
! Component: 150  -  total flux cleaned = 0.00110663 Jy
! Component: 200  -  total flux cleaned = 0.00125214 Jy
! Total flux subtracted in 200 components = 0.00125214 Jy
! Clean residual min=-0.002099 max=0.002371 Jy/beam
! Clean residual mean=0.000052 rms=0.000759 Jy/beam
! Combined flux in latest and established models = 0.778934 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 121 components and 0.778934 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.708 mas, bmaj=3.738 mas, bpa=-24.2 degrees
! Estimated noise=297.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00131031 Jy
! Component: 100  -  total flux cleaned = -0.00119045 Jy
! Component: 150  -  total flux cleaned = -0.0010212 Jy
! Component: 200  -  total flux cleaned = -0.000967804 Jy
! Total flux subtracted in 200 components = -0.000967804 Jy
! Clean residual min=-0.002478 max=0.002058 Jy/beam
! Clean residual mean=0.000023 rms=0.000551 Jy/beam
! Combined flux in latest and established models = 0.777966 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 141 components and 0.777966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.740700Jy  sigma=0.001405
! Fit after  self-cal, rms=0.740795Jy  sigma=0.001405
wmodel J1727+4530_S_1999_05_10_pus_map.mod
! Writing 141 model components to file: J1727+4530_S_1999_05_10_pus_map.mod
wobs J1727+4530_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1727+4530_S_1999_05_10_pus_uvs.fits
wwins J1727+4530_S_1999_05_10_pus_map.win
! wwins: Wrote 5 windows to J1727+4530_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.000621405 Jy
! Component: 100  -  total flux cleaned = -0.000735896 Jy
! Component: 150  -  total flux cleaned = -0.000843372 Jy
! Component: 200  -  total flux cleaned = -0.000741499 Jy
! Component: 250  -  total flux cleaned = -0.000740657 Jy
! Component: 300  -  total flux cleaned = -0.000739954 Jy
! Component: 350  -  total flux cleaned = -0.000771244 Jy
! Component: 400  -  total flux cleaned = -0.000679424 Jy
! Component: 450  -  total flux cleaned = -0.000710415 Jy
! Component: 500  -  total flux cleaned = -0.000650856 Jy
! Component: 550  -  total flux cleaned = -0.000533837 Jy
! Component: 600  -  total flux cleaned = -0.000475863 Jy
! Component: 650  -  total flux cleaned = -0.000390275 Jy
! Component: 700  -  total flux cleaned = -0.000249795 Jy
! Component: 750  -  total flux cleaned = -0.000222021 Jy
! Component: 800  -  total flux cleaned = -0.000167433 Jy
! Component: 850  -  total flux cleaned = -8.694e-05 Jy
! Component: 900  -  total flux cleaned = -8.70781e-05 Jy
! Component: 950  -  total flux cleaned = -6.0559e-05 Jy
! Component: 1000  -  total flux cleaned = -8.07731e-06 Jy
! Component: 1050  -  total flux cleaned = 9.57249e-05 Jy
! Component: 1100  -  total flux cleaned = 0.000172751 Jy
! Component: 1150  -  total flux cleaned = 0.000223877 Jy
! Component: 1200  -  total flux cleaned = 0.000324991 Jy
! Component: 1250  -  total flux cleaned = 0.000400128 Jy
! Component: 1300  -  total flux cleaned = 0.000425029 Jy
! Component: 1350  -  total flux cleaned = 0.000523683 Jy
! Component: 1400  -  total flux cleaned = 0.000548293 Jy
! Component: 1450  -  total flux cleaned = 0.000645511 Jy
! Component: 1500  -  total flux cleaned = 0.000693849 Jy
! Component: 1550  -  total flux cleaned = 0.000765861 Jy
! Component: 1600  -  total flux cleaned = 0.00081328 Jy
! Component: 1650  -  total flux cleaned = 0.000884206 Jy
! Component: 1700  -  total flux cleaned = 0.000907668 Jy
! Component: 1750  -  total flux cleaned = 0.000930923 Jy
! Component: 1800  -  total flux cleaned = 0.00100056 Jy
! Component: 1850  -  total flux cleaned = 0.00104649 Jy
! Component: 1900  -  total flux cleaned = 0.00102357 Jy
! Component: 1950  -  total flux cleaned = 0.00106911 Jy
! Component: 2000  -  total flux cleaned = 0.00109195 Jy
! Total flux subtracted in 2048 components = 0.00120426 Jy
! Clean residual min=-0.001544 max=0.001183 Jy/beam
! Clean residual mean=0.000017 rms=0.000424 Jy/beam
! Combined flux in latest and established models = 0.77917 Jy
keep
! Adding 155 model components to the UV plane model.
! The established model now contains 296 components and 0.77917 Jy
![Exited script file: muppet]
wmap "J1727+4530_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.708 x 3.738 at -24.2 degrees (North through East)
! Clean map  min=-0.0020129  max=0.62058 Jy/beam
! Writing clean map to FITS file: J1727+4530_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 0.620582 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000423021 
device "J1727+4530_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1727+4530_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.204496 0.204496 0.408991 0.817982 1.63596 3.27193 6.54386 13.0877 26.1754 52.3509
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.62 
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.708 x 3.738 at -24.2 degrees (North through East)
! Clean map  min=-0.0020129  max=0.62058 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1727+4530_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1727+4530_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1727+4530_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:44:49 2008