! Started logfile: J1727+4530_X_1999_05_10_pus_uvs.log on Tue Jan 15 16:56:27 2008
obs J1727+4530_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1727+4530_X_1999_05_10_pus_uva.fits
! AN table 1: 25 integrations on 153 of 153 possible baselines.
! AN table 2: 183 integrations on 153 of 153 possible baselines.
! AN table 3: 39 integrations on 153 of 153 possible baselines.
! AN table 4: 133 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.292122 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 1763 lines of history.
! 
! Reading 67936 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_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 248 telescope corrections were flagged in sub-array 1.
!  A total of 1258 telescope corrections were flagged in sub-array 2.
!  A total of 381 telescope corrections were flagged in sub-array 3.
!  A total of 1947 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 248 telescope corrections were flagged in sub-array 1.
!  A total of 1226 telescope corrections were flagged in sub-array 2.
!  A total of 360 telescope corrections were flagged in sub-array 3.
!  A total of 1919 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 248 telescope corrections were flagged in sub-array 1.
!  A total of 1227 telescope corrections were flagged in sub-array 2.
!  A total of 376 telescope corrections were flagged in sub-array 3.
!  A total of 1919 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 248 telescope corrections were flagged in sub-array 1.
!  A total of 1400 telescope corrections were flagged in sub-array 2.
!  A total of 360 telescope corrections were flagged in sub-array 3.
!  A total of 1956 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.692743Jy  sigma=0.006766
! Fit after  self-cal, rms=0.580053Jy  sigma=0.006097
! 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 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.6439 mas, bmaj=0.7512 mas, bpa=-24.12 degrees
! Estimated noise=945.85 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.32086 Jy
! Component: 100  -  total flux cleaned = 0.415049 Jy
! Total flux subtracted in 100 components = 0.415049 Jy
! Clean residual min=-0.014569 max=0.043151 Jy/beam
! Clean residual mean=0.000553 rms=0.005007 Jy/beam
! Combined flux in latest and established models = 0.415049 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.415049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197476Jy  sigma=0.002006
! Fit after  self-cal, rms=0.196861Jy  sigma=0.002002
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Added new window around map position (-0.6, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0482094 Jy
! Component: 100  -  total flux cleaned = 0.0765315 Jy
! Total flux subtracted in 100 components = 0.0765315 Jy
! Clean residual min=-0.014744 max=0.025766 Jy/beam
! Clean residual mean=0.000354 rms=0.004230 Jy/beam
! Combined flux in latest and established models = 0.49158 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 12 components and 0.49158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174372Jy  sigma=0.001686
! Fit after  self-cal, rms=0.173810Jy  sigma=0.001681
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.7144 mas, bmaj=1.005 mas, bpa=-32.54 degrees
! Estimated noise=274.488 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.0542629 Jy
! Component: 100  -  total flux cleaned = 0.0833953 Jy
! Component: 150  -  total flux cleaned = 0.101306 Jy
! Component: 200  -  total flux cleaned = 0.112695 Jy
! Total flux subtracted in 200 components = 0.112695 Jy
! Clean residual min=-0.007520 max=0.020725 Jy/beam
! Clean residual mean=0.000434 rms=0.002878 Jy/beam
! Combined flux in latest and established models = 0.604276 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 34 components and 0.604276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159261Jy  sigma=0.001442
! Fit after  self-cal, rms=0.159065Jy  sigma=0.001440
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Added new window around map position (-1.8, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0189369 Jy
! Component: 100  -  total flux cleaned = 0.028351 Jy
! Component: 150  -  total flux cleaned = 0.034488 Jy
! Component: 200  -  total flux cleaned = 0.0388952 Jy
! Total flux subtracted in 200 components = 0.0388952 Jy
! Clean residual min=-0.005868 max=0.011219 Jy/beam
! Clean residual mean=0.000066 rms=0.002012 Jy/beam
! Combined flux in latest and established models = 0.643171 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 66 components and 0.643171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157098Jy  sigma=0.001408
! Fit after  self-cal, rms=0.156754Jy  sigma=0.001403
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.23     FD        0.97     GC        1.41     HH        1.00*    
!   HN        1.02     KK        1.29     KP        1.05     LA        0.97     
!   MC        1.00*    MK        2.06     NL        1.09     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.15     SC        1.20     
!   WF        1.21     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GC        1.01     HH        1.00*    
!   HN        0.97     KK        0.96     KP        0.97     LA        0.95     
!   MC        1.06     MK        0.95     NL        1.03     NY        0.90     
!   ON        0.94     OV        0.95     PT        1.08     SC        1.05     
!   WF        1.21     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.96     GC        1.07     HH        1.00*    
!   HN        0.96     KK        0.90     KP        0.98     LA        0.94     
!   MC        1.00*    MK        1.00*    NL        1.03     NY        0.89     
!   ON        1.05     OV        0.95     PT        1.01     SC        1.26     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GC        1.06     HH        1.00*    
!   HN        0.96     KK        0.95     KP        1.02     LA        0.99     
!   MC        1.11     MK        0.90     NL        1.08     NY        0.95     
!   ON        1.14     OV        1.00     PT        1.04     SC        1.00*    
!   WF        2.45     WZ        0.88     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.22     FD        0.95     GC        1.39     HH        1.00*    
!   HN        1.03     KK        1.29     KP        1.05     LA        0.96     
!   MC        1.00*    MK        1.90     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.07     SC        1.20     
!   WF        1.33     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GC        0.98     HH        1.00*    
!   HN        0.97     KK        0.93     KP        0.98     LA        0.95     
!   MC        1.06     MK        0.95     NL        0.99     NY        0.87     
!   ON        0.93     OV        0.93     PT        0.99     SC        1.03     
!   WF        1.02     WZ        1.04     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.94     GC        1.04     HH        1.00*    
!   HN        0.94     KK        0.90     KP        0.98     LA        0.95     
!   MC        1.00*    MK        1.00*    NL        0.99     NY        0.89     
!   ON        0.95     OV        0.94     PT        0.92     SC        1.30     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GC        1.03     HH        1.00*    
!   HN        0.95     KK        0.94     KP        1.06     LA        1.01     
!   MC        1.11     MK        0.90     NL        1.03     NY        0.96     
!   ON        1.04     OV        0.96     PT        0.97     SC        1.00*    
!   WF        1.15     WZ        0.94     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.26     FD        0.99     GC        1.31     HH        1.00*    
!   HN        1.06     KK        1.39     KP        1.10     LA        0.98     
!   MC        1.00*    MK        1.86     NL        1.09     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.06     SC        1.16     
!   WF        1.26     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.98     GC        1.02     HH        1.00*    
!   HN        0.98     KK        1.00     KP        1.00     LA        0.94     
!   MC        1.12     MK        0.95     NL        0.99     NY        0.85     
!   ON        0.97     OV        0.96     PT        1.01     SC        1.04     
!   WF        1.03     WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.97     GC        1.16     HH        1.00*    
!   HN        0.94     KK        0.92     KP        1.00     LA        0.94     
!   MC        1.00*    MK        1.00*    NL        1.00     NY        0.93     
!   ON        1.00*    OV        0.97     PT        0.95     SC        1.33     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        1.07     HH        1.00*    
!   HN        0.91     KK        0.97     KP        1.08     LA        0.97     
!   MC        1.12     MK        0.91     NL        1.05     NY        1.06     
!   ON        1.08     OV        1.01     PT        0.99     SC        1.00*    
!   WF        1.12     WZ        1.02     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.25     FD        0.96     GC        1.41     HH        1.00*    
!   HN        1.02     KK        1.32     KP        1.06     LA        0.95     
!   MC        1.00*    MK        2.11     NL        1.15     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.09     SC        1.15     
!   WF        1.29     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        0.99     HH        1.00*    
!   HN        0.98     KK        0.97     KP        0.99     LA        0.96     
!   MC        1.06     MK        0.96     NL        1.00     NY        0.93     
!   ON        0.89     OV        0.96     PT        1.05     SC        1.02     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.96     GC        1.04     HH        1.00*    
!   HN        0.96     KK        0.91     KP        0.98     LA        0.95     
!   MC        1.00*    MK        1.00*    NL        1.01     NY        0.97     
!   ON        0.98     OV        0.98     PT        0.97     SC        1.27     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GC        1.02     HH        1.00*    
!   HN        0.99     KK        0.97     KP        1.08     LA        1.02     
!   MC        1.16     MK        0.89     NL        1.05     NY        1.06     
!   ON        1.16     OV        1.00     PT        1.02     SC        1.00*    
!   WF        1.07     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.156754Jy  sigma=0.001403
! Fit after  self-cal, rms=0.162979Jy  sigma=0.001318
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.7194 mas, bmaj=1.012 mas, bpa=-31.69 degrees
! Estimated noise=275.649 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 (-5.8, -0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0017596 Jy
! Component: 100  -  total flux cleaned = 0.00309218 Jy
! Component: 150  -  total flux cleaned = 0.00375545 Jy
! Component: 200  -  total flux cleaned = 0.00387017 Jy
! Total flux subtracted in 200 components = 0.00387017 Jy
! Clean residual min=-0.003489 max=0.004193 Jy/beam
! Clean residual mean=0.000042 rms=0.000996 Jy/beam
! Combined flux in latest and established models = 0.647041 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 78 components and 0.647041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162614Jy  sigma=0.001314
! Fit after  self-cal, rms=0.162744Jy  sigma=0.001314
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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.162744Jy  sigma=0.001314
! Fit after  self-cal, rms=0.163492Jy  sigma=0.001313
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.7213 mas, bmaj=1.014 mas, bpa=-31.49 degrees
! Estimated noise=275.286 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00111028 Jy
! Component: 100  -  total flux cleaned = -0.000669864 Jy
! Component: 150  -  total flux cleaned = -0.000480082 Jy
! Component: 200  -  total flux cleaned = -0.000399513 Jy
! Total flux subtracted in 200 components = -0.000399513 Jy
! Clean residual min=-0.003140 max=0.003901 Jy/beam
! Clean residual mean=0.000028 rms=0.000943 Jy/beam
! Combined flux in latest and established models = 0.646642 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 85 components and 0.646642 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163314Jy  sigma=0.001311
! Fit after  self-cal, rms=0.163336Jy  sigma=0.001311
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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.000229628 Jy
! Component: 100  -  total flux cleaned = 0.00038586 Jy
! Component: 150  -  total flux cleaned = 0.000457268 Jy
! Component: 200  -  total flux cleaned = 0.000523442 Jy
! Total flux subtracted in 200 components = 0.000523442 Jy
! Clean residual min=-0.002981 max=0.003842 Jy/beam
! Clean residual mean=0.000023 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 0.647165 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 92 components and 0.647165 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163257Jy  sigma=0.001311
! Fit after  self-cal, rms=0.163255Jy  sigma=0.001311
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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.163255Jy  sigma=0.001311
! Fit after  self-cal, rms=0.163396Jy  sigma=0.001310
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.7231 mas, bmaj=1.016 mas, bpa=-31.19 degrees
! Estimated noise=275.28 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00132677 Jy
! Component: 100  -  total flux cleaned = -0.00117246 Jy
! Component: 150  -  total flux cleaned = -0.00123954 Jy
! Component: 200  -  total flux cleaned = -0.00123751 Jy
! Total flux subtracted in 200 components = -0.00123751 Jy
! Clean residual min=-0.002812 max=0.003687 Jy/beam
! Clean residual mean=0.000006 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 0.645928 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 96 components and 0.645928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163301Jy  sigma=0.001310
! Fit after  self-cal, rms=0.163300Jy  sigma=0.001309
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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.000108018 Jy
! Component: 100  -  total flux cleaned = 0.000168992 Jy
! Component: 150  -  total flux cleaned = 0.000167503 Jy
! Component: 200  -  total flux cleaned = 0.000167258 Jy
! Total flux subtracted in 200 components = 0.000167258 Jy
! Clean residual min=-0.002764 max=0.003623 Jy/beam
! Clean residual mean=0.000005 rms=0.000893 Jy/beam
! Combined flux in latest and established models = 0.646095 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 99 components and 0.646095 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163250Jy  sigma=0.001309
! Fit after  self-cal, rms=0.163250Jy  sigma=0.001309
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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.163250Jy  sigma=0.001309
! Fit after  self-cal, rms=0.163394Jy  sigma=0.001309
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=2.194 mas, bmaj=2.566 mas, bpa=6.648 degrees
! Estimated noise=390.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000412141 Jy
! Component: 100  -  total flux cleaned = 0.000264483 Jy
! Component: 150  -  total flux cleaned = 0.000163698 Jy
! Component: 200  -  total flux cleaned = 8.6048e-05 Jy
! Total flux subtracted in 200 components = 8.6048e-05 Jy
! Clean residual min=-0.003251 max=0.004407 Jy/beam
! Clean residual mean=-0.000045 rms=0.001160 Jy/beam
! Combined flux in latest and established models = 0.646181 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 104 components and 0.646181 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163379Jy  sigma=0.001309
! Fit after  self-cal, rms=0.163375Jy  sigma=0.001309
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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.000114827 Jy
! Component: 100  -  total flux cleaned = 0.000113571 Jy
! Component: 150  -  total flux cleaned = 8.34998e-05 Jy
! Component: 200  -  total flux cleaned = 5.42863e-05 Jy
! Total flux subtracted in 200 components = 5.42863e-05 Jy
! Clean residual min=-0.003285 max=0.004338 Jy/beam
! Clean residual mean=-0.000045 rms=0.001159 Jy/beam
! Combined flux in latest and established models = 0.646235 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 109 components and 0.646235 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163372Jy  sigma=0.001309
! Fit after  self-cal, rms=0.163370Jy  sigma=0.001309
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.7245 mas, bmaj=1.017 mas, bpa=-30.98 degrees
! Estimated noise=275.356 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7245 x 1.017 at -30.98 degrees (North through East)
! Clean map  min=-0.0031951  max=0.44416 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 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.6406 mas, bmaj=0.7551 mas, bpa=-26.81 degrees
! Estimated noise=998.491 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.336477 Jy
! Component: 100  -  total flux cleaned = 0.442788 Jy
! Component: 150  -  total flux cleaned = 0.497735 Jy
! Component: 200  -  total flux cleaned = 0.530495 Jy
! Total flux subtracted in 200 components = 0.530495 Jy
! Clean residual min=-0.011898 max=0.017183 Jy/beam
! Clean residual mean=0.000267 rms=0.003344 Jy/beam
! Combined flux in latest and established models = 0.530495 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.530495 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.7245 mas, bmaj=1.017 mas, bpa=-30.98 degrees
! Estimated noise=275.356 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.0355563 Jy
! Component: 100  -  total flux cleaned = 0.0574751 Jy
! Component: 150  -  total flux cleaned = 0.0725313 Jy
! Component: 200  -  total flux cleaned = 0.0832857 Jy
! Total flux subtracted in 200 components = 0.0832857 Jy
! Clean residual min=-0.003382 max=0.006415 Jy/beam
! Clean residual mean=0.000302 rms=0.001460 Jy/beam
! Combined flux in latest and established models = 0.613781 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 48 components and 0.613781 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Added new window around map position (-0.2, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0080807 Jy
! Component: 100  -  total flux cleaned = 0.0143517 Jy
! Component: 150  -  total flux cleaned = 0.0193317 Jy
! Component: 200  -  total flux cleaned = 0.0233102 Jy
! Total flux subtracted in 200 components = 0.0233102 Jy
! Clean residual min=-0.002684 max=0.004060 Jy/beam
! Clean residual mean=0.000077 rms=0.000975 Jy/beam
! Combined flux in latest and established models = 0.637091 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 65 components and 0.637091 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 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 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=2.194 mas, bmaj=2.566 mas, bpa=6.648 degrees
! Estimated noise=390.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00617704 Jy
! Component: 100  -  total flux cleaned = 0.00794056 Jy
! Component: 150  -  total flux cleaned = 0.00864183 Jy
! Component: 200  -  total flux cleaned = 0.0089155 Jy
! Total flux subtracted in 200 components = 0.0089155 Jy
! Clean residual min=-0.003487 max=0.004458 Jy/beam
! Clean residual mean=-0.000029 rms=0.001189 Jy/beam
! Combined flux in latest and established models = 0.646007 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.80755e-05 Jy
! Component: 100  -  total flux cleaned = 5.80755e-05 Jy
! Component: 150  -  total flux cleaned = 5.77843e-05 Jy
! Component: 200  -  total flux cleaned = 5.80677e-05 Jy
! Total flux subtracted in 200 components = 5.80677e-05 Jy
! Clean residual min=-0.003381 max=0.004414 Jy/beam
! Clean residual mean=-0.000034 rms=0.001171 Jy/beam
! Combined flux in latest and established models = 0.646065 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 93 components and 0.646065 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! Estimated beam: bmin=0.7245 mas, bmaj=1.017 mas, bpa=-30.98 degrees
! Estimated noise=275.356 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000116463 Jy
! Component: 100  -  total flux cleaned = -0.000325717 Jy
! Component: 150  -  total flux cleaned = -0.000702071 Jy
! Component: 200  -  total flux cleaned = -0.000968141 Jy
! Total flux subtracted in 200 components = -0.00096814 Jy
! Clean residual min=-0.002620 max=0.003727 Jy/beam
! Clean residual mean=-0.000004 rms=0.000871 Jy/beam
! Combined flux in latest and established models = 0.645097 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 108 components and 0.645096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163242Jy  sigma=0.001308
! Fit after  self-cal, rms=0.163205Jy  sigma=0.001308
wmodel J1727+4530_X_1999_05_10_pus_map.mod
! Writing 108 model components to file: J1727+4530_X_1999_05_10_pus_map.mod
wobs J1727+4530_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1727+4530_X_1999_05_10_pus_uvs.fits
wwins J1727+4530_X_1999_05_10_pus_map.win
! wwins: Wrote 5 windows to J1727+4530_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 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00169444 Jy
! Component: 100  -  total flux cleaned = 0.00320927 Jy
! Component: 150  -  total flux cleaned = 0.0043336 Jy
! Component: 200  -  total flux cleaned = 0.00529742 Jy
! Component: 250  -  total flux cleaned = 0.00622751 Jy
! Component: 300  -  total flux cleaned = 0.00707936 Jy
! Component: 350  -  total flux cleaned = 0.00795799 Jy
! Component: 400  -  total flux cleaned = 0.00877001 Jy
! Component: 450  -  total flux cleaned = 0.00956574 Jy
! Component: 500  -  total flux cleaned = 0.010347 Jy
! Component: 550  -  total flux cleaned = 0.0110243 Jy
! Component: 600  -  total flux cleaned = 0.0117354 Jy
! Component: 650  -  total flux cleaned = 0.0124799 Jy
! Component: 700  -  total flux cleaned = 0.0131709 Jy
! Component: 750  -  total flux cleaned = 0.0138526 Jy
! Component: 800  -  total flux cleaned = 0.0144837 Jy
! Component: 850  -  total flux cleaned = 0.0151489 Jy
! Component: 900  -  total flux cleaned = 0.0156832 Jy
! Component: 950  -  total flux cleaned = 0.0162113 Jy
! Component: 1000  -  total flux cleaned = 0.0166539 Jy
! Total flux subtracted in 1024 components = 0.0169332 Jy
! Clean residual min=-0.001994 max=0.002598 Jy/beam
! Clean residual mean=-0.000097 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 0.66203 Jy
keep
! Adding 71 model components to the UV plane model.
! The established model now contains 179 components and 0.66203 Jy
![Exited script file: muppet]
wmap "J1727+4530_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7245 x 1.017 at -30.98 degrees (North through East)
! Clean map  min=-0.0032384  max=0.44572 Jy/beam
! Writing clean map to FITS file: J1727+4530_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.445721 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.93% of the data.
!  The x-axis pixel size should ideally be below 0.1786 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1931 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000763023 
device "J1727+4530_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1727+4530_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.513565 0.513565 1.02713 2.05426 4.10852 8.21704 16.4341 32.8681 65.7363
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.445 
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.7245 x 1.017 at -30.98 degrees (North through East)
! Clean map  min=-0.0032384  max=0.44572 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1727+4530_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1727+4530_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1727+4530_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 16:56:42 2008