! Started logfile: J1751+0939_X_2003_05_07_pus_uvs.log on Thu Dec 14 16:23:54 2006
obs J1751+0939_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1751+0939_X_2003_05_07_pus_uva.fits
! AN table 1: 29 integrations on 171 of 171 possible baselines.
! AN table 2: 350 integrations on 171 of 171 possible baselines.
! AN table 3: 79 integrations on 171 of 171 possible baselines.
! AN table 4: 69 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0881521 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1751+0939
! 
! 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 1739 lines of history.
! 
! Reading 31776 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 506 telescope corrections were flagged in sub-array 1.
!  A total of 4951 telescope corrections were flagged in sub-array 2.
!  A total of 941 telescope corrections were flagged in sub-array 3.
!  A total of 1120 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 506 telescope corrections were flagged in sub-array 1.
!  A total of 4951 telescope corrections were flagged in sub-array 2.
!  A total of 941 telescope corrections were flagged in sub-array 3.
!  A total of 1120 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 506 telescope corrections were flagged in sub-array 1.
!  A total of 4951 telescope corrections were flagged in sub-array 2.
!  A total of 941 telescope corrections were flagged in sub-array 3.
!  A total of 1123 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 506 telescope corrections were flagged in sub-array 1.
!  A total of 4951 telescope corrections were flagged in sub-array 2.
!  A total of 941 telescope corrections were flagged in sub-array 3.
!  A total of 1123 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.254700Jy  sigma=0.009661
! Fit after  self-cal, rms=0.739084Jy  sigma=0.005998
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.5282 mas, bmaj=1.002 mas, bpa=-9.301 degrees
! Estimated noise=1267.7 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 = 1.20839 Jy
! Component: 100  -  total flux cleaned = 1.48535 Jy
! Total flux subtracted in 100 components = 1.48535 Jy
! Clean residual min=-0.050059 max=0.104510 Jy/beam
! Clean residual mean=0.000184 rms=0.014150 Jy/beam
! Combined flux in latest and established models = 1.48535 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.48535 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.452662Jy  sigma=0.002925
! Fit after  self-cal, rms=0.452682Jy  sigma=0.002923
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.113954 Jy
! Component: 100  -  total flux cleaned = 0.178914 Jy
! Total flux subtracted in 100 components = 0.178914 Jy
! Clean residual min=-0.038377 max=0.061971 Jy/beam
! Clean residual mean=-0.000070 rms=0.010940 Jy/beam
! Combined flux in latest and established models = 1.66427 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 14 components and 1.66427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414840Jy  sigma=0.002283
! Fit after  self-cal, rms=0.414477Jy  sigma=0.002279
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.7492 mas, bmaj=1.649 mas, bpa=-7.152 degrees
! Estimated noise=552.548 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 (1, -0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0927368 Jy
! Component: 100  -  total flux cleaned = 0.138798 Jy
! Component: 150  -  total flux cleaned = 0.152874 Jy
! Component: 200  -  total flux cleaned = 0.152904 Jy
! Total flux subtracted in 200 components = 0.152904 Jy
! Clean residual min=-0.031983 max=0.052057 Jy/beam
! Clean residual mean=-0.002265 rms=0.008502 Jy/beam
! Combined flux in latest and established models = 1.81717 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 32 components and 1.81717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.398204Jy  sigma=0.002016
! Fit after  self-cal, rms=0.397195Jy  sigma=0.002001
! Inverting map 
! Your choice of large map pixels excluded 3.24% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        1.00*    GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.51     WF        1.07     WZ        1.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.96     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.09     LA        0.95     MA        1.04     
!   MC        1.15     MK        0.95     NL        1.01     ON        1.03     
!   OV        0.95     PT        0.96     SC        1.01     TC        0.98     
!   TS        1.00*    WF        1.09     WZ        0.95     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.03     GG        1.00*    HN        0.96     
!   KK        1.12     KP        1.15     LA        1.03     MA        1.10     
!   MC        1.05     MK        0.95     NL        1.08     ON        0.97     
!   OV        0.99     PT        1.07     SC        0.96     TC        0.98     
!   TS        1.00*    WF        0.92     WZ        0.96     
! 
!  A total of 117 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.08     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.02     
!   MC        0.96     MK        1.00*    NL        1.00*    ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.05     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        1.00*    GG        1.00*    HN        1.10     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.53     WF        1.14     WZ        1.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.95     GG        1.00*    HN        1.09     
!   KK        1.00*    KP        1.02     LA        0.95     MA        1.03     
!   MC        1.11     MK        0.95     NL        0.97     ON        1.02     
!   OV        0.94     PT        1.00     SC        0.98     TC        1.04     
!   TS        1.00*    WF        1.11     WZ        0.98     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.03     GG        1.00*    HN        0.97     
!   KK        1.10     KP        1.07     LA        1.04     MA        1.07     
!   MC        1.01     MK        0.95     NL        1.04     ON        0.95     
!   OV        0.99     PT        1.11     SC        0.90     TC        0.99     
!   TS        1.00*    WF        0.96     WZ        0.97     
! 
!  A total of 117 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.92     
!   MC        0.96     MK        1.00*    NL        1.00*    ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.16     WZ        1.02     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.46     WF        1.06     WZ        1.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.93     GG        1.00*    HN        1.09     
!   KK        1.00*    KP        0.94     LA        0.95     MA        0.99     
!   MC        1.03     MK        0.94     NL        0.95     ON        1.01     
!   OV        0.98     PT        1.02     SC        1.00     TC        0.98     
!   TS        1.00*    WF        1.07     WZ        0.96     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GG        1.00*    HN        0.95     
!   KK        1.18     KP        1.01     LA        1.03     MA        1.08     
!   MC        0.98     MK        0.97     NL        1.01     ON        0.96     
!   OV        1.01     PT        1.13     SC        0.91     TC        0.92     
!   TS        1.00*    WF        0.93     WZ        0.95     
! 
!  A total of 114 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.88     
!   MC        1.06     MK        1.00*    NL        1.00*    ON        0.95     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.10     WZ        1.01     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00*    GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.47     WF        1.09     WZ        1.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.92     GG        1.00*    HN        1.12     
!   KK        1.00*    KP        1.01     LA        0.93     MA        1.05     
!   MC        1.13     MK        0.97     NL        0.95     ON        0.90     
!   OV        0.97     PT        1.03     SC        1.06     TC        1.22     
!   TS        1.00*    WF        1.06     WZ        0.94     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GG        1.00*    HN        0.97     
!   KK        1.11     KP        1.07     LA        1.00     MA        1.12     
!   MC        1.05     MK        0.99     NL        1.02     ON        0.99     
!   OV        1.00     PT        1.13     SC        0.95     TC        0.91     
!   TS        1.00*    WF        0.90     WZ        0.96     
! 
!  A total of 114 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.08     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.96     
!   MC        0.93     MK        1.00*    NL        1.00*    ON        0.98     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.397195Jy  sigma=0.002001
! Fit after  self-cal, rms=0.386908Jy  sigma=0.001701
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.7495 mas, bmaj=1.661 mas, bpa=-7.053 degrees
! Estimated noise=552.582 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.00803377 Jy
! Component: 100  -  total flux cleaned = 0.00934894 Jy
! Component: 150  -  total flux cleaned = 0.00933212 Jy
! Component: 200  -  total flux cleaned = 0.00880202 Jy
! Total flux subtracted in 200 components = 0.00880202 Jy
! Clean residual min=-0.020040 max=0.020730 Jy/beam
! Clean residual mean=-0.000262 rms=0.005136 Jy/beam
! Combined flux in latest and established models = 1.82597 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 44 components and 1.82597 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384629Jy  sigma=0.001681
! Fit after  self-cal, rms=0.384611Jy  sigma=0.001679
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 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.384611Jy  sigma=0.001679
! Fit after  self-cal, rms=0.375297Jy  sigma=0.001476
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.749 mas, bmaj=1.671 mas, bpa=-7.118 degrees
! Estimated noise=557.751 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0021507 Jy
! Component: 100  -  total flux cleaned = 0.00278596 Jy
! Component: 150  -  total flux cleaned = 0.00331208 Jy
! Component: 200  -  total flux cleaned = 0.00378134 Jy
! Total flux subtracted in 200 components = 0.00378134 Jy
! Clean residual min=-0.009892 max=0.010064 Jy/beam
! Clean residual mean=-0.000167 rms=0.002555 Jy/beam
! Combined flux in latest and established models = 1.82975 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 52 components and 1.82975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374731Jy  sigma=0.001469
! Fit after  self-cal, rms=0.374738Jy  sigma=0.001468
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 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.000782338 Jy
! Component: 100  -  total flux cleaned = 0.000770062 Jy
! Component: 150  -  total flux cleaned = 0.00113118 Jy
! Component: 200  -  total flux cleaned = 0.00129873 Jy
! Total flux subtracted in 200 components = 0.00129873 Jy
! Clean residual min=-0.009614 max=0.009682 Jy/beam
! Clean residual mean=-0.000189 rms=0.002493 Jy/beam
! Combined flux in latest and established models = 1.83105 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 56 components and 1.83105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374575Jy  sigma=0.001465
! Fit after  self-cal, rms=0.374552Jy  sigma=0.001465
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 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.374552Jy  sigma=0.001465
! Fit after  self-cal, rms=0.372360Jy  sigma=0.001354
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.7449 mas, bmaj=1.669 mas, bpa=-7.111 degrees
! Estimated noise=557.443 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000486408 Jy
! Component: 100  -  total flux cleaned = 0.00123868 Jy
! Component: 150  -  total flux cleaned = 0.00282458 Jy
! Component: 200  -  total flux cleaned = 0.00305138 Jy
! Total flux subtracted in 200 components = 0.00305138 Jy
! Clean residual min=-0.005823 max=0.007715 Jy/beam
! Clean residual mean=0.000085 rms=0.001596 Jy/beam
! Combined flux in latest and established models = 1.8341 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 60 components and 1.8341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371609Jy  sigma=0.001345
! Fit after  self-cal, rms=0.371522Jy  sigma=0.001344
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1, 4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00308253 Jy
! Component: 100  -  total flux cleaned = 0.00330611 Jy
! Component: 150  -  total flux cleaned = 0.00331147 Jy
! Component: 200  -  total flux cleaned = 0.00346856 Jy
! Total flux subtracted in 200 components = 0.00346856 Jy
! Clean residual min=-0.005171 max=0.005819 Jy/beam
! Clean residual mean=0.000024 rms=0.001430 Jy/beam
! Combined flux in latest and established models = 1.83757 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 70 components and 1.83757 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371245Jy  sigma=0.001340
! Fit after  self-cal, rms=0.371185Jy  sigma=0.001340
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 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.371185Jy  sigma=0.001340
! Fit after  self-cal, rms=0.371337Jy  sigma=0.001338
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=2.697 mas, bmaj=3.206 mas, bpa=-10.9 degrees
! Estimated noise=649.969 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00404957 Jy
! Component: 100  -  total flux cleaned = 0.0056527 Jy
! Component: 150  -  total flux cleaned = 0.00578579 Jy
! Component: 200  -  total flux cleaned = 0.00590647 Jy
! Total flux subtracted in 200 components = 0.00590647 Jy
! Clean residual min=-0.004125 max=0.004165 Jy/beam
! Clean residual mean=-0.000006 rms=0.001303 Jy/beam
! Combined flux in latest and established models = 1.84348 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 91 components and 1.84348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371368Jy  sigma=0.001338
! Fit after  self-cal, rms=0.371361Jy  sigma=0.001338
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 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.000411382 Jy
! Component: 100  -  total flux cleaned = 0.000538281 Jy
! Component: 150  -  total flux cleaned = 0.000593956 Jy
! Component: 200  -  total flux cleaned = 0.000698118 Jy
! Total flux subtracted in 200 components = 0.000698118 Jy
! Clean residual min=-0.004055 max=0.003855 Jy/beam
! Clean residual mean=-0.000029 rms=0.001259 Jy/beam
! Combined flux in latest and established models = 1.84418 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 95 components and 1.84418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371365Jy  sigma=0.001338
! Fit after  self-cal, rms=0.371351Jy  sigma=0.001338
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.7432 mas, bmaj=1.672 mas, bpa=-7.141 degrees
! Estimated noise=557.439 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7432 x 1.672 at -7.141 degrees (North through East)
! Clean map  min=-0.00849  max=1.5892 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.371351Jy  sigma=0.001338
! Fit after  self-cal, rms=0.356172Jy  sigma=0.001146
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.7431 mas, bmaj=1.671 mas, bpa=-7.164 degrees
! Estimated noise=557.433 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00131327 Jy
! Component: 100  -  total flux cleaned = -0.000669578 Jy
! Component: 150  -  total flux cleaned = -0.000316945 Jy
! Component: 200  -  total flux cleaned = -1.37492e-05 Jy
! Total flux subtracted in 200 components = -1.37492e-05 Jy
! Clean residual min=-0.004482 max=0.004457 Jy/beam
! Clean residual mean=0.000013 rms=0.001211 Jy/beam
! Combined flux in latest and established models = 1.84416 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 95 components and 1.84416 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355858Jy  sigma=0.001142
! Fit after  self-cal, rms=0.355807Jy  sigma=0.001141
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000591613 Jy
! Component: 100  -  total flux cleaned = -4.05832e-05 Jy
! Component: 150  -  total flux cleaned = 8.32641e-05 Jy
! Component: 200  -  total flux cleaned = 0.000306838 Jy
! Total flux subtracted in 200 components = 0.000306838 Jy
! Clean residual min=-0.004170 max=0.004227 Jy/beam
! Clean residual mean=0.000007 rms=0.001165 Jy/beam
! Combined flux in latest and established models = 1.84447 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 99 components and 1.84447 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355676Jy  sigma=0.001140
! Fit after  self-cal, rms=0.355644Jy  sigma=0.001139
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 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.355644Jy  sigma=0.001139
! Fit after  self-cal, rms=0.355597Jy  sigma=0.001139
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.5251 mas, bmaj=1.005 mas, bpa=-9.188 degrees
! Estimated noise=1263.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.19715 Jy
! Component: 100  -  total flux cleaned = 1.47429 Jy
! Component: 150  -  total flux cleaned = 1.59306 Jy
! Component: 200  -  total flux cleaned = 1.66119 Jy
! Total flux subtracted in 200 components = 1.66119 Jy
! Clean residual min=-0.014629 max=0.035719 Jy/beam
! Clean residual mean=0.000275 rms=0.004543 Jy/beam
! Combined flux in latest and established models = 1.66119 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 15 model components to the UV plane model.
! The established model now contains 15 components and 1.66119 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.7421 mas, bmaj=1.673 mas, bpa=-7.186 degrees
! Estimated noise=557.478 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.0833389 Jy
! Component: 100  -  total flux cleaned = 0.12377 Jy
! Component: 150  -  total flux cleaned = 0.14716 Jy
! Component: 200  -  total flux cleaned = 0.1617 Jy
! Total flux subtracted in 200 components = 0.1617 Jy
! Clean residual min=-0.006457 max=0.010077 Jy/beam
! Clean residual mean=0.000353 rms=0.002264 Jy/beam
! Combined flux in latest and established models = 1.82289 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 51 components and 1.82289 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Added new window around map position (3.6, 3.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104784 Jy
! Component: 100  -  total flux cleaned = 0.0154419 Jy
! Component: 150  -  total flux cleaned = 0.0174808 Jy
! Component: 200  -  total flux cleaned = 0.0189852 Jy
! Total flux subtracted in 200 components = 0.0189852 Jy
! Clean residual min=-0.004705 max=0.004749 Jy/beam
! Clean residual mean=0.000078 rms=0.001230 Jy/beam
! Combined flux in latest and established models = 1.84188 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 67 components and 1.84188 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=2.7 mas, bmaj=3.208 mas, bpa=-10.86 degrees
! Estimated noise=649.982 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00418257 Jy
! Component: 100  -  total flux cleaned = 0.00465006 Jy
! Component: 150  -  total flux cleaned = 0.00486808 Jy
! Component: 200  -  total flux cleaned = 0.00480732 Jy
! Total flux subtracted in 200 components = 0.00480732 Jy
! Clean residual min=-0.003976 max=0.003616 Jy/beam
! Clean residual mean=-0.000001 rms=0.001247 Jy/beam
! Combined flux in latest and established models = 1.84669 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 = 3.08766e-06 Jy
! Component: 100  -  total flux cleaned = 3.64729e-06 Jy
! Component: 150  -  total flux cleaned = 2.57407e-06 Jy
! Component: 200  -  total flux cleaned = -3.4986e-05 Jy
! Total flux subtracted in 200 components = -3.4986e-05 Jy
! Clean residual min=-0.003944 max=0.003438 Jy/beam
! Clean residual mean=-0.000000 rms=0.001162 Jy/beam
! Combined flux in latest and established models = 1.84665 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 92 components and 1.84665 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! Estimated beam: bmin=0.7421 mas, bmaj=1.673 mas, bpa=-7.186 degrees
! Estimated noise=557.478 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00161958 Jy
! Component: 100  -  total flux cleaned = -0.00150669 Jy
! Component: 150  -  total flux cleaned = -0.00150446 Jy
! Component: 200  -  total flux cleaned = -0.00140721 Jy
! Total flux subtracted in 200 components = -0.00140721 Jy
! Clean residual min=-0.003498 max=0.003644 Jy/beam
! Clean residual mean=0.000027 rms=0.000991 Jy/beam
! Combined flux in latest and established models = 1.84524 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 101 components and 1.84524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354927Jy  sigma=0.001133
! Fit after  self-cal, rms=0.354872Jy  sigma=0.001133
wmodel J1751+0939_X_2003_05_07_pus_map.mod
! Writing 101 model components to file: J1751+0939_X_2003_05_07_pus_map.mod
wobs J1751+0939_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1751+0939_X_2003_05_07_pus_uvs.fits
wwins J1751+0939_X_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J1751+0939_X_2003_05_07_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000473359 Jy
! Component: 100  -  total flux cleaned = 0.000887277 Jy
! Component: 150  -  total flux cleaned = 0.00100132 Jy
! Component: 200  -  total flux cleaned = 0.00116245 Jy
! Component: 250  -  total flux cleaned = 0.00131758 Jy
! Component: 300  -  total flux cleaned = 0.00136702 Jy
! Component: 350  -  total flux cleaned = 0.00141704 Jy
! Component: 400  -  total flux cleaned = 0.00146577 Jy
! Component: 450  -  total flux cleaned = 0.00146619 Jy
! Component: 500  -  total flux cleaned = 0.00146565 Jy
! Component: 550  -  total flux cleaned = 0.00142017 Jy
! Component: 600  -  total flux cleaned = 0.00150958 Jy
! Component: 650  -  total flux cleaned = 0.00142214 Jy
! Component: 700  -  total flux cleaned = 0.00150858 Jy
! Component: 750  -  total flux cleaned = 0.0014234 Jy
! Component: 800  -  total flux cleaned = 0.00146531 Jy
! Component: 850  -  total flux cleaned = 0.00146545 Jy
! Component: 900  -  total flux cleaned = 0.00142469 Jy
! Component: 950  -  total flux cleaned = 0.0014646 Jy
! Component: 1000  -  total flux cleaned = 0.0013052 Jy
! Total flux subtracted in 1024 components = 0.00138427 Jy
! Clean residual min=-0.002030 max=0.002551 Jy/beam
! Clean residual mean=0.000008 rms=0.000761 Jy/beam
! Combined flux in latest and established models = 1.84663 Jy
keep
! Adding 73 model components to the UV plane model.
! The established model now contains 174 components and 1.84663 Jy
wmap "J1751+0939_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7421 x 1.673 at -7.186 degrees (North through East)
! Clean map  min=-0.0040203  max=1.5968 Jy/beam
! Writing clean map to FITS file: J1751+0939_X_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.59679 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.28% of the data.
!  The x-axis pixel size should ideally be below 0.1776 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1709 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000759979 
device "J1751+0939_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.142783 0.142783 0.285566 0.571132 1.14226 2.28453 4.56906 9.13811 18.2762 36.5524 73.1049
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.596 
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.7421 x 1.673 at -7.186 degrees (North through East)
! Clean map  min=-0.0040203  max=1.5968 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_X_2003_05_07_pus_uvs.log closed on Thu Dec 14 16:25:58 2006