! Started logfile: J1048+7143_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:36:22 2008
obs J1048+7143_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1048+7143_S_1999_05_10_pus_uva.fits
! AN table 1: 65 integrations on 153 of 153 possible baselines.
! AN table 2: 248 integrations on 153 of 153 possible baselines.
! AN table 3: 102 integrations on 153 of 153 possible baselines.
! AN table 4: 210 integrations on 153 of 153 possible baselines.
! AN table 5: 428 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.239701 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1048+7143
! 
! 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 154472 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 J1048+7143_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 709 telescope corrections were flagged in sub-array 1.
!  A total of 2832 telescope corrections were flagged in sub-array 2.
!  A total of 904 telescope corrections were flagged in sub-array 3.
!  A total of 3352 telescope corrections were flagged in sub-array 4.
!  A total of 4457 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 709 telescope corrections were flagged in sub-array 1.
!  A total of 2832 telescope corrections were flagged in sub-array 2.
!  A total of 904 telescope corrections were flagged in sub-array 3.
!  A total of 3352 telescope corrections were flagged in sub-array 4.
!  A total of 4459 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 709 telescope corrections were flagged in sub-array 1.
!  A total of 2832 telescope corrections were flagged in sub-array 2.
!  A total of 904 telescope corrections were flagged in sub-array 3.
!  A total of 3352 telescope corrections were flagged in sub-array 4.
!  A total of 4420 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 743 telescope corrections were flagged in sub-array 1.
!  A total of 3031 telescope corrections were flagged in sub-array 2.
!  A total of 967 telescope corrections were flagged in sub-array 3.
!  A total of 3435 telescope corrections were flagged in sub-array 4.
!  A total of 4680 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.807886Jy  sigma=0.005216
! Fit after  self-cal, rms=0.434939Jy  sigma=0.002770
! 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.002 mas, bmaj=2.199 mas, bpa=14.99 degrees
! Estimated noise=560.828 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.892704 Jy
! Component: 100  -  total flux cleaned = 1.08738 Jy
! Total flux subtracted in 100 components = 1.08738 Jy
! Clean residual min=-0.012820 max=0.054782 Jy/beam
! Clean residual mean=0.000070 rms=0.003924 Jy/beam
! Combined flux in latest and established models = 1.08738 Jy
! Performing phase self-cal
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 1.08738 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.403584Jy  sigma=0.002418
! Fit after  self-cal, rms=0.403588Jy  sigma=0.002418
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0563462 Jy
! Component: 100  -  total flux cleaned = 0.0924423 Jy
! Total flux subtracted in 100 components = 0.0924423 Jy
! Clean residual min=-0.012278 max=0.019861 Jy/beam
! Clean residual mean=0.000036 rms=0.003460 Jy/beam
! Combined flux in latest and established models = 1.17982 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 1.17982 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387681Jy  sigma=0.002210
! Fit after  self-cal, rms=0.387671Jy  sigma=0.002210
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0254313 Jy
! Component: 100  -  total flux cleaned = 0.0436449 Jy
! Total flux subtracted in 100 components = 0.0436449 Jy
! Clean residual min=-0.012456 max=0.015906 Jy/beam
! Clean residual mean=0.000020 rms=0.003351 Jy/beam
! Combined flux in latest and established models = 1.22347 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 21 components and 1.22347 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383779Jy  sigma=0.002155
! Fit after  self-cal, rms=0.383771Jy  sigma=0.002155
! 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.557 mas, bmaj=2.876 mas, bpa=18.85 degrees
! Estimated noise=252.997 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.034454 Jy
! Component: 100  -  total flux cleaned = 0.052062 Jy
! Component: 150  -  total flux cleaned = 0.0622287 Jy
! Component: 200  -  total flux cleaned = 0.0682068 Jy
! Total flux subtracted in 200 components = 0.0682068 Jy
! Clean residual min=-0.006636 max=0.013776 Jy/beam
! Clean residual mean=-0.000063 rms=0.001837 Jy/beam
! Combined flux in latest and established models = 1.29167 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 34 components and 1.29167 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381002Jy  sigma=0.002115
! Fit after  self-cal, rms=0.380997Jy  sigma=0.002115
! Inverting map 
! Added new window around map position (4, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0124507 Jy
! Component: 100  -  total flux cleaned = 0.0174239 Jy
! Component: 150  -  total flux cleaned = 0.0194266 Jy
! Component: 200  -  total flux cleaned = 0.0204634 Jy
! Total flux subtracted in 200 components = 0.0204634 Jy
! Clean residual min=-0.007764 max=0.010882 Jy/beam
! Clean residual mean=-0.000154 rms=0.001706 Jy/beam
! Combined flux in latest and established models = 1.31214 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 47 components and 1.31214 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380589Jy  sigma=0.002110
! Fit after  self-cal, rms=0.380545Jy  sigma=0.002109
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        1.02     HH        1.00*    
!   HN        1.00     KK        1.09     KP        1.15     LA        1.03     
!   MC        0.95     MK        1.00*    NL        1.00     NY        0.97     
!   ON        0.91     OV        1.05     PT        1.05     SC        1.00*    
!   WF        1.01     WZ        0.97     
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.01     HH        1.00*    
!   HN        0.99     KK        1.00     KP        1.01     LA        1.00     
!   MC        1.06     MK        0.98     NL        0.98     NY        0.95     
!   ON        0.97     OV        1.03     PT        1.02     SC        1.04     
!   WF        0.99     WZ        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.02     HH        1.00*    
!   HN        1.01     KK        1.05     KP        1.01     LA        1.01     
!   MC        1.08     MK        0.96     NL        0.99     NY        0.96     
!   ON        0.96     OV        1.03     PT        1.02     SC        1.04     
!   WF        0.99     WZ        0.95     
! 
!  A total of 105 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        1.04     HH        1.00*    
!   HN        1.03     KK        1.16     KP        0.83     LA        1.03     
!   MC        0.98     MK        1.00*    NL        0.99     NY        0.95     
!   ON        0.92     OV        1.04     PT        1.03     SC        1.08     
!   WF        0.98     WZ        0.95     
! 
!  A total of 195 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.14     LA        1.00     
!   MC        1.05     MK        0.95     NL        0.98     NY        0.96     
!   ON        0.99     OV        1.03     PT        1.02     SC        1.08     
!   WF        0.98     WZ        1.00     
! 
! 
! Correcting IF 2.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.10     GC        1.01     HH        1.00*    
!   HN        0.99     KK        1.06     KP        2.04     LA        1.00     
!   MC        1.12     MK        1.00*    NL        1.00     NY        0.94     
!   ON        0.95     OV        1.02     PT        1.03     SC        1.00*    
!   WF        1.02     WZ        0.98     
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        0.99     HH        1.00*    
!   HN        0.99     KK        0.99     KP        1.02     LA        0.98     
!   MC        0.97     MK        1.06     NL        0.98     NY        0.93     
!   ON        1.01     OV        0.99     PT        1.01     SC        1.07     
!   WF        0.99     WZ        0.98     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.04     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.05     KP        1.02     LA        0.98     
!   MC        0.95     MK        1.04     NL        1.00     NY        0.94     
!   ON        0.99     OV        0.99     PT        0.99     SC        1.06     
!   WF        0.99     WZ        0.98     
! 
!  A total of 105 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.05     GC        0.98     HH        1.00*    
!   HN        0.95     KK        1.16     KP        0.98     LA        1.03     
!   MC        1.02     MK        1.00*    NL        1.00     NY        0.96     
!   ON        0.96     OV        1.00     PT        1.04     SC        1.11     
!   WF        1.01     WZ        0.98     
! 
!  A total of 198 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.92     GC        1.03     HH        1.00*    
!   HN        1.00     KK        1.07     KP        0.93     LA        0.89     
!   MC        1.35     MK        1.05     NL        0.97     NY        0.95     
!   ON        1.04     OV        0.98     PT        0.90     SC        1.08     
!   WF        1.01     WZ        1.01     
! 
! 
! Correcting IF 3.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.07     GC        1.01     HH        1.00*    
!   HN        1.01     KK        1.08     KP        2.11     LA        1.04     
!   MC        1.02     MK        1.00*    NL        1.07     NY        1.01     
!   ON        0.94     OV        1.02     PT        0.99     SC        1.00*    
!   WF        1.03     WZ        8.64     
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.02     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.01     LA        1.01     
!   MC        0.84     MK        1.01     NL        1.00     NY        1.00     
!   ON        1.01     OV        1.00     PT        0.96     SC        1.06     
!   WF        1.02     WZ        0.94     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.04     GC        1.01     HH        1.00*    
!   HN        1.01     KK        1.04     KP        1.00     LA        1.02     
!   MC        1.14     MK        0.98     NL        1.02     NY        1.00     
!   ON        0.98     OV        1.02     PT        0.98     SC        1.06     
!   WF        1.00     WZ        0.90     
! 
!  A total of 105 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.05     GC        1.00     HH        1.00*    
!   HN        1.01     KK        1.18     KP        1.13     LA        1.04     
!   MC        0.74     MK        1.00*    NL        1.02     NY        1.01     
!   ON        0.95     OV        1.02     PT        1.00     SC        1.15     
!   WF        1.02     WZ        5.44     
! 
!  A total of 198 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        1.00     GC        1.02     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.02     LA        0.99     
!   MC        0.76     MK        0.98     NL        0.99     NY        1.01     
!   ON        1.00     OV        0.99     PT        0.96     SC        1.11     
!   WF        0.99     WZ        1.05     
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.06     GC        1.03     HH        1.00*    
!   HN        1.00     KK        1.07     KP        2.39     LA        1.04     
!   MC        0.85     MK        1.00*    NL        1.05     NY        1.02     
!   ON        0.99     OV        0.98     PT        1.04     SC        1.00*    
!   WF        1.05     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.96     GC        1.05     HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.02     LA        0.97     
!   MC        0.96     MK        1.02     NL        1.02     NY        1.01     
!   ON        1.05     OV        0.96     PT        1.01     SC        1.07     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.02     GC        1.01     HH        1.00*    
!   HN        1.01     KK        1.06     KP        1.02     LA        1.03     
!   MC        1.04     MK        1.03     NL        1.03     NY        1.02     
!   ON        1.02     OV        0.99     PT        1.02     SC        1.07     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.03     GC        1.02     HH        1.00*    
!   HN        0.99     KK        1.16     KP        1.44     LA        1.04     
!   MC        0.82     MK        1.00*    NL        1.05     NY        1.03     
!   ON        1.01     OV        0.98     PT        1.02     SC        1.13     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        0.99     GC        1.04     HH        1.00*    
!   HN        1.00     KK        1.01     KP        1.01     LA        1.00     
!   MC        0.85     MK        1.01     NL        1.00     NY        1.02     
!   ON        1.04     OV        0.96     PT        1.01     SC        1.13     
!   WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.380545Jy  sigma=0.002109
! Fit after  self-cal, rms=0.493922Jy  sigma=0.001962
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.556 mas, bmaj=2.89 mas, bpa=19.07 degrees
! Estimated noise=254.711 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 (-2.5, 14).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00135709 Jy
! Component: 100  -  total flux cleaned = 0.0011754 Jy
! Component: 150  -  total flux cleaned = 0.000875624 Jy
! Component: 200  -  total flux cleaned = 0.000750077 Jy
! Total flux subtracted in 200 components = 0.000750077 Jy
! Clean residual min=-0.004829 max=0.005437 Jy/beam
! Clean residual mean=-0.000146 rms=0.001109 Jy/beam
! Combined flux in latest and established models = 1.31289 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 55 components and 1.31289 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.493768Jy  sigma=0.001961
! Fit after  self-cal, rms=0.494397Jy  sigma=0.001961
! 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.494397Jy  sigma=0.001961
! Fit after  self-cal, rms=0.619181Jy  sigma=0.001890
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.554 mas, bmaj=2.893 mas, bpa=18.65 degrees
! Estimated noise=255.393 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00282275 Jy
! Component: 100  -  total flux cleaned = 0.00258365 Jy
! Component: 150  -  total flux cleaned = 0.0022827 Jy
! Component: 200  -  total flux cleaned = 0.00209127 Jy
! Total flux subtracted in 200 components = 0.00209127 Jy
! Clean residual min=-0.002660 max=0.003113 Jy/beam
! Clean residual mean=-0.000064 rms=0.000705 Jy/beam
! Combined flux in latest and established models = 1.31498 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 60 components and 1.31498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.618992Jy  sigma=0.001890
! Fit after  self-cal, rms=0.619034Jy  sigma=0.001890
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 (2, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00134767 Jy
! Component: 100  -  total flux cleaned = 0.00117859 Jy
! Component: 150  -  total flux cleaned = 0.00101883 Jy
! Component: 200  -  total flux cleaned = 0.000942558 Jy
! Total flux subtracted in 200 components = 0.000942558 Jy
! Clean residual min=-0.002619 max=0.002607 Jy/beam
! Clean residual mean=-0.000068 rms=0.000695 Jy/beam
! Combined flux in latest and established models = 1.31592 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 70 components and 1.31592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.618992Jy  sigma=0.001889
! Fit after  self-cal, rms=0.618992Jy  sigma=0.001889
! 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.618992Jy  sigma=0.001889
! Fit after  self-cal, rms=0.618795Jy  sigma=0.001884
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.553 mas, bmaj=2.893 mas, bpa=18.79 degrees
! Estimated noise=255.773 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000213221 Jy
! Component: 100  -  total flux cleaned = -0.000171505 Jy
! Component: 150  -  total flux cleaned = -0.000431934 Jy
! Component: 200  -  total flux cleaned = -0.000831395 Jy
! Total flux subtracted in 200 components = -0.000831395 Jy
! Clean residual min=-0.002431 max=0.002447 Jy/beam
! Clean residual mean=-0.000027 rms=0.000628 Jy/beam
! Combined flux in latest and established models = 1.31509 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 78 components and 1.31509 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.618703Jy  sigma=0.001883
! Fit after  self-cal, rms=0.618678Jy  sigma=0.001883
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.000407778 Jy
! Component: 100  -  total flux cleaned = -0.000546745 Jy
! Component: 150  -  total flux cleaned = -0.000615605 Jy
! Component: 200  -  total flux cleaned = -0.000617474 Jy
! Total flux subtracted in 200 components = -0.000617474 Jy
! Clean residual min=-0.002431 max=0.002456 Jy/beam
! Clean residual mean=-0.000025 rms=0.000623 Jy/beam
! Combined flux in latest and established models = 1.31447 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 85 components and 1.31447 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.618655Jy  sigma=0.001883
! Fit after  self-cal, rms=0.618653Jy  sigma=0.001883
! 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.618653Jy  sigma=0.001883
! Fit after  self-cal, rms=0.619974Jy  sigma=0.001883
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.768 mas, bmaj=8.765 mas, bpa=58.97 degrees
! Estimated noise=378.587 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000955703 Jy
! Component: 100  -  total flux cleaned = 0.0012091 Jy
! Component: 150  -  total flux cleaned = 0.00132561 Jy
! Component: 200  -  total flux cleaned = 0.00142384 Jy
! Total flux subtracted in 200 components = 0.00142384 Jy
! Clean residual min=-0.003975 max=0.003261 Jy/beam
! Clean residual mean=-0.000050 rms=0.001081 Jy/beam
! Combined flux in latest and established models = 1.3159 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 105 components and 1.3159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619923Jy  sigma=0.001883
! Fit after  self-cal, rms=0.619919Jy  sigma=0.001883
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.000120935 Jy
! Component: 100  -  total flux cleaned = -9.21217e-05 Jy
! Component: 150  -  total flux cleaned = -1.42828e-05 Jy
! Component: 200  -  total flux cleaned = 8.43167e-06 Jy
! Total flux subtracted in 200 components = 8.43167e-06 Jy
! Clean residual min=-0.004005 max=0.003261 Jy/beam
! Clean residual mean=-0.000051 rms=0.001081 Jy/beam
! Combined flux in latest and established models = 1.3159 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 114 components and 1.3159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619915Jy  sigma=0.001883
! Fit after  self-cal, rms=0.619915Jy  sigma=0.001883
! 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.552 mas, bmaj=2.894 mas, bpa=18.87 degrees
! Estimated noise=256.2 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.552 x 2.894 at 18.87 degrees (North through East)
! Clean map  min=-0.0022933  max=1.1996 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.619915Jy  sigma=0.001883
! Fit after  self-cal, rms=0.588345Jy  sigma=0.001416
! Inverting map and beam 
! Estimated beam: bmin=2.552 mas, bmaj=2.893 mas, bpa=18.86 degrees
! Estimated noise=255.821 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00293464 Jy
! Component: 100  -  total flux cleaned = -0.00441955 Jy
! Component: 150  -  total flux cleaned = -0.00477311 Jy
! Component: 200  -  total flux cleaned = -0.00510315 Jy
! Total flux subtracted in 200 components = -0.00510315 Jy
! Clean residual min=-0.001939 max=0.002221 Jy/beam
! Clean residual mean=0.000054 rms=0.000491 Jy/beam
! Combined flux in latest and established models = 1.3108 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 115 components and 1.3108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.588326Jy  sigma=0.001415
! Fit after  self-cal, rms=0.588301Jy  sigma=0.001415
! Inverting map 
! Added new window around map position (-30.5, 12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00173636 Jy
! Component: 100  -  total flux cleaned = 0.00167749 Jy
! Component: 150  -  total flux cleaned = 0.00167717 Jy
! Component: 200  -  total flux cleaned = 0.00173135 Jy
! Total flux subtracted in 200 components = 0.00173135 Jy
! Clean residual min=-0.001970 max=0.002082 Jy/beam
! Clean residual mean=0.000044 rms=0.000480 Jy/beam
! Combined flux in latest and established models = 1.31253 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 127 components and 1.31253 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.588289Jy  sigma=0.001415
! Fit after  self-cal, rms=0.588284Jy  sigma=0.001415
! 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.588284Jy  sigma=0.001415
! Fit after  self-cal, rms=0.591283Jy  sigma=0.001415
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=1.987 mas, bmaj=2.206 mas, bpa=15.6 degrees
! Estimated noise=574.861 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.910427 Jy
! Component: 100  -  total flux cleaned = 1.10944 Jy
! Component: 150  -  total flux cleaned = 1.17163 Jy
! Component: 200  -  total flux cleaned = 1.20844 Jy
! Total flux subtracted in 200 components = 1.20844 Jy
! Clean residual min=-0.005086 max=0.019945 Jy/beam
! Clean residual mean=0.000041 rms=0.001372 Jy/beam
! Combined flux in latest and established models = 1.20844 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.20844 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.552 mas, bmaj=2.894 mas, bpa=18.88 degrees
! Estimated noise=255.692 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.0416052 Jy
! Component: 100  -  total flux cleaned = 0.0628766 Jy
! Component: 150  -  total flux cleaned = 0.0748543 Jy
! Component: 200  -  total flux cleaned = 0.0820614 Jy
! Total flux subtracted in 200 components = 0.0820614 Jy
! Clean residual min=-0.001933 max=0.003863 Jy/beam
! Clean residual mean=0.000145 rms=0.000592 Jy/beam
! Combined flux in latest and established models = 1.2905 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 45 components and 1.2905 Jy
! Inverting map 
! Added new window around map position (-0.5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00474902 Jy
! Component: 100  -  total flux cleaned = 0.00820763 Jy
! Component: 150  -  total flux cleaned = 0.0103272 Jy
! Component: 200  -  total flux cleaned = 0.0114006 Jy
! Total flux subtracted in 200 components = 0.0114006 Jy
! Clean residual min=-0.001817 max=0.002178 Jy/beam
! Clean residual mean=0.000095 rms=0.000492 Jy/beam
! Combined flux in latest and established models = 1.3019 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 70 components and 1.3019 Jy
! Inverting map 
! Added new window around map position (5.5, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128685 Jy
! Component: 100  -  total flux cleaned = 0.00210993 Jy
! Component: 150  -  total flux cleaned = 0.00286756 Jy
! Component: 200  -  total flux cleaned = 0.00350276 Jy
! Total flux subtracted in 200 components = 0.00350276 Jy
! Clean residual min=-0.001856 max=0.001973 Jy/beam
! Clean residual mean=0.000079 rms=0.000474 Jy/beam
! Combined flux in latest and established models = 1.3054 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 82 components and 1.3054 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.777 mas, bmaj=8.778 mas, bpa=59.03 degrees
! Estimated noise=376.955 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00219574 Jy
! Component: 100  -  total flux cleaned = 0.00307349 Jy
! Component: 150  -  total flux cleaned = 0.00376132 Jy
! Component: 200  -  total flux cleaned = 0.00430451 Jy
! Total flux subtracted in 200 components = 0.00430451 Jy
! Clean residual min=-0.001939 max=0.002491 Jy/beam
! Clean residual mean=0.000202 rms=0.000708 Jy/beam
! Combined flux in latest and established models = 1.30971 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.000405139 Jy
! Component: 100  -  total flux cleaned = 0.000735682 Jy
! Component: 150  -  total flux cleaned = 0.000926614 Jy
! Component: 200  -  total flux cleaned = 0.00105267 Jy
! Total flux subtracted in 200 components = 0.00105267 Jy
! Clean residual min=-0.001999 max=0.002484 Jy/beam
! Clean residual mean=0.000183 rms=0.000704 Jy/beam
! Combined flux in latest and established models = 1.31076 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 139 components and 1.31076 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.552 mas, bmaj=2.894 mas, bpa=18.88 degrees
! Estimated noise=255.692 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00144372 Jy
! Component: 100  -  total flux cleaned = -0.0014476 Jy
! Component: 150  -  total flux cleaned = -0.00139629 Jy
! Component: 200  -  total flux cleaned = -0.0013484 Jy
! Total flux subtracted in 200 components = -0.0013484 Jy
! Clean residual min=-0.001930 max=0.001897 Jy/beam
! Clean residual mean=0.000059 rms=0.000458 Jy/beam
! Combined flux in latest and established models = 1.30941 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 153 components and 1.30941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.591273Jy  sigma=0.001414
! Fit after  self-cal, rms=0.591194Jy  sigma=0.001414
wmodel J1048+7143_S_1999_05_10_pus_map.mod
! Writing 153 model components to file: J1048+7143_S_1999_05_10_pus_map.mod
wobs J1048+7143_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1048+7143_S_1999_05_10_pus_uvs.fits
wwins J1048+7143_S_1999_05_10_pus_map.win
! wwins: Wrote 7 windows to J1048+7143_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 = 9.40397e-05 Jy
! Component: 100  -  total flux cleaned = 0.000490448 Jy
! Component: 150  -  total flux cleaned = 0.000866709 Jy
! Component: 200  -  total flux cleaned = 0.00122822 Jy
! Component: 250  -  total flux cleaned = 0.00166618 Jy
! Component: 300  -  total flux cleaned = 0.00203527 Jy
! Component: 350  -  total flux cleaned = 0.00239576 Jy
! Component: 400  -  total flux cleaned = 0.00272179 Jy
! Component: 450  -  total flux cleaned = 0.00312169 Jy
! Component: 500  -  total flux cleaned = 0.00341032 Jy
! Component: 550  -  total flux cleaned = 0.00364334 Jy
! Component: 600  -  total flux cleaned = 0.00382235 Jy
! Component: 650  -  total flux cleaned = 0.00402473 Jy
! Component: 700  -  total flux cleaned = 0.00417493 Jy
! Component: 750  -  total flux cleaned = 0.00432325 Jy
! Component: 800  -  total flux cleaned = 0.00442118 Jy
! Component: 850  -  total flux cleaned = 0.00456649 Jy
! Component: 900  -  total flux cleaned = 0.00459041 Jy
! Component: 950  -  total flux cleaned = 0.00470945 Jy
! Component: 1000  -  total flux cleaned = 0.00470952 Jy
! Component: 1050  -  total flux cleaned = 0.00485024 Jy
! Component: 1100  -  total flux cleaned = 0.00494334 Jy
! Component: 1150  -  total flux cleaned = 0.00503545 Jy
! Component: 1200  -  total flux cleaned = 0.00508142 Jy
! Component: 1250  -  total flux cleaned = 0.00519552 Jy
! Component: 1300  -  total flux cleaned = 0.00528629 Jy
! Component: 1350  -  total flux cleaned = 0.00546607 Jy
! Component: 1400  -  total flux cleaned = 0.00553315 Jy
! Component: 1450  -  total flux cleaned = 0.00564423 Jy
! Component: 1500  -  total flux cleaned = 0.00577659 Jy
! Component: 1550  -  total flux cleaned = 0.00586414 Jy
! Component: 1600  -  total flux cleaned = 0.00595136 Jy
! Component: 1650  -  total flux cleaned = 0.00605973 Jy
! Component: 1700  -  total flux cleaned = 0.00616766 Jy
! Component: 1750  -  total flux cleaned = 0.00629643 Jy
! Component: 1800  -  total flux cleaned = 0.00636065 Jy
! Component: 1850  -  total flux cleaned = 0.00648795 Jy
! Component: 1900  -  total flux cleaned = 0.0065724 Jy
! Component: 1950  -  total flux cleaned = 0.00661448 Jy
! Component: 2000  -  total flux cleaned = 0.00678186 Jy
! Total flux subtracted in 2048 components = 0.00684431 Jy
! Clean residual min=-0.001153 max=0.001613 Jy/beam
! Clean residual mean=0.000023 rms=0.000398 Jy/beam
! Combined flux in latest and established models = 1.31626 Jy
keep
! Adding 176 model components to the UV plane model.
! The established model now contains 329 components and 1.31626 Jy
![Exited script file: muppet]
wmap "J1048+7143_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.552 x 2.894 at 18.88 degrees (North through East)
! Clean map  min=-0.0019015  max=1.2009 Jy/beam
! Writing clean map to FITS file: J1048+7143_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 1.20088 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000397792 
device "J1048+7143_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1048+7143_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0993746 0.0993746 0.198749 0.397498 0.794997 1.58999 3.17999 6.35997 12.7199 25.4399 50.8798
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.2 
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.552 x 2.894 at 18.88 degrees (North through East)
! Clean map  min=-0.0019015  max=1.2009 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1048+7143_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1048+7143_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1048+7143_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:37:13 2008