! Started logfile: J1751+0939_S_2003_09_17_pus_uvs.log on Tue May 22 13:55:56 2007
obs J1751+0939_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1751+0939_S_2003_09_17_pus_uva.fits
! AN table 1: 104 integrations on 120 of 120 possible baselines.
! AN table 2: 22 integrations on 120 of 120 possible baselines.
! AN table 3: 42 integrations on 120 of 120 possible baselines.
! AN table 4: 137 integrations on 120 of 120 possible baselines.
! AN table 5: 86 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0672847 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1751+0939
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1736 lines of history.
! 
! Reading 12628 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 = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
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 = 512x512 pixels with 0.500x0.500 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 1570 telescope corrections were flagged in sub-array 1.
!  A total of 352 telescope corrections were flagged in sub-array 2.
!  A total of 391 telescope corrections were flagged in sub-array 3.
!  A total of 2048 telescope corrections were flagged in sub-array 4.
!  A total of 1011 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1570 telescope corrections were flagged in sub-array 1.
!  A total of 352 telescope corrections were flagged in sub-array 2.
!  A total of 391 telescope corrections were flagged in sub-array 3.
!  A total of 2048 telescope corrections were flagged in sub-array 4.
!  A total of 1011 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1570 telescope corrections were flagged in sub-array 1.
!  A total of 352 telescope corrections were flagged in sub-array 2.
!  A total of 391 telescope corrections were flagged in sub-array 3.
!  A total of 2048 telescope corrections were flagged in sub-array 4.
!  A total of 1011 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1570 telescope corrections were flagged in sub-array 1.
!  A total of 352 telescope corrections were flagged in sub-array 2.
!  A total of 391 telescope corrections were flagged in sub-array 3.
!  A total of 2048 telescope corrections were flagged in sub-array 4.
!  A total of 1011 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.295484Jy  sigma=0.001663
! Fit after  self-cal, rms=0.294971Jy  sigma=0.001652
! 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 
! Estimated beam: bmin=2.119 mas, bmaj=5.039 mas, bpa=4.202 degrees
! Estimated noise=1615.15 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.815132 Jy
! Component: 100  -  total flux cleaned = 1.00085 Jy
! Total flux subtracted in 100 components = 1.00085 Jy
! Clean residual min=-0.017105 max=0.070353 Jy/beam
! Clean residual mean=0.000392 rms=0.006838 Jy/beam
! Combined flux in latest and established models = 1.00085 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.00085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293547Jy  sigma=0.001642
! Fit after  self-cal, rms=0.293373Jy  sigma=0.001641
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0795717 Jy
! Component: 100  -  total flux cleaned = 0.129963 Jy
! Total flux subtracted in 100 components = 0.129963 Jy
! Clean residual min=-0.011820 max=0.027200 Jy/beam
! Clean residual mean=0.000224 rms=0.003701 Jy/beam
! Combined flux in latest and established models = 1.13081 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 27 components and 1.13081 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258536Jy  sigma=0.001293
! Fit after  self-cal, rms=0.257942Jy  sigma=0.001292
! Inverting map 
! Added new window around map position (2, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.034517 Jy
! Component: 100  -  total flux cleaned = 0.0583315 Jy
! Total flux subtracted in 100 components = 0.0583315 Jy
! Clean residual min=-0.008783 max=0.015072 Jy/beam
! Clean residual mean=0.000149 rms=0.002654 Jy/beam
! Combined flux in latest and established models = 1.18914 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 40 components and 1.18914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249796Jy  sigma=0.001202
! Fit after  self-cal, rms=0.249523Jy  sigma=0.001201
! Inverting map 
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 
! Estimated beam: bmin=2.593 mas, bmaj=5.724 mas, bpa=2.182 degrees
! Estimated noise=1052.45 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.0323713 Jy
! Component: 100  -  total flux cleaned = 0.0519311 Jy
! Component: 150  -  total flux cleaned = 0.0646062 Jy
! Component: 200  -  total flux cleaned = 0.0730577 Jy
! Total flux subtracted in 200 components = 0.0730577 Jy
! Clean residual min=-0.006774 max=0.009957 Jy/beam
! Clean residual mean=0.000317 rms=0.001961 Jy/beam
! Combined flux in latest and established models = 1.2622 Jy
! Performing phase self-cal
! Adding 59 model components to the UV plane model.
! The established model now contains 88 components and 1.2622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245520Jy  sigma=0.001154
! Fit after  self-cal, rms=0.245268Jy  sigma=0.001152
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.01     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        0.99     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00*    SC        1.00*    
!   TS        1.00     KK        0.99     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.01     HN        1.00     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.01     
!   TS        1.01     KK        1.00     WZ        1.00*    WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.02     KK        1.00*    WZ        1.00     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.01     HN        0.99     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.01     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        0.99     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00*    SC        1.00*    
!   TS        1.00     KK        0.99     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.01     HN        1.00     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.01     
!   TS        1.01     KK        1.00     WZ        1.00*    WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.02     KK        1.00*    WZ        1.00     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.01     HN        0.99     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.01     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        0.99     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00*    SC        1.00*    
!   TS        1.00     KK        0.99     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.01     HN        1.00     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.02     KK        1.00     WZ        1.00*    WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.99     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.02     KK        1.00*    WZ        1.01     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.01     HN        1.00     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.01     HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        0.99     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00*    SC        1.00*    
!   TS        1.00     KK        0.99     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.01     HN        1.00     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.99     SC        1.01     
!   TS        1.02     KK        1.00     WZ        1.00*    WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.99     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.03     KK        1.00*    WZ        1.01     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.01     HN        1.00     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.245268Jy  sigma=0.001152
! Fit after  self-cal, rms=0.244770Jy  sigma=0.001148
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.606 mas, bmaj=5.743 mas, bpa=2.066 degrees
! Estimated noise=1050.51 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.00217502 Jy
! Component: 100  -  total flux cleaned = 0.00215862 Jy
! Component: 150  -  total flux cleaned = 0.00226278 Jy
! Component: 200  -  total flux cleaned = 0.00226167 Jy
! Total flux subtracted in 200 components = 0.00226167 Jy
! Clean residual min=-0.004923 max=0.006375 Jy/beam
! Clean residual mean=0.000238 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 1.26446 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 102 components and 1.26446 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244654Jy  sigma=0.001147
! Fit after  self-cal, rms=0.244596Jy  sigma=0.001147
! Inverting map 
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.244596Jy  sigma=0.001147
! Fit after  self-cal, rms=0.243794Jy  sigma=0.001147
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.609 mas, bmaj=5.747 mas, bpa=2 degrees
! Estimated noise=1050.12 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.08684e-05 Jy
! Component: 100  -  total flux cleaned = -6.18126e-05 Jy
! Component: 150  -  total flux cleaned = -0.000131699 Jy
! Component: 200  -  total flux cleaned = -7.38305e-05 Jy
! Total flux subtracted in 200 components = -7.38305e-05 Jy
! Clean residual min=-0.004877 max=0.006303 Jy/beam
! Clean residual mean=0.000197 rms=0.001479 Jy/beam
! Combined flux in latest and established models = 1.26439 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 111 components and 1.26439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243738Jy  sigma=0.001146
! Fit after  self-cal, rms=0.243712Jy  sigma=0.001146
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (-24, 58).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00309662 Jy
! Component: 100  -  total flux cleaned = 0.00257872 Jy
! Component: 150  -  total flux cleaned = 0.00237693 Jy
! Component: 200  -  total flux cleaned = 0.00237658 Jy
! Total flux subtracted in 200 components = 0.00237658 Jy
! Clean residual min=-0.004676 max=0.005334 Jy/beam
! Clean residual mean=0.000180 rms=0.001407 Jy/beam
! Combined flux in latest and established models = 1.26676 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 124 components and 1.26676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243540Jy  sigma=0.001145
! Fit after  self-cal, rms=0.243531Jy  sigma=0.001145
! Inverting map 
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.243531Jy  sigma=0.001145
! Fit after  self-cal, rms=0.243037Jy  sigma=0.001144
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.612 mas, bmaj=5.75 mas, bpa=1.954 degrees
! Estimated noise=1049.66 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.56935e-05 Jy
! Component: 100  -  total flux cleaned = 0.000103172 Jy
! Component: 150  -  total flux cleaned = 0.000101783 Jy
! Component: 200  -  total flux cleaned = 0.000104151 Jy
! Total flux subtracted in 200 components = 0.000104151 Jy
! Clean residual min=-0.004793 max=0.005166 Jy/beam
! Clean residual mean=0.000141 rms=0.001375 Jy/beam
! Combined flux in latest and established models = 1.26687 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 137 components and 1.26687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242972Jy  sigma=0.001144
! Fit after  self-cal, rms=0.242956Jy  sigma=0.001144
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000479993 Jy
! Component: 100  -  total flux cleaned = 0.000478739 Jy
! Component: 150  -  total flux cleaned = 0.00047814 Jy
! Component: 200  -  total flux cleaned = 0.000477827 Jy
! Total flux subtracted in 200 components = 0.000477827 Jy
! Clean residual min=-0.004752 max=0.005196 Jy/beam
! Clean residual mean=0.000138 rms=0.001363 Jy/beam
! Combined flux in latest and established models = 1.26735 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 142 components and 1.26734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242928Jy  sigma=0.001143
! Fit after  self-cal, rms=0.242932Jy  sigma=0.001143
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.242932Jy  sigma=0.001143
! Fit after  self-cal, rms=0.242543Jy  sigma=0.001143
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.326 mas, bmaj=10.26 mas, bpa=-17.72 degrees
! Estimated noise=1416.74 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000782288 Jy
! Component: 100  -  total flux cleaned = 0.00109172 Jy
! Component: 150  -  total flux cleaned = 0.00119035 Jy
! Component: 200  -  total flux cleaned = 0.00119537 Jy
! Total flux subtracted in 200 components = 0.00119537 Jy
! Clean residual min=-0.006037 max=0.007773 Jy/beam
! Clean residual mean=0.000284 rms=0.002016 Jy/beam
! Combined flux in latest and established models = 1.26854 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 147 components and 1.26854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242530Jy  sigma=0.001143
! Fit after  self-cal, rms=0.242512Jy  sigma=0.001143
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 = -2.08078e-05 Jy
! Component: 100  -  total flux cleaned = 0.000293566 Jy
! Component: 150  -  total flux cleaned = 0.000292691 Jy
! Component: 200  -  total flux cleaned = 0.000262833 Jy
! Total flux subtracted in 200 components = 0.000262833 Jy
! Clean residual min=-0.005828 max=0.007723 Jy/beam
! Clean residual mean=0.000282 rms=0.002002 Jy/beam
! Combined flux in latest and established models = 1.2688 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 150 components and 1.2688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242520Jy  sigma=0.001143
! Fit after  self-cal, rms=0.242519Jy  sigma=0.001143
! Inverting map 
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 
! Estimated beam: bmin=2.613 mas, bmaj=5.754 mas, bpa=1.924 degrees
! Estimated noise=1049.16 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.613 x 5.754 at 1.924 degrees (North through East)
! Clean map  min=-0.0042433  max=1.0754 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.242519Jy  sigma=0.001143
! Fit after  self-cal, rms=0.242022Jy  sigma=0.001143
! Inverting map and beam 
! Estimated beam: bmin=2.614 mas, bmaj=5.758 mas, bpa=1.938 degrees
! Estimated noise=1049.29 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00144717 Jy
! Component: 100  -  total flux cleaned = -0.00143736 Jy
! Component: 150  -  total flux cleaned = -0.00138037 Jy
! Component: 200  -  total flux cleaned = -0.00126996 Jy
! Total flux subtracted in 200 components = -0.00126996 Jy
! Clean residual min=-0.004570 max=0.005243 Jy/beam
! Clean residual mean=0.000084 rms=0.001335 Jy/beam
! Combined flux in latest and established models = 1.26753 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 158 components and 1.26753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241986Jy  sigma=0.001143
! Fit after  self-cal, rms=0.242004Jy  sigma=0.001143
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.73987e-05 Jy
! Component: 100  -  total flux cleaned = 0.000206639 Jy
! Component: 150  -  total flux cleaned = 0.000297159 Jy
! Component: 200  -  total flux cleaned = 0.000383141 Jy
! Total flux subtracted in 200 components = 0.000383141 Jy
! Clean residual min=-0.004568 max=0.005194 Jy/beam
! Clean residual mean=0.000082 rms=0.001330 Jy/beam
! Combined flux in latest and established models = 1.26792 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 161 components and 1.26792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241993Jy  sigma=0.001142
! Fit after  self-cal, rms=0.242000Jy  sigma=0.001142
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242000Jy  sigma=0.001142
! Fit after  self-cal, rms=0.241838Jy  sigma=0.001142
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 
! Estimated beam: bmin=2.134 mas, bmaj=5.059 mas, bpa=3.983 degrees
! Estimated noise=1619.89 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.817168 Jy
! Component: 100  -  total flux cleaned = 1.00382 Jy
! Component: 150  -  total flux cleaned = 1.08038 Jy
! Component: 200  -  total flux cleaned = 1.12514 Jy
! Total flux subtracted in 200 components = 1.12514 Jy
! Clean residual min=-0.010063 max=0.023925 Jy/beam
! Clean residual mean=0.000203 rms=0.003402 Jy/beam
! Combined flux in latest and established models = 1.12514 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 20 model components to the UV plane model.
! The established model now contains 20 components and 1.12514 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.616 mas, bmaj=5.762 mas, bpa=1.899 degrees
! Estimated noise=1048.88 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.0509021 Jy
! Component: 100  -  total flux cleaned = 0.0811173 Jy
! Component: 150  -  total flux cleaned = 0.100252 Jy
! Component: 200  -  total flux cleaned = 0.113295 Jy
! Total flux subtracted in 200 components = 0.113295 Jy
! Clean residual min=-0.005710 max=0.008045 Jy/beam
! Clean residual mean=0.000283 rms=0.001927 Jy/beam
! Combined flux in latest and established models = 1.23843 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 64 components and 1.23843 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.323 mas, bmaj=10.28 mas, bpa=-17.68 degrees
! Estimated noise=1414.08 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0162299 Jy
! Component: 100  -  total flux cleaned = 0.0231757 Jy
! Component: 150  -  total flux cleaned = 0.0269502 Jy
! Component: 200  -  total flux cleaned = 0.0280337 Jy
! Total flux subtracted in 200 components = 0.0280337 Jy
! Clean residual min=-0.006354 max=0.007641 Jy/beam
! Clean residual mean=0.000218 rms=0.002059 Jy/beam
! Combined flux in latest and established models = 1.26646 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.000303265 Jy
! Component: 100  -  total flux cleaned = 0.000433884 Jy
! Component: 150  -  total flux cleaned = 0.00059805 Jy
! Component: 200  -  total flux cleaned = 0.000693203 Jy
! Total flux subtracted in 200 components = 0.000693203 Jy
! Clean residual min=-0.006147 max=0.007439 Jy/beam
! Clean residual mean=0.000198 rms=0.002007 Jy/beam
! Combined flux in latest and established models = 1.26716 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 97 components and 1.26716 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.616 mas, bmaj=5.762 mas, bpa=1.899 degrees
! Estimated noise=1048.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00151376 Jy
! Component: 100  -  total flux cleaned = -0.00138833 Jy
! Component: 150  -  total flux cleaned = -0.00127542 Jy
! Component: 200  -  total flux cleaned = -0.00117354 Jy
! Total flux subtracted in 200 components = -0.00117354 Jy
! Clean residual min=-0.004631 max=0.005531 Jy/beam
! Clean residual mean=0.000086 rms=0.001362 Jy/beam
! Combined flux in latest and established models = 1.26598 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 116 components and 1.26598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241946Jy  sigma=0.001143
! Fit after  self-cal, rms=0.242017Jy  sigma=0.001143
wmodel J1751+0939_S_2003_09_17_pus_map.mod
! Writing 116 model components to file: J1751+0939_S_2003_09_17_pus_map.mod
wobs J1751+0939_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1751+0939_S_2003_09_17_pus_uvs.fits
wwins J1751+0939_S_2003_09_17_pus_map.win
! wwins: Wrote 3 windows to J1751+0939_S_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00246502 Jy
! Component: 100  -  total flux cleaned = 0.00335193 Jy
! Component: 150  -  total flux cleaned = 0.0033512 Jy
! Component: 200  -  total flux cleaned = 0.0034308 Jy
! Component: 250  -  total flux cleaned = 0.00350724 Jy
! Component: 300  -  total flux cleaned = 0.00343414 Jy
! Component: 350  -  total flux cleaned = 0.00357641 Jy
! Component: 400  -  total flux cleaned = 0.00371539 Jy
! Component: 450  -  total flux cleaned = 0.00405365 Jy
! Component: 500  -  total flux cleaned = 0.00431797 Jy
! Component: 550  -  total flux cleaned = 0.00431927 Jy
! Component: 600  -  total flux cleaned = 0.00444643 Jy
! Component: 650  -  total flux cleaned = 0.00450759 Jy
! Component: 700  -  total flux cleaned = 0.00450735 Jy
! Component: 750  -  total flux cleaned = 0.00456762 Jy
! Component: 800  -  total flux cleaned = 0.00462585 Jy
! Component: 850  -  total flux cleaned = 0.00462619 Jy
! Component: 900  -  total flux cleaned = 0.00468356 Jy
! Component: 950  -  total flux cleaned = 0.00473974 Jy
! Component: 1000  -  total flux cleaned = 0.00479484 Jy
! Component: 1050  -  total flux cleaned = 0.00484951 Jy
! Component: 1100  -  total flux cleaned = 0.00479609 Jy
! Component: 1150  -  total flux cleaned = 0.00479708 Jy
! Component: 1200  -  total flux cleaned = 0.00479757 Jy
! Component: 1250  -  total flux cleaned = 0.00479784 Jy
! Component: 1300  -  total flux cleaned = 0.00474663 Jy
! Component: 1350  -  total flux cleaned = 0.00479721 Jy
! Component: 1400  -  total flux cleaned = 0.00469713 Jy
! Component: 1450  -  total flux cleaned = 0.00474686 Jy
! Component: 1500  -  total flux cleaned = 0.00479623 Jy
! Component: 1550  -  total flux cleaned = 0.0048449 Jy
! Component: 1600  -  total flux cleaned = 0.00508626 Jy
! Component: 1650  -  total flux cleaned = 0.00518155 Jy
! Component: 1700  -  total flux cleaned = 0.0052288 Jy
! Component: 1750  -  total flux cleaned = 0.00537003 Jy
! Component: 1800  -  total flux cleaned = 0.00546348 Jy
! Component: 1850  -  total flux cleaned = 0.00555635 Jy
! Component: 1900  -  total flux cleaned = 0.0057398 Jy
! Component: 1950  -  total flux cleaned = 0.0059214 Jy
! Component: 2000  -  total flux cleaned = 0.00610163 Jy
! Total flux subtracted in 2048 components = 0.00614651 Jy
! Clean residual min=-0.002424 max=0.003304 Jy/beam
! Clean residual mean=0.000044 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 1.27213 Jy
keep
! Adding 154 model components to the UV plane model.
! The established model now contains 270 components and 1.27213 Jy
wmap "J1751+0939_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.616 x 5.762 at 1.899 degrees (North through East)
! Clean map  min=-0.0040896  max=1.0762 Jy/beam
! Writing clean map to FITS file: J1751+0939_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.07618 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000899866 
device "J1751+0939_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1751+0939_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.25085 0.25085 0.5017 1.0034 2.0068 4.0136 8.02719 16.0544 32.1088 64.2176
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.076 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.616 x 5.762 at 1.899 degrees (North through East)
! Clean map  min=-0.0040896  max=1.0762 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1751+0939_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1751+0939_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1751+0939_S_2003_09_17_pus_uvs.log closed on Tue May 22 13:57:31 2007