! Started logfile: J0914+0245_X_1999_05_10_pus_uvs.log on Mon Jan 14 12:40:24 2008
obs J0914+0245_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0914+0245_X_1999_05_10_pus_uva.fits
! AN table 1: 158 integrations on 153 of 153 possible baselines.
! AN table 2: 105 integrations on 153 of 153 possible baselines.
! AN table 3: 72 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.115598 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0914+0245
! 
! 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 1759 lines of history.
! 
! Reading 23700 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 J0914+0245_X_1999_05_10_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 1794 telescope corrections were flagged in sub-array 1.
!  A total of 1307 telescope corrections were flagged in sub-array 2.
!  A total of 842 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1794 telescope corrections were flagged in sub-array 1.
!  A total of 1307 telescope corrections were flagged in sub-array 2.
!  A total of 842 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1794 telescope corrections were flagged in sub-array 1.
!  A total of 1308 telescope corrections were flagged in sub-array 2.
!  A total of 842 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1863 telescope corrections were flagged in sub-array 1.
!  A total of 1307 telescope corrections were flagged in sub-array 2.
!  A total of 916 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.718331Jy  sigma=0.005385
! Fit after  self-cal, rms=0.589845Jy  sigma=0.004440
! 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 2% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.6376 mas, bmaj=0.9585 mas, bpa=0.635 degrees
! Estimated noise=1326.71 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.3753 Jy
! Component: 100  -  total flux cleaned = 0.482241 Jy
! Total flux subtracted in 100 components = 0.482241 Jy
! Clean residual min=-0.015619 max=0.043605 Jy/beam
! Clean residual mean=0.000980 rms=0.007018 Jy/beam
! Combined flux in latest and established models = 0.482241 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.482241 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290055Jy  sigma=0.001502
! Fit after  self-cal, rms=0.290418Jy  sigma=0.001501
! Inverting map 
! Your choice of large map pixels excluded 2% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0463939 Jy
! Component: 100  -  total flux cleaned = 0.0716428 Jy
! Total flux subtracted in 100 components = 0.0716429 Jy
! Clean residual min=-0.014011 max=0.021103 Jy/beam
! Clean residual mean=0.000510 rms=0.004414 Jy/beam
! Combined flux in latest and established models = 0.553884 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 17 components and 0.553884 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280970Jy  sigma=0.001301
! Fit after  self-cal, rms=0.281057Jy  sigma=0.001300
! Inverting map 
! Your choice of large map pixels excluded 2% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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 2% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.7766 mas, bmaj=1.394 mas, bpa=-8.925 degrees
! Estimated noise=560.994 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.0254668 Jy
! Component: 100  -  total flux cleaned = 0.0376766 Jy
! Component: 150  -  total flux cleaned = 0.0437716 Jy
! Component: 200  -  total flux cleaned = 0.0449954 Jy
! Total flux subtracted in 200 components = 0.0449954 Jy
! Clean residual min=-0.011215 max=0.016701 Jy/beam
! Clean residual mean=0.001005 rms=0.003690 Jy/beam
! Combined flux in latest and established models = 0.59888 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 24 components and 0.59888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279662Jy  sigma=0.001255
! Fit after  self-cal, rms=0.279589Jy  sigma=0.001255
! Inverting map 
! Your choice of large map pixels excluded 2% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        1.11     HH        1.02     
!   HN        1.00*    KK        0.91     KP        0.99     LA        0.97     
!   MC        1.08     MK        0.98     NL        1.13     NY        1.08     
!   ON        0.87     OV        0.96     PT        1.02     SC        1.00*    
!   WF        1.00*    WZ        0.98     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.04     
!   HN        0.98     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00     MK        1.00*    NL        1.00*    NY        1.07     
!   ON        0.85     OV        1.00*    PT        1.00*    SC        1.08     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.12     MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.07     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        0.97     WZ        1.05     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.97     GC        1.04     HH        1.08     
!   HN        1.00*    KK        0.95     KP        0.99     LA        0.98     
!   MC        1.01     MK        0.97     NL        1.07     NY        1.13     
!   ON        0.90     OV        0.94     PT        0.93     SC        1.00*    
!   WF        1.00*    WZ        1.08     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.97     
!   HN        0.98     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.98     MK        1.00*    NL        1.00*    NY        1.07     
!   ON        0.88     OV        1.00*    PT        1.00*    SC        1.11     
!   WF        1.09     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.12     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.06     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        0.98     WZ        1.06     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.01     GC        1.02     HH        1.04     
!   HN        1.00*    KK        1.01     KP        1.02     LA        0.98     
!   MC        1.09     MK        0.96     NL        1.12     NY        1.19     
!   ON        0.91     OV        0.96     PT        0.93     SC        1.00*    
!   WF        1.00*    WZ        1.06     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.96     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00     MK        1.00*    NL        1.00*    NY        1.15     
!   ON        0.92     OV        1.00*    PT        1.00*    SC        1.13     
!   WF        1.07     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.19     MK        1.00*    NL        1.02     NY        1.00*    
!   ON        1.08     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00     WZ        1.06     
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00     HH        0.96     
!   HN        1.00*    KK        1.01     KP        1.00     LA        1.00     
!   MC        0.92     MK        0.97     NL        1.12     NY        1.32     
!   ON        1.07     OV        0.98     PT        0.97     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.06     
!   HN        0.99     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00     MK        1.00*    NL        1.00*    NY        1.24     
!   ON        0.93     OV        1.00*    PT        1.00*    SC        1.09     
!   WF        1.08     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        0.99     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.10     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.03     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.279589Jy  sigma=0.001255
! Fit after  self-cal, rms=0.282991Jy  sigma=0.001206
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.7915 mas, bmaj=1.404 mas, bpa=-8.747 degrees
! Estimated noise=567.087 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.8, 4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00930569 Jy
! Component: 100  -  total flux cleaned = 0.0112216 Jy
! Component: 150  -  total flux cleaned = 0.0119072 Jy
! Component: 200  -  total flux cleaned = 0.0123477 Jy
! Total flux subtracted in 200 components = 0.0123477 Jy
! Clean residual min=-0.003685 max=0.006112 Jy/beam
! Clean residual mean=0.000038 rms=0.001321 Jy/beam
! Combined flux in latest and established models = 0.611227 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 43 components and 0.611227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282660Jy  sigma=0.001200
! Fit after  self-cal, rms=0.282651Jy  sigma=0.001199
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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.282651Jy  sigma=0.001199
! Fit after  self-cal, rms=0.281210Jy  sigma=0.001198
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.7925 mas, bmaj=1.403 mas, bpa=-8.792 degrees
! Estimated noise=566.163 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00409095 Jy
! Component: 100  -  total flux cleaned = 0.00482758 Jy
! Component: 150  -  total flux cleaned = 0.00501225 Jy
! Component: 200  -  total flux cleaned = 0.00533627 Jy
! Total flux subtracted in 200 components = 0.00533627 Jy
! Clean residual min=-0.003168 max=0.004377 Jy/beam
! Clean residual mean=0.000040 rms=0.000984 Jy/beam
! Combined flux in latest and established models = 0.616563 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 50 components and 0.616563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281102Jy  sigma=0.001196
! Fit after  self-cal, rms=0.281092Jy  sigma=0.001196
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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 (1.2, 9.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00376591 Jy
! Component: 100  -  total flux cleaned = 0.00549038 Jy
! Component: 150  -  total flux cleaned = 0.00614382 Jy
! Component: 200  -  total flux cleaned = 0.00640343 Jy
! Total flux subtracted in 200 components = 0.00640344 Jy
! Clean residual min=-0.003023 max=0.003231 Jy/beam
! Clean residual mean=-0.000069 rms=0.000827 Jy/beam
! Combined flux in latest and established models = 0.622967 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 60 components and 0.622967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281006Jy  sigma=0.001195
! Fit after  self-cal, rms=0.280997Jy  sigma=0.001195
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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.280997Jy  sigma=0.001195
! Fit after  self-cal, rms=0.279837Jy  sigma=0.001195
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.7936 mas, bmaj=1.4 mas, bpa=-8.8 degrees
! Estimated noise=565.578 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00118256 Jy
! Component: 100  -  total flux cleaned = 0.0014765 Jy
! Component: 150  -  total flux cleaned = 0.00172122 Jy
! Component: 200  -  total flux cleaned = 0.00188798 Jy
! Total flux subtracted in 200 components = 0.00188798 Jy
! Clean residual min=-0.002571 max=0.002646 Jy/beam
! Clean residual mean=-0.000004 rms=0.000704 Jy/beam
! Combined flux in latest and established models = 0.624855 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 65 components and 0.624855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279787Jy  sigma=0.001194
! Fit after  self-cal, rms=0.279773Jy  sigma=0.001194
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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.000941257 Jy
! Component: 100  -  total flux cleaned = 0.00110017 Jy
! Component: 150  -  total flux cleaned = 0.00119689 Jy
! Component: 200  -  total flux cleaned = 0.00133596 Jy
! Total flux subtracted in 200 components = 0.00133596 Jy
! Clean residual min=-0.002502 max=0.002372 Jy/beam
! Clean residual mean=-0.000030 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.626191 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 71 components and 0.626191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279739Jy  sigma=0.001194
! Fit after  self-cal, rms=0.279737Jy  sigma=0.001194
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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.279737Jy  sigma=0.001194
! Fit after  self-cal, rms=0.279093Jy  sigma=0.001194
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=2.613 mas, bmaj=3.384 mas, bpa=19.62 degrees
! Estimated noise=685.232 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000534625 Jy
! Component: 100  -  total flux cleaned = 0.000539072 Jy
! Component: 150  -  total flux cleaned = 0.000536829 Jy
! Component: 200  -  total flux cleaned = 0.000537588 Jy
! Total flux subtracted in 200 components = 0.000537588 Jy
! Clean residual min=-0.001881 max=0.002207 Jy/beam
! Clean residual mean=-0.000005 rms=0.000728 Jy/beam
! Combined flux in latest and established models = 0.626729 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 84 components and 0.626729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279076Jy  sigma=0.001194
! Fit after  self-cal, rms=0.279062Jy  sigma=0.001194
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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.000292664 Jy
! Component: 100  -  total flux cleaned = 0.000291722 Jy
! Component: 150  -  total flux cleaned = 0.000270789 Jy
! Component: 200  -  total flux cleaned = 0.000232713 Jy
! Total flux subtracted in 200 components = 0.000232713 Jy
! Clean residual min=-0.001916 max=0.002185 Jy/beam
! Clean residual mean=-0.000016 rms=0.000718 Jy/beam
! Combined flux in latest and established models = 0.626961 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 88 components and 0.626961 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279054Jy  sigma=0.001194
! Fit after  self-cal, rms=0.279058Jy  sigma=0.001194
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.7946 mas, bmaj=1.398 mas, bpa=-8.83 degrees
! Estimated noise=565.273 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7946 x 1.398 at -8.83 degrees (North through East)
! Clean map  min=-0.0023952  max=0.50086 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.279058Jy  sigma=0.001194
! Fit after  self-cal, rms=0.399547Jy  sigma=0.001059
! Inverting map and beam 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.7938 mas, bmaj=1.395 mas, bpa=-8.852 degrees
! Estimated noise=564.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000346135 Jy
! Component: 100  -  total flux cleaned = 0.000194776 Jy
! Component: 150  -  total flux cleaned = 6.0063e-05 Jy
! Component: 200  -  total flux cleaned = -6.65267e-05 Jy
! Total flux subtracted in 200 components = -6.65267e-05 Jy
! Clean residual min=-0.002247 max=0.002366 Jy/beam
! Clean residual mean=0.000007 rms=0.000591 Jy/beam
! Combined flux in latest and established models = 0.626895 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 93 components and 0.626895 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.399519Jy  sigma=0.001058
! Fit after  self-cal, rms=0.399517Jy  sigma=0.001058
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000360996 Jy
! Component: 100  -  total flux cleaned = 0.000321084 Jy
! Component: 150  -  total flux cleaned = 0.000282581 Jy
! Component: 200  -  total flux cleaned = 0.000211419 Jy
! Total flux subtracted in 200 components = 0.000211419 Jy
! Clean residual min=-0.002165 max=0.002357 Jy/beam
! Clean residual mean=0.000003 rms=0.000588 Jy/beam
! Combined flux in latest and established models = 0.627106 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 95 components and 0.627106 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.399501Jy  sigma=0.001058
! Fit after  self-cal, rms=0.399499Jy  sigma=0.001058
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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.399499Jy  sigma=0.001058
! Fit after  self-cal, rms=0.575144Jy  sigma=0.001058
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 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.6485 mas, bmaj=0.9584 mas, bpa=0.7694 degrees
! Estimated noise=1347.25 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.380549 Jy
! Component: 100  -  total flux cleaned = 0.4879 Jy
! Component: 150  -  total flux cleaned = 0.532864 Jy
! Component: 200  -  total flux cleaned = 0.556482 Jy
! Total flux subtracted in 200 components = 0.556482 Jy
! Clean residual min=-0.008604 max=0.016343 Jy/beam
! Clean residual mean=0.000428 rms=0.002987 Jy/beam
! Combined flux in latest and established models = 0.556482 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.556482 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.7943 mas, bmaj=1.395 mas, bpa=-8.885 degrees
! Estimated noise=564.243 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.0226156 Jy
! Component: 100  -  total flux cleaned = 0.0360657 Jy
! Component: 150  -  total flux cleaned = 0.0450294 Jy
! Component: 200  -  total flux cleaned = 0.0513858 Jy
! Total flux subtracted in 200 components = 0.0513858 Jy
! Clean residual min=-0.002872 max=0.004614 Jy/beam
! Clean residual mean=0.000424 rms=0.001122 Jy/beam
! Combined flux in latest and established models = 0.607868 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 46 components and 0.607868 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 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 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=2.612 mas, bmaj=3.385 mas, bpa=19.78 degrees
! Estimated noise=684.172 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00706033 Jy
! Component: 100  -  total flux cleaned = 0.010949 Jy
! Component: 150  -  total flux cleaned = 0.0134331 Jy
! Component: 200  -  total flux cleaned = 0.0150479 Jy
! Total flux subtracted in 200 components = 0.0150479 Jy
! Clean residual min=-0.001951 max=0.002366 Jy/beam
! Clean residual mean=0.000207 rms=0.000729 Jy/beam
! Combined flux in latest and established models = 0.622915 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.00107641 Jy
! Component: 100  -  total flux cleaned = 0.00160725 Jy
! Component: 150  -  total flux cleaned = 0.00184955 Jy
! Component: 200  -  total flux cleaned = 0.00193274 Jy
! Total flux subtracted in 200 components = 0.00193274 Jy
! Clean residual min=-0.001917 max=0.002280 Jy/beam
! Clean residual mean=0.000130 rms=0.000688 Jy/beam
! Combined flux in latest and established models = 0.624848 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 73 components and 0.624848 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! Estimated beam: bmin=0.7943 mas, bmaj=1.395 mas, bpa=-8.885 degrees
! Estimated noise=564.243 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000871252 Jy
! Component: 100  -  total flux cleaned = -0.000773185 Jy
! Component: 150  -  total flux cleaned = -0.000696226 Jy
! Component: 200  -  total flux cleaned = -0.000758308 Jy
! Total flux subtracted in 200 components = -0.000758308 Jy
! Clean residual min=-0.002375 max=0.002461 Jy/beam
! Clean residual mean=0.000083 rms=0.000640 Jy/beam
! Combined flux in latest and established models = 0.62409 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 80 components and 0.62409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.575035Jy  sigma=0.001058
! Fit after  self-cal, rms=0.575009Jy  sigma=0.001058
wmodel J0914+0245_X_1999_05_10_pus_map.mod
! Writing 80 model components to file: J0914+0245_X_1999_05_10_pus_map.mod
wobs J0914+0245_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0914+0245_X_1999_05_10_pus_uvs.fits
wwins J0914+0245_X_1999_05_10_pus_map.win
! wwins: Wrote 3 windows to J0914+0245_X_1999_05_10_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000187269 Jy
! Component: 100  -  total flux cleaned = 0.000145133 Jy
! Component: 150  -  total flux cleaned = 0.000390621 Jy
! Component: 200  -  total flux cleaned = 0.00069325 Jy
! Component: 250  -  total flux cleaned = 0.000888329 Jy
! Component: 300  -  total flux cleaned = 0.00107722 Jy
! Component: 350  -  total flux cleaned = 0.00126069 Jy
! Component: 400  -  total flux cleaned = 0.00131993 Jy
! Component: 450  -  total flux cleaned = 0.00146556 Jy
! Component: 500  -  total flux cleaned = 0.00160733 Jy
! Component: 550  -  total flux cleaned = 0.00169058 Jy
! Component: 600  -  total flux cleaned = 0.00177259 Jy
! Component: 650  -  total flux cleaned = 0.00185291 Jy
! Component: 700  -  total flux cleaned = 0.00190516 Jy
! Component: 750  -  total flux cleaned = 0.00190527 Jy
! Component: 800  -  total flux cleaned = 0.00198182 Jy
! Component: 850  -  total flux cleaned = 0.00205722 Jy
! Component: 900  -  total flux cleaned = 0.00215624 Jy
! Component: 950  -  total flux cleaned = 0.0022782 Jy
! Component: 1000  -  total flux cleaned = 0.00237415 Jy
! Total flux subtracted in 1024 components = 0.002398 Jy
! Clean residual min=-0.001361 max=0.001350 Jy/beam
! Clean residual mean=0.000036 rms=0.000459 Jy/beam
! Combined flux in latest and established models = 0.626488 Jy
keep
! Adding 65 model components to the UV plane model.
! The established model now contains 145 components and 0.626488 Jy
![Exited script file: muppet]
wmap "J0914+0245_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7943 x 1.395 at -8.885 degrees (North through East)
! Clean map  min=-0.0020146  max=0.50292 Jy/beam
! Writing clean map to FITS file: J0914+0245_X_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.502919 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.01% of the data.
!  The y-axis pixel size should ideally be below 0.1827 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000457528 
device "J0914+0245_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0914+0245_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.272923 0.272923 0.545847 1.09169 2.18339 4.36677 8.73355 17.4671 34.9342 69.8684
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.502 
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.7943 x 1.395 at -8.885 degrees (North through East)
! Clean map  min=-0.0020146  max=0.50292 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0914+0245_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0914+0245_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0914+0245_X_1999_05_10_pus_uvs.log closed on Mon Jan 14 12:40:37 2008