! Started logfile: J1740+5211_X_2003_05_07_pus_uvs.log on Thu Dec 14 16:18:44 2006
obs J1740+5211_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1740+5211_X_2003_05_07_pus_uva.fits
! AN table 1: 58 integrations on 171 of 171 possible baselines.
! AN table 2: 84 integrations on 171 of 171 possible baselines.
! AN table 3: 177 integrations on 171 of 171 possible baselines.
! AN table 4: 111 integrations on 171 of 171 possible baselines.
! AN table 5: 57 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.113825 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1740+5211
! 
! 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 37916 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 876 telescope corrections were flagged in sub-array 1.
!  A total of 837 telescope corrections were flagged in sub-array 2.
!  A total of 2719 telescope corrections were flagged in sub-array 3.
!  A total of 1805 telescope corrections were flagged in sub-array 4.
!  A total of 800 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 876 telescope corrections were flagged in sub-array 1.
!  A total of 837 telescope corrections were flagged in sub-array 2.
!  A total of 2708 telescope corrections were flagged in sub-array 3.
!  A total of 1725 telescope corrections were flagged in sub-array 4.
!  A total of 800 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 876 telescope corrections were flagged in sub-array 1.
!  A total of 837 telescope corrections were flagged in sub-array 2.
!  A total of 2708 telescope corrections were flagged in sub-array 3.
!  A total of 1728 telescope corrections were flagged in sub-array 4.
!  A total of 800 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 876 telescope corrections were flagged in sub-array 1.
!  A total of 837 telescope corrections were flagged in sub-array 2.
!  A total of 2708 telescope corrections were flagged in sub-array 3.
!  A total of 1731 telescope corrections were flagged in sub-array 4.
!  A total of 800 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.923197Jy  sigma=0.007788
! Fit after  self-cal, rms=0.315340Jy  sigma=0.002345
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.5309 mas, bmaj=0.6509 mas, bpa=-6.033 degrees
! Estimated noise=1091.59 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.79107 Jy
! Component: 100  -  total flux cleaned = 0.974678 Jy
! Total flux subtracted in 100 components = 0.974678 Jy
! Clean residual min=-0.033147 max=0.074277 Jy/beam
! Clean residual mean=0.000519 rms=0.008845 Jy/beam
! Combined flux in latest and established models = 0.974678 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.974678 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320948Jy  sigma=0.002414
! Fit after  self-cal, rms=0.320918Jy  sigma=0.002414
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0898003 Jy
! Component: 100  -  total flux cleaned = 0.149848 Jy
! Total flux subtracted in 100 components = 0.149848 Jy
! Clean residual min=-0.030946 max=0.040589 Jy/beam
! Clean residual mean=0.000208 rms=0.007110 Jy/beam
! Combined flux in latest and established models = 1.12453 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 15 components and 1.12453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279314Jy  sigma=0.001877
! Fit after  self-cal, rms=0.279127Jy  sigma=0.001876
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.7142 mas, bmaj=0.8302 mas, bpa=-35.58 degrees
! Estimated noise=470.06 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.0641991 Jy
! Component: 100  -  total flux cleaned = 0.0933608 Jy
! Component: 150  -  total flux cleaned = 0.107208 Jy
! Component: 200  -  total flux cleaned = 0.113783 Jy
! Total flux subtracted in 200 components = 0.113783 Jy
! Clean residual min=-0.018761 max=0.018112 Jy/beam
! Clean residual mean=-0.000309 rms=0.004619 Jy/beam
! Combined flux in latest and established models = 1.23831 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 18 components and 1.23831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270132Jy  sigma=0.001700
! Fit after  self-cal, rms=0.270002Jy  sigma=0.001700
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 24 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.02     
!   KK        0.99     KP        1.00*    LA        1.00*    MA        1.02     
!   MC        1.27     MK        0.96     NL        1.00*    ON        1.02     
!   OV        0.94     PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.38     WF        1.00*    WZ        1.03     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     GG        1.00*    HN        1.16     
!   KK        0.95     KP        1.03     LA        0.95     MA        1.06     
!   MC        1.20     MK        0.92     NL        0.98     ON        0.96     
!   OV        0.93     PT        0.95     SC        0.95     TC        1.00*    
!   TS        1.44     WF        1.14     WZ        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.98     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        1.12     LA        0.97     MA        0.94     
!   MC        0.93     MK        1.00*    NL        1.06     ON        0.98     
!   OV        1.09     PT        0.98     SC        0.97     TC        1.00*    
!   TS        1.00*    WF        1.00     WZ        1.02     
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.05     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.36     LA        1.00     MA        1.12     
!   MC        1.02     MK        1.00*    NL        1.09     ON        0.96     
!   OV        1.00*    PT        1.03     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00     WZ        1.12     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.00     GG        1.00*    HN        0.89     
!   KK        1.00*    KP        1.12     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.06     ON        0.93     
!   OV        1.00     PT        0.98     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 24 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.03     
!   KK        1.03     KP        1.00*    LA        1.00*    MA        1.06     
!   MC        1.19     MK        0.98     NL        1.00*    ON        1.01     
!   OV        0.92     PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.46     WF        1.00*    WZ        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     GG        1.00*    HN        1.20     
!   KK        0.94     KP        0.97     LA        0.94     MA        1.04     
!   MC        1.16     MK        0.93     NL        0.93     ON        0.96     
!   OV        0.92     PT        0.99     SC        0.91     TC        1.00*    
!   TS        1.46     WF        1.21     WZ        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.98     GG        1.00*    HN        0.97     
!   KK        1.00*    KP        1.06     LA        0.98     MA        0.92     
!   MC        0.90     MK        1.00*    NL        1.03     ON        0.95     
!   OV        1.04     PT        1.01     SC        0.94     TC        1.00*    
!   TS        0.97     WF        1.03     WZ        1.03     
! 
!  A total of 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.07     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.26     LA        1.02     MA        0.98     
!   MC        0.97     MK        1.00*    NL        1.07     ON        0.94     
!   OV        0.98     PT        1.09     SC        1.00*    TC        1.00*    
!   TS        1.02     WF        1.09     WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00     GG        1.00*    HN        0.90     
!   KK        1.00*    KP        1.06     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.01     ON        0.88     
!   OV        1.00     PT        1.03     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HN        1.06     
!   KK        1.06     KP        1.00*    LA        1.00*    MA        1.05     
!   MC        1.12     MK        0.99     NL        1.00*    ON        1.00     
!   OV        0.97     PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.47     WF        1.00*    WZ        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.95     GG        1.00*    HN        1.20     
!   KK        1.01     KP        0.91     LA        0.95     MA        1.07     
!   MC        1.10     MK        0.94     NL        0.91     ON        0.98     
!   OV        0.96     PT        1.03     SC        0.93     TC        1.00*    
!   TS        1.43     WF        1.12     WZ        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.98     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        0.99     LA        0.98     MA        0.92     
!   MC        0.86     MK        1.00*    NL        1.01     ON        0.97     
!   OV        1.06     PT        1.05     SC        0.95     TC        1.00*    
!   TS        0.96     WF        0.98     WZ        1.02     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.04     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.19     LA        1.03     MA        1.04     
!   MC        0.92     MK        1.00*    NL        1.05     ON        0.98     
!   OV        1.06     PT        1.11     SC        1.00*    TC        1.00*    
!   TS        1.03     WF        1.03     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        1.00     GG        1.00*    HN        0.90     
!   KK        1.00*    KP        0.98     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.99     ON        0.86     
!   OV        1.05     PT        1.05     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GG        1.00*    HN        1.10     
!   KK        0.94     KP        1.00*    LA        1.00*    MA        1.10     
!   MC        1.13     MK        1.01     NL        1.00*    ON        1.04     
!   OV        0.97     PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.45     WF        1.00*    WZ        1.00     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.93     GG        1.00*    HN        1.25     
!   KK        0.96     KP        0.97     LA        0.93     MA        1.08     
!   MC        1.10     MK        0.99     NL        0.93     ON        0.99     
!   OV        0.95     PT        1.02     SC        0.97     TC        1.00*    
!   TS        1.47     WF        1.11     WZ        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.95     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.05     LA        0.95     MA        1.00     
!   MC        0.81     MK        1.00*    NL        1.02     ON        0.94     
!   OV        1.05     PT        1.05     SC        1.00     TC        1.00*    
!   TS        0.97     WF        0.97     WZ        1.05     
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.25     LA        1.00     MA        0.87     
!   MC        0.90     MK        1.00*    NL        1.06     ON        0.93     
!   OV        1.00     PT        1.13     SC        1.00*    TC        1.00*    
!   TS        1.03     WF        1.03     WZ        1.05     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        0.99     GG        1.00*    HN        0.92     
!   KK        1.00*    KP        1.04     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.02     ON        0.90     
!   OV        1.02     PT        1.06     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.270002Jy  sigma=0.001700
! Fit after  self-cal, rms=0.249181Jy  sigma=0.001329
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.7225 mas, bmaj=0.8515 mas, bpa=-37.49 degrees
! Estimated noise=474.016 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.00635756 Jy
! Component: 100  -  total flux cleaned = -0.00712772 Jy
! Component: 150  -  total flux cleaned = -0.00797934 Jy
! Component: 200  -  total flux cleaned = -0.00851189 Jy
! Total flux subtracted in 200 components = -0.00851189 Jy
! Clean residual min=-0.006027 max=0.007104 Jy/beam
! Clean residual mean=0.001472 rms=0.001657 Jy/beam
! Combined flux in latest and established models = 1.2298 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 19 components and 1.2298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248691Jy  sigma=0.001324
! Fit after  self-cal, rms=0.248859Jy  sigma=0.001324
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 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.248859Jy  sigma=0.001324
! Fit after  self-cal, rms=0.246893Jy  sigma=0.001284
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.7244 mas, bmaj=0.8526 mas, bpa=-37.65 degrees
! Estimated noise=473.709 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00366715 Jy
! Component: 100  -  total flux cleaned = -0.00426497 Jy
! Component: 150  -  total flux cleaned = -0.00475155 Jy
! Component: 200  -  total flux cleaned = -0.00505828 Jy
! Total flux subtracted in 200 components = -0.00505828 Jy
! Clean residual min=-0.003542 max=0.006076 Jy/beam
! Clean residual mean=0.000958 rms=0.001063 Jy/beam
! Combined flux in latest and established models = 1.22474 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 20 components and 1.22474 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246714Jy  sigma=0.001282
! Fit after  self-cal, rms=0.246775Jy  sigma=0.001282
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 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 (0.6, 2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00598505 Jy
! Component: 100  -  total flux cleaned = 0.00735181 Jy
! Component: 150  -  total flux cleaned = 0.00766632 Jy
! Component: 200  -  total flux cleaned = 0.00785098 Jy
! Total flux subtracted in 200 components = 0.00785098 Jy
! Clean residual min=-0.003783 max=0.003907 Jy/beam
! Clean residual mean=0.000727 rms=0.000960 Jy/beam
! Combined flux in latest and established models = 1.23259 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 34 components and 1.23259 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246627Jy  sigma=0.001280
! Fit after  self-cal, rms=0.246590Jy  sigma=0.001280
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 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.246590Jy  sigma=0.001280
! Fit after  self-cal, rms=0.246329Jy  sigma=0.001272
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.7262 mas, bmaj=0.8543 mas, bpa=-37.78 degrees
! Estimated noise=473.706 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00152277 Jy
! Component: 100  -  total flux cleaned = -0.00140681 Jy
! Component: 150  -  total flux cleaned = -0.00121458 Jy
! Component: 200  -  total flux cleaned = -0.000953291 Jy
! Total flux subtracted in 200 components = -0.000953291 Jy
! Clean residual min=-0.002657 max=0.003040 Jy/beam
! Clean residual mean=0.000574 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 1.23164 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 38 components and 1.23164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246207Jy  sigma=0.001271
! Fit after  self-cal, rms=0.246216Jy  sigma=0.001271
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 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.000329943 Jy
! Component: 100  -  total flux cleaned = 0.000693196 Jy
! Component: 150  -  total flux cleaned = 0.000949907 Jy
! Component: 200  -  total flux cleaned = 0.00106665 Jy
! Total flux subtracted in 200 components = 0.00106665 Jy
! Clean residual min=-0.002641 max=0.003064 Jy/beam
! Clean residual mean=0.000544 rms=0.000793 Jy/beam
! Combined flux in latest and established models = 1.2327 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 41 components and 1.2327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246179Jy  sigma=0.001270
! Fit after  self-cal, rms=0.246172Jy  sigma=0.001270
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 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.246172Jy  sigma=0.001270
! Fit after  self-cal, rms=0.246667Jy  sigma=0.001270
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=2.521 mas, bmaj=2.961 mas, bpa=-63.69 degrees
! Estimated noise=639.636 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.48247e-05 Jy
! Component: 100  -  total flux cleaned = 0.000473152 Jy
! Component: 150  -  total flux cleaned = 0.000750238 Jy
! Component: 200  -  total flux cleaned = 0.000939223 Jy
! Total flux subtracted in 200 components = 0.000939223 Jy
! Clean residual min=-0.002460 max=0.004077 Jy/beam
! Clean residual mean=0.001158 rms=0.001090 Jy/beam
! Combined flux in latest and established models = 1.23364 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 43 components and 1.23364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246642Jy  sigma=0.001270
! Fit after  self-cal, rms=0.246638Jy  sigma=0.001270
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 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.000496061 Jy
! Component: 100  -  total flux cleaned = 0.000661352 Jy
! Component: 150  -  total flux cleaned = 0.000727499 Jy
! Component: 200  -  total flux cleaned = 0.000758387 Jy
! Total flux subtracted in 200 components = 0.000758387 Jy
! Clean residual min=-0.002556 max=0.003926 Jy/beam
! Clean residual mean=0.001101 rms=0.001101 Jy/beam
! Combined flux in latest and established models = 1.2344 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 47 components and 1.2344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246640Jy  sigma=0.001270
! Fit after  self-cal, rms=0.246638Jy  sigma=0.001270
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.7274 mas, bmaj=0.8558 mas, bpa=-37.7 degrees
! Estimated noise=473.822 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7274 x 0.8558 at -37.7 degrees (North through East)
! Clean map  min=-0.0020128  max=1.0825 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.246638Jy  sigma=0.001270
! Fit after  self-cal, rms=0.367013Jy  sigma=0.001159
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.7281 mas, bmaj=0.8557 mas, bpa=-37.46 degrees
! Estimated noise=473.159 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00121874 Jy
! Component: 100  -  total flux cleaned = -0.00122243 Jy
! Component: 150  -  total flux cleaned = -0.0013483 Jy
! Component: 200  -  total flux cleaned = -0.00145945 Jy
! Total flux subtracted in 200 components = -0.00145945 Jy
! Clean residual min=-0.002274 max=0.002663 Jy/beam
! Clean residual mean=0.000403 rms=0.000684 Jy/beam
! Combined flux in latest and established models = 1.23294 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 54 components and 1.23294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366982Jy  sigma=0.001158
! Fit after  self-cal, rms=0.366987Jy  sigma=0.001158
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 9.14516e-05 Jy
! Component: 100  -  total flux cleaned = 9.32019e-05 Jy
! Component: 150  -  total flux cleaned = 9.24663e-05 Jy
! Component: 200  -  total flux cleaned = 4.72087e-05 Jy
! Total flux subtracted in 200 components = 4.72087e-05 Jy
! Clean residual min=-0.002291 max=0.002683 Jy/beam
! Clean residual mean=0.000401 rms=0.000678 Jy/beam
! Combined flux in latest and established models = 1.23299 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 58 components and 1.23299 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366975Jy  sigma=0.001158
! Fit after  self-cal, rms=0.366974Jy  sigma=0.001158
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 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.366974Jy  sigma=0.001158
! Fit after  self-cal, rms=0.369697Jy  sigma=0.001158
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.5391 mas, bmaj=0.6638 mas, bpa=-9.365 degrees
! Estimated noise=1111.13 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.813343 Jy
! Component: 100  -  total flux cleaned = 0.99817 Jy
! Component: 150  -  total flux cleaned = 1.07276 Jy
! Component: 200  -  total flux cleaned = 1.11684 Jy
! Total flux subtracted in 200 components = 1.11684 Jy
! Clean residual min=-0.006742 max=0.023598 Jy/beam
! Clean residual mean=0.000257 rms=0.002389 Jy/beam
! Combined flux in latest and established models = 1.11684 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 1.11684 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.7286 mas, bmaj=0.8568 mas, bpa=-37.52 degrees
! Estimated noise=473.111 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.0513305 Jy
! Component: 100  -  total flux cleaned = 0.0748454 Jy
! Component: 150  -  total flux cleaned = 0.0876225 Jy
! Component: 200  -  total flux cleaned = 0.0957989 Jy
! Total flux subtracted in 200 components = 0.0957989 Jy
! Clean residual min=-0.001999 max=0.006669 Jy/beam
! Clean residual mean=0.000962 rms=0.000939 Jy/beam
! Combined flux in latest and established models = 1.21264 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 27 components and 1.21264 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Added new window around map position (0.8, 0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00668134 Jy
! Component: 100  -  total flux cleaned = 0.0108575 Jy
! Component: 150  -  total flux cleaned = 0.013763 Jy
! Component: 200  -  total flux cleaned = 0.0152364 Jy
! Total flux subtracted in 200 components = 0.0152364 Jy
! Clean residual min=-0.002069 max=0.002689 Jy/beam
! Clean residual mean=0.000494 rms=0.000658 Jy/beam
! Combined flux in latest and established models = 1.22788 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 47 components and 1.22788 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=2.519 mas, bmaj=2.96 mas, bpa=-63.7 degrees
! Estimated noise=637.701 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00280379 Jy
! Component: 100  -  total flux cleaned = 0.00410368 Jy
! Component: 150  -  total flux cleaned = 0.00460705 Jy
! Component: 200  -  total flux cleaned = 0.00470816 Jy
! Total flux subtracted in 200 components = 0.00470816 Jy
! Clean residual min=-0.001963 max=0.003668 Jy/beam
! Clean residual mean=0.000931 rms=0.000913 Jy/beam
! Combined flux in latest and established models = 1.23259 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.000116357 Jy
! Component: 100  -  total flux cleaned = 0.000201443 Jy
! Component: 150  -  total flux cleaned = 0.000280914 Jy
! Component: 200  -  total flux cleaned = 0.00035481 Jy
! Total flux subtracted in 200 components = 0.00035481 Jy
! Clean residual min=-0.001980 max=0.003626 Jy/beam
! Clean residual mean=0.000903 rms=0.000906 Jy/beam
! Combined flux in latest and established models = 1.23294 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 60 components and 1.23294 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! Estimated beam: bmin=0.7286 mas, bmaj=0.8568 mas, bpa=-37.52 degrees
! Estimated noise=473.111 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00145064 Jy
! Component: 100  -  total flux cleaned = -0.00159001 Jy
! Component: 150  -  total flux cleaned = -0.00153514 Jy
! Component: 200  -  total flux cleaned = -0.00148426 Jy
! Total flux subtracted in 200 components = -0.00148426 Jy
! Clean residual min=-0.002392 max=0.002596 Jy/beam
! Clean residual mean=0.000388 rms=0.000643 Jy/beam
! Combined flux in latest and established models = 1.23146 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 64 components and 1.23146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369674Jy  sigma=0.001158
! Fit after  self-cal, rms=0.369695Jy  sigma=0.001157
wmodel J1740+5211_X_2003_05_07_pus_map.mod
! Writing 64 model components to file: J1740+5211_X_2003_05_07_pus_map.mod
wobs J1740+5211_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1740+5211_X_2003_05_07_pus_uvs.fits
wwins J1740+5211_X_2003_05_07_pus_map.win
! wwins: Wrote 3 windows to J1740+5211_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 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00112145 Jy
! Component: 100  -  total flux cleaned = 0.00180754 Jy
! Component: 150  -  total flux cleaned = 0.00249858 Jy
! Component: 200  -  total flux cleaned = 0.00308494 Jy
! Component: 250  -  total flux cleaned = 0.00361396 Jy
! Component: 300  -  total flux cleaned = 0.00416344 Jy
! Component: 350  -  total flux cleaned = 0.00466168 Jy
! Component: 400  -  total flux cleaned = 0.00514723 Jy
! Component: 450  -  total flux cleaned = 0.00558809 Jy
! Component: 500  -  total flux cleaned = 0.00598651 Jy
! Component: 550  -  total flux cleaned = 0.00640912 Jy
! Component: 600  -  total flux cleaned = 0.00682351 Jy
! Component: 650  -  total flux cleaned = 0.00716811 Jy
! Component: 700  -  total flux cleaned = 0.00741482 Jy
! Component: 750  -  total flux cleaned = 0.00765814 Jy
! Component: 800  -  total flux cleaned = 0.00792781 Jy
! Component: 850  -  total flux cleaned = 0.00816412 Jy
! Component: 900  -  total flux cleaned = 0.00842625 Jy
! Component: 950  -  total flux cleaned = 0.00865613 Jy
! Component: 1000  -  total flux cleaned = 0.00885468 Jy
! Total flux subtracted in 1024 components = 0.00899512 Jy
! Clean residual min=-0.001720 max=0.001505 Jy/beam
! Clean residual mean=0.000165 rms=0.000524 Jy/beam
! Combined flux in latest and established models = 1.24045 Jy
keep
! Adding 77 model components to the UV plane model.
! The established model now contains 141 components and 1.24045 Jy
wmap "J1740+5211_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7286 x 0.8568 at -37.52 degrees (North through East)
! Clean map  min=-0.0019049  max=1.0856 Jy/beam
! Writing clean map to FITS file: J1740+5211_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.08565 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.3% of the data.
!  The x-axis pixel size should ideally be below 0.1533 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000523726 
device "J1740+5211_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1740+5211_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.144723 0.144723 0.289445 0.57889 1.15778 2.31556 4.63112 9.26224 18.5245 37.049 74.0979
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.085 
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.7286 x 0.8568 at -37.52 degrees (North through East)
! Clean map  min=-0.0019049  max=1.0856 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1740+5211_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1740+5211_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1740+5211_X_2003_05_07_pus_uvs.log closed on Thu Dec 14 16:20:41 2006