! Started logfile: J1625+4134_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:43:27 2008
obs J1625+4134_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1625+4134_S_1999_05_10_pus_uva.fits
! AN table 1: 270 integrations on 153 of 153 possible baselines.
! AN table 2: 100 integrations on 153 of 153 possible baselines.
! AN table 3: 192 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.223013 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1625+4134
! 
! 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 76704 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+4134_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 2889 telescope corrections were flagged in sub-array 1.
!  A total of 1030 telescope corrections were flagged in sub-array 2.
!  A total of 1558 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2889 telescope corrections were flagged in sub-array 1.
!  A total of 1030 telescope corrections were flagged in sub-array 2.
!  A total of 1558 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2889 telescope corrections were flagged in sub-array 1.
!  A total of 1030 telescope corrections were flagged in sub-array 2.
!  A total of 1558 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2889 telescope corrections were flagged in sub-array 1.
!  A total of 1030 telescope corrections were flagged in sub-array 2.
!  A total of 1669 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.632503Jy  sigma=0.006188
! Fit after  self-cal, rms=0.442896Jy  sigma=0.003697
! 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.55 mas, bmaj=3.292 mas, bpa=59.88 degrees
! Estimated noise=667.483 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.52736 Jy
! Component: 100  -  total flux cleaned = 0.697042 Jy
! Total flux subtracted in 100 components = 0.697042 Jy
! Clean residual min=-0.026534 max=0.084941 Jy/beam
! Clean residual mean=0.000025 rms=0.008618 Jy/beam
! Combined flux in latest and established models = 0.697043 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 0.697043 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367109Jy  sigma=0.003384
! Fit after  self-cal, rms=0.367010Jy  sigma=0.003383
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.105036 Jy
! Component: 100  -  total flux cleaned = 0.176781 Jy
! Total flux subtracted in 100 components = 0.176781 Jy
! Clean residual min=-0.016199 max=0.046660 Jy/beam
! Clean residual mean=0.000010 rms=0.005256 Jy/beam
! Combined flux in latest and established models = 0.873824 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 35 components and 0.873824 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313086Jy  sigma=0.002657
! Fit after  self-cal, rms=0.313008Jy  sigma=0.002656
! Inverting map 
! Added new window around map position (0, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0529631 Jy
! Component: 100  -  total flux cleaned = 0.0904826 Jy
! Total flux subtracted in 100 components = 0.0904826 Jy
! Clean residual min=-0.015504 max=0.033336 Jy/beam
! Clean residual mean=0.000004 rms=0.003914 Jy/beam
! Combined flux in latest and established models = 0.964306 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 44 components and 0.964306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296878Jy  sigma=0.002423
! Fit after  self-cal, rms=0.296787Jy  sigma=0.002421
! Inverting map 
! Added new window around map position (-1, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0327654 Jy
! Component: 100  -  total flux cleaned = 0.0554341 Jy
! Total flux subtracted in 100 components = 0.0554341 Jy
! Clean residual min=-0.014342 max=0.013921 Jy/beam
! Clean residual mean=0.000009 rms=0.003273 Jy/beam
! Combined flux in latest and established models = 1.01974 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 50 components and 1.01974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290526Jy  sigma=0.002331
! Fit after  self-cal, rms=0.290366Jy  sigma=0.002330
! 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.356 mas, bmaj=3.954 mas, bpa=58.27 degrees
! Estimated noise=287.3 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.0342729 Jy
! Component: 100  -  total flux cleaned = 0.0548291 Jy
! Component: 150  -  total flux cleaned = 0.0678888 Jy
! Component: 200  -  total flux cleaned = 0.0764778 Jy
! Total flux subtracted in 200 components = 0.0764778 Jy
! Clean residual min=-0.011642 max=0.016621 Jy/beam
! Clean residual mean=0.000096 rms=0.003337 Jy/beam
! Combined flux in latest and established models = 1.09622 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 72 components and 1.09622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286559Jy  sigma=0.002272
! Fit after  self-cal, rms=0.286417Jy  sigma=0.002271
! 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.01     FD        1.02     GC        1.02     HH        1.00*    
!   HN        1.00*    KK        0.97     KP        1.04     LA        0.98     
!   MC        1.00*    MK        0.97     NL        1.08     NY        0.96     
!   ON        1.00*    OV        1.01     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.97     GC        1.00     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        0.82     LA        0.99     
!   MC        1.00*    MK        0.94     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00     GC        1.05     HH        1.18     
!   HN        0.98     KK        1.06     KP        0.97     LA        0.97     
!   MC        0.98     MK        1.02     NL        0.96     NY        0.96     
!   ON        0.97     OV        1.05     PT        1.01     SC        1.02     
!   WF        0.99     WZ        0.97     
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.06     GC        1.00     HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.09     LA        0.94     
!   MC        1.00*    MK        1.03     NL        1.08     NY        0.96     
!   ON        1.00*    OV        0.97     PT        0.98     SC        1.00*    
!   WF        1.00*    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        1.01     GC        0.96     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.09     LA        0.97     
!   MC        1.00*    MK        0.99     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.98     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.63     FD        1.04     GC        1.02     HH        1.15     
!   HN        1.02     KK        1.06     KP        1.00     LA        0.95     
!   MC        1.36     MK        1.08     NL        0.98     NY        0.96     
!   ON        0.98     OV        1.00     PT        1.00     SC        1.02     
!   WF        1.01     WZ        0.96     
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.04     GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.05     LA        0.98     
!   MC        1.00*    MK        0.99     NL        1.12     NY        1.02     
!   ON        1.00*    OV        0.98     PT        0.93     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.99     HH        1.00*    
!   HN        1.00*    KK        0.97     KP        1.04     LA        1.00     
!   MC        1.00*    MK        0.94     NL        1.08     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.92     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.03     GC        1.05     HH        1.10     
!   HN        1.01     KK        1.06     KP        0.99     LA        0.98     
!   MC        1.33     MK        1.04     NL        1.01     NY        1.04     
!   ON        1.03     OV        1.02     PT        0.96     SC        1.04     
!   WF        1.01     WZ        0.92     
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.04     GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.02     LA        0.99     
!   MC        1.00*    MK        1.02     NL        1.13     NY        1.02     
!   ON        1.00*    OV        0.95     PT        0.99     SC        1.00*    
!   WF        1.00*    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.96     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.99     KP        0.99     LA        1.00     
!   MC        1.00*    MK        0.97     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.90     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.01     GC        1.05     HH        1.09     
!   HN        1.00     KK        1.06     KP        1.00     LA        0.99     
!   MC        1.55     MK        1.10     NL        1.02     NY        1.04     
!   ON        1.02     OV        0.97     PT        1.21     SC        1.05     
!   WF        1.03     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.286417Jy  sigma=0.002271
! Fit after  self-cal, rms=0.279321Jy  sigma=0.002064
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.425 mas, bmaj=3.966 mas, bpa=58.87 degrees
! Estimated noise=288.866 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 (-3.5, 12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0111189 Jy
! Component: 100  -  total flux cleaned = 0.014917 Jy
! Component: 150  -  total flux cleaned = 0.0168692 Jy
! Component: 200  -  total flux cleaned = 0.0182282 Jy
! Total flux subtracted in 200 components = 0.0182282 Jy
! Clean residual min=-0.006158 max=0.008146 Jy/beam
! Clean residual mean=0.000156 rms=0.001747 Jy/beam
! Combined flux in latest and established models = 1.11445 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 99 components and 1.11445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278510Jy  sigma=0.002057
! Fit after  self-cal, rms=0.278540Jy  sigma=0.002055
! Inverting map 
! Added new window around map position (-3.5, 23).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00917726 Jy
! Component: 100  -  total flux cleaned = 0.0131663 Jy
! Component: 150  -  total flux cleaned = 0.015738 Jy
! Component: 200  -  total flux cleaned = 0.017134 Jy
! Total flux subtracted in 200 components = 0.017134 Jy
! Clean residual min=-0.005742 max=0.006285 Jy/beam
! Clean residual mean=0.000135 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 1.13158 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 122 components and 1.13158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278210Jy  sigma=0.002050
! Fit after  self-cal, rms=0.278157Jy  sigma=0.002049
! 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.278157Jy  sigma=0.002049
! Fit after  self-cal, rms=0.268809Jy  sigma=0.002033
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.426 mas, bmaj=3.977 mas, bpa=58.76 degrees
! Estimated noise=289.28 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00527051 Jy
! Component: 100  -  total flux cleaned = 0.00795117 Jy
! Component: 150  -  total flux cleaned = 0.00986782 Jy
! Component: 200  -  total flux cleaned = 0.0110439 Jy
! Total flux subtracted in 200 components = 0.0110439 Jy
! Clean residual min=-0.004160 max=0.004216 Jy/beam
! Clean residual mean=0.000045 rms=0.001042 Jy/beam
! Combined flux in latest and established models = 1.14262 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 144 components and 1.14262 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268611Jy  sigma=0.002031
! Fit after  self-cal, rms=0.268460Jy  sigma=0.002031
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.00129334 Jy
! Component: 100  -  total flux cleaned = 0.00260591 Jy
! Component: 150  -  total flux cleaned = 0.00357162 Jy
! Component: 200  -  total flux cleaned = 0.0041838 Jy
! Total flux subtracted in 200 components = 0.0041838 Jy
! Clean residual min=-0.004106 max=0.004211 Jy/beam
! Clean residual mean=0.000038 rms=0.001006 Jy/beam
! Combined flux in latest and established models = 1.14681 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 154 components and 1.14681 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268367Jy  sigma=0.002030
! Fit after  self-cal, rms=0.268355Jy  sigma=0.002030
! Inverting map 
! Added new window around map position (-6.5, 51).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00360446 Jy
! Component: 100  -  total flux cleaned = 0.00476981 Jy
! Component: 150  -  total flux cleaned = 0.00552381 Jy
! Component: 200  -  total flux cleaned = 0.00598539 Jy
! Total flux subtracted in 200 components = 0.00598539 Jy
! Clean residual min=-0.004314 max=0.003675 Jy/beam
! Clean residual mean=0.000026 rms=0.000955 Jy/beam
! Combined flux in latest and established models = 1.15279 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 172 components and 1.15279 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268270Jy  sigma=0.002029
! Fit after  self-cal, rms=0.268261Jy  sigma=0.002029
! 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.268261Jy  sigma=0.002029
! Fit after  self-cal, rms=0.268194Jy  sigma=0.002029
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.427 mas, bmaj=3.977 mas, bpa=58.95 degrees
! Estimated noise=289.628 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00310131 Jy
! Component: 100  -  total flux cleaned = 0.00442384 Jy
! Component: 150  -  total flux cleaned = 0.00526046 Jy
! Component: 200  -  total flux cleaned = 0.00580237 Jy
! Total flux subtracted in 200 components = 0.00580237 Jy
! Clean residual min=-0.004125 max=0.003594 Jy/beam
! Clean residual mean=0.000026 rms=0.000917 Jy/beam
! Combined flux in latest and established models = 1.1586 Jy
selfcal
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 180 components and 1.1586 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268109Jy  sigma=0.002028
! Fit after  self-cal, rms=0.268099Jy  sigma=0.002028
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.000898336 Jy
! Component: 100  -  total flux cleaned = 0.00155354 Jy
! Component: 150  -  total flux cleaned = 0.00189242 Jy
! Component: 200  -  total flux cleaned = 0.00221446 Jy
! Total flux subtracted in 200 components = 0.00221446 Jy
! Clean residual min=-0.004163 max=0.003583 Jy/beam
! Clean residual mean=0.000022 rms=0.000901 Jy/beam
! Combined flux in latest and established models = 1.16081 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 185 components and 1.16081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268054Jy  sigma=0.002028
! Fit after  self-cal, rms=0.268052Jy  sigma=0.002028
! 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.268052Jy  sigma=0.002028
! Fit after  self-cal, rms=0.268330Jy  sigma=0.002028
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.974 mas, bmaj=9.517 mas, bpa=29.78 degrees
! Estimated noise=385.888 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00386086 Jy
! Component: 100  -  total flux cleaned = 0.00603622 Jy
! Component: 150  -  total flux cleaned = 0.00704811 Jy
! Component: 200  -  total flux cleaned = 0.00779594 Jy
! Total flux subtracted in 200 components = 0.00779594 Jy
! Clean residual min=-0.004850 max=0.004444 Jy/beam
! Clean residual mean=0.000035 rms=0.001303 Jy/beam
! Combined flux in latest and established models = 1.16861 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 212 components and 1.16861 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268309Jy  sigma=0.002027
! Fit after  self-cal, rms=0.268305Jy  sigma=0.002027
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.000949661 Jy
! Component: 100  -  total flux cleaned = 0.00157881 Jy
! Component: 150  -  total flux cleaned = 0.00177199 Jy
! Component: 200  -  total flux cleaned = 0.00190032 Jy
! Total flux subtracted in 200 components = 0.00190032 Jy
! Clean residual min=-0.004788 max=0.004358 Jy/beam
! Clean residual mean=0.000023 rms=0.001297 Jy/beam
! Combined flux in latest and established models = 1.17051 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 227 components and 1.17051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268298Jy  sigma=0.002027
! Fit after  self-cal, rms=0.268297Jy  sigma=0.002027
! 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.428 mas, bmaj=3.978 mas, bpa=59.04 degrees
! Estimated noise=290.057 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.428 x 3.978 at 59.04 degrees (North through East)
! Clean map  min=-0.0038655  max=0.75193 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.268297Jy  sigma=0.002027
! Fit after  self-cal, rms=0.285429Jy  sigma=0.001392
! Inverting map and beam 
! Estimated beam: bmin=3.429 mas, bmaj=3.978 mas, bpa=59.14 degrees
! Estimated noise=289.935 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.16373e-05 Jy
! Component: 100  -  total flux cleaned = 8.10681e-05 Jy
! Component: 150  -  total flux cleaned = 0.000154987 Jy
! Component: 200  -  total flux cleaned = 0.000222821 Jy
! Total flux subtracted in 200 components = 0.000222821 Jy
! Clean residual min=-0.003811 max=0.003267 Jy/beam
! Clean residual mean=0.000039 rms=0.000808 Jy/beam
! Combined flux in latest and established models = 1.17073 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 237 components and 1.17073 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285378Jy  sigma=0.001392
! Fit after  self-cal, rms=0.285379Jy  sigma=0.001392
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000108796 Jy
! Component: 100  -  total flux cleaned = 0.000232299 Jy
! Component: 150  -  total flux cleaned = 0.000344471 Jy
! Component: 200  -  total flux cleaned = 0.000396982 Jy
! Total flux subtracted in 200 components = 0.000396982 Jy
! Clean residual min=-0.003822 max=0.003190 Jy/beam
! Clean residual mean=0.000038 rms=0.000797 Jy/beam
! Combined flux in latest and established models = 1.17113 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 247 components and 1.17113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285352Jy  sigma=0.001391
! Fit after  self-cal, rms=0.285352Jy  sigma=0.001391
! 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.285352Jy  sigma=0.001391
! Fit after  self-cal, rms=0.284676Jy  sigma=0.001391
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.616 mas, bmaj=3.309 mas, bpa=60.32 degrees
! Estimated noise=685.789 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.540565 Jy
! Component: 100  -  total flux cleaned = 0.712746 Jy
! Component: 150  -  total flux cleaned = 0.814867 Jy
! Component: 200  -  total flux cleaned = 0.884932 Jy
! Total flux subtracted in 200 components = 0.884932 Jy
! Clean residual min=-0.013071 max=0.038971 Jy/beam
! Clean residual mean=0.000015 rms=0.004444 Jy/beam
! Combined flux in latest and established models = 0.884932 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 32 model components to the UV plane model.
! The established model now contains 32 components and 0.884932 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.431 mas, bmaj=3.977 mas, bpa=59.31 degrees
! Estimated noise=289.969 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.0841715 Jy
! Component: 100  -  total flux cleaned = 0.133473 Jy
! Component: 150  -  total flux cleaned = 0.165258 Jy
! Component: 200  -  total flux cleaned = 0.188212 Jy
! Total flux subtracted in 200 components = 0.188212 Jy
! Clean residual min=-0.005878 max=0.013967 Jy/beam
! Clean residual mean=0.000220 rms=0.002591 Jy/beam
! Combined flux in latest and established models = 1.07314 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 89 components and 1.07314 Jy
! Inverting map 
! Added new window around map position (-3.5, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0178104 Jy
! Component: 100  -  total flux cleaned = 0.0318518 Jy
! Component: 150  -  total flux cleaned = 0.043116 Jy
! Component: 200  -  total flux cleaned = 0.0522605 Jy
! Total flux subtracted in 200 components = 0.0522605 Jy
! Clean residual min=-0.003684 max=0.006342 Jy/beam
! Clean residual mean=0.000126 rms=0.001382 Jy/beam
! Combined flux in latest and established models = 1.1254 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 117 components and 1.1254 Jy
! Inverting map 
! Added new window around map position (3.5, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00763253 Jy
! Component: 100  -  total flux cleaned = 0.0139422 Jy
! Component: 150  -  total flux cleaned = 0.019295 Jy
! Component: 200  -  total flux cleaned = 0.0238654 Jy
! Total flux subtracted in 200 components = 0.0238654 Jy
! Clean residual min=-0.003405 max=0.003589 Jy/beam
! Clean residual mean=0.000081 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 1.14927 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 149 components and 1.14927 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.981 mas, bmaj=9.506 mas, bpa=29.88 degrees
! Estimated noise=385.545 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00711389 Jy
! Component: 100  -  total flux cleaned = 0.011927 Jy
! Component: 150  -  total flux cleaned = 0.0154894 Jy
! Component: 200  -  total flux cleaned = 0.0182292 Jy
! Total flux subtracted in 200 components = 0.0182292 Jy
! Clean residual min=-0.004144 max=0.004379 Jy/beam
! Clean residual mean=0.000118 rms=0.001256 Jy/beam
! Combined flux in latest and established models = 1.1675 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.00214528 Jy
! Component: 100  -  total flux cleaned = 0.00367282 Jy
! Component: 150  -  total flux cleaned = 0.00426561 Jy
! Component: 200  -  total flux cleaned = 0.00458664 Jy
! Total flux subtracted in 200 components = 0.00458664 Jy
! Clean residual min=-0.004089 max=0.003881 Jy/beam
! Clean residual mean=0.000095 rms=0.001185 Jy/beam
! Combined flux in latest and established models = 1.17209 Jy
! Adding 118 model components to the UV plane model.
! The established model now contains 256 components and 1.17209 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.431 mas, bmaj=3.977 mas, bpa=59.31 degrees
! Estimated noise=289.969 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00130519 Jy
! Component: 100  -  total flux cleaned = -0.0011943 Jy
! Component: 150  -  total flux cleaned = -0.000894303 Jy
! Component: 200  -  total flux cleaned = -0.000706863 Jy
! Total flux subtracted in 200 components = -0.000706863 Jy
! Clean residual min=-0.003343 max=0.003300 Jy/beam
! Clean residual mean=0.000036 rms=0.000804 Jy/beam
! Combined flux in latest and established models = 1.17138 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 265 components and 1.17138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284698Jy  sigma=0.001392
! Fit after  self-cal, rms=0.284703Jy  sigma=0.001392
wmodel J1625+4134_S_1999_05_10_pus_map.mod
! Writing 265 model components to file: J1625+4134_S_1999_05_10_pus_map.mod
wobs J1625+4134_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1625+4134_S_1999_05_10_pus_uvs.fits
wwins J1625+4134_S_1999_05_10_pus_map.win
! wwins: Wrote 8 windows to J1625+4134_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.000466059 Jy
! Component: 100  -  total flux cleaned = 0.00147424 Jy
! Component: 150  -  total flux cleaned = 0.0022677 Jy
! Component: 200  -  total flux cleaned = 0.00302682 Jy
! Component: 250  -  total flux cleaned = 0.00389917 Jy
! Component: 300  -  total flux cleaned = 0.00478738 Jy
! Component: 350  -  total flux cleaned = 0.00560331 Jy
! Component: 400  -  total flux cleaned = 0.00630929 Jy
! Component: 450  -  total flux cleaned = 0.00695545 Jy
! Component: 500  -  total flux cleaned = 0.00750367 Jy
! Component: 550  -  total flux cleaned = 0.00795933 Jy
! Component: 600  -  total flux cleaned = 0.00852773 Jy
! Component: 650  -  total flux cleaned = 0.00888635 Jy
! Component: 700  -  total flux cleaned = 0.00923972 Jy
! Component: 750  -  total flux cleaned = 0.00966427 Jy
! Component: 800  -  total flux cleaned = 0.0099302 Jy
! Component: 850  -  total flux cleaned = 0.010305 Jy
! Component: 900  -  total flux cleaned = 0.0106008 Jy
! Component: 950  -  total flux cleaned = 0.010929 Jy
! Component: 1000  -  total flux cleaned = 0.0110729 Jy
! Component: 1050  -  total flux cleaned = 0.0113225 Jy
! Component: 1100  -  total flux cleaned = 0.0116389 Jy
! Component: 1150  -  total flux cleaned = 0.0118817 Jy
! Component: 1200  -  total flux cleaned = 0.0120533 Jy
! Component: 1250  -  total flux cleaned = 0.0122578 Jy
! Component: 1300  -  total flux cleaned = 0.0126274 Jy
! Component: 1350  -  total flux cleaned = 0.012727 Jy
! Component: 1400  -  total flux cleaned = 0.0129901 Jy
! Component: 1450  -  total flux cleaned = 0.013218 Jy
! Component: 1500  -  total flux cleaned = 0.0133794 Jy
! Component: 1550  -  total flux cleaned = 0.0136347 Jy
! Component: 1600  -  total flux cleaned = 0.013761 Jy
! Component: 1650  -  total flux cleaned = 0.0139488 Jy
! Component: 1700  -  total flux cleaned = 0.0140416 Jy
! Component: 1750  -  total flux cleaned = 0.0141647 Jy
! Component: 1800  -  total flux cleaned = 0.0143169 Jy
! Component: 1850  -  total flux cleaned = 0.0144378 Jy
! Component: 1900  -  total flux cleaned = 0.0144379 Jy
! Component: 1950  -  total flux cleaned = 0.0146158 Jy
! Component: 2000  -  total flux cleaned = 0.0146745 Jy
! Total flux subtracted in 2048 components = 0.0147625 Jy
! Clean residual min=-0.001471 max=0.001557 Jy/beam
! Clean residual mean=-0.000014 rms=0.000565 Jy/beam
! Combined flux in latest and established models = 1.18614 Jy
keep
! Adding 157 model components to the UV plane model.
! The established model now contains 420 components and 1.18614 Jy
![Exited script file: muppet]
wmap "J1625+4134_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.431 x 3.977 at 59.31 degrees (North through East)
! Clean map  min=-0.0025365  max=0.75054 Jy/beam
! Writing clean map to FITS file: J1625+4134_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.750545 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000567787 
device "J1625+4134_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1625+4134_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.22695 0.22695 0.4539 0.9078 1.8156 3.6312 7.2624 14.5248 29.0496 58.0992
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.75 
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.431 x 3.977 at 59.31 degrees (North through East)
! Clean map  min=-0.0025365  max=0.75054 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1625+4134_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1625+4134_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1625+4134_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:44:02 2008