! Started logfile: J1130+3815_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:21:02 2007
obs J1130+3815_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1130+3815_X_1999_12_20_pus_uva.fits
! AN table 1: 436 integrations on 190 of 190 possible baselines.
! AN table 2: 38 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.185776 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1130+3815
! 
! 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 66924 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 J1130+3815_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 5933 telescope corrections were flagged in sub-array 1.
!  A total of 452 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 5933 telescope corrections were flagged in sub-array 1.
!  A total of 452 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 5942 telescope corrections were flagged in sub-array 1.
!  A total of 452 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 5933 telescope corrections were flagged in sub-array 1.
!  A total of 452 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.766169Jy  sigma=0.006370
! Fit after  self-cal, rms=0.435300Jy  sigma=0.003066
! 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 3.62% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.5452 mas, bmaj=0.7553 mas, bpa=-6.514 degrees
! Estimated noise=906.441 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.523358 Jy
! Component: 100  -  total flux cleaned = 0.639328 Jy
! Total flux subtracted in 100 components = 0.639328 Jy
! Clean residual min=-0.010432 max=0.039836 Jy/beam
! Clean residual mean=0.000095 rms=0.003696 Jy/beam
! Combined flux in latest and established models = 0.639328 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.639328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307269Jy  sigma=0.001649
! Fit after  self-cal, rms=0.307244Jy  sigma=0.001649
! Inverting map 
! Your choice of large map pixels excluded 3.62% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0442975 Jy
! Component: 100  -  total flux cleaned = 0.0707856 Jy
! Total flux subtracted in 100 components = 0.0707856 Jy
! Clean residual min=-0.007889 max=0.014795 Jy/beam
! Clean residual mean=0.000036 rms=0.002547 Jy/beam
! Combined flux in latest and established models = 0.710114 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 11 components and 0.710114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297641Jy  sigma=0.001413
! Fit after  self-cal, rms=0.297506Jy  sigma=0.001411
! Inverting map 
! Your choice of large map pixels excluded 3.62% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0194576 Jy
! Component: 100  -  total flux cleaned = 0.0334165 Jy
! Total flux subtracted in 100 components = 0.0334165 Jy
! Clean residual min=-0.007360 max=0.011765 Jy/beam
! Clean residual mean=0.000008 rms=0.002189 Jy/beam
! Combined flux in latest and established models = 0.74353 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 15 components and 0.74353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295233Jy  sigma=0.001346
! Fit after  self-cal, rms=0.295197Jy  sigma=0.001345
! Inverting map 
! Your choice of large map pixels excluded 3.62% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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 3.62% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.6854 mas, bmaj=0.9211 mas, bpa=-14.74 degrees
! Estimated noise=320.311 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.023149 Jy
! Component: 100  -  total flux cleaned = 0.0360576 Jy
! Component: 150  -  total flux cleaned = 0.043777 Jy
! Component: 200  -  total flux cleaned = 0.0484104 Jy
! Total flux subtracted in 200 components = 0.0484104 Jy
! Clean residual min=-0.005114 max=0.010654 Jy/beam
! Clean residual mean=-0.000042 rms=0.001590 Jy/beam
! Combined flux in latest and established models = 0.791941 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 22 components and 0.791941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293919Jy  sigma=0.001302
! Fit after  self-cal, rms=0.293918Jy  sigma=0.001301
! Inverting map 
! Your choice of large map pixels excluded 3.62% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Added new window around map position (-0.8, -1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00895541 Jy
! Component: 100  -  total flux cleaned = 0.0108588 Jy
! Component: 150  -  total flux cleaned = 0.0117366 Jy
! Component: 200  -  total flux cleaned = 0.012348 Jy
! Total flux subtracted in 200 components = 0.012348 Jy
! Clean residual min=-0.005094 max=0.006019 Jy/beam
! Clean residual mean=-0.000157 rms=0.001382 Jy/beam
! Combined flux in latest and established models = 0.804289 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 34 components and 0.804289 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293635Jy  sigma=0.001295
! Fit after  self-cal, rms=0.293597Jy  sigma=0.001295
! Inverting map 
! Your choice of large map pixels excluded 3.62% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 288 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        1.01     HH        1.00*    
!   HN        0.98     KK        1.04     KP        1.01     LA        1.00     
!   MC        1.01     MK        1.02     NY        1.00     ON        1.03     
!   OV        0.99     PT        1.04     SC        1.03     TS        0.99     
!   WF        1.05     WZ        0.99     GN        1.00     NL        1.00     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.05     GC        1.00     HH        1.06     
!   HN        0.95     KK        1.00*    KP        1.10     LA        1.06     
!   MC        1.03     MK        1.00*    NY        1.08     ON        1.00*    
!   OV        1.00*    PT        1.03     SC        1.02     TS        1.00*    
!   WF        1.18     WZ        1.00     GN        1.00*    NL        1.02     
! 
! 
! Correcting IF 2.
!  A total of 288 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        0.96     HH        1.00*    
!   HN        0.97     KK        1.03     KP        0.96     LA        0.99     
!   MC        1.01     MK        1.02     NY        1.00     ON        1.03     
!   OV        0.99     PT        1.03     SC        0.97     TS        0.99     
!   WF        1.03     WZ        0.94     GN        1.01     NL        1.01     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.06     GC        0.96     HH        1.15     
!   HN        0.94     KK        1.00*    KP        1.04     LA        1.05     
!   MC        0.99     MK        1.00*    NY        1.06     ON        1.00*    
!   OV        1.00*    PT        1.03     SC        1.01     TS        1.00*    
!   WF        1.24     WZ        0.98     GN        1.00*    NL        1.01     
! 
! 
! Correcting IF 3.
!  A total of 291 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        0.99     HH        1.00*    
!   HN        0.98     KK        1.03     KP        0.97     LA        0.99     
!   MC        0.91     MK        1.01     NY        0.97     ON        1.05     
!   OV        0.98     PT        1.03     SC        0.98     TS        0.99     
!   WF        1.03     WZ        0.95     GN        1.01     NL        1.01     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.06     GC        0.99     HH        0.99     
!   HN        0.96     KK        1.00*    KP        1.06     LA        1.04     
!   MC        0.95     MK        1.00*    NY        0.97     ON        1.00*    
!   OV        1.00*    PT        1.01     SC        1.46     TS        1.00*    
!   WF        1.11     WZ        0.92     GN        1.00*    NL        1.02     
! 
! 
! Correcting IF 4.
!  A total of 288 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.00     HH        1.00*    
!   HN        0.99     KK        1.03     KP        0.95     LA        1.00     
!   MC        1.02     MK        0.98     NY        1.00     ON        1.05     
!   OV        0.98     PT        1.02     SC        0.97     TS        0.98     
!   WF        1.04     WZ        0.99     GN        1.01     NL        1.02     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.06     GC        1.01     HH        0.99     
!   HN        0.96     KK        1.00*    KP        1.05     LA        1.05     
!   MC        0.94     MK        1.00*    NY        1.03     ON        1.00*    
!   OV        1.00*    PT        1.03     SC        0.99     TS        1.00*    
!   WF        1.16     WZ        0.92     GN        1.00*    NL        1.03     
! 
! 
! Fit before self-cal, rms=0.293597Jy  sigma=0.001295
! Fit after  self-cal, rms=0.291704Jy  sigma=0.001270
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.6845 mas, bmaj=0.9306 mas, bpa=-14.5 degrees
! Estimated noise=320.552 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.00268865 Jy
! Component: 100  -  total flux cleaned = 0.00334022 Jy
! Component: 150  -  total flux cleaned = 0.00360696 Jy
! Component: 200  -  total flux cleaned = 0.00368649 Jy
! Total flux subtracted in 200 components = 0.00368649 Jy
! Clean residual min=-0.004534 max=0.004915 Jy/beam
! Clean residual mean=0.000135 rms=0.001056 Jy/beam
! Combined flux in latest and established models = 0.807975 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 43 components and 0.807975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291610Jy  sigma=0.001269
! Fit after  self-cal, rms=0.291655Jy  sigma=0.001268
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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.291655Jy  sigma=0.001268
! Fit after  self-cal, rms=0.276861Jy  sigma=0.001250
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.6837 mas, bmaj=0.9327 mas, bpa=-14.88 degrees
! Estimated noise=320.85 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0013742 Jy
! Component: 100  -  total flux cleaned = 0.00188974 Jy
! Component: 150  -  total flux cleaned = 0.00211466 Jy
! Component: 200  -  total flux cleaned = 0.00230716 Jy
! Total flux subtracted in 200 components = 0.00230716 Jy
! Clean residual min=-0.002019 max=0.002482 Jy/beam
! Clean residual mean=0.000152 rms=0.000556 Jy/beam
! Combined flux in latest and established models = 0.810282 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 52 components and 0.810282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276791Jy  sigma=0.001249
! Fit after  self-cal, rms=0.276772Jy  sigma=0.001249
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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 (-2.8, -0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0014057 Jy
! Component: 100  -  total flux cleaned = 0.00202387 Jy
! Component: 150  -  total flux cleaned = 0.00238602 Jy
! Component: 200  -  total flux cleaned = 0.00260479 Jy
! Total flux subtracted in 200 components = 0.00260479 Jy
! Clean residual min=-0.001897 max=0.002092 Jy/beam
! Clean residual mean=0.000125 rms=0.000518 Jy/beam
! Combined flux in latest and established models = 0.812887 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 65 components and 0.812887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276736Jy  sigma=0.001248
! Fit after  self-cal, rms=0.276732Jy  sigma=0.001248
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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.276732Jy  sigma=0.001248
! Fit after  self-cal, rms=0.276417Jy  sigma=0.001248
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.6833 mas, bmaj=0.9334 mas, bpa=-14.94 degrees
! Estimated noise=320.759 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000339448 Jy
! Component: 100  -  total flux cleaned = 0.000732628 Jy
! Component: 150  -  total flux cleaned = 0.000926709 Jy
! Component: 200  -  total flux cleaned = 0.00106142 Jy
! Total flux subtracted in 200 components = 0.00106142 Jy
! Clean residual min=-0.001713 max=0.001955 Jy/beam
! Clean residual mean=0.000130 rms=0.000494 Jy/beam
! Combined flux in latest and established models = 0.813949 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 71 components and 0.813949 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276395Jy  sigma=0.001248
! Fit after  self-cal, rms=0.276393Jy  sigma=0.001248
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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 = 8.78717e-05 Jy
! Component: 100  -  total flux cleaned = 0.000216698 Jy
! Component: 150  -  total flux cleaned = 0.000295534 Jy
! Component: 200  -  total flux cleaned = 0.000332382 Jy
! Total flux subtracted in 200 components = 0.000332382 Jy
! Clean residual min=-0.001698 max=0.001958 Jy/beam
! Clean residual mean=0.000127 rms=0.000485 Jy/beam
! Combined flux in latest and established models = 0.814281 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 77 components and 0.814281 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276381Jy  sigma=0.001248
! Fit after  self-cal, rms=0.276380Jy  sigma=0.001248
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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.276380Jy  sigma=0.001248
! Fit after  self-cal, rms=0.276401Jy  sigma=0.001248
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=2.16 mas, bmaj=2.724 mas, bpa=16.47 degrees
! Estimated noise=466.097 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00124209 Jy
! Component: 100  -  total flux cleaned = 0.00142656 Jy
! Component: 150  -  total flux cleaned = 0.00155843 Jy
! Component: 200  -  total flux cleaned = 0.00164467 Jy
! Total flux subtracted in 200 components = 0.00164467 Jy
! Clean residual min=-0.001781 max=0.003517 Jy/beam
! Clean residual mean=0.000415 rms=0.000876 Jy/beam
! Combined flux in latest and established models = 0.815926 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 83 components and 0.815926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276403Jy  sigma=0.001248
! Fit after  self-cal, rms=0.276404Jy  sigma=0.001248
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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.000210894 Jy
! Component: 100  -  total flux cleaned = 0.000295917 Jy
! Component: 150  -  total flux cleaned = 0.000342003 Jy
! Component: 200  -  total flux cleaned = 0.000362723 Jy
! Total flux subtracted in 200 components = 0.000362723 Jy
! Clean residual min=-0.001662 max=0.003470 Jy/beam
! Clean residual mean=0.000403 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 0.816288 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 85 components and 0.816288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276403Jy  sigma=0.001248
! Fit after  self-cal, rms=0.276403Jy  sigma=0.001248
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.683 mas, bmaj=0.934 mas, bpa=-14.96 degrees
! Estimated noise=320.791 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.683 x 0.934 at -14.96 degrees (North through East)
! Clean map  min=-0.001459  max=0.69446 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.276403Jy  sigma=0.001248
! Fit after  self-cal, rms=0.304322Jy  sigma=0.001173
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.6831 mas, bmaj=0.9335 mas, bpa=-14.98 degrees
! Estimated noise=320.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000697041 Jy
! Component: 100  -  total flux cleaned = -0.000865442 Jy
! Component: 150  -  total flux cleaned = -0.000978155 Jy
! Component: 200  -  total flux cleaned = -0.00104725 Jy
! Total flux subtracted in 200 components = -0.00104725 Jy
! Clean residual min=-0.001597 max=0.001913 Jy/beam
! Clean residual mean=0.000122 rms=0.000435 Jy/beam
! Combined flux in latest and established models = 0.815241 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 93 components and 0.815241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304310Jy  sigma=0.001173
! Fit after  self-cal, rms=0.304312Jy  sigma=0.001173
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Added new window around map position (-4.8, 2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00180559 Jy
! Component: 100  -  total flux cleaned = 0.00247883 Jy
! Component: 150  -  total flux cleaned = 0.00262621 Jy
! Component: 200  -  total flux cleaned = 0.00275913 Jy
! Total flux subtracted in 200 components = 0.00275913 Jy
! Clean residual min=-0.001580 max=0.001745 Jy/beam
! Clean residual mean=0.000095 rms=0.000407 Jy/beam
! Combined flux in latest and established models = 0.818 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 105 components and 0.818 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304300Jy  sigma=0.001173
! Fit after  self-cal, rms=0.304299Jy  sigma=0.001173
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Added new window around map position (8.6, -6.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000686577 Jy
! Component: 100  -  total flux cleaned = 0.000507842 Jy
! Component: 150  -  total flux cleaned = 0.000616102 Jy
! Component: 200  -  total flux cleaned = 0.000751891 Jy
! Total flux subtracted in 200 components = 0.000751891 Jy
! Clean residual min=-0.001501 max=0.001443 Jy/beam
! Clean residual mean=0.000088 rms=0.000397 Jy/beam
! Combined flux in latest and established models = 0.818752 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 117 components and 0.818752 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304283Jy  sigma=0.001172
! Fit after  self-cal, rms=0.304281Jy  sigma=0.001172
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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.304281Jy  sigma=0.001172
! Fit after  self-cal, rms=0.304519Jy  sigma=0.001172
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 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.5437 mas, bmaj=0.7579 mas, bpa=-7.3 degrees
! Estimated noise=923.421 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.526028 Jy
! Component: 100  -  total flux cleaned = 0.643258 Jy
! Component: 150  -  total flux cleaned = 0.688961 Jy
! Component: 200  -  total flux cleaned = 0.716213 Jy
! Total flux subtracted in 200 components = 0.716213 Jy
! Clean residual min=-0.005627 max=0.014949 Jy/beam
! Clean residual mean=0.000084 rms=0.001925 Jy/beam
! Combined flux in latest and established models = 0.716213 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 14 model components to the UV plane model.
! The established model now contains 14 components and 0.716213 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.683 mas, bmaj=0.9339 mas, bpa=-15.01 degrees
! Estimated noise=320.514 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.0356124 Jy
! Component: 100  -  total flux cleaned = 0.0561545 Jy
! Component: 150  -  total flux cleaned = 0.0690081 Jy
! Component: 200  -  total flux cleaned = 0.0772414 Jy
! Total flux subtracted in 200 components = 0.0772414 Jy
! Clean residual min=-0.002063 max=0.004371 Jy/beam
! Clean residual mean=0.000330 rms=0.000799 Jy/beam
! Combined flux in latest and established models = 0.793455 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 40 components and 0.793455 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0054668 Jy
! Component: 100  -  total flux cleaned = 0.00943661 Jy
! Component: 150  -  total flux cleaned = 0.0124799 Jy
! Component: 200  -  total flux cleaned = 0.0149197 Jy
! Total flux subtracted in 200 components = 0.0149197 Jy
! Clean residual min=-0.001750 max=0.002028 Jy/beam
! Clean residual mean=0.000188 rms=0.000473 Jy/beam
! Combined flux in latest and established models = 0.808374 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 70 components and 0.808374 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Added new window around map position (-3, 2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00219412 Jy
! Component: 100  -  total flux cleaned = 0.00384111 Jy
! Component: 150  -  total flux cleaned = 0.00503164 Jy
! Component: 200  -  total flux cleaned = 0.00603319 Jy
! Total flux subtracted in 200 components = 0.00603319 Jy
! Clean residual min=-0.001647 max=0.001414 Jy/beam
! Clean residual mean=0.000130 rms=0.000410 Jy/beam
! Combined flux in latest and established models = 0.814408 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 91 components and 0.814408 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 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 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=2.16 mas, bmaj=2.725 mas, bpa=16.46 degrees
! Estimated noise=465.474 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00242157 Jy
! Component: 100  -  total flux cleaned = 0.00395265 Jy
! Component: 150  -  total flux cleaned = 0.00466093 Jy
! Component: 200  -  total flux cleaned = 0.00506496 Jy
! Total flux subtracted in 200 components = 0.00506496 Jy
! Clean residual min=-0.001227 max=0.001871 Jy/beam
! Clean residual mean=0.000292 rms=0.000566 Jy/beam
! Combined flux in latest and established models = 0.819473 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.000355316 Jy
! Component: 100  -  total flux cleaned = 0.000626528 Jy
! Component: 150  -  total flux cleaned = 0.000835468 Jy
! Component: 200  -  total flux cleaned = 0.000926677 Jy
! Total flux subtracted in 200 components = 0.000926677 Jy
! Clean residual min=-0.001195 max=0.001883 Jy/beam
! Clean residual mean=0.000260 rms=0.000559 Jy/beam
! Combined flux in latest and established models = 0.820399 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 123 components and 0.820399 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! Estimated beam: bmin=0.683 mas, bmaj=0.9339 mas, bpa=-15.01 degrees
! Estimated noise=320.514 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000587532 Jy
! Component: 100  -  total flux cleaned = -0.000882228 Jy
! Component: 150  -  total flux cleaned = -0.000882236 Jy
! Component: 200  -  total flux cleaned = -0.000848641 Jy
! Total flux subtracted in 200 components = -0.000848641 Jy
! Clean residual min=-0.001588 max=0.001426 Jy/beam
! Clean residual mean=0.000081 rms=0.000379 Jy/beam
! Combined flux in latest and established models = 0.819551 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 139 components and 0.819551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304501Jy  sigma=0.001172
! Fit after  self-cal, rms=0.304499Jy  sigma=0.001172
wmodel J1130+3815_X_1999_12_20_pus_map.mod
! Writing 139 model components to file: J1130+3815_X_1999_12_20_pus_map.mod
wobs J1130+3815_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1130+3815_X_1999_12_20_pus_uvs.fits
wwins J1130+3815_X_1999_12_20_pus_map.win
! wwins: Wrote 6 windows to J1130+3815_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 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000158453 Jy
! Component: 100  -  total flux cleaned = -4.13291e-05 Jy
! Component: 150  -  total flux cleaned = 7.07315e-05 Jy
! Component: 200  -  total flux cleaned = 0.000222334 Jy
! Component: 250  -  total flux cleaned = 0.000452752 Jy
! Component: 300  -  total flux cleaned = 0.000575048 Jy
! Component: 350  -  total flux cleaned = 0.00071511 Jy
! Component: 400  -  total flux cleaned = 0.00083294 Jy
! Component: 450  -  total flux cleaned = 0.000929282 Jy
! Component: 500  -  total flux cleaned = 0.00102416 Jy
! Component: 550  -  total flux cleaned = 0.00113633 Jy
! Component: 600  -  total flux cleaned = 0.00121004 Jy
! Component: 650  -  total flux cleaned = 0.00130097 Jy
! Component: 700  -  total flux cleaned = 0.00142663 Jy
! Component: 750  -  total flux cleaned = 0.00151519 Jy
! Component: 800  -  total flux cleaned = 0.00162039 Jy
! Component: 850  -  total flux cleaned = 0.00172437 Jy
! Component: 900  -  total flux cleaned = 0.00179299 Jy
! Component: 950  -  total flux cleaned = 0.00187785 Jy
! Component: 1000  -  total flux cleaned = 0.00192835 Jy
! Total flux subtracted in 1024 components = 0.00199516 Jy
! Clean residual min=-0.000901 max=0.000958 Jy/beam
! Clean residual mean=0.000061 rms=0.000320 Jy/beam
! Combined flux in latest and established models = 0.821546 Jy
keep
! Adding 87 model components to the UV plane model.
! The established model now contains 226 components and 0.821546 Jy
![Exited script file: muppet]
wmap "J1130+3815_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.683 x 0.9339 at -15.01 degrees (North through East)
! Clean map  min=-0.0014642  max=0.69499 Jy/beam
! Writing clean map to FITS file: J1130+3815_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 0.694991 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.1603 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1595 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00032011 
device "J1130+3815_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1130+3815_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.138179 0.138179 0.276358 0.552715 1.10543 2.21086 4.42172 8.84344 17.6869 35.3738 70.7475
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.694 
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.683 x 0.9339 at -15.01 degrees (North through East)
! Clean map  min=-0.0014642  max=0.69499 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1130+3815_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1130+3815_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1130+3815_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:21:25 2007