! Started logfile: J1159+2914_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:21:38 2007
obs J1159+2914_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1159+2914_X_1999_12_20_pus_uva.fits
! AN table 1: 54 integrations on 190 of 190 possible baselines.
! AN table 2: 134 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.26327 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 2418 lines of history.
! 
! Reading 37616 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_1999_12_20_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 738 telescope corrections were flagged in sub-array 1.
!  A total of 1340 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 738 telescope corrections were flagged in sub-array 1.
!  A total of 1340 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 738 telescope corrections were flagged in sub-array 1.
!  A total of 1340 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 738 telescope corrections were flagged in sub-array 1.
!  A total of 1340 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.623751Jy  sigma=0.014544
! Fit after  self-cal, rms=0.737944Jy  sigma=0.007192
! 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 0.365% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.5158 mas, bmaj=0.9512 mas, bpa=-4.245 degrees
! Estimated noise=837.215 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.25002 Jy
! Component: 100  -  total flux cleaned = 1.54531 Jy
! Total flux subtracted in 100 components = 1.54531 Jy
! Clean residual min=-0.045192 max=0.122011 Jy/beam
! Clean residual mean=0.000961 rms=0.013999 Jy/beam
! Combined flux in latest and established models = 1.54531 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.54531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340406Jy  sigma=0.002982
! Fit after  self-cal, rms=0.340341Jy  sigma=0.002981
! Inverting map 
! Your choice of large map pixels excluded 0.365% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.135716 Jy
! Component: 100  -  total flux cleaned = 0.208554 Jy
! Total flux subtracted in 100 components = 0.208554 Jy
! Clean residual min=-0.029018 max=0.053539 Jy/beam
! Clean residual mean=0.000434 rms=0.009512 Jy/beam
! Combined flux in latest and established models = 1.75387 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 7 components and 1.75387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274694Jy  sigma=0.002071
! Fit after  self-cal, rms=0.274691Jy  sigma=0.002071
! Inverting map 
! Your choice of large map pixels excluded 0.365% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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 0.365% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.6421 mas, bmaj=1.262 mas, bpa=-6.091 degrees
! Estimated noise=415.759 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.0547327 Jy
! Component: 100  -  total flux cleaned = 0.0797658 Jy
! Component: 150  -  total flux cleaned = 0.0911475 Jy
! Component: 200  -  total flux cleaned = 0.0934093 Jy
! Total flux subtracted in 200 components = 0.0934093 Jy
! Clean residual min=-0.020213 max=0.030252 Jy/beam
! Clean residual mean=0.001731 rms=0.006769 Jy/beam
! Combined flux in latest and established models = 1.84728 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 1.84728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267121Jy  sigma=0.001922
! Fit after  self-cal, rms=0.267039Jy  sigma=0.001921
! Inverting map 
! Your choice of large map pixels excluded 0.365% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        0.96     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        1.02     LA        1.04     
!   MC        1.00*    MK        0.97     NY        1.01     ON        1.00*    
!   OV        0.99     PT        1.03     SC        1.00*    TS        0.98     
!   WF        1.00*    WZ        1.00*    GN        2.13     NL        1.06     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        1.02     HH        1.00*    
!   HN        0.93     KK        1.00*    KP        1.01     LA        1.00     
!   MC        0.99     MK        1.00*    NY        1.00     ON        1.01     
!   OV        1.03     PT        0.99     SC        1.04     TS        1.00*    
!   WF        1.01     WZ        1.00     GN        1.01     NL        0.98     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        0.91     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        0.97     LA        1.04     
!   MC        1.00*    MK        0.98     NY        1.01     ON        1.00*    
!   OV        1.00     PT        1.02     SC        1.00*    TS        0.97     
!   WF        1.00*    WZ        1.00*    GN        2.37     NL        1.02     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        0.97     HH        1.00*    
!   HN        0.92     KK        1.00*    KP        0.96     LA        0.99     
!   MC        0.99     MK        1.00*    NY        0.99     ON        1.01     
!   OV        1.03     PT        0.97     SC        0.99     TS        1.00*    
!   WF        1.01     WZ        0.99     GN        1.00     NL        0.98     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     GC        0.94     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        0.99     LA        1.04     
!   MC        1.00*    MK        0.97     NY        0.99     ON        1.00*    
!   OV        0.98     PT        1.01     SC        1.00*    TS        0.98     
!   WF        1.00*    WZ        1.00*    GN        2.20     NL        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.01     GC        1.00     HH        1.00*    
!   HN        0.93     KK        1.00*    KP        0.98     LA        0.99     
!   MC        0.97     MK        1.00*    NY        0.96     ON        1.02     
!   OV        1.02     PT        0.98     SC        1.00     TS        1.00*    
!   WF        1.02     WZ        1.01     GN        1.01     NL        0.98     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.94     HH        1.00*    
!   HN        1.00*    KK        0.92     KP        0.97     LA        1.05     
!   MC        1.00*    MK        0.94     NY        1.04     ON        1.00*    
!   OV        0.99     PT        1.00     SC        1.00*    TS        0.98     
!   WF        1.00*    WZ        1.00*    GN        2.62     NL        1.05     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        1.01     HH        1.00*    
!   HN        0.93     KK        1.00*    KP        0.96     LA        0.99     
!   MC        1.00     MK        1.00*    NY        1.01     ON        1.02     
!   OV        1.02     PT        0.98     SC        0.99     TS        1.00*    
!   WF        1.00     WZ        1.00     GN        1.00     NL        0.98     
! 
! 
! Fit before self-cal, rms=0.267039Jy  sigma=0.001921
! Fit after  self-cal, rms=0.210951Jy  sigma=0.001319
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.6423 mas, bmaj=1.266 mas, bpa=-5.856 degrees
! Estimated noise=415.942 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.00566016 Jy
! Component: 100  -  total flux cleaned = 0.00549145 Jy
! Component: 150  -  total flux cleaned = 0.00534663 Jy
! Component: 200  -  total flux cleaned = 0.00534884 Jy
! Total flux subtracted in 200 components = 0.00534884 Jy
! Clean residual min=-0.006631 max=0.016022 Jy/beam
! Clean residual mean=0.001250 rms=0.003404 Jy/beam
! Combined flux in latest and established models = 1.85263 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 25 components and 1.85263 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210498Jy  sigma=0.001314
! Fit after  self-cal, rms=0.210666Jy  sigma=0.001314
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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.210666Jy  sigma=0.001314
! Fit after  self-cal, rms=0.210232Jy  sigma=0.001313
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.6408 mas, bmaj=1.267 mas, bpa=-5.839 degrees
! Estimated noise=416.295 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00464881 Jy
! Component: 100  -  total flux cleaned = 0.00466092 Jy
! Component: 150  -  total flux cleaned = 0.00453954 Jy
! Component: 200  -  total flux cleaned = 0.00454448 Jy
! Total flux subtracted in 200 components = 0.00454448 Jy
! Clean residual min=-0.006597 max=0.016014 Jy/beam
! Clean residual mean=0.001248 rms=0.003372 Jy/beam
! Combined flux in latest and established models = 1.85717 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 27 components and 1.85717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209931Jy  sigma=0.001310
! Fit after  self-cal, rms=0.209910Jy  sigma=0.001310
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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)
! Added new window around map position (3.2, 5.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154291 Jy
! Component: 100  -  total flux cleaned = 0.0245564 Jy
! Component: 150  -  total flux cleaned = 0.0307044 Jy
! Component: 200  -  total flux cleaned = 0.0350018 Jy
! Total flux subtracted in 200 components = 0.0350018 Jy
! Clean residual min=-0.005008 max=0.009423 Jy/beam
! Clean residual mean=0.000794 rms=0.002140 Jy/beam
! Combined flux in latest and established models = 1.89217 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 44 components and 1.89217 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208916Jy  sigma=0.001288
! Fit after  self-cal, rms=0.208849Jy  sigma=0.001287
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Added new window around map position (-0.4, 5.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0100552 Jy
! Component: 100  -  total flux cleaned = 0.0157154 Jy
! Component: 150  -  total flux cleaned = 0.019514 Jy
! Component: 200  -  total flux cleaned = 0.0224644 Jy
! Total flux subtracted in 200 components = 0.0224644 Jy
! Clean residual min=-0.004771 max=0.008272 Jy/beam
! Clean residual mean=0.000507 rms=0.001700 Jy/beam
! Combined flux in latest and established models = 1.91464 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 68 components and 1.91464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208410Jy  sigma=0.001279
! Fit after  self-cal, rms=0.208384Jy  sigma=0.001278
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Added new window around map position (-2, 11.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00640422 Jy
! Component: 100  -  total flux cleaned = 0.00871772 Jy
! Component: 150  -  total flux cleaned = 0.0102246 Jy
! Component: 200  -  total flux cleaned = 0.0109416 Jy
! Total flux subtracted in 200 components = 0.0109416 Jy
! Clean residual min=-0.004699 max=0.006135 Jy/beam
! Clean residual mean=0.000348 rms=0.001589 Jy/beam
! Combined flux in latest and established models = 1.92558 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 84 components and 1.92558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208135Jy  sigma=0.001275
! Fit after  self-cal, rms=0.208112Jy  sigma=0.001275
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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.208112Jy  sigma=0.001275
! Fit after  self-cal, rms=0.207350Jy  sigma=0.001273
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.6392 mas, bmaj=1.268 mas, bpa=-5.819 degrees
! Estimated noise=416.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00360735 Jy
! Component: 100  -  total flux cleaned = 0.00524199 Jy
! Component: 150  -  total flux cleaned = 0.00621889 Jy
! Component: 200  -  total flux cleaned = 0.00666126 Jy
! Total flux subtracted in 200 components = 0.00666126 Jy
! Clean residual min=-0.004260 max=0.005665 Jy/beam
! Clean residual mean=0.000288 rms=0.001486 Jy/beam
! Combined flux in latest and established models = 1.93224 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 92 components and 1.93224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207173Jy  sigma=0.001271
! Fit after  self-cal, rms=0.207165Jy  sigma=0.001271
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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.000771783 Jy
! Component: 100  -  total flux cleaned = 0.00108188 Jy
! Component: 150  -  total flux cleaned = 0.00145056 Jy
! Component: 200  -  total flux cleaned = 0.00172868 Jy
! Total flux subtracted in 200 components = 0.00172868 Jy
! Clean residual min=-0.004172 max=0.005487 Jy/beam
! Clean residual mean=0.000266 rms=0.001458 Jy/beam
! Combined flux in latest and established models = 1.93397 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 94 components and 1.93397 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207103Jy  sigma=0.001270
! Fit after  self-cal, rms=0.207098Jy  sigma=0.001270
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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.207098Jy  sigma=0.001270
! Fit after  self-cal, rms=0.206822Jy  sigma=0.001270
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=2.566 mas, bmaj=2.808 mas, bpa=40.84 degrees
! Estimated noise=532.353 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00555269 Jy
! Component: 100  -  total flux cleaned = 0.00895419 Jy
! Component: 150  -  total flux cleaned = 0.010407 Jy
! Component: 200  -  total flux cleaned = 0.0105673 Jy
! Total flux subtracted in 200 components = 0.0105673 Jy
! Clean residual min=-0.006294 max=0.007005 Jy/beam
! Clean residual mean=0.000458 rms=0.002650 Jy/beam
! Combined flux in latest and established models = 1.94454 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 107 components and 1.94454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206765Jy  sigma=0.001269
! Fit after  self-cal, rms=0.206753Jy  sigma=0.001269
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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.00107668 Jy
! Component: 100  -  total flux cleaned = 0.00136732 Jy
! Component: 150  -  total flux cleaned = 0.00149957 Jy
! Component: 200  -  total flux cleaned = 0.00156408 Jy
! Total flux subtracted in 200 components = 0.00156408 Jy
! Clean residual min=-0.005935 max=0.006865 Jy/beam
! Clean residual mean=0.000419 rms=0.002628 Jy/beam
! Combined flux in latest and established models = 1.9461 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 108 components and 1.9461 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206762Jy  sigma=0.001269
! Fit after  self-cal, rms=0.206759Jy  sigma=0.001269
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.6382 mas, bmaj=1.269 mas, bpa=-5.807 degrees
! Estimated noise=416.452 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6382 x 1.269 at -5.807 degrees (North through East)
! Clean map  min=-0.0034792  max=1.6792 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.206759Jy  sigma=0.001269
! Fit after  self-cal, rms=0.198403Jy  sigma=0.001185
! Inverting map and beam 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.638 mas, bmaj=1.269 mas, bpa=-5.79 degrees
! Estimated noise=416.718 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00137433 Jy
! Component: 100  -  total flux cleaned = 0.000840138 Jy
! Component: 150  -  total flux cleaned = 0.000197458 Jy
! Component: 200  -  total flux cleaned = -0.000171318 Jy
! Total flux subtracted in 200 components = -0.000171318 Jy
! Clean residual min=-0.003587 max=0.005072 Jy/beam
! Clean residual mean=0.000177 rms=0.001282 Jy/beam
! Combined flux in latest and established models = 1.94593 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 117 components and 1.94593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198293Jy  sigma=0.001184
! Fit after  self-cal, rms=0.198292Jy  sigma=0.001184
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000202658 Jy
! Component: 100  -  total flux cleaned = -0.000534864 Jy
! Component: 150  -  total flux cleaned = -0.00072157 Jy
! Component: 200  -  total flux cleaned = -0.000781048 Jy
! Total flux subtracted in 200 components = -0.000781048 Jy
! Clean residual min=-0.003595 max=0.004928 Jy/beam
! Clean residual mean=0.000188 rms=0.001273 Jy/beam
! Combined flux in latest and established models = 1.94515 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 122 components and 1.94515 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198240Jy  sigma=0.001184
! Fit after  self-cal, rms=0.198239Jy  sigma=0.001184
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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.198239Jy  sigma=0.001184
! Fit after  self-cal, rms=0.198126Jy  sigma=0.001183
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 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.5132 mas, bmaj=0.9573 mas, bpa=-3.542 degrees
! Estimated noise=875.6 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.25602 Jy
! Component: 100  -  total flux cleaned = 1.54844 Jy
! Component: 150  -  total flux cleaned = 1.67691 Jy
! Component: 200  -  total flux cleaned = 1.74473 Jy
! Total flux subtracted in 200 components = 1.74473 Jy
! Clean residual min=-0.014642 max=0.033090 Jy/beam
! Clean residual mean=0.000499 rms=0.003932 Jy/beam
! Combined flux in latest and established models = 1.74473 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 8 model components to the UV plane model.
! The established model now contains 8 components and 1.74473 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.6374 mas, bmaj=1.269 mas, bpa=-5.777 degrees
! Estimated noise=416.87 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.0627677 Jy
! Component: 100  -  total flux cleaned = 0.0930024 Jy
! Component: 150  -  total flux cleaned = 0.11254 Jy
! Component: 200  -  total flux cleaned = 0.127492 Jy
! Total flux subtracted in 200 components = 0.127492 Jy
! Clean residual min=-0.005869 max=0.011322 Jy/beam
! Clean residual mean=0.001160 rms=0.002967 Jy/beam
! Combined flux in latest and established models = 1.87222 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 41 components and 1.87222 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 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 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=2.567 mas, bmaj=2.81 mas, bpa=41.07 degrees
! Estimated noise=533.283 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0244023 Jy
! Component: 100  -  total flux cleaned = 0.0403194 Jy
! Component: 150  -  total flux cleaned = 0.0514023 Jy
! Component: 200  -  total flux cleaned = 0.0593881 Jy
! Total flux subtracted in 200 components = 0.0593881 Jy
! Clean residual min=-0.007357 max=0.007150 Jy/beam
! Clean residual mean=0.001002 rms=0.003196 Jy/beam
! Combined flux in latest and established models = 1.93161 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.0059614 Jy
! Component: 100  -  total flux cleaned = 0.0104371 Jy
! Component: 150  -  total flux cleaned = 0.0138151 Jy
! Component: 200  -  total flux cleaned = 0.0161905 Jy
! Total flux subtracted in 200 components = 0.0161905 Jy
! Clean residual min=-0.006835 max=0.006692 Jy/beam
! Clean residual mean=0.000419 rms=0.002665 Jy/beam
! Combined flux in latest and established models = 1.9478 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 93 components and 1.9478 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! Estimated beam: bmin=0.6374 mas, bmaj=1.269 mas, bpa=-5.777 degrees
! Estimated noise=416.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00030552 Jy
! Component: 100  -  total flux cleaned = -0.000486487 Jy
! Component: 150  -  total flux cleaned = -0.000169942 Jy
! Component: 200  -  total flux cleaned = -1.56053e-05 Jy
! Total flux subtracted in 200 components = -1.56053e-05 Jy
! Clean residual min=-0.004505 max=0.005555 Jy/beam
! Clean residual mean=0.000165 rms=0.001380 Jy/beam
! Combined flux in latest and established models = 1.94778 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 105 components and 1.94778 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199088Jy  sigma=0.001189
! Fit after  self-cal, rms=0.199029Jy  sigma=0.001189
wmodel J1159+2914_X_1999_12_20_pus_map.mod
! Writing 105 model components to file: J1159+2914_X_1999_12_20_pus_map.mod
wobs J1159+2914_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1159+2914_X_1999_12_20_pus_uvs.fits
wwins J1159+2914_X_1999_12_20_pus_map.win
! wwins: Wrote 4 windows to J1159+2914_X_1999_12_20_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 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00225853 Jy
! Component: 100  -  total flux cleaned = 0.00349442 Jy
! Component: 150  -  total flux cleaned = 0.00442295 Jy
! Component: 200  -  total flux cleaned = 0.00538164 Jy
! Component: 250  -  total flux cleaned = 0.00630209 Jy
! Component: 300  -  total flux cleaned = 0.00691559 Jy
! Component: 350  -  total flux cleaned = 0.00744425 Jy
! Component: 400  -  total flux cleaned = 0.00795793 Jy
! Component: 450  -  total flux cleaned = 0.00845804 Jy
! Component: 500  -  total flux cleaned = 0.00894458 Jy
! Component: 550  -  total flux cleaned = 0.00930106 Jy
! Component: 600  -  total flux cleaned = 0.00970909 Jy
! Component: 650  -  total flux cleaned = 0.00999478 Jy
! Component: 700  -  total flux cleaned = 0.0103315 Jy
! Component: 750  -  total flux cleaned = 0.0106064 Jy
! Component: 800  -  total flux cleaned = 0.0108772 Jy
! Component: 850  -  total flux cleaned = 0.0111441 Jy
! Component: 900  -  total flux cleaned = 0.0114589 Jy
! Component: 950  -  total flux cleaned = 0.0116658 Jy
! Component: 1000  -  total flux cleaned = 0.0118191 Jy
! Total flux subtracted in 1024 components = 0.0119202 Jy
! Clean residual min=-0.002777 max=0.002521 Jy/beam
! Clean residual mean=0.000060 rms=0.000984 Jy/beam
! Combined flux in latest and established models = 1.9597 Jy
keep
! Adding 72 model components to the UV plane model.
! The established model now contains 176 components and 1.9597 Jy
![Exited script file: muppet]
wmap "J1159+2914_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6374 x 1.269 at -5.777 degrees (North through East)
! Clean map  min=-0.0029345  max=1.6816 Jy/beam
! Writing clean map to FITS file: J1159+2914_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.6816 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.366% of the data.
!  The x-axis pixel size should ideally be below 0.1957 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000981013 
device "J1159+2914_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1159+2914_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.175014 0.175014 0.350028 0.700057 1.40011 2.80023 5.60045 11.2009 22.4018 44.8036 89.6073
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.681 
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.6374 x 1.269 at -5.777 degrees (North through East)
! Clean map  min=-0.0029345  max=1.6816 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1159+2914_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1159+2914_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1159+2914_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:21:49 2007