! Started logfile: J1727+4530_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:27:35 2007
obs J1727+4530_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J1727+4530_X_1999_12_20_pus_uva.fits
! AN table 1: 68 integrations on 190 of 190 possible baselines.
! AN table 2: 131 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.186908 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1727+4530
! 
! 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 28268 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 J1727+4530_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 793 telescope corrections were flagged in sub-array 1.
!  A total of 1755 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 793 telescope corrections were flagged in sub-array 1.
!  A total of 1755 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 793 telescope corrections were flagged in sub-array 1.
!  A total of 1755 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 793 telescope corrections were flagged in sub-array 1.
!  A total of 1755 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.016392Jy  sigma=0.009300
! Fit after  self-cal, rms=0.837292Jy  sigma=0.007549
! 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 4.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.1883 milli-arcsec
! Estimated beam: bmin=0.5347 mas, bmaj=0.7414 mas, bpa=5.73 degrees
! Estimated noise=768.214 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.17407 Jy
! Component: 100  -  total flux cleaned = 0.222603 Jy
! Total flux subtracted in 100 components = 0.222603 Jy
! Clean residual min=-0.009689 max=0.022490 Jy/beam
! Clean residual mean=0.000195 rms=0.002957 Jy/beam
! Combined flux in latest and established models = 0.222602 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.222602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339712Jy  sigma=0.001694
! Fit after  self-cal, rms=0.339515Jy  sigma=0.001693
! Inverting map 
! Your choice of large map pixels excluded 4.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.1883 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0263293 Jy
! Component: 100  -  total flux cleaned = 0.0414312 Jy
! Total flux subtracted in 100 components = 0.0414312 Jy
! Clean residual min=-0.009500 max=0.021731 Jy/beam
! Clean residual mean=0.000131 rms=0.002603 Jy/beam
! Combined flux in latest and established models = 0.264034 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 0.264034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336682Jy  sigma=0.001614
! Fit after  self-cal, rms=0.336495Jy  sigma=0.001614
! Inverting map 
! Your choice of large map pixels excluded 4.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.1883 milli-arcsec
! Added new window around map position (-1, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0194835 Jy
! Component: 100  -  total flux cleaned = 0.0312999 Jy
! Total flux subtracted in 100 components = 0.0312999 Jy
! Clean residual min=-0.009305 max=0.013039 Jy/beam
! Clean residual mean=0.000078 rms=0.002384 Jy/beam
! Combined flux in latest and established models = 0.295334 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 26 components and 0.295334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335163Jy  sigma=0.001573
! Fit after  self-cal, rms=0.334889Jy  sigma=0.001571
! Inverting map 
! Your choice of large map pixels excluded 4.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.1883 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 4.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.1883 milli-arcsec
! Estimated beam: bmin=0.6402 mas, bmaj=0.8622 mas, bpa=1.108 degrees
! Estimated noise=477.772 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.0174942 Jy
! Component: 100  -  total flux cleaned = 0.0277199 Jy
! Component: 150  -  total flux cleaned = 0.0343143 Jy
! Component: 200  -  total flux cleaned = 0.0386762 Jy
! Total flux subtracted in 200 components = 0.0386762 Jy
! Clean residual min=-0.006062 max=0.011048 Jy/beam
! Clean residual mean=-0.000090 rms=0.001980 Jy/beam
! Combined flux in latest and established models = 0.33401 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 36 components and 0.33401 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334200Jy  sigma=0.001546
! Fit after  self-cal, rms=0.333972Jy  sigma=0.001544
! Inverting map 
! Your choice of large map pixels excluded 4.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.1883 milli-arcsec
! Added new window around map position (-2.2, 0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0114378 Jy
! Component: 100  -  total flux cleaned = 0.0164905 Jy
! Component: 150  -  total flux cleaned = 0.018076 Jy
! Component: 200  -  total flux cleaned = 0.0188021 Jy
! Total flux subtracted in 200 components = 0.0188021 Jy
! Clean residual min=-0.005763 max=0.008044 Jy/beam
! Clean residual mean=-0.000273 rms=0.001754 Jy/beam
! Combined flux in latest and established models = 0.352812 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 53 components and 0.352812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333549Jy  sigma=0.001536
! Fit after  self-cal, rms=0.333524Jy  sigma=0.001535
! Inverting map 
! Your choice of large map pixels excluded 4.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.1883 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.94     GC        0.98     HH        1.00*    
!   HN        0.91     KK        1.05     KP        0.99     LA        0.96     
!   MC        1.13     MK        0.99     NY        1.16     ON        0.26     
!   OV        1.00     PT        1.01     SC        0.99     TS        0.99     
!   WF        0.96     WZ        0.87     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        0.97     FD        1.48     GC        0.97     HH        1.00*    
!   HN        0.90     KK        0.99     KP        0.98     LA        0.97     
!   MC        1.12     MK        0.96     NY        1.01     ON        1.06     
!   OV        0.95     PT        0.98     SC        3.81     TS        0.97     
!   WF        0.96     WZ        1.13     GN        1.03     NL        0.97     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        0.95     HH        1.00*    
!   HN        1.09     KK        1.05     KP        0.92     LA        0.95     
!   MC        1.03     MK        1.02     NY        1.04     ON        0.57     
!   OV        0.97     PT        1.00     SC        0.95     TS        0.93     
!   WF        1.02     WZ        0.92     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        0.96     FD        1.04     GC        0.96     HH        1.00*    
!   HN        0.91     KK        0.99     KP        0.95     LA        0.96     
!   MC        1.12     MK        1.02     NY        1.02     ON        1.06     
!   OV        0.92     PT        0.96     SC        3.37     TS        0.91     
!   WF        0.97     WZ        1.11     GN        0.95     NL        0.99     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.97     HH        1.00*    
!   HN        1.00     KK        1.03     KP        0.96     LA        0.95     
!   MC        1.10     MK        1.05     NY        0.91     ON        0.78     
!   OV        0.99     PT        1.02     SC        0.98     TS        1.00     
!   WF        0.90     WZ        1.02     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        0.90     FD        1.45     GC        0.96     HH        1.00*    
!   HN        0.92     KK        1.02     KP        0.97     LA        1.00     
!   MC        1.19     MK        0.99     NY        0.97     ON        0.96     
!   OV        0.95     PT        1.00     SC        3.90     TS        0.96     
!   WF        0.99     WZ        1.10     GN        0.99     NL        1.00     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.02     HH        1.00*    
!   HN        1.06     KK        1.05     KP        0.95     LA        0.96     
!   MC        1.16     MK        1.00     NY        0.97     ON        1.07     
!   OV        0.97     PT        1.01     SC        1.04     TS        0.91     
!   WF        1.00     WZ        1.04     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        0.98     FD        1.09     GC        1.00     HH        1.00*    
!   HN        1.01     KK        1.04     KP        0.96     LA        1.01     
!   MC        1.22     MK        1.01     NY        1.10     ON        1.09     
!   OV        0.93     PT        0.99     SC        4.62     TS        0.96     
!   WF        0.98     WZ        1.08     GN        0.96     NL        1.00     
! 
! 
! Fit before self-cal, rms=0.333524Jy  sigma=0.001535
! Fit after  self-cal, rms=0.286273Jy  sigma=0.001489
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=0.6442 mas, bmaj=0.862 mas, bpa=-0.06715 degrees
! Estimated noise=481.069 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.00112579 Jy
! Component: 100  -  total flux cleaned = 0.000754125 Jy
! Component: 150  -  total flux cleaned = 0.000598021 Jy
! Component: 200  -  total flux cleaned = 0.000453426 Jy
! Total flux subtracted in 200 components = 0.000453426 Jy
! Clean residual min=-0.004484 max=0.003618 Jy/beam
! Clean residual mean=-0.000238 rms=0.001069 Jy/beam
! Combined flux in latest and established models = 0.353265 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 61 components and 0.353265 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286220Jy  sigma=0.001488
! Fit after  self-cal, rms=0.286831Jy  sigma=0.001482
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 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.286831Jy  sigma=0.001482
! Fit after  self-cal, rms=0.305358Jy  sigma=0.001458
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=0.6425 mas, bmaj=0.8636 mas, bpa=-0.0881 degrees
! Estimated noise=481.167 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00267752 Jy
! Component: 100  -  total flux cleaned = 0.0032579 Jy
! Component: 150  -  total flux cleaned = 0.00360686 Jy
! Component: 200  -  total flux cleaned = 0.00375848 Jy
! Total flux subtracted in 200 components = 0.00375848 Jy
! Clean residual min=-0.002317 max=0.002956 Jy/beam
! Clean residual mean=0.000093 rms=0.000726 Jy/beam
! Combined flux in latest and established models = 0.357024 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 67 components and 0.357024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305326Jy  sigma=0.001457
! Fit after  self-cal, rms=0.305924Jy  sigma=0.001456
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 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.000370059 Jy
! Component: 100  -  total flux cleaned = 0.000471769 Jy
! Component: 150  -  total flux cleaned = 0.000513027 Jy
! Component: 200  -  total flux cleaned = 0.000590879 Jy
! Total flux subtracted in 200 components = 0.000590879 Jy
! Clean residual min=-0.002378 max=0.002950 Jy/beam
! Clean residual mean=0.000070 rms=0.000724 Jy/beam
! Combined flux in latest and established models = 0.357615 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 71 components and 0.357615 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305913Jy  sigma=0.001455
! Fit after  self-cal, rms=0.305905Jy  sigma=0.001455
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 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.305905Jy  sigma=0.001455
! Fit after  self-cal, rms=0.305654Jy  sigma=0.001454
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=0.642 mas, bmaj=0.8628 mas, bpa=-0.3258 degrees
! Estimated noise=480.742 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.001804 Jy
! Component: 100  -  total flux cleaned = 0.00225811 Jy
! Component: 150  -  total flux cleaned = 0.00260498 Jy
! Component: 200  -  total flux cleaned = 0.00272045 Jy
! Total flux subtracted in 200 components = 0.00272045 Jy
! Clean residual min=-0.002386 max=0.002842 Jy/beam
! Clean residual mean=0.000075 rms=0.000708 Jy/beam
! Combined flux in latest and established models = 0.360335 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 76 components and 0.360335 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305641Jy  sigma=0.001453
! Fit after  self-cal, rms=0.305833Jy  sigma=0.001453
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 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.000281039 Jy
! Component: 100  -  total flux cleaned = 0.000356837 Jy
! Component: 150  -  total flux cleaned = 0.000426309 Jy
! Component: 200  -  total flux cleaned = 0.000458203 Jy
! Total flux subtracted in 200 components = 0.000458203 Jy
! Clean residual min=-0.002444 max=0.002846 Jy/beam
! Clean residual mean=0.000068 rms=0.000708 Jy/beam
! Combined flux in latest and established models = 0.360793 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 80 components and 0.360793 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305828Jy  sigma=0.001453
! Fit after  self-cal, rms=0.305826Jy  sigma=0.001453
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 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.305826Jy  sigma=0.001453
! Fit after  self-cal, rms=0.305182Jy  sigma=0.001453
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=2.339 mas, bmaj=2.856 mas, bpa=42.13 degrees
! Estimated noise=775.498 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00221155 Jy
! Component: 100  -  total flux cleaned = 0.00284629 Jy
! Component: 150  -  total flux cleaned = 0.00290506 Jy
! Component: 200  -  total flux cleaned = 0.00297134 Jy
! Total flux subtracted in 200 components = 0.00297134 Jy
! Clean residual min=-0.003184 max=0.002760 Jy/beam
! Clean residual mean=0.000246 rms=0.001021 Jy/beam
! Combined flux in latest and established models = 0.363765 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 85 components and 0.363765 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305184Jy  sigma=0.001453
! Fit after  self-cal, rms=0.305306Jy  sigma=0.001453
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 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.00033897 Jy
! Component: 100  -  total flux cleaned = 0.000319481 Jy
! Component: 150  -  total flux cleaned = 0.000318573 Jy
! Component: 200  -  total flux cleaned = 0.000333312 Jy
! Total flux subtracted in 200 components = 0.000333312 Jy
! Clean residual min=-0.003185 max=0.002759 Jy/beam
! Clean residual mean=0.000232 rms=0.001034 Jy/beam
! Combined flux in latest and established models = 0.364098 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 86 components and 0.364098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305311Jy  sigma=0.001453
! Fit after  self-cal, rms=0.305324Jy  sigma=0.001453
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=0.6416 mas, bmaj=0.8618 mas, bpa=-0.5017 degrees
! Estimated noise=480.563 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6416 x 0.8618 at -0.5017 degrees (North through East)
! Clean map  min=-0.0022213  max=0.22532 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
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=0.5346 mas, bmaj=0.737 mas, bpa=1.873 degrees
! Estimated noise=750.201 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.168508 Jy
! Component: 100  -  total flux cleaned = 0.220416 Jy
! Component: 150  -  total flux cleaned = 0.252228 Jy
! Component: 200  -  total flux cleaned = 0.273452 Jy
! Total flux subtracted in 200 components = 0.273452 Jy
! Clean residual min=-0.005827 max=0.011596 Jy/beam
! Clean residual mean=0.000133 rms=0.001772 Jy/beam
! Combined flux in latest and established models = 0.273452 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.273452 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=0.6416 mas, bmaj=0.8618 mas, bpa=-0.5017 degrees
! Estimated noise=480.563 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.0285891 Jy
! Component: 100  -  total flux cleaned = 0.0467312 Jy
! Component: 150  -  total flux cleaned = 0.0590821 Jy
! Component: 200  -  total flux cleaned = 0.0677772 Jy
! Total flux subtracted in 200 components = 0.0677771 Jy
! Clean residual min=-0.002800 max=0.005053 Jy/beam
! Clean residual mean=0.000261 rms=0.001018 Jy/beam
! Combined flux in latest and established models = 0.341229 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 53 components and 0.341229 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Added new window around map position (-3.4, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0063503 Jy
! Component: 100  -  total flux cleaned = 0.0110309 Jy
! Component: 150  -  total flux cleaned = 0.0145169 Jy
! Component: 200  -  total flux cleaned = 0.0171425 Jy
! Total flux subtracted in 200 components = 0.0171425 Jy
! Clean residual min=-0.002621 max=0.002747 Jy/beam
! Clean residual mean=0.000113 rms=0.000725 Jy/beam
! Combined flux in latest and established models = 0.358372 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 71 components and 0.358372 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=2.339 mas, bmaj=2.856 mas, bpa=42.13 degrees
! Estimated noise=775.498 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00398889 Jy
! Component: 100  -  total flux cleaned = 0.00566971 Jy
! Component: 150  -  total flux cleaned = 0.00632735 Jy
! Component: 200  -  total flux cleaned = 0.00641905 Jy
! Total flux subtracted in 200 components = 0.00641905 Jy
! Clean residual min=-0.003100 max=0.002665 Jy/beam
! Clean residual mean=0.000221 rms=0.001016 Jy/beam
! Combined flux in latest and established models = 0.364791 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 = 5.6908e-05 Jy
! Component: 100  -  total flux cleaned = 5.61542e-05 Jy
! Component: 150  -  total flux cleaned = 5.62429e-05 Jy
! Component: 200  -  total flux cleaned = 5.68456e-05 Jy
! Total flux subtracted in 200 components = 5.68456e-05 Jy
! Clean residual min=-0.003108 max=0.002644 Jy/beam
! Clean residual mean=0.000218 rms=0.001017 Jy/beam
! Combined flux in latest and established models = 0.364848 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 88 components and 0.364848 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! Estimated beam: bmin=0.6416 mas, bmaj=0.8618 mas, bpa=-0.5017 degrees
! Estimated noise=480.563 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000543109 Jy
! Component: 100  -  total flux cleaned = -0.000598616 Jy
! Component: 150  -  total flux cleaned = -0.000510195 Jy
! Component: 200  -  total flux cleaned = -0.000427683 Jy
! Total flux subtracted in 200 components = -0.000427683 Jy
! Clean residual min=-0.002610 max=0.002701 Jy/beam
! Clean residual mean=0.000060 rms=0.000695 Jy/beam
! Combined flux in latest and established models = 0.36442 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 101 components and 0.36442 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305347Jy  sigma=0.001453
! Fit after  self-cal, rms=0.305283Jy  sigma=0.001452
wmodel J1727+4530_X_1999_12_20_pus_map.mod
! Writing 101 model components to file: J1727+4530_X_1999_12_20_pus_map.mod
wobs J1727+4530_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J1727+4530_X_1999_12_20_pus_uvs.fits
wwins J1727+4530_X_1999_12_20_pus_map.win
! wwins: Wrote 4 windows to J1727+4530_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 4.39% 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.1883 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000436196 Jy
! Component: 100  -  total flux cleaned = -0.000748573 Jy
! Component: 150  -  total flux cleaned = -0.00100294 Jy
! Component: 200  -  total flux cleaned = -0.0011669 Jy
! Component: 250  -  total flux cleaned = -0.00128677 Jy
! Component: 300  -  total flux cleaned = -0.00136518 Jy
! Component: 350  -  total flux cleaned = -0.00128986 Jy
! Component: 400  -  total flux cleaned = -0.00125282 Jy
! Component: 450  -  total flux cleaned = -0.00121556 Jy
! Component: 500  -  total flux cleaned = -0.00107014 Jy
! Component: 550  -  total flux cleaned = -0.000962892 Jy
! Component: 600  -  total flux cleaned = -0.000892498 Jy
! Component: 650  -  total flux cleaned = -0.000788146 Jy
! Component: 700  -  total flux cleaned = -0.000685088 Jy
! Component: 750  -  total flux cleaned = -0.000583399 Jy
! Component: 800  -  total flux cleaned = -0.000482814 Jy
! Component: 850  -  total flux cleaned = -0.000350123 Jy
! Component: 900  -  total flux cleaned = -0.000251644 Jy
! Component: 950  -  total flux cleaned = -8.88602e-05 Jy
! Component: 1000  -  total flux cleaned = -5.6488e-05 Jy
! Total flux subtracted in 1024 components = -2.45375e-05 Jy
! Clean residual min=-0.001875 max=0.001962 Jy/beam
! Clean residual mean=0.000058 rms=0.000626 Jy/beam
! Combined flux in latest and established models = 0.364395 Jy
keep
! Adding 88 model components to the UV plane model.
! The established model now contains 189 components and 0.364395 Jy
![Exited script file: muppet]
wmap "J1727+4530_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6416 x 0.8618 at -0.5017 degrees (North through East)
! Clean map  min=-0.0021939  max=0.22524 Jy/beam
! Writing clean map to FITS file: J1727+4530_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.225239 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.39% 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.1883 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000625771 
device "J1727+4530_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J1727+4530_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.833475 0.833475 1.66695 3.3339 6.6678 13.3356 26.6712 53.3424
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.225 
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.6416 x 0.8618 at -0.5017 degrees (North through East)
! Clean map  min=-0.0021939  max=0.22524 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1727+4530_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J1727+4530_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1727+4530_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:27:43 2007