! Started logfile: J1608+1029_X_1999_03_08_pus_uvs.log on Thu Jan  3 18:36:59 2008
obs J1608+1029_X_1999_03_08_pus_uva.fits
! Reading UV FITS file: J1608+1029_X_1999_03_08_pus_uva.fits
! AN table 1: 52 integrations on 190 of 190 possible baselines.
! AN table 2: Unused.
! AN table 3: 107 integrations on 190 of 190 possible baselines.
! AN table 4: Unused.
! AN table 5: 326 integrations on 190 of 190 possible baselines.
! AN table 6: Unused.
! Apparent sampling: 0.152404 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1608+1029
! 
! 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 2585 lines of history.
! 
! Reading 56176 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 J1608+1029_X_1999_03_08_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 685 telescope corrections were flagged in sub-array 1.
!  A total of 1411 telescope corrections were flagged in sub-array 2.
!  A total of 4460 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 719 telescope corrections were flagged in sub-array 1.
!  A total of 1411 telescope corrections were flagged in sub-array 2.
!  A total of 4460 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 685 telescope corrections were flagged in sub-array 1.
!  A total of 1411 telescope corrections were flagged in sub-array 2.
!  A total of 4631 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 719 telescope corrections were flagged in sub-array 1.
!  A total of 1411 telescope corrections were flagged in sub-array 2.
!  A total of 4631 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.838120Jy  sigma=0.007342
! Fit after  self-cal, rms=0.555792Jy  sigma=0.005011
! 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.26% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1765 milli-arcsec
! Estimated beam: bmin=0.5407 mas, bmaj=1.101 mas, bpa=-7.113 degrees
! Estimated noise=667.47 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.37292 Jy
! Component: 100  -  total flux cleaned = 0.495998 Jy
! Total flux subtracted in 100 components = 0.495998 Jy
! Clean residual min=-0.016096 max=0.056614 Jy/beam
! Clean residual mean=0.000764 rms=0.005508 Jy/beam
! Combined flux in latest and established models = 0.495998 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.495998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270580Jy  sigma=0.002161
! Fit after  self-cal, rms=0.269664Jy  sigma=0.002154
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1765 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.064668 Jy
! Component: 100  -  total flux cleaned = 0.101567 Jy
! Total flux subtracted in 100 components = 0.101567 Jy
! Clean residual min=-0.014485 max=0.045485 Jy/beam
! Clean residual mean=0.000538 rms=0.004169 Jy/beam
! Combined flux in latest and established models = 0.597565 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 16 components and 0.597565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243666Jy  sigma=0.001790
! Fit after  self-cal, rms=0.243347Jy  sigma=0.001787
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1765 milli-arcsec
! Added new window around map position (-1.2, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0442414 Jy
! Component: 100  -  total flux cleaned = 0.0713036 Jy
! Total flux subtracted in 100 components = 0.0713036 Jy
! Clean residual min=-0.013674 max=0.019031 Jy/beam
! Clean residual mean=0.000381 rms=0.003395 Jy/beam
! Combined flux in latest and established models = 0.668869 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 27 components and 0.668869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231247Jy  sigma=0.001613
! Fit after  self-cal, rms=0.230431Jy  sigma=0.001604
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1765 milli-arcsec
! Added new window around map position (-0.6, 0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0247788 Jy
! Component: 100  -  total flux cleaned = 0.043878 Jy
! Total flux subtracted in 100 components = 0.043878 Jy
! Clean residual min=-0.012042 max=0.016478 Jy/beam
! Clean residual mean=0.000284 rms=0.003016 Jy/beam
! Combined flux in latest and established models = 0.712747 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 32 components and 0.712747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225672Jy  sigma=0.001534
! Fit after  self-cal, rms=0.225453Jy  sigma=0.001531
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1765 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.26% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1765 milli-arcsec
! Estimated beam: bmin=0.6152 mas, bmaj=1.491 mas, bpa=-7.732 degrees
! Estimated noise=339.998 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.0255046 Jy
! Component: 100  -  total flux cleaned = 0.0402932 Jy
! Component: 150  -  total flux cleaned = 0.0501774 Jy
! Component: 200  -  total flux cleaned = 0.0569747 Jy
! Total flux subtracted in 200 components = 0.0569747 Jy
! Clean residual min=-0.011229 max=0.018434 Jy/beam
! Clean residual mean=0.000610 rms=0.003722 Jy/beam
! Combined flux in latest and established models = 0.769722 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 45 components and 0.769722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222166Jy  sigma=0.001486
! Fit after  self-cal, rms=0.221916Jy  sigma=0.001482
! Inverting map 
! Your choice of large map pixels excluded 1.26% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1765 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.96     GC        1.06     GG        1.00*    
!   HN        0.96     KP        0.96     LA        0.96     NL        0.93     
!   OV        0.97     PT        0.97     SC        0.99     WF        0.96     
!   GN        1.04     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        0.97     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        0.97     GG        1.00*    
!   HN        1.03     KP        0.95     LA        0.95     NL        1.01     
!   OV        0.97     PT        0.97     SC        1.05     WF        0.98     
!   GN        0.96     HH        1.00*    KK        0.96     MC        1.00*    
!   MK        0.97     NY        1.13     ON        1.00*    WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.11     FD        0.97     GC        1.19     GG        1.00*    
!   HN        1.02     KP        0.97     LA        0.98     NL        0.88     
!   OV        0.97     PT        0.97     SC        0.95     WF        0.95     
!   GN        0.96     HH        1.06     KK        1.00*    MC        0.90     
!   MK        1.00*    NY        1.09     ON        0.98     WZ        2.80     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     GC        1.06     GG        1.00*    
!   HN        0.97     KP        0.98     LA        0.95     NL        0.90     
!   OV        0.98     PT        0.98     SC        1.03     WF        0.97     
!   GN        1.01     HH        1.00*    KK        0.92     MC        1.00*    
!   MK        0.95     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        0.97     GG        1.00*    
!   HN        1.02     KP        0.96     LA        0.96     NL        1.00     
!   OV        0.98     PT        0.97     SC        1.05     WF        0.98     
!   GN        0.97     HH        1.00*    KK        0.96     MC        1.00*    
!   MK        0.98     NY        1.11     ON        1.00*    WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        0.98     GC        1.24     GG        1.00*    
!   HN        1.01     KP        0.98     LA        0.98     NL        0.88     
!   OV        0.97     PT        0.97     SC        0.93     WF        0.96     
!   GN        0.97     HH        1.40     KK        1.00*    MC        0.90     
!   MK        1.00*    NY        1.09     ON        0.96     WZ        2.70     
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.98     GC        1.00     GG        1.00*    
!   HN        0.97     KP        0.98     LA        0.95     NL        0.93     
!   OV        0.99     PT        0.98     SC        1.04     WF        0.95     
!   GN        1.09     HH        1.00*    KK        0.94     MC        1.00*    
!   MK        0.93     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.99     GC        0.90     GG        1.00*    
!   HN        1.00     KP        0.97     LA        0.96     NL        1.04     
!   OV        0.97     PT        1.00     SC        1.09     WF        1.01     
!   GN        0.99     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        0.96     NY        1.13     ON        1.00*    WZ        1.00*    
! 
!  A total of 165 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        0.98     GC        1.26     GG        1.00*    
!   HN        1.02     KP        0.99     LA        0.99     NL        0.88     
!   OV        0.98     PT        0.99     SC        0.96     WF        0.97     
!   GN        0.97     HH        1.02     KK        1.00*    MC        0.88     
!   MK        1.00*    NY        1.09     ON        0.99     WZ        2.35     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.97     GC        1.08     GG        1.00*    
!   HN        1.00     KP        0.96     LA        0.96     NL        0.89     
!   OV        0.98     PT        0.99     SC        1.03     WF        0.96     
!   GN        1.06     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        0.92     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GC        1.00     GG        1.00*    
!   HN        1.02     KP        0.98     LA        0.94     NL        1.07     
!   OV        0.98     PT        0.99     SC        1.06     WF        1.01     
!   GN        0.95     HH        1.00*    KK        1.00     MC        1.00*    
!   MK        0.95     NY        1.09     ON        1.00*    WZ        1.00*    
! 
!  A total of 165 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        0.98     GC        1.23     GG        1.00*    
!   HN        1.02     KP        0.99     LA        0.99     NL        0.89     
!   OV        0.96     PT        0.98     SC        0.97     WF        0.96     
!   GN        0.97     HH        1.46     KK        1.00*    MC        0.88     
!   MK        1.00*    NY        1.08     ON        1.01     WZ        2.39     
! 
! 
! Fit before self-cal, rms=0.221916Jy  sigma=0.001482
! Fit after  self-cal, rms=0.250437Jy  sigma=0.001329
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=0.6302 mas, bmaj=1.54 mas, bpa=-7.618 degrees
! Estimated noise=342.906 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.00130552 Jy
! Component: 100  -  total flux cleaned = 0.000247366 Jy
! Component: 150  -  total flux cleaned = -0.000376572 Jy
! Component: 200  -  total flux cleaned = -0.00051613 Jy
! Total flux subtracted in 200 components = -0.00051613 Jy
! Clean residual min=-0.004866 max=0.004879 Jy/beam
! Clean residual mean=0.000281 rms=0.001345 Jy/beam
! Combined flux in latest and established models = 0.769206 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 53 components and 0.769206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250039Jy  sigma=0.001323
! Fit after  self-cal, rms=0.250494Jy  sigma=0.001322
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 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.250494Jy  sigma=0.001322
! Fit after  self-cal, rms=0.262921Jy  sigma=0.001287
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=0.6323 mas, bmaj=1.537 mas, bpa=-7.541 degrees
! Estimated noise=342.989 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000680881 Jy
! Component: 100  -  total flux cleaned = 0.000403193 Jy
! Component: 150  -  total flux cleaned = 0.000530484 Jy
! Component: 200  -  total flux cleaned = 0.000736293 Jy
! Total flux subtracted in 200 components = 0.000736293 Jy
! Clean residual min=-0.003463 max=0.004480 Jy/beam
! Clean residual mean=0.000240 rms=0.000892 Jy/beam
! Combined flux in latest and established models = 0.769942 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 57 components and 0.769942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262768Jy  sigma=0.001285
! Fit after  self-cal, rms=0.262850Jy  sigma=0.001284
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-2.2, 1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00438004 Jy
! Component: 100  -  total flux cleaned = 0.00471001 Jy
! Component: 150  -  total flux cleaned = 0.00479634 Jy
! Component: 200  -  total flux cleaned = 0.00495712 Jy
! Total flux subtracted in 200 components = 0.00495712 Jy
! Clean residual min=-0.003631 max=0.002913 Jy/beam
! Clean residual mean=0.000194 rms=0.000802 Jy/beam
! Combined flux in latest and established models = 0.774899 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 68 components and 0.774899 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262721Jy  sigma=0.001283
! Fit after  self-cal, rms=0.262731Jy  sigma=0.001283
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 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.262731Jy  sigma=0.001283
! Fit after  self-cal, rms=0.264247Jy  sigma=0.001280
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=0.6336 mas, bmaj=1.534 mas, bpa=-7.48 degrees
! Estimated noise=342.573 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000624943 Jy
! Component: 100  -  total flux cleaned = 0.00099777 Jy
! Component: 150  -  total flux cleaned = 0.00122685 Jy
! Component: 200  -  total flux cleaned = 0.00128924 Jy
! Total flux subtracted in 200 components = 0.00128924 Jy
! Clean residual min=-0.002956 max=0.002760 Jy/beam
! Clean residual mean=0.000158 rms=0.000697 Jy/beam
! Combined flux in latest and established models = 0.776188 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 0.776188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264177Jy  sigma=0.001279
! Fit after  self-cal, rms=0.264163Jy  sigma=0.001279
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 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.000652877 Jy
! Component: 100  -  total flux cleaned = 0.000709397 Jy
! Component: 150  -  total flux cleaned = 0.000656117 Jy
! Component: 200  -  total flux cleaned = 0.000704515 Jy
! Total flux subtracted in 200 components = 0.000704515 Jy
! Clean residual min=-0.002910 max=0.002788 Jy/beam
! Clean residual mean=0.000152 rms=0.000681 Jy/beam
! Combined flux in latest and established models = 0.776893 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 75 components and 0.776893 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264135Jy  sigma=0.001278
! Fit after  self-cal, rms=0.264138Jy  sigma=0.001278
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 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.264138Jy  sigma=0.001278
! Fit after  self-cal, rms=0.264330Jy  sigma=0.001278
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=2.095 mas, bmaj=2.636 mas, bpa=-4.172 degrees
! Estimated noise=482.415 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000835045 Jy
! Component: 100  -  total flux cleaned = -0.000831979 Jy
! Component: 150  -  total flux cleaned = -0.000934432 Jy
! Component: 200  -  total flux cleaned = -0.000976383 Jy
! Total flux subtracted in 200 components = -0.000976383 Jy
! Clean residual min=-0.002388 max=0.004749 Jy/beam
! Clean residual mean=0.000428 rms=0.001096 Jy/beam
! Combined flux in latest and established models = 0.775917 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 86 components and 0.775916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264299Jy  sigma=0.001278
! Fit after  self-cal, rms=0.264287Jy  sigma=0.001278
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 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 (-4.6, 5.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00453689 Jy
! Component: 100  -  total flux cleaned = 0.00637457 Jy
! Component: 150  -  total flux cleaned = 0.00768984 Jy
! Component: 200  -  total flux cleaned = 0.00828779 Jy
! Total flux subtracted in 200 components = 0.00828779 Jy
! Clean residual min=-0.002245 max=0.002366 Jy/beam
! Clean residual mean=0.000140 rms=0.000716 Jy/beam
! Combined flux in latest and established models = 0.784204 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 120 components and 0.784204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264243Jy  sigma=0.001277
! Fit after  self-cal, rms=0.264251Jy  sigma=0.001277
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=0.6351 mas, bmaj=1.533 mas, bpa=-7.461 degrees
! Estimated noise=342.526 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6351 x 1.533 at -7.461 degrees (North through East)
! Clean map  min=-0.0019348  max=0.50821 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.264251Jy  sigma=0.001277
! Fit after  self-cal, rms=0.445403Jy  sigma=0.001201
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=0.636 mas, bmaj=1.533 mas, bpa=-7.448 degrees
! Estimated noise=342.464 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00103079 Jy
! Component: 100  -  total flux cleaned = 0.00160699 Jy
! Component: 150  -  total flux cleaned = 0.00195228 Jy
! Component: 200  -  total flux cleaned = 0.00216459 Jy
! Total flux subtracted in 200 components = 0.00216459 Jy
! Clean residual min=-0.002241 max=0.001961 Jy/beam
! Clean residual mean=0.000041 rms=0.000523 Jy/beam
! Combined flux in latest and established models = 0.786369 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 147 components and 0.786369 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445383Jy  sigma=0.001201
! Fit after  self-cal, rms=0.445345Jy  sigma=0.001201
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000382153 Jy
! Component: 100  -  total flux cleaned = 0.000533087 Jy
! Component: 150  -  total flux cleaned = 0.000580728 Jy
! Component: 200  -  total flux cleaned = 0.000580928 Jy
! Total flux subtracted in 200 components = 0.000580928 Jy
! Clean residual min=-0.002184 max=0.001964 Jy/beam
! Clean residual mean=0.000034 rms=0.000511 Jy/beam
! Combined flux in latest and established models = 0.78695 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 161 components and 0.78695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445334Jy  sigma=0.001200
! Fit after  self-cal, rms=0.445309Jy  sigma=0.001200
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 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.445309Jy  sigma=0.001200
! Fit after  self-cal, rms=0.439798Jy  sigma=0.001200
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=0.552 mas, bmaj=1.123 mas, bpa=-7.319 degrees
! Estimated noise=688.27 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.372453 Jy
! Component: 100  -  total flux cleaned = 0.496084 Jy
! Component: 150  -  total flux cleaned = 0.564911 Jy
! Component: 200  -  total flux cleaned = 0.610091 Jy
! Total flux subtracted in 200 components = 0.610091 Jy
! Clean residual min=-0.006399 max=0.024625 Jy/beam
! Clean residual mean=0.000442 rms=0.002595 Jy/beam
! Combined flux in latest and established models = 0.610092 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.610092 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=0.6364 mas, bmaj=1.532 mas, bpa=-7.453 degrees
! Estimated noise=342.316 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.0580728 Jy
! Component: 100  -  total flux cleaned = 0.0917825 Jy
! Component: 150  -  total flux cleaned = 0.113405 Jy
! Component: 200  -  total flux cleaned = 0.128217 Jy
! Total flux subtracted in 200 components = 0.128217 Jy
! Clean residual min=-0.003516 max=0.008237 Jy/beam
! Clean residual mean=0.000488 rms=0.001536 Jy/beam
! Combined flux in latest and established models = 0.738309 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 55 components and 0.738309 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104474 Jy
! Component: 100  -  total flux cleaned = 0.0179034 Jy
! Component: 150  -  total flux cleaned = 0.0234164 Jy
! Component: 200  -  total flux cleaned = 0.0277647 Jy
! Total flux subtracted in 200 components = 0.0277647 Jy
! Clean residual min=-0.002211 max=0.002730 Jy/beam
! Clean residual mean=0.000251 rms=0.000776 Jy/beam
! Combined flux in latest and established models = 0.766073 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 77 components and 0.766074 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=2.095 mas, bmaj=2.636 mas, bpa=-4.128 degrees
! Estimated noise=481.24 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00708611 Jy
! Component: 100  -  total flux cleaned = 0.0114997 Jy
! Component: 150  -  total flux cleaned = 0.0144742 Jy
! Component: 200  -  total flux cleaned = 0.0161207 Jy
! Total flux subtracted in 200 components = 0.0161207 Jy
! Clean residual min=-0.002207 max=0.002583 Jy/beam
! Clean residual mean=0.000257 rms=0.000747 Jy/beam
! Combined flux in latest and established models = 0.782194 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.00134687 Jy
! Component: 100  -  total flux cleaned = 0.00232449 Jy
! Component: 150  -  total flux cleaned = 0.00319792 Jy
! Component: 200  -  total flux cleaned = 0.00365006 Jy
! Total flux subtracted in 200 components = 0.00365006 Jy
! Clean residual min=-0.002349 max=0.002335 Jy/beam
! Clean residual mean=0.000142 rms=0.000652 Jy/beam
! Combined flux in latest and established models = 0.785844 Jy
! Adding 83 model components to the UV plane model.
! The established model now contains 150 components and 0.785844 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! Estimated beam: bmin=0.6364 mas, bmaj=1.532 mas, bpa=-7.453 degrees
! Estimated noise=342.316 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000509255 Jy
! Component: 100  -  total flux cleaned = 0.00101979 Jy
! Component: 150  -  total flux cleaned = 0.00131394 Jy
! Component: 200  -  total flux cleaned = 0.00147712 Jy
! Total flux subtracted in 200 components = 0.00147712 Jy
! Clean residual min=-0.002198 max=0.002089 Jy/beam
! Clean residual mean=0.000039 rms=0.000513 Jy/beam
! Combined flux in latest and established models = 0.787321 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 176 components and 0.787321 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.439677Jy  sigma=0.001201
! Fit after  self-cal, rms=0.439683Jy  sigma=0.001200
wmodel J1608+1029_X_1999_03_08_pus_map.mod
! Writing 176 model components to file: J1608+1029_X_1999_03_08_pus_map.mod
wobs J1608+1029_X_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J1608+1029_X_1999_03_08_pus_uvs.fits
wwins J1608+1029_X_1999_03_08_pus_map.win
! wwins: Wrote 5 windows to J1608+1029_X_1999_03_08_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000248303 Jy
! Component: 100  -  total flux cleaned = -0.000184959 Jy
! Component: 150  -  total flux cleaned = -0.000123896 Jy
! Component: 200  -  total flux cleaned = -0.000152719 Jy
! Component: 250  -  total flux cleaned = -0.000207971 Jy
! Component: 300  -  total flux cleaned = -0.000153194 Jy
! Component: 350  -  total flux cleaned = -0.000153567 Jy
! Component: 400  -  total flux cleaned = -0.00012743 Jy
! Component: 450  -  total flux cleaned = -5.06031e-05 Jy
! Component: 500  -  total flux cleaned = 2.45432e-05 Jy
! Component: 550  -  total flux cleaned = 7.35297e-05 Jy
! Component: 600  -  total flux cleaned = 0.000121846 Jy
! Component: 650  -  total flux cleaned = 0.00016957 Jy
! Component: 700  -  total flux cleaned = 0.000216401 Jy
! Component: 750  -  total flux cleaned = 0.000262787 Jy
! Component: 800  -  total flux cleaned = 0.000309013 Jy
! Component: 850  -  total flux cleaned = 0.000399623 Jy
! Component: 900  -  total flux cleaned = 0.000444389 Jy
! Component: 950  -  total flux cleaned = 0.000510574 Jy
! Component: 1000  -  total flux cleaned = 0.000532406 Jy
! Total flux subtracted in 1024 components = 0.000597433 Jy
! Clean residual min=-0.001397 max=0.001337 Jy/beam
! Clean residual mean=0.000039 rms=0.000419 Jy/beam
! Combined flux in latest and established models = 0.787919 Jy
keep
! Adding 69 model components to the UV plane model.
! The established model now contains 244 components and 0.787919 Jy
![Exited script file: muppet]
wmap "J1608+1029_X_1999_03_08_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6364 x 1.532 at -7.453 degrees (North through East)
! Clean map  min=-0.0018289  max=0.51051 Jy/beam
! Writing clean map to FITS file: J1608+1029_X_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.510508 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.993% of the data.
!  The x-axis pixel size should ideally be below 0.1629 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1766 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000418274 
device "J1608+1029_X_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J1608+1029_X_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.245799 0.245799 0.491597 0.983194 1.96639 3.93278 7.86556 15.7311 31.4622 62.9244
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.51 
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.6364 x 1.532 at -7.453 degrees (North through East)
! Clean map  min=-0.0018289  max=0.51051 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1608+1029_X_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J1608+1029_X_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1608+1029_X_1999_03_08_pus_uvs.log closed on Thu Jan  3 18:37:25 2008