! Started logfile: J1048+7143_S_2001_04_09_pus_uvs.log on Fri Oct  5 16:01:20 2007
obs J1048+7143_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1048+7143_S_2001_04_09_pus_uva.fits
! AN table 1: 295 integrations on 190 of 190 possible baselines.
! AN table 2: 172 integrations on 190 of 190 possible baselines.
! AN table 3: 134 integrations on 190 of 190 possible baselines.
! AN table 4: 13 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.178159 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 83136 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_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 3937 telescope corrections were flagged in sub-array 1.
!  A total of 2225 telescope corrections were flagged in sub-array 2.
!  A total of 1986 telescope corrections were flagged in sub-array 3.
!  A total of 221 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3937 telescope corrections were flagged in sub-array 1.
!  A total of 2225 telescope corrections were flagged in sub-array 2.
!  A total of 1986 telescope corrections were flagged in sub-array 3.
!  A total of 221 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 3937 telescope corrections were flagged in sub-array 1.
!  A total of 2225 telescope corrections were flagged in sub-array 2.
!  A total of 1986 telescope corrections were flagged in sub-array 3.
!  A total of 221 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3939 telescope corrections were flagged in sub-array 1.
!  A total of 2228 telescope corrections were flagged in sub-array 2.
!  A total of 1986 telescope corrections were flagged in sub-array 3.
!  A total of 221 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.125123Jy  sigma=0.007788
! Fit after  self-cal, rms=0.470724Jy  sigma=0.003014
! 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=1.847 mas, bmaj=2.003 mas, bpa=12.53 degrees
! Estimated noise=635.742 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.975008 Jy
! Component: 100  -  total flux cleaned = 1.18931 Jy
! Total flux subtracted in 100 components = 1.18931 Jy
! Clean residual min=-0.013253 max=0.069272 Jy/beam
! Clean residual mean=0.000104 rms=0.003751 Jy/beam
! Combined flux in latest and established models = 1.18931 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 1.18931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379576Jy  sigma=0.002201
! Fit after  self-cal, rms=0.379563Jy  sigma=0.002201
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0764347 Jy
! Component: 100  -  total flux cleaned = 0.120895 Jy
! Total flux subtracted in 100 components = 0.120895 Jy
! Clean residual min=-0.011643 max=0.024186 Jy/beam
! Clean residual mean=0.000059 rms=0.003157 Jy/beam
! Combined flux in latest and established models = 1.3102 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 16 components and 1.3102 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356353Jy  sigma=0.001969
! Fit after  self-cal, rms=0.356274Jy  sigma=0.001969
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0306736 Jy
! Component: 100  -  total flux cleaned = 0.052748 Jy
! Total flux subtracted in 100 components = 0.052748 Jy
! Clean residual min=-0.011949 max=0.015526 Jy/beam
! Clean residual mean=0.000039 rms=0.003029 Jy/beam
! Combined flux in latest and established models = 1.36295 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 23 components and 1.36295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352336Jy  sigma=0.001926
! Fit after  self-cal, rms=0.352295Jy  sigma=0.001926
! 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.291 mas, bmaj=2.459 mas, bpa=34.69 degrees
! Estimated noise=351.522 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.0212878 Jy
! Component: 100  -  total flux cleaned = 0.0318029 Jy
! Component: 150  -  total flux cleaned = 0.0374098 Jy
! Component: 200  -  total flux cleaned = 0.0405464 Jy
! Total flux subtracted in 200 components = 0.0405465 Jy
! Clean residual min=-0.011674 max=0.009577 Jy/beam
! Clean residual mean=0.000802 rms=0.002290 Jy/beam
! Combined flux in latest and established models = 1.4035 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 33 components and 1.4035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351226Jy  sigma=0.001914
! Fit after  self-cal, rms=0.351195Jy  sigma=0.001914
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 237 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.01     KP        1.07     
!   LA        0.97     MA        0.88     MC        1.36     MK        1.04     
!   NL        0.95     NY        0.96     OV        1.02     PT        0.96     
!   SC        1.05     TS        0.96     WF        0.96     WZ        1.00     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.03     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.97     KP        1.11     
!   LA        0.99     MA        0.92     MC        0.91     MK        0.98     
!   NL        0.99     NY        0.95     OV        1.05     PT        0.98     
!   SC        1.06     TS        0.95     WF        1.01     WZ        1.01     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.10     KP        1.11     
!   LA        0.99     MA        0.86     MC        0.90     MK        1.00*    
!   NL        0.97     NY        0.99     OV        1.04     PT        0.98     
!   SC        1.02     TS        0.96     WF        1.00     WZ        1.03     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.03     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.00*    
!   LA        1.00*    MA        0.86     MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 237 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.00     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.04     KP        0.97     
!   LA        0.99     MA        0.81     MC        1.08     MK        1.06     
!   NL        0.95     NY        1.00     OV        0.99     PT        1.00     
!   SC        1.06     TS        1.00     WF        0.98     WZ        0.99     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.97     KP        1.04     
!   LA        1.02     MA        0.92     MC        0.99     MK        1.02     
!   NL        0.99     NY        0.98     OV        1.02     PT        1.03     
!   SC        1.05     TS        1.00     WF        0.99     WZ        1.01     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.11     KP        1.00     
!   LA        1.02     MA        0.79     MC        1.12     MK        1.00*    
!   NL        0.98     NY        1.01     OV        1.01     PT        1.02     
!   SC        1.03     TS        1.01     WF        0.99     WZ        1.03     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.98     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.04     KP        1.00*    
!   LA        1.00*    MA        0.82     MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 237 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.06     KP        1.08     
!   LA        0.97     MA        1.03     MC        1.58     MK        1.03     
!   NL        0.96     NY        0.97     OV        1.00     PT        1.00     
!   SC        1.04     TS        1.02     WF        1.01     WZ        1.00     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.04     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00     KP        1.08     
!   LA        0.98     MA        1.02     MC        1.39     MK        1.00     
!   NL        1.00     NY        0.96     OV        1.03     PT        1.00     
!   SC        1.05     TS        1.01     WF        1.00     WZ        1.02     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.03     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.16     KP        1.09     
!   LA        0.97     MA        0.99     MC        1.10     MK        1.00*    
!   NL        0.98     NY        0.96     OV        1.02     PT        1.01     
!   SC        1.03     TS        1.02     WF        1.02     WZ        1.04     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.08     KP        1.00*    
!   LA        1.00*    MA        0.96     MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.09     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 237 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.02     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.02     KP        1.07     
!   LA        1.01     MA        0.94     MC        0.78     MK        1.01     
!   NL        0.96     NY        1.01     OV        1.00     PT        0.99     
!   SC        1.06     TS        0.98     WF        1.02     WZ        1.01     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.04     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.98     KP        1.10     
!   LA        1.03     MA        1.88     MC        0.83     MK        0.98     
!   NL        0.99     NY        0.99     OV        1.03     PT        0.95     
!   SC        1.06     TS        0.98     WF        1.00     WZ        1.03     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.04     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.11     KP        1.09     
!   LA        0.99     MA        0.91     MC        0.86     MK        1.00*    
!   NL        1.00     NY        1.01     OV        1.01     PT        1.02     
!   SC        1.08     TS        0.97     WF        1.01     WZ        1.03     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.07     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.05     KP        1.00*    
!   LA        1.00*    MA        0.78     MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.05     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.351195Jy  sigma=0.001914
! Fit after  self-cal, rms=0.340582Jy  sigma=0.001750
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.309 mas, bmaj=2.454 mas, bpa=32.02 degrees
! Estimated noise=354.165 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, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00713471 Jy
! Component: 100  -  total flux cleaned = 0.00828017 Jy
! Component: 150  -  total flux cleaned = 0.00941712 Jy
! Component: 200  -  total flux cleaned = 0.0101277 Jy
! Total flux subtracted in 200 components = 0.0101277 Jy
! Clean residual min=-0.006330 max=0.007304 Jy/beam
! Clean residual mean=0.000255 rms=0.001551 Jy/beam
! Combined flux in latest and established models = 1.41362 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 47 components and 1.41362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340428Jy  sigma=0.001747
! Fit after  self-cal, rms=0.340703Jy  sigma=0.001746
! 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.340703Jy  sigma=0.001746
! Fit after  self-cal, rms=0.335260Jy  sigma=0.001540
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.308 mas, bmaj=2.452 mas, bpa=32.72 degrees
! Estimated noise=354.556 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00357035 Jy
! Component: 100  -  total flux cleaned = 0.00421313 Jy
! Component: 150  -  total flux cleaned = 0.00456012 Jy
! Component: 200  -  total flux cleaned = 0.00471251 Jy
! Total flux subtracted in 200 components = 0.00471251 Jy
! Clean residual min=-0.002312 max=0.002955 Jy/beam
! Clean residual mean=0.000304 rms=0.000620 Jy/beam
! Combined flux in latest and established models = 1.41834 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 57 components and 1.41834 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335190Jy  sigma=0.001540
! Fit after  self-cal, rms=0.335510Jy  sigma=0.001539
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-14.5, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00278856 Jy
! Component: 100  -  total flux cleaned = 0.00316811 Jy
! Component: 150  -  total flux cleaned = 0.00343378 Jy
! Component: 200  -  total flux cleaned = 0.00355674 Jy
! Total flux subtracted in 200 components = 0.00355674 Jy
! Clean residual min=-0.002271 max=0.002833 Jy/beam
! Clean residual mean=0.000274 rms=0.000607 Jy/beam
! Combined flux in latest and established models = 1.42189 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 69 components and 1.42189 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335466Jy  sigma=0.001539
! Fit after  self-cal, rms=0.335459Jy  sigma=0.001539
! Inverting map 
! Added new window around map position (-35, -32).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00280201 Jy
! Component: 100  -  total flux cleaned = 0.0041052 Jy
! Component: 150  -  total flux cleaned = 0.00439678 Jy
! Component: 200  -  total flux cleaned = 0.00461341 Jy
! Total flux subtracted in 200 components = 0.00461341 Jy
! Clean residual min=-0.002254 max=0.002462 Jy/beam
! Clean residual mean=0.000240 rms=0.000595 Jy/beam
! Combined flux in latest and established models = 1.42651 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 80 components and 1.42651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335412Jy  sigma=0.001539
! Fit after  self-cal, rms=0.335410Jy  sigma=0.001538
! 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.335410Jy  sigma=0.001538
! Fit after  self-cal, rms=0.335017Jy  sigma=0.001538
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.307 mas, bmaj=2.449 mas, bpa=32.67 degrees
! Estimated noise=354.615 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00205394 Jy
! Component: 100  -  total flux cleaned = 0.00241229 Jy
! Component: 150  -  total flux cleaned = 0.0029098 Jy
! Component: 200  -  total flux cleaned = 0.00341749 Jy
! Total flux subtracted in 200 components = 0.00341749 Jy
! Clean residual min=-0.002215 max=0.002561 Jy/beam
! Clean residual mean=0.000245 rms=0.000584 Jy/beam
! Combined flux in latest and established models = 1.42992 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 84 components and 1.42992 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334983Jy  sigma=0.001537
! Fit after  self-cal, rms=0.334976Jy  sigma=0.001537
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 (12, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00241529 Jy
! Component: 100  -  total flux cleaned = 0.00274031 Jy
! Component: 150  -  total flux cleaned = 0.00301241 Jy
! Component: 200  -  total flux cleaned = 0.00326496 Jy
! Total flux subtracted in 200 components = 0.00326496 Jy
! Clean residual min=-0.002239 max=0.002371 Jy/beam
! Clean residual mean=0.000220 rms=0.000576 Jy/beam
! Combined flux in latest and established models = 1.43319 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 98 components and 1.43319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334940Jy  sigma=0.001537
! Fit after  self-cal, rms=0.334938Jy  sigma=0.001537
! 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.334938Jy  sigma=0.001537
! Fit after  self-cal, rms=0.334668Jy  sigma=0.001537
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.293 mas, bmaj=8.546 mas, bpa=42.31 degrees
! Estimated noise=595.236 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00310649 Jy
! Component: 100  -  total flux cleaned = 0.00522577 Jy
! Component: 150  -  total flux cleaned = 0.00678773 Jy
! Component: 200  -  total flux cleaned = 0.0079419 Jy
! Total flux subtracted in 200 components = 0.0079419 Jy
! Clean residual min=-0.001981 max=0.004130 Jy/beam
! Clean residual mean=0.000726 rms=0.001098 Jy/beam
! Combined flux in latest and established models = 1.44113 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 112 components and 1.44113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334659Jy  sigma=0.001537
! Fit after  self-cal, rms=0.334657Jy  sigma=0.001537
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.000882445 Jy
! Component: 100  -  total flux cleaned = 0.00127414 Jy
! Component: 150  -  total flux cleaned = 0.00155245 Jy
! Component: 200  -  total flux cleaned = 0.00177097 Jy
! Total flux subtracted in 200 components = 0.00177097 Jy
! Clean residual min=-0.002058 max=0.003967 Jy/beam
! Clean residual mean=0.000676 rms=0.001090 Jy/beam
! Combined flux in latest and established models = 1.4429 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 118 components and 1.4429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334657Jy  sigma=0.001537
! Fit after  self-cal, rms=0.334657Jy  sigma=0.001537
! 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.307 mas, bmaj=2.447 mas, bpa=32.68 degrees
! Estimated noise=354.685 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.307 x 2.447 at 32.68 degrees (North through East)
! Clean map  min=-0.0018498  max=1.2938 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.334657Jy  sigma=0.001537
! Fit after  self-cal, rms=0.378610Jy  sigma=0.001451
! Inverting map and beam 
! Estimated beam: bmin=2.306 mas, bmaj=2.446 mas, bpa=32.61 degrees
! Estimated noise=354.908 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000530981 Jy
! Component: 100  -  total flux cleaned = -0.000179967 Jy
! Component: 150  -  total flux cleaned = -0.000906779 Jy
! Component: 200  -  total flux cleaned = -0.00117611 Jy
! Total flux subtracted in 200 components = -0.00117611 Jy
! Clean residual min=-0.002297 max=0.002250 Jy/beam
! Clean residual mean=0.000014 rms=0.000534 Jy/beam
! Combined flux in latest and established models = 1.44172 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 124 components and 1.44172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.378590Jy  sigma=0.001451
! Fit after  self-cal, rms=0.378590Jy  sigma=0.001451
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000426141 Jy
! Component: 100  -  total flux cleaned = -0.000671414 Jy
! Component: 150  -  total flux cleaned = -0.000853743 Jy
! Component: 200  -  total flux cleaned = -0.000983541 Jy
! Total flux subtracted in 200 components = -0.000983541 Jy
! Clean residual min=-0.002286 max=0.002267 Jy/beam
! Clean residual mean=0.000021 rms=0.000532 Jy/beam
! Combined flux in latest and established models = 1.44074 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 131 components and 1.44074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.378579Jy  sigma=0.001451
! Fit after  self-cal, rms=0.378578Jy  sigma=0.001451
! 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.378578Jy  sigma=0.001451
! Fit after  self-cal, rms=0.378674Jy  sigma=0.001451
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.862 mas, bmaj=1.997 mas, bpa=11.42 degrees
! Estimated noise=644.318 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.979843 Jy
! Component: 100  -  total flux cleaned = 1.19419 Jy
! Component: 150  -  total flux cleaned = 1.26538 Jy
! Component: 200  -  total flux cleaned = 1.30953 Jy
! Total flux subtracted in 200 components = 1.30953 Jy
! Clean residual min=-0.005355 max=0.024317 Jy/beam
! Clean residual mean=0.000049 rms=0.001517 Jy/beam
! Combined flux in latest and established models = 1.30953 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 15 model components to the UV plane model.
! The established model now contains 15 components and 1.30953 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.306 mas, bmaj=2.445 mas, bpa=32.56 degrees
! Estimated noise=355.04 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.050515 Jy
! Component: 100  -  total flux cleaned = 0.0777261 Jy
! Component: 150  -  total flux cleaned = 0.0931328 Jy
! Component: 200  -  total flux cleaned = 0.101936 Jy
! Total flux subtracted in 200 components = 0.101936 Jy
! Clean residual min=-0.002672 max=0.004645 Jy/beam
! Clean residual mean=0.000252 rms=0.000671 Jy/beam
! Combined flux in latest and established models = 1.41146 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 34 components and 1.41146 Jy
! Inverting map 
! Added new window around map position (2, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00556879 Jy
! Component: 100  -  total flux cleaned = 0.00971131 Jy
! Component: 150  -  total flux cleaned = 0.0129645 Jy
! Component: 200  -  total flux cleaned = 0.0147308 Jy
! Total flux subtracted in 200 components = 0.0147308 Jy
! Clean residual min=-0.002550 max=0.002278 Jy/beam
! Clean residual mean=0.000138 rms=0.000574 Jy/beam
! Combined flux in latest and established models = 1.42619 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 56 components and 1.42619 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=8.294 mas, bmaj=8.547 mas, bpa=42.09 degrees
! Estimated noise=596.264 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00460137 Jy
! Component: 100  -  total flux cleaned = 0.00772424 Jy
! Component: 150  -  total flux cleaned = 0.0099839 Jy
! Component: 200  -  total flux cleaned = 0.0116504 Jy
! Total flux subtracted in 200 components = 0.0116504 Jy
! Clean residual min=-0.002529 max=0.003252 Jy/beam
! Clean residual mean=0.000194 rms=0.000943 Jy/beam
! Combined flux in latest and established models = 1.43784 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.00123439 Jy
! Component: 100  -  total flux cleaned = 0.00215293 Jy
! Component: 150  -  total flux cleaned = 0.0028428 Jy
! Component: 200  -  total flux cleaned = 0.00336242 Jy
! Total flux subtracted in 200 components = 0.00336242 Jy
! Clean residual min=-0.002595 max=0.003085 Jy/beam
! Clean residual mean=0.000088 rms=0.000924 Jy/beam
! Combined flux in latest and established models = 1.44121 Jy
! Adding 78 model components to the UV plane model.
! The established model now contains 133 components and 1.44121 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.306 mas, bmaj=2.445 mas, bpa=32.56 degrees
! Estimated noise=355.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000733792 Jy
! Component: 100  -  total flux cleaned = -0.000818212 Jy
! Component: 150  -  total flux cleaned = -0.000967152 Jy
! Component: 200  -  total flux cleaned = -0.00117699 Jy
! Total flux subtracted in 200 components = -0.00117699 Jy
! Clean residual min=-0.002430 max=0.002288 Jy/beam
! Clean residual mean=0.000032 rms=0.000541 Jy/beam
! Combined flux in latest and established models = 1.44003 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 141 components and 1.44003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.378744Jy  sigma=0.001451
! Fit after  self-cal, rms=0.378747Jy  sigma=0.001451
wmodel J1048+7143_S_2001_04_09_pus_map.mod
! Writing 141 model components to file: J1048+7143_S_2001_04_09_pus_map.mod
wobs J1048+7143_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1048+7143_S_2001_04_09_pus_uvs.fits
wwins J1048+7143_S_2001_04_09_pus_map.win
! wwins: Wrote 6 windows to J1048+7143_S_2001_04_09_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000399776 Jy
! Component: 100  -  total flux cleaned = -0.000561037 Jy
! Component: 150  -  total flux cleaned = -0.000523963 Jy
! Component: 200  -  total flux cleaned = -0.000450217 Jy
! Component: 250  -  total flux cleaned = -0.000270041 Jy
! Component: 300  -  total flux cleaned = -0.000128898 Jy
! Component: 350  -  total flux cleaned = 4.45773e-05 Jy
! Component: 400  -  total flux cleaned = 0.000282387 Jy
! Component: 450  -  total flux cleaned = 0.000248632 Jy
! Component: 500  -  total flux cleaned = 0.000381196 Jy
! Component: 550  -  total flux cleaned = 0.000446847 Jy
! Component: 600  -  total flux cleaned = 0.000608922 Jy
! Component: 650  -  total flux cleaned = 0.000769259 Jy
! Component: 700  -  total flux cleaned = 0.000833025 Jy
! Component: 750  -  total flux cleaned = 0.000990566 Jy
! Component: 800  -  total flux cleaned = 0.0011468 Jy
! Component: 850  -  total flux cleaned = 0.00127058 Jy
! Component: 900  -  total flux cleaned = 0.00136281 Jy
! Component: 950  -  total flux cleaned = 0.00148493 Jy
! Component: 1000  -  total flux cleaned = 0.00157585 Jy
! Component: 1050  -  total flux cleaned = 0.0017264 Jy
! Component: 1100  -  total flux cleaned = 0.00184598 Jy
! Component: 1150  -  total flux cleaned = 0.00184605 Jy
! Component: 1200  -  total flux cleaned = 0.00202343 Jy
! Component: 1250  -  total flux cleaned = 0.00214072 Jy
! Component: 1300  -  total flux cleaned = 0.00216997 Jy
! Component: 1350  -  total flux cleaned = 0.00228623 Jy
! Component: 1400  -  total flux cleaned = 0.00237274 Jy
! Component: 1450  -  total flux cleaned = 0.00245879 Jy
! Component: 1500  -  total flux cleaned = 0.00248711 Jy
! Component: 1550  -  total flux cleaned = 0.00248725 Jy
! Component: 1600  -  total flux cleaned = 0.00262854 Jy
! Component: 1650  -  total flux cleaned = 0.00268466 Jy
! Component: 1700  -  total flux cleaned = 0.0027126 Jy
! Component: 1750  -  total flux cleaned = 0.00268466 Jy
! Component: 1800  -  total flux cleaned = 0.00276796 Jy
! Component: 1850  -  total flux cleaned = 0.00279568 Jy
! Component: 1900  -  total flux cleaned = 0.00282311 Jy
! Component: 1950  -  total flux cleaned = 0.0028779 Jy
! Component: 2000  -  total flux cleaned = 0.00290525 Jy
! Total flux subtracted in 2048 components = 0.00298677 Jy
! Clean residual min=-0.001800 max=0.001568 Jy/beam
! Clean residual mean=0.000010 rms=0.000492 Jy/beam
! Combined flux in latest and established models = 1.44302 Jy
keep
! Adding 172 model components to the UV plane model.
! The established model now contains 312 components and 1.44302 Jy
![Exited script file: muppet]
wmap "J1048+7143_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.306 x 2.445 at 32.56 degrees (North through East)
! Clean map  min=-0.0022169  max=1.2955 Jy/beam
! Writing clean map to FITS file: J1048+7143_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.29546 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000491441 
device "J1048+7143_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1048+7143_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.113807 0.113807 0.227614 0.455228 0.910457 1.82091 3.64183 7.28365 14.5673 29.1346 58.2692
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.295 
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.306 x 2.445 at 32.56 degrees (North through East)
! Clean map  min=-0.0022169  max=1.2955 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1048+7143_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1048+7143_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1048+7143_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 16:01:52 2007