! Started logfile: J1159+2914_X_2001_04_09_pus_uvs.log on Mon Oct  1 14:40:55 2007
obs J1159+2914_X_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1159+2914_X_2001_04_09_pus_uva.fits
! AN table 1: 247 integrations on 190 of 190 possible baselines.
! AN table 2: 109 integrations on 190 of 190 possible baselines.
! AN table 3: 81 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0521137 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1159+2914
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1926 lines of history.
! 
! Reading 17308 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1159+2914_X_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 = 256x256 pixels with 0.200x0.200 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 3862 telescope corrections were flagged in sub-array 1.
!  A total of 2132 telescope corrections were flagged in sub-array 2.
!  A total of 1351 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3862 telescope corrections were flagged in sub-array 1.
!  A total of 2132 telescope corrections were flagged in sub-array 2.
!  A total of 1351 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3862 telescope corrections were flagged in sub-array 1.
!  A total of 2132 telescope corrections were flagged in sub-array 2.
!  A total of 1351 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3862 telescope corrections were flagged in sub-array 1.
!  A total of 2132 telescope corrections were flagged in sub-array 2.
!  A total of 1351 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.602486Jy  sigma=0.005280
! Fit after  self-cal, rms=0.292176Jy  sigma=0.002647
! 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 
! Your choice of large map pixels excluded 6.63% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.5993 mas, bmaj=0.9452 mas, bpa=-18.39 degrees
! Estimated noise=929.39 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.645316 Jy
! Component: 100  -  total flux cleaned = 0.820125 Jy
! Total flux subtracted in 100 components = 0.820125 Jy
! Clean residual min=-0.022869 max=0.076485 Jy/beam
! Clean residual mean=0.000469 rms=0.009059 Jy/beam
! Combined flux in latest and established models = 0.820125 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.820125 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208676Jy  sigma=0.001918
! Fit after  self-cal, rms=0.207161Jy  sigma=0.001908
! Inverting map 
! Your choice of large map pixels excluded 6.63% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0839785 Jy
! Component: 100  -  total flux cleaned = 0.125144 Jy
! Total flux subtracted in 100 components = 0.125144 Jy
! Clean residual min=-0.014477 max=0.024857 Jy/beam
! Clean residual mean=0.000250 rms=0.004695 Jy/beam
! Combined flux in latest and established models = 0.945269 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.945269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175419Jy  sigma=0.001450
! Fit after  self-cal, rms=0.174172Jy  sigma=0.001441
! Inverting map 
! Your choice of large map pixels excluded 6.63% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
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 
! Your choice of large map pixels excluded 6.63% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6609 mas, bmaj=1.115 mas, bpa=-16.03 degrees
! Estimated noise=596.292 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, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0321242 Jy
! Component: 100  -  total flux cleaned = 0.0500752 Jy
! Component: 150  -  total flux cleaned = 0.0619977 Jy
! Component: 200  -  total flux cleaned = 0.0660949 Jy
! Total flux subtracted in 200 components = 0.0660949 Jy
! Clean residual min=-0.015179 max=0.015138 Jy/beam
! Clean residual mean=0.000296 rms=0.003869 Jy/beam
! Combined flux in latest and established models = 1.01136 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 25 components and 1.01136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168954Jy  sigma=0.001358
! Fit after  self-cal, rms=0.168546Jy  sigma=0.001354
! Inverting map 
! Your choice of large map pixels excluded 6.63% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 177 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        0.85     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00     KP        0.99     
!   LA        1.00     MA        1.00*    MC        1.07     MK        0.94     
!   NL        1.00     NY        1.02     OV        0.99     PT        1.04     
!   SC        1.00     TS        1.00*    WF        1.08     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.15     FD        1.00*    GC        0.92     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.07     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.96     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 177 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        0.87     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.02     KP        0.99     
!   LA        0.99     MA        1.00*    MC        1.02     MK        1.00     
!   NL        0.96     NY        1.01     OV        0.98     PT        1.05     
!   SC        0.99     TS        1.00*    WF        1.08     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.17     FD        1.00*    GC        0.92     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.05     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.05     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 177 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.04     KP        0.88     
!   LA        1.00     MA        1.00*    MC        1.08     MK        0.96     
!   NL        0.96     NY        0.98     OV        0.96     PT        0.99     
!   SC        1.00     TS        1.00*    WF        1.15     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.11     FD        1.00*    GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.06     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.02     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 177 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.03     KP        1.10     
!   LA        0.98     MA        1.00*    MC        1.06     MK        1.00     
!   NL        0.97     NY        0.98     OV        0.94     PT        1.03     
!   SC        1.00     TS        1.00*    WF        1.10     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.00*    GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.08     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.04     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.168546Jy  sigma=0.001354
! Fit after  self-cal, rms=0.164173Jy  sigma=0.001264
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6585 mas, bmaj=1.132 mas, bpa=-15.45 degrees
! Estimated noise=602.182 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.4, 3.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00725857 Jy
! Component: 100  -  total flux cleaned = 0.0117416 Jy
! Component: 150  -  total flux cleaned = 0.0143421 Jy
! Component: 200  -  total flux cleaned = 0.0162779 Jy
! Total flux subtracted in 200 components = 0.0162779 Jy
! Clean residual min=-0.007021 max=0.010422 Jy/beam
! Clean residual mean=0.000432 rms=0.001949 Jy/beam
! Combined flux in latest and established models = 1.02764 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 41 components and 1.02764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162952Jy  sigma=0.001249
! Fit after  self-cal, rms=0.162936Jy  sigma=0.001247
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Added new window around map position (3.6, 7.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00924867 Jy
! Component: 100  -  total flux cleaned = 0.0136924 Jy
! Component: 150  -  total flux cleaned = 0.017288 Jy
! Component: 200  -  total flux cleaned = 0.0202958 Jy
! Total flux subtracted in 200 components = 0.0202958 Jy
! Clean residual min=-0.005649 max=0.006612 Jy/beam
! Clean residual mean=0.000313 rms=0.001528 Jy/beam
! Combined flux in latest and established models = 1.04794 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 59 components and 1.04794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162153Jy  sigma=0.001239
! Fit after  self-cal, rms=0.162093Jy  sigma=0.001238
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
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.162093Jy  sigma=0.001238
! Fit after  self-cal, rms=0.162105Jy  sigma=0.001237
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6589 mas, bmaj=1.132 mas, bpa=-15.34 degrees
! Estimated noise=600.826 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00153584 Jy
! Component: 100  -  total flux cleaned = 0.000342128 Jy
! Component: 150  -  total flux cleaned = 0.00194155 Jy
! Component: 200  -  total flux cleaned = 0.00334653 Jy
! Total flux subtracted in 200 components = 0.00334653 Jy
! Clean residual min=-0.004646 max=0.005620 Jy/beam
! Clean residual mean=0.000306 rms=0.001341 Jy/beam
! Combined flux in latest and established models = 1.05128 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 65 components and 1.05128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161786Jy  sigma=0.001234
! Fit after  self-cal, rms=0.161761Jy  sigma=0.001234
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
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.000797998 Jy
! Component: 100  -  total flux cleaned = 0.00216743 Jy
! Component: 150  -  total flux cleaned = 0.00305715 Jy
! Component: 200  -  total flux cleaned = 0.00363753 Jy
! Total flux subtracted in 200 components = 0.00363753 Jy
! Clean residual min=-0.004469 max=0.005336 Jy/beam
! Clean residual mean=0.000284 rms=0.001297 Jy/beam
! Combined flux in latest and established models = 1.05492 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 77 components and 1.05492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161622Jy  sigma=0.001233
! Fit after  self-cal, rms=0.161605Jy  sigma=0.001233
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
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.161605Jy  sigma=0.001233
! Fit after  self-cal, rms=0.161504Jy  sigma=0.001232
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6595 mas, bmaj=1.133 mas, bpa=-15.24 degrees
! Estimated noise=600.12 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0024138 Jy
! Component: 100  -  total flux cleaned = -0.00183374 Jy
! Component: 150  -  total flux cleaned = -0.00146485 Jy
! Component: 200  -  total flux cleaned = -0.00111747 Jy
! Total flux subtracted in 200 components = -0.00111747 Jy
! Clean residual min=-0.003964 max=0.005019 Jy/beam
! Clean residual mean=0.000281 rms=0.001209 Jy/beam
! Combined flux in latest and established models = 1.0538 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 85 components and 1.0538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161375Jy  sigma=0.001231
! Fit after  self-cal, rms=0.161361Jy  sigma=0.001231
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
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.00018485 Jy
! Component: 100  -  total flux cleaned = 0.000713186 Jy
! Component: 150  -  total flux cleaned = 0.00102227 Jy
! Component: 200  -  total flux cleaned = 0.00131393 Jy
! Total flux subtracted in 200 components = 0.00131393 Jy
! Clean residual min=-0.003893 max=0.004944 Jy/beam
! Clean residual mean=0.000272 rms=0.001188 Jy/beam
! Combined flux in latest and established models = 1.05512 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 89 components and 1.05512 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161304Jy  sigma=0.001231
! Fit after  self-cal, rms=0.161296Jy  sigma=0.001231
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.161296Jy  sigma=0.001231
! Fit after  self-cal, rms=0.161169Jy  sigma=0.001230
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=1.922 mas, bmaj=2.551 mas, bpa=4.306 degrees
! Estimated noise=934.705 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00445138 Jy
! Component: 100  -  total flux cleaned = 0.00578581 Jy
! Component: 150  -  total flux cleaned = 0.00634182 Jy
! Component: 200  -  total flux cleaned = 0.00686956 Jy
! Total flux subtracted in 200 components = 0.00686956 Jy
! Clean residual min=-0.005959 max=0.009605 Jy/beam
! Clean residual mean=0.000856 rms=0.002570 Jy/beam
! Combined flux in latest and established models = 1.06199 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 98 components and 1.06199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161167Jy  sigma=0.001230
! Fit after  self-cal, rms=0.161148Jy  sigma=0.001230
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
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.000487614 Jy
! Component: 100  -  total flux cleaned = 0.000720031 Jy
! Component: 150  -  total flux cleaned = 0.000829191 Jy
! Component: 200  -  total flux cleaned = 0.000981208 Jy
! Total flux subtracted in 200 components = 0.000981208 Jy
! Clean residual min=-0.005991 max=0.009226 Jy/beam
! Clean residual mean=0.000832 rms=0.002470 Jy/beam
! Combined flux in latest and established models = 1.06297 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 105 components and 1.06297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161183Jy  sigma=0.001230
! Fit after  self-cal, rms=0.161182Jy  sigma=0.001230
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
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 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6599 mas, bmaj=1.133 mas, bpa=-15.17 degrees
! Estimated noise=599.517 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6599 x 1.133 at -15.17 degrees (North through East)
! Clean map  min=-0.0033837  max=0.83488 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.161182Jy  sigma=0.001230
! Fit after  self-cal, rms=0.151821Jy  sigma=0.001122
! Inverting map and beam 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6601 mas, bmaj=1.132 mas, bpa=-15.18 degrees
! Estimated noise=599.077 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00205377 Jy
! Component: 100  -  total flux cleaned = -0.00255005 Jy
! Component: 150  -  total flux cleaned = -0.00267695 Jy
! Component: 200  -  total flux cleaned = -0.00267949 Jy
! Total flux subtracted in 200 components = -0.00267948 Jy
! Clean residual min=-0.003473 max=0.004365 Jy/beam
! Clean residual mean=0.000209 rms=0.001044 Jy/beam
! Combined flux in latest and established models = 1.06029 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 116 components and 1.06029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151748Jy  sigma=0.001121
! Fit after  self-cal, rms=0.151742Jy  sigma=0.001121
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000390958 Jy
! Component: 100  -  total flux cleaned = -0.000442385 Jy
! Component: 150  -  total flux cleaned = -0.00053427 Jy
! Component: 200  -  total flux cleaned = -0.00057824 Jy
! Total flux subtracted in 200 components = -0.00057824 Jy
! Clean residual min=-0.003373 max=0.004347 Jy/beam
! Clean residual mean=0.000213 rms=0.001032 Jy/beam
! Combined flux in latest and established models = 1.05971 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 121 components and 1.05971 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151705Jy  sigma=0.001121
! Fit after  self-cal, rms=0.151701Jy  sigma=0.001121
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151701Jy  sigma=0.001121
! Fit after  self-cal, rms=0.151527Jy  sigma=0.001121
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 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6054 mas, bmaj=0.9544 mas, bpa=-17.49 degrees
! Estimated noise=928.804 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.638467 Jy
! Component: 100  -  total flux cleaned = 0.811365 Jy
! Component: 150  -  total flux cleaned = 0.887032 Jy
! Component: 200  -  total flux cleaned = 0.925252 Jy
! Total flux subtracted in 200 components = 0.925252 Jy
! Clean residual min=-0.008765 max=0.018754 Jy/beam
! Clean residual mean=0.000418 rms=0.002957 Jy/beam
! Combined flux in latest and established models = 0.925252 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 9 model components to the UV plane model.
! The established model now contains 9 components and 0.925252 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6602 mas, bmaj=1.132 mas, bpa=-15.17 degrees
! Estimated noise=598.612 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.0282794 Jy
! Component: 100  -  total flux cleaned = 0.0456283 Jy
! Component: 150  -  total flux cleaned = 0.0590234 Jy
! Component: 200  -  total flux cleaned = 0.0698388 Jy
! Total flux subtracted in 200 components = 0.0698388 Jy
! Clean residual min=-0.005671 max=0.006708 Jy/beam
! Clean residual mean=0.000584 rms=0.001944 Jy/beam
! Combined flux in latest and established models = 0.995091 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 37 components and 0.995091 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=1.923 mas, bmaj=2.551 mas, bpa=4.321 degrees
! Estimated noise=933.443 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0223293 Jy
! Component: 100  -  total flux cleaned = 0.0358678 Jy
! Component: 150  -  total flux cleaned = 0.0449147 Jy
! Component: 200  -  total flux cleaned = 0.0511742 Jy
! Total flux subtracted in 200 components = 0.0511742 Jy
! Clean residual min=-0.006676 max=0.008910 Jy/beam
! Clean residual mean=0.001068 rms=0.002546 Jy/beam
! Combined flux in latest and established models = 1.04627 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.004504 Jy
! Component: 100  -  total flux cleaned = 0.00788226 Jy
! Component: 150  -  total flux cleaned = 0.0104434 Jy
! Component: 200  -  total flux cleaned = 0.012394 Jy
! Total flux subtracted in 200 components = 0.012394 Jy
! Clean residual min=-0.005540 max=0.008474 Jy/beam
! Clean residual mean=0.000794 rms=0.002294 Jy/beam
! Combined flux in latest and established models = 1.05866 Jy
! Adding 72 model components to the UV plane model.
! The established model now contains 104 components and 1.05866 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! Estimated beam: bmin=0.6602 mas, bmaj=1.132 mas, bpa=-15.17 degrees
! Estimated noise=598.612 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00143434 Jy
! Component: 100  -  total flux cleaned = -0.00128062 Jy
! Component: 150  -  total flux cleaned = -0.000874611 Jy
! Component: 200  -  total flux cleaned = -0.000399357 Jy
! Total flux subtracted in 200 components = -0.000399357 Jy
! Clean residual min=-0.003965 max=0.005232 Jy/beam
! Clean residual mean=0.000203 rms=0.001143 Jy/beam
! Combined flux in latest and established models = 1.05826 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 119 components and 1.05826 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151691Jy  sigma=0.001123
! Fit after  self-cal, rms=0.151687Jy  sigma=0.001122
wmodel J1159+2914_X_2001_04_09_pus_map.mod
! Writing 119 model components to file: J1159+2914_X_2001_04_09_pus_map.mod
wobs J1159+2914_X_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1159+2914_X_2001_04_09_pus_uvs.fits
wwins J1159+2914_X_2001_04_09_pus_map.win
! wwins: Wrote 4 windows to J1159+2914_X_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 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00217774 Jy
! Component: 100  -  total flux cleaned = 0.00366992 Jy
! Component: 150  -  total flux cleaned = 0.00497811 Jy
! Component: 200  -  total flux cleaned = 0.00601351 Jy
! Component: 250  -  total flux cleaned = 0.00699351 Jy
! Component: 300  -  total flux cleaned = 0.00775162 Jy
! Component: 350  -  total flux cleaned = 0.00830854 Jy
! Component: 400  -  total flux cleaned = 0.00878931 Jy
! Component: 450  -  total flux cleaned = 0.00914776 Jy
! Component: 500  -  total flux cleaned = 0.00964109 Jy
! Component: 550  -  total flux cleaned = 0.0101657 Jy
! Component: 600  -  total flux cleaned = 0.0106302 Jy
! Component: 650  -  total flux cleaned = 0.0112179 Jy
! Component: 700  -  total flux cleaned = 0.0116591 Jy
! Component: 750  -  total flux cleaned = 0.012091 Jy
! Component: 800  -  total flux cleaned = 0.0125977 Jy
! Component: 850  -  total flux cleaned = 0.0130111 Jy
! Component: 900  -  total flux cleaned = 0.0133771 Jy
! Component: 950  -  total flux cleaned = 0.0138155 Jy
! Component: 1000  -  total flux cleaned = 0.0142847 Jy
! Total flux subtracted in 1024 components = 0.0145543 Jy
! Clean residual min=-0.002129 max=0.002321 Jy/beam
! Clean residual mean=0.000134 rms=0.000743 Jy/beam
! Combined flux in latest and established models = 1.07281 Jy
keep
! Adding 73 model components to the UV plane model.
! The established model now contains 192 components and 1.07281 Jy
![Exited script file: muppet]
wmap "J1159+2914_X_2001_04_09_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6602 x 1.132 at -15.17 degrees (North through East)
! Clean map  min=-0.002837  max=0.83504 Jy/beam
! Writing clean map to FITS file: J1159+2914_X_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 0.835039 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.32% of the data.
!  The x-axis pixel size should ideally be below 0.1695 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000741379 
device "J1159+2914_X_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1159+2914_X_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.266352 0.266352 0.532703 1.06541 2.13081 4.26162 8.52325 17.0465 34.093 68.186
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.835 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6602 x 1.132 at -15.17 degrees (North through East)
! Clean map  min=-0.002837  max=0.83504 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1159+2914_X_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1159+2914_X_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1159+2914_X_2001_04_09_pus_uvs.log closed on Mon Oct  1 14:41:07 2007