! Started logfile: J2148+0657_S_1998_10_01_pus_uvs.log on Fri Feb  8 12:42:57 2008
obs J2148+0657_S_1998_10_01_pus_uva.fits
! Reading UV FITS file: J2148+0657_S_1998_10_01_pus_uva.fits
! AN table 1: 74 integrations on 136 of 136 possible baselines.
! AN table 2: 52 integrations on 136 of 136 possible baselines.
! AN table 3: 121 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.164355 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2148+0657
! 
! 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.22298e+09        4e+06          1        4e+06
!  02        2  2.24298e+09        4e+06          1        4e+06
!  03        3  2.33298e+09        4e+06          1        4e+06
!  04        4  2.36298e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 1537 lines of history.
! 
! Reading 22084 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 = 1024 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J2148+0657_S_1998_10_01_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 = 1024x1024 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 757 telescope corrections were flagged in sub-array 1.
!  A total of 644 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 757 telescope corrections were flagged in sub-array 1.
!  A total of 644 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 757 telescope corrections were flagged in sub-array 1.
!  A total of 644 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 757 telescope corrections were flagged in sub-array 1.
!  A total of 644 telescope corrections were flagged in sub-array 2.
!  A total of 1558 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.474401Jy  sigma=0.011973
! Fit after  self-cal, rms=1.333981Jy  sigma=0.010823
! 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.296 mas, bmaj=5.364 mas, bpa=-6.951 degrees
! Estimated noise=915.129 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.55174 Jy
! Component: 100  -  total flux cleaned = 1.99035 Jy
! Total flux subtracted in 100 components = 1.99035 Jy
! Clean residual min=-0.067441 max=0.230043 Jy/beam
! Clean residual mean=0.000629 rms=0.018057 Jy/beam
! Combined flux in latest and established models = 1.99035 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.99035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.716346Jy  sigma=0.005155
! Fit after  self-cal, rms=0.715631Jy  sigma=0.005149
! Inverting map 
! Added new window around map position (3.5, -3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.252669 Jy
! Component: 100  -  total flux cleaned = 0.40995 Jy
! Total flux subtracted in 100 components = 0.40995 Jy
! Clean residual min=-0.045838 max=0.090414 Jy/beam
! Clean residual mean=0.000401 rms=0.012045 Jy/beam
! Combined flux in latest and established models = 2.4003 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 19 components and 2.4003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.587721Jy  sigma=0.003754
! Fit after  self-cal, rms=0.582844Jy  sigma=0.003715
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.118301 Jy
! Component: 100  -  total flux cleaned = 0.199494 Jy
! Total flux subtracted in 100 components = 0.199494 Jy
! Clean residual min=-0.037554 max=0.054518 Jy/beam
! Clean residual mean=0.000290 rms=0.009841 Jy/beam
! Combined flux in latest and established models = 2.59979 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 37 components and 2.59979 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.547815Jy  sigma=0.003273
! Fit after  self-cal, rms=0.546660Jy  sigma=0.003263
! 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.749 mas, bmaj=6.339 mas, bpa=-7.027 degrees
! Estimated noise=619.835 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.0983238 Jy
! Component: 100  -  total flux cleaned = 0.159637 Jy
! Component: 150  -  total flux cleaned = 0.199951 Jy
! Component: 200  -  total flux cleaned = 0.227048 Jy
! Total flux subtracted in 200 components = 0.227048 Jy
! Clean residual min=-0.031068 max=0.059186 Jy/beam
! Clean residual mean=0.001319 rms=0.008777 Jy/beam
! Combined flux in latest and established models = 2.82684 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 68 components and 2.82684 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.529841Jy  sigma=0.003012
! Fit after  self-cal, rms=0.529041Jy  sigma=0.003005
! Inverting map 
! Added new window around map position (24.5, -70.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0552764 Jy
! Component: 100  -  total flux cleaned = 0.0881038 Jy
! Component: 150  -  total flux cleaned = 0.11384 Jy
! Component: 200  -  total flux cleaned = 0.131597 Jy
! Total flux subtracted in 200 components = 0.131597 Jy
! Clean residual min=-0.027542 max=0.043834 Jy/beam
! Clean residual mean=0.001009 rms=0.007374 Jy/beam
! Combined flux in latest and established models = 2.95844 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 100 components and 2.95844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522091Jy  sigma=0.002926
! Fit after  self-cal, rms=0.521618Jy  sigma=0.002920
! Inverting map 
! Added new window around map position (22.5, -51.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0443993 Jy
! Component: 100  -  total flux cleaned = 0.0724554 Jy
! Component: 150  -  total flux cleaned = 0.0935033 Jy
! Component: 200  -  total flux cleaned = 0.105847 Jy
! Total flux subtracted in 200 components = 0.105847 Jy
! Clean residual min=-0.025280 max=0.035452 Jy/beam
! Clean residual mean=0.000737 rms=0.006407 Jy/beam
! Combined flux in latest and established models = 3.06429 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 128 components and 3.06429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.516724Jy  sigma=0.002868
! Fit after  self-cal, rms=0.516458Jy  sigma=0.002863
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.02     HN        0.99     
!   KK        0.97     KP        1.07     LA        0.96     MK        0.95     
!   NL        1.03     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        1.01     SC        1.01     WF        0.98     MC        1.00*    
!   GN        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.08     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.98     LA        0.98     MK        1.00*    
!   NL        1.03     NY        1.00*    ON        1.00*    OV        1.00*    
!   PT        1.07     SC        1.04     WF        1.02     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00     GC        1.08     HN        0.98     
!   KK        1.11     KP        1.04     LA        0.95     MK        1.00     
!   NL        1.01     NY        0.92     ON        1.17     OV        1.05     
!   PT        1.02     SC        1.00     WF        1.00     MC        1.09     
!   GN        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        0.99     HN        1.06     
!   KK        0.96     KP        1.00     LA        1.00     MK        1.01     
!   NL        1.01     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        0.98     SC        1.03     WF        1.02     MC        1.00*    
!   GN        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.05     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.05     LA        1.04     MK        1.00*    
!   NL        1.02     NY        1.00*    ON        1.00*    OV        1.00*    
!   PT        1.04     SC        1.05     WF        1.07     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.99     GC        1.03     HN        1.04     
!   KK        1.08     KP        0.98     LA        1.00     MK        1.08     
!   NL        1.00     NY        0.97     ON        1.14     OV        1.03     
!   PT        0.99     SC        1.02     WF        1.02     MC        1.43     
!   GN        0.97     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.01     GC        1.00     HN        0.99     
!   KK        0.95     KP        0.98     LA        0.97     MK        0.92     
!   NL        1.00     NY        1.00*    ON        1.00*    OV        0.99     
!   PT        0.96     SC        1.00     WF        0.99     MC        1.00*    
!   GN        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.06     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.05     LA        1.03     MK        1.00*    
!   NL        1.02     NY        1.00*    ON        1.00*    OV        1.00*    
!   PT        1.03     SC        0.99     WF        1.04     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.01     GC        1.05     HN        0.98     
!   KK        1.03     KP        0.99     LA        0.98     MK        0.96     
!   NL        0.97     NY        1.11     ON        1.14     OV        1.03     
!   PT        0.97     SC        1.00     WF        0.99     MC        1.38     
!   GN        0.95     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        0.98     HN        0.98     
!   KK        0.93     KP        0.98     LA        0.96     MK        0.92     
!   NL        0.98     NY        1.00*    ON        1.00*    OV        0.99     
!   PT        0.93     SC        0.99     WF        0.97     MC        1.00*    
!   GN        0.93     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.03     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.04     LA        1.00     MK        1.00*    
!   NL        1.00     NY        1.00*    ON        1.00*    OV        1.00*    
!   PT        1.05     SC        0.98     WF        1.02     MC        1.00*    
!   GN        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.98     GC        1.02     HN        0.96     
!   KK        1.04     KP        0.98     LA        0.97     MK        0.97     
!   NL        0.97     NY        0.94     ON        1.09     OV        1.05     
!   PT        0.98     SC        0.98     WF        0.96     MC        2.57     
!   GN        0.94     
! 
! 
! Fit before self-cal, rms=0.516458Jy  sigma=0.002863
! Fit after  self-cal, rms=0.552919Jy  sigma=0.002504
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.816 mas, bmaj=6.345 mas, bpa=-6.654 degrees
! Estimated noise=623.506 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 (31.5, -53.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0169036 Jy
! Component: 100  -  total flux cleaned = 0.0223683 Jy
! Component: 150  -  total flux cleaned = 0.0285349 Jy
! Component: 200  -  total flux cleaned = 0.0333794 Jy
! Total flux subtracted in 200 components = 0.0333794 Jy
! Clean residual min=-0.013098 max=0.013794 Jy/beam
! Clean residual mean=0.000540 rms=0.002876 Jy/beam
! Combined flux in latest and established models = 3.09767 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 165 components and 3.09767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.551404Jy  sigma=0.002485
! Fit after  self-cal, rms=0.553293Jy  sigma=0.002483
! 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.553293Jy  sigma=0.002483
! Fit after  self-cal, rms=0.560870Jy  sigma=0.002471
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.82 mas, bmaj=6.349 mas, bpa=-6.668 degrees
! Estimated noise=623.012 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000709787 Jy
! Component: 100  -  total flux cleaned = 0.00400578 Jy
! Component: 150  -  total flux cleaned = 0.0065637 Jy
! Component: 200  -  total flux cleaned = 0.00893386 Jy
! Total flux subtracted in 200 components = 0.00893386 Jy
! Clean residual min=-0.012386 max=0.012436 Jy/beam
! Clean residual mean=0.000475 rms=0.002628 Jy/beam
! Combined flux in latest and established models = 3.1066 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 186 components and 3.1066 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.560093Jy  sigma=0.002462
! Fit after  self-cal, rms=0.560511Jy  sigma=0.002462
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 (3.5, -29.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00981706 Jy
! Component: 100  -  total flux cleaned = 0.0132192 Jy
! Component: 150  -  total flux cleaned = 0.0156736 Jy
! Component: 200  -  total flux cleaned = 0.0173313 Jy
! Total flux subtracted in 200 components = 0.0173313 Jy
! Clean residual min=-0.011510 max=0.011245 Jy/beam
! Clean residual mean=0.000425 rms=0.002436 Jy/beam
! Combined flux in latest and established models = 3.12393 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 207 components and 3.12393 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559994Jy  sigma=0.002456
! Fit after  self-cal, rms=0.560006Jy  sigma=0.002455
! 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.560006Jy  sigma=0.002455
! Fit after  self-cal, rms=0.577981Jy  sigma=0.002449
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.823 mas, bmaj=6.353 mas, bpa=-6.698 degrees
! Estimated noise=622.475 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0026477 Jy
! Component: 100  -  total flux cleaned = 0.000358499 Jy
! Component: 150  -  total flux cleaned = 0.00190651 Jy
! Component: 200  -  total flux cleaned = 0.00338485 Jy
! Total flux subtracted in 200 components = 0.00338485 Jy
! Clean residual min=-0.010485 max=0.010361 Jy/beam
! Clean residual mean=0.000423 rms=0.002274 Jy/beam
! Combined flux in latest and established models = 3.12732 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 221 components and 3.12732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.577564Jy  sigma=0.002445
! Fit after  self-cal, rms=0.578148Jy  sigma=0.002445
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.0017448 Jy
! Component: 100  -  total flux cleaned = 0.00313676 Jy
! Component: 150  -  total flux cleaned = 0.00420211 Jy
! Component: 200  -  total flux cleaned = 0.00497026 Jy
! Total flux subtracted in 200 components = 0.00497025 Jy
! Clean residual min=-0.009982 max=0.010157 Jy/beam
! Clean residual mean=0.000410 rms=0.002204 Jy/beam
! Combined flux in latest and established models = 3.13229 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 232 components and 3.13229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.577882Jy  sigma=0.002442
! Fit after  self-cal, rms=0.577892Jy  sigma=0.002442
! Inverting map 
! Added new window around map position (-11.5, 41).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101124 Jy
! Component: 100  -  total flux cleaned = 0.0166385 Jy
! Component: 150  -  total flux cleaned = 0.0198634 Jy
! Component: 200  -  total flux cleaned = 0.0215125 Jy
! Total flux subtracted in 200 components = 0.0215125 Jy
! Clean residual min=-0.009239 max=0.009145 Jy/beam
! Clean residual mean=0.000350 rms=0.002067 Jy/beam
! Combined flux in latest and established models = 3.1538 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 256 components and 3.1538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.577608Jy  sigma=0.002439
! Fit after  self-cal, rms=0.577603Jy  sigma=0.002438
! 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.577603Jy  sigma=0.002438
! Fit after  self-cal, rms=0.581121Jy  sigma=0.002438
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=6.962 mas, bmaj=9.754 mas, bpa=-5.507 degrees
! Estimated noise=826.917 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00980883 Jy
! Component: 100  -  total flux cleaned = 0.016546 Jy
! Component: 150  -  total flux cleaned = 0.0223821 Jy
! Component: 200  -  total flux cleaned = 0.0270549 Jy
! Total flux subtracted in 200 components = 0.0270549 Jy
! Clean residual min=-0.008349 max=0.009511 Jy/beam
! Clean residual mean=0.000732 rms=0.002567 Jy/beam
! Combined flux in latest and established models = 3.18085 Jy
selfcal
! Performing phase self-cal
! Adding 58 model components to the UV plane model.
! The established model now contains 307 components and 3.18085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.581058Jy  sigma=0.002436
! Fit after  self-cal, rms=0.581059Jy  sigma=0.002436
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.00358623 Jy
! Component: 100  -  total flux cleaned = 0.00704768 Jy
! Component: 150  -  total flux cleaned = 0.00876106 Jy
! Component: 200  -  total flux cleaned = 0.0103317 Jy
! Total flux subtracted in 200 components = 0.0103317 Jy
! Clean residual min=-0.008848 max=0.009289 Jy/beam
! Clean residual mean=0.000657 rms=0.002450 Jy/beam
! Combined flux in latest and established models = 3.19119 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 336 components and 3.19118 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.581054Jy  sigma=0.002436
! Fit after  self-cal, rms=0.581034Jy  sigma=0.002436
! 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.827 mas, bmaj=6.357 mas, bpa=-6.707 degrees
! Estimated noise=622.268 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.827 x 6.357 at -6.707 degrees (North through East)
! Clean map  min=-0.0074854  max=2.0749 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.581034Jy  sigma=0.002436
! Fit after  self-cal, rms=0.763937Jy  sigma=0.002268
! Inverting map and beam 
! Estimated beam: bmin=2.823 mas, bmaj=6.364 mas, bpa=-6.757 degrees
! Estimated noise=621.524 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00607327 Jy
! Component: 100  -  total flux cleaned = -0.00702217 Jy
! Component: 150  -  total flux cleaned = -0.00746136 Jy
! Component: 200  -  total flux cleaned = -0.00746114 Jy
! Total flux subtracted in 200 components = -0.00746114 Jy
! Clean residual min=-0.007526 max=0.008474 Jy/beam
! Clean residual mean=0.000229 rms=0.001867 Jy/beam
! Combined flux in latest and established models = 3.18372 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 346 components and 3.18372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.763780Jy  sigma=0.002266
! Fit after  self-cal, rms=0.763817Jy  sigma=0.002266
! Inverting map 
! Added new window around map position (33, -101.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00696235 Jy
! Component: 100  -  total flux cleaned = 0.00967563 Jy
! Component: 150  -  total flux cleaned = 0.0110371 Jy
! Component: 200  -  total flux cleaned = 0.0116042 Jy
! Total flux subtracted in 200 components = 0.0116042 Jy
! Clean residual min=-0.007454 max=0.007485 Jy/beam
! Clean residual mean=0.000205 rms=0.001795 Jy/beam
! Combined flux in latest and established models = 3.19533 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 364 components and 3.19533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.763654Jy  sigma=0.002263
! Fit after  self-cal, rms=0.763614Jy  sigma=0.002263
! 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.763614Jy  sigma=0.002263
! Fit after  self-cal, rms=0.920194Jy  sigma=0.002263
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.381 mas, bmaj=5.362 mas, bpa=-6.565 degrees
! Estimated noise=931.069 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.57525 Jy
! Component: 100  -  total flux cleaned = 2.01609 Jy
! Component: 150  -  total flux cleaned = 2.26682 Jy
! Component: 200  -  total flux cleaned = 2.4238 Jy
! Total flux subtracted in 200 components = 2.4238 Jy
! Clean residual min=-0.025681 max=0.083404 Jy/beam
! Clean residual mean=0.000385 rms=0.007596 Jy/beam
! Combined flux in latest and established models = 2.4238 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 18 model components to the UV plane model.
! The established model now contains 18 components and 2.4238 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.826 mas, bmaj=6.366 mas, bpa=-6.763 degrees
! Estimated noise=621.241 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.152238 Jy
! Component: 100  -  total flux cleaned = 0.243431 Jy
! Component: 150  -  total flux cleaned = 0.311144 Jy
! Component: 200  -  total flux cleaned = 0.365634 Jy
! Total flux subtracted in 200 components = 0.365634 Jy
! Clean residual min=-0.015988 max=0.033228 Jy/beam
! Clean residual mean=0.001338 rms=0.006994 Jy/beam
! Combined flux in latest and established models = 2.78943 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 82 components and 2.78943 Jy
! Inverting map 
! Added new window around map position (6, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0449038 Jy
! Component: 100  -  total flux cleaned = 0.082343 Jy
! Component: 150  -  total flux cleaned = 0.114189 Jy
! Component: 200  -  total flux cleaned = 0.141569 Jy
! Total flux subtracted in 200 components = 0.141569 Jy
! Clean residual min=-0.010736 max=0.016909 Jy/beam
! Clean residual mean=0.000939 rms=0.004375 Jy/beam
! Combined flux in latest and established models = 2.931 Jy
! Adding 89 model components to the UV plane model.
! The established model now contains 152 components and 2.931 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=6.964 mas, bmaj=9.765 mas, bpa=-5.579 degrees
! Estimated noise=824.586 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0505161 Jy
! Component: 100  -  total flux cleaned = 0.0852526 Jy
! Component: 150  -  total flux cleaned = 0.111456 Jy
! Component: 200  -  total flux cleaned = 0.132034 Jy
! Total flux subtracted in 200 components = 0.132034 Jy
! Clean residual min=-0.012744 max=0.014398 Jy/beam
! Clean residual mean=0.001548 rms=0.004942 Jy/beam
! Combined flux in latest and established models = 3.06303 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.0169048 Jy
! Component: 100  -  total flux cleaned = 0.0310446 Jy
! Component: 150  -  total flux cleaned = 0.0430742 Jy
! Component: 200  -  total flux cleaned = 0.0536164 Jy
! Total flux subtracted in 200 components = 0.0536164 Jy
! Clean residual min=-0.009950 max=0.010618 Jy/beam
! Clean residual mean=0.001148 rms=0.003377 Jy/beam
! Combined flux in latest and established models = 3.11665 Jy
! Adding 202 model components to the UV plane model.
! The established model now contains 335 components and 3.11665 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.826 mas, bmaj=6.366 mas, bpa=-6.763 degrees
! Estimated noise=621.241 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00885375 Jy
! Component: 100  -  total flux cleaned = 0.0148575 Jy
! Component: 150  -  total flux cleaned = 0.0183724 Jy
! Component: 200  -  total flux cleaned = 0.0216397 Jy
! Total flux subtracted in 200 components = 0.0216397 Jy
! Clean residual min=-0.007242 max=0.007986 Jy/beam
! Clean residual mean=0.000364 rms=0.001901 Jy/beam
! Combined flux in latest and established models = 3.13829 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 363 components and 3.13829 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.920069Jy  sigma=0.002265
! Fit after  self-cal, rms=0.920252Jy  sigma=0.002263
wmodel J2148+0657_S_1998_10_01_pus_map.mod
! Writing 363 model components to file: J2148+0657_S_1998_10_01_pus_map.mod
wobs J2148+0657_S_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J2148+0657_S_1998_10_01_pus_uvs.fits
wwins J2148+0657_S_1998_10_01_pus_map.win
! wwins: Wrote 9 windows to J2148+0657_S_1998_10_01_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00240767 Jy
! Component: 100  -  total flux cleaned = 0.00358262 Jy
! Component: 150  -  total flux cleaned = 0.00433461 Jy
! Component: 200  -  total flux cleaned = 0.00494452 Jy
! Component: 250  -  total flux cleaned = 0.00577487 Jy
! Component: 300  -  total flux cleaned = 0.00658653 Jy
! Component: 350  -  total flux cleaned = 0.00772062 Jy
! Component: 400  -  total flux cleaned = 0.00827774 Jy
! Component: 450  -  total flux cleaned = 0.00904307 Jy
! Component: 500  -  total flux cleaned = 0.00936599 Jy
! Component: 550  -  total flux cleaned = 0.00957948 Jy
! Component: 600  -  total flux cleaned = 0.00999782 Jy
! Component: 650  -  total flux cleaned = 0.0103064 Jy
! Component: 700  -  total flux cleaned = 0.0104081 Jy
! Component: 750  -  total flux cleaned = 0.0111127 Jy
! Component: 800  -  total flux cleaned = 0.011312 Jy
! Component: 850  -  total flux cleaned = 0.0118052 Jy
! Component: 900  -  total flux cleaned = 0.0124849 Jy
! Component: 950  -  total flux cleaned = 0.0129653 Jy
! Component: 1000  -  total flux cleaned = 0.0136308 Jy
! Component: 1050  -  total flux cleaned = 0.0141005 Jy
! Component: 1100  -  total flux cleaned = 0.0143818 Jy
! Component: 1150  -  total flux cleaned = 0.0150298 Jy
! Component: 1200  -  total flux cleaned = 0.0155802 Jy
! Component: 1250  -  total flux cleaned = 0.0160357 Jy
! Component: 1300  -  total flux cleaned = 0.0167572 Jy
! Component: 1350  -  total flux cleaned = 0.0173824 Jy
! Component: 1400  -  total flux cleaned = 0.0178254 Jy
! Component: 1450  -  total flux cleaned = 0.0186173 Jy
! Component: 1500  -  total flux cleaned = 0.0187925 Jy
! Component: 1550  -  total flux cleaned = 0.0196601 Jy
! Component: 1600  -  total flux cleaned = 0.0202626 Jy
! Component: 1650  -  total flux cleaned = 0.0206048 Jy
! Component: 1700  -  total flux cleaned = 0.0211998 Jy
! Component: 1750  -  total flux cleaned = 0.0217046 Jy
! Component: 1800  -  total flux cleaned = 0.0224578 Jy
! Component: 1850  -  total flux cleaned = 0.0227066 Jy
! Component: 1900  -  total flux cleaned = 0.0236156 Jy
! Component: 1950  -  total flux cleaned = 0.0238617 Jy
! Component: 2000  -  total flux cleaned = 0.0244321 Jy
! Component: 2050  -  total flux cleaned = 0.0249991 Jy
! Component: 2100  -  total flux cleaned = 0.0256431 Jy
! Component: 2150  -  total flux cleaned = 0.0262825 Jy
! Component: 2200  -  total flux cleaned = 0.0267593 Jy
! Component: 2250  -  total flux cleaned = 0.0273915 Jy
! Component: 2300  -  total flux cleaned = 0.0277837 Jy
! Component: 2350  -  total flux cleaned = 0.0283305 Jy
! Component: 2400  -  total flux cleaned = 0.028796 Jy
! Component: 2450  -  total flux cleaned = 0.0294908 Jy
! Component: 2500  -  total flux cleaned = 0.0298739 Jy
! Component: 2550  -  total flux cleaned = 0.0303323 Jy
! Component: 2600  -  total flux cleaned = 0.0305609 Jy
! Component: 2650  -  total flux cleaned = 0.0311655 Jy
! Component: 2700  -  total flux cleaned = 0.0316919 Jy
! Component: 2750  -  total flux cleaned = 0.0319162 Jy
! Component: 2800  -  total flux cleaned = 0.0325864 Jy
! Component: 2850  -  total flux cleaned = 0.0331049 Jy
! Component: 2900  -  total flux cleaned = 0.0334 Jy
! Component: 2950  -  total flux cleaned = 0.0339137 Jy
! Component: 3000  -  total flux cleaned = 0.0342782 Jy
! Component: 3050  -  total flux cleaned = 0.0349327 Jy
! Component: 3100  -  total flux cleaned = 0.0352942 Jy
! Component: 3150  -  total flux cleaned = 0.0359415 Jy
! Component: 3200  -  total flux cleaned = 0.0362994 Jy
! Component: 3250  -  total flux cleaned = 0.0368691 Jy
! Component: 3300  -  total flux cleaned = 0.0373661 Jy
! Component: 3350  -  total flux cleaned = 0.0375076 Jy
! Component: 3400  -  total flux cleaned = 0.0380698 Jy
! Component: 3450  -  total flux cleaned = 0.0384898 Jy
! Component: 3500  -  total flux cleaned = 0.0392564 Jy
! Component: 3550  -  total flux cleaned = 0.0395339 Jy
! Component: 3600  -  total flux cleaned = 0.0400861 Jy
! Component: 3650  -  total flux cleaned = 0.0403612 Jy
! Component: 3700  -  total flux cleaned = 0.0408398 Jy
! Component: 3750  -  total flux cleaned = 0.04118 Jy
! Component: 3800  -  total flux cleaned = 0.0416553 Jy
! Component: 3850  -  total flux cleaned = 0.041926 Jy
! Component: 3900  -  total flux cleaned = 0.0423301 Jy
! Component: 3950  -  total flux cleaned = 0.0429332 Jy
! Component: 4000  -  total flux cleaned = 0.0434003 Jy
! Component: 4050  -  total flux cleaned = 0.0438654 Jy
! Total flux subtracted in 4096 components = 0.0440641 Jy
! Clean residual min=-0.003617 max=0.004039 Jy/beam
! Clean residual mean=0.000229 rms=0.001225 Jy/beam
! Combined flux in latest and established models = 3.18235 Jy
keep
! Adding 312 model components to the UV plane model.
! The established model now contains 674 components and 3.18235 Jy
![Exited script file: muppet]
wmap "J2148+0657_S_1998_10_01_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.826 x 6.366 at -6.763 degrees (North through East)
! Clean map  min=-0.0057079  max=2.0837 Jy/beam
! Writing clean map to FITS file: J2148+0657_S_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.08368 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00122208 
device "J2148+0657_S_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J2148+0657_S_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.17595 0.17595 0.351901 0.703801 1.4076 2.81521 5.63041 11.2608 22.5216 45.0433 90.0866
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0036 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.083 
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.826 x 6.366 at -6.763 degrees (North through East)
! Clean map  min=-0.0057079  max=2.0837 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2148+0657_S_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J2148+0657_S_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2148+0657_S_1998_10_01_pus_uvs.log closed on Fri Feb  8 12:43:34 2008