! Started logfile: J1753+4409_S_2003_06_18_pus_uvs.log on Wed Jan 24 18:47:40 2007
obs J1753+4409_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J1753+4409_S_2003_06_18_pus_uva.fits
! AN table 1: 97 integrations on 153 of 153 possible baselines.
! AN table 2: 233 integrations on 153 of 153 possible baselines.
! AN table 3: 265 integrations on 153 of 153 possible baselines.
! AN table 4: 203 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.175308 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1753+4409
! 
! 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 2429 lines of history.
! 
! Reading 85616 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
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 931 telescope corrections were flagged in sub-array 1.
!  A total of 2962 telescope corrections were flagged in sub-array 2.
!  A total of 2274 telescope corrections were flagged in sub-array 3.
!  A total of 3193 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 933 telescope corrections were flagged in sub-array 1.
!  A total of 2962 telescope corrections were flagged in sub-array 2.
!  A total of 2273 telescope corrections were flagged in sub-array 3.
!  A total of 3193 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 932 telescope corrections were flagged in sub-array 1.
!  A total of 2962 telescope corrections were flagged in sub-array 2.
!  A total of 2273 telescope corrections were flagged in sub-array 3.
!  A total of 3220 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 955 telescope corrections were flagged in sub-array 1.
!  A total of 2962 telescope corrections were flagged in sub-array 2.
!  A total of 2273 telescope corrections were flagged in sub-array 3.
!  A total of 3199 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.771320Jy  sigma=0.009313
! Fit after  self-cal, rms=0.674834Jy  sigma=0.008188
! 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=1.951 mas, bmaj=2.936 mas, bpa=5.557 degrees
! Estimated noise=510.313 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.259997 Jy
! Component: 100  -  total flux cleaned = 0.376111 Jy
! Total flux subtracted in 100 components = 0.376111 Jy
! Clean residual min=-0.019358 max=0.056817 Jy/beam
! Clean residual mean=-0.000066 rms=0.005607 Jy/beam
! Combined flux in latest and established models = 0.376111 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.376111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257567Jy  sigma=0.002630
! Fit after  self-cal, rms=0.255600Jy  sigma=0.002614
! Inverting map 
! Added new window around map position (2, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0704139 Jy
! Component: 100  -  total flux cleaned = 0.109708 Jy
! Total flux subtracted in 100 components = 0.109708 Jy
! Clean residual min=-0.012830 max=0.024929 Jy/beam
! Clean residual mean=-0.000028 rms=0.003238 Jy/beam
! Combined flux in latest and established models = 0.485819 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 20 components and 0.485819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228649Jy  sigma=0.002114
! Fit after  self-cal, rms=0.227802Jy  sigma=0.002100
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.030809 Jy
! Component: 100  -  total flux cleaned = 0.0482413 Jy
! Total flux subtracted in 100 components = 0.0482413 Jy
! Clean residual min=-0.010191 max=0.011208 Jy/beam
! Clean residual mean=-0.000012 rms=0.002339 Jy/beam
! Combined flux in latest and established models = 0.534061 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 27 components and 0.534061 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222594Jy  sigma=0.001989
! Fit after  self-cal, rms=0.222342Jy  sigma=0.001985
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.014392 Jy
! Component: 100  -  total flux cleaned = 0.0224271 Jy
! Total flux subtracted in 100 components = 0.0224271 Jy
! Clean residual min=-0.009961 max=0.009377 Jy/beam
! Clean residual mean=-0.000004 rms=0.002061 Jy/beam
! Combined flux in latest and established models = 0.556488 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 31 components and 0.556488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221356Jy  sigma=0.001960
! Fit after  self-cal, rms=0.221252Jy  sigma=0.001959
! 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.555 mas, bmaj=3.908 mas, bpa=-1.368 degrees
! Estimated noise=207.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.00936101 Jy
! Component: 100  -  total flux cleaned = 0.0139314 Jy
! Component: 150  -  total flux cleaned = 0.0148624 Jy
! Component: 200  -  total flux cleaned = 0.0156206 Jy
! Total flux subtracted in 200 components = 0.0156206 Jy
! Clean residual min=-0.006630 max=0.009349 Jy/beam
! Clean residual mean=0.000094 rms=0.002021 Jy/beam
! Combined flux in latest and established models = 0.572108 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 40 components and 0.572108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220921Jy  sigma=0.001951
! Fit after  self-cal, rms=0.220880Jy  sigma=0.001950
! Inverting map 
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        1.08     FD        1.00     GG        1.00*    HN        1.00*    
!   KK        0.95     KP        0.94     LA        0.97     MA        1.00*    
!   MK        0.91     NL        0.98     ON        1.00*    OV        1.58     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.07     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        1.00*    GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.07     OV        1.00*    
!   PT        1.00*    SC        0.95     TC        1.00*    TS        1.00     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.97     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.94     LA        0.97     MA        1.00*    
!   MK        1.08     NL        1.06     ON        1.09     OV        1.06     
!   PT        0.97     SC        0.94     TC        1.00*    TS        1.08     
!   WF        1.06     WZ        1.00*    
! 
!  A total of 177 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.95     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.95     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.00*    OV        1.58     
!   PT        0.94     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GG        1.00*    HN        1.00*    
!   KK        0.95     KP        1.01     LA        0.97     MA        1.00*    
!   MK        0.98     NL        0.95     ON        1.00*    OV        1.32     
!   PT        0.97     SC        1.00*    TC        1.00*    TS        1.02     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        0.98     ON        0.99     OV        1.00*    
!   PT        1.00*    SC        0.98     TC        1.00*    TS        0.96     
!   WF        0.94     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.97     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.00     LA        0.97     MA        1.00*    
!   MK        1.08     NL        1.00     ON        0.97     OV        0.99     
!   PT        0.97     SC        0.96     TC        1.00*    TS        1.08     
!   WF        1.06     WZ        1.00*    
! 
!  A total of 177 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.90     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.03     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        0.97     ON        1.00*    OV        1.34     
!   PT        0.96     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GG        1.00*    HN        1.00*    
!   KK        0.95     KP        0.99     LA        0.93     MA        1.00*    
!   MK        0.95     NL        0.96     ON        1.00*    OV        1.18     
!   PT        0.99     SC        1.00*    TC        1.00*    TS        0.91     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        0.98     ON        0.95     OV        1.00*    
!   PT        1.00*    SC        1.12     TC        1.00*    TS        1.00     
!   WF        0.95     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.97     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        0.98     LA        0.94     MA        1.00*    
!   MK        1.01     NL        1.00     ON        1.01     OV        1.06     
!   PT        0.98     SC        1.12     TC        1.00*    TS        1.09     
!   WF        1.06     WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.90     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.02     LA        0.94     MA        1.00*    
!   MK        1.00*    NL        0.96     ON        1.00*    OV        1.49     
!   PT        0.95     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GG        1.00*    HN        1.00*    
!   KK        0.94     KP        1.01     LA        0.97     MA        1.00*    
!   MK        0.87     NL        1.00     ON        1.00*    OV        4.39     
!   PT        1.02     SC        1.00*    TC        1.00*    TS        0.93     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.02     OV        1.00*    
!   PT        1.00*    SC        1.12     TC        1.00*    TS        0.95     
!   WF        0.95     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.96     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00     LA        0.97     MA        1.00*    
!   MK        0.96     NL        1.04     ON        1.08     OV        1.01     
!   PT        1.02     SC        1.13     TC        1.00*    TS        1.13     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 171 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.87     FD        0.93     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.02     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        1.02     ON        1.00*    OV        1.31     
!   PT        1.00     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.220880Jy  sigma=0.001950
! Fit after  self-cal, rms=0.231447Jy  sigma=0.001870
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.571 mas, bmaj=3.954 mas, bpa=-2.572 degrees
! Estimated noise=210.363 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 (8.5, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.007949 Jy
! Component: 100  -  total flux cleaned = 0.0117457 Jy
! Component: 150  -  total flux cleaned = 0.0122498 Jy
! Component: 200  -  total flux cleaned = 0.0124646 Jy
! Total flux subtracted in 200 components = 0.0124646 Jy
! Clean residual min=-0.002449 max=0.003950 Jy/beam
! Clean residual mean=0.000174 rms=0.000817 Jy/beam
! Combined flux in latest and established models = 0.584573 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 57 components and 0.584573 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231130Jy  sigma=0.001865
! Fit after  self-cal, rms=0.231374Jy  sigma=0.001864
! 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.231374Jy  sigma=0.001864
! Fit after  self-cal, rms=0.232154Jy  sigma=0.001863
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.577 mas, bmaj=3.954 mas, bpa=-2.564 degrees
! Estimated noise=210.926 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00463955 Jy
! Component: 100  -  total flux cleaned = 0.00631469 Jy
! Component: 150  -  total flux cleaned = 0.0064923 Jy
! Component: 200  -  total flux cleaned = 0.006649 Jy
! Total flux subtracted in 200 components = 0.006649 Jy
! Clean residual min=-0.002155 max=0.003388 Jy/beam
! Clean residual mean=0.000154 rms=0.000677 Jy/beam
! Combined flux in latest and established models = 0.591222 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 65 components and 0.591222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232010Jy  sigma=0.001861
! Fit after  self-cal, rms=0.231987Jy  sigma=0.001861
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 (-11, 29.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00306111 Jy
! Component: 100  -  total flux cleaned = 0.00381297 Jy
! Component: 150  -  total flux cleaned = 0.00396137 Jy
! Component: 200  -  total flux cleaned = 0.00396228 Jy
! Total flux subtracted in 200 components = 0.00396228 Jy
! Clean residual min=-0.002062 max=0.002379 Jy/beam
! Clean residual mean=0.000120 rms=0.000618 Jy/beam
! Combined flux in latest and established models = 0.595184 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 78 components and 0.595184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231913Jy  sigma=0.001860
! Fit after  self-cal, rms=0.231913Jy  sigma=0.001860
! 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.231913Jy  sigma=0.001860
! Fit after  self-cal, rms=0.232644Jy  sigma=0.001859
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.586 mas, bmaj=3.96 mas, bpa=-2.689 degrees
! Estimated noise=211.771 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00281361 Jy
! Component: 100  -  total flux cleaned = 0.00375115 Jy
! Component: 150  -  total flux cleaned = 0.00387355 Jy
! Component: 200  -  total flux cleaned = 0.00399075 Jy
! Total flux subtracted in 200 components = 0.00399075 Jy
! Clean residual min=-0.001952 max=0.002121 Jy/beam
! Clean residual mean=0.000114 rms=0.000556 Jy/beam
! Combined flux in latest and established models = 0.599175 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 85 components and 0.599175 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232576Jy  sigma=0.001859
! Fit after  self-cal, rms=0.232560Jy  sigma=0.001859
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.000677154 Jy
! Component: 100  -  total flux cleaned = 0.00073166 Jy
! Component: 150  -  total flux cleaned = 0.000681282 Jy
! Component: 200  -  total flux cleaned = 0.000683027 Jy
! Total flux subtracted in 200 components = 0.000683027 Jy
! Clean residual min=-0.001816 max=0.002061 Jy/beam
! Clean residual mean=0.000109 rms=0.000541 Jy/beam
! Combined flux in latest and established models = 0.599858 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 93 components and 0.599858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232529Jy  sigma=0.001858
! Fit after  self-cal, rms=0.232523Jy  sigma=0.001858
! 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.232523Jy  sigma=0.001858
! Fit after  self-cal, rms=0.233072Jy  sigma=0.001858
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.797 mas, bmaj=9.684 mas, bpa=-20.07 degrees
! Estimated noise=282.601 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00206503 Jy
! Component: 100  -  total flux cleaned = 0.00235473 Jy
! Component: 150  -  total flux cleaned = 0.00245742 Jy
! Component: 200  -  total flux cleaned = 0.00245768 Jy
! Total flux subtracted in 200 components = 0.00245768 Jy
! Clean residual min=-0.001637 max=0.002660 Jy/beam
! Clean residual mean=0.000271 rms=0.000695 Jy/beam
! Combined flux in latest and established models = 0.602315 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 110 components and 0.602315 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233049Jy  sigma=0.001858
! Fit after  self-cal, rms=0.233041Jy  sigma=0.001858
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.000467001 Jy
! Component: 100  -  total flux cleaned = 0.000416337 Jy
! Component: 150  -  total flux cleaned = 0.000397852 Jy
! Component: 200  -  total flux cleaned = 0.000380015 Jy
! Total flux subtracted in 200 components = 0.000380015 Jy
! Clean residual min=-0.001536 max=0.002595 Jy/beam
! Clean residual mean=0.000264 rms=0.000684 Jy/beam
! Combined flux in latest and established models = 0.602695 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 118 components and 0.602695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233037Jy  sigma=0.001858
! Fit after  self-cal, rms=0.233036Jy  sigma=0.001858
! 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.59 mas, bmaj=3.965 mas, bpa=-2.81 degrees
! Estimated noise=212.442 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.59 x 3.965 at -2.81 degrees (North through East)
! Clean map  min=-0.0022338  max=0.36008 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.968 mas, bmaj=2.95 mas, bpa=3.446 degrees
! Estimated noise=529.558 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.271813 Jy
! Component: 100  -  total flux cleaned = 0.396476 Jy
! Component: 150  -  total flux cleaned = 0.458113 Jy
! Component: 200  -  total flux cleaned = 0.493321 Jy
! Total flux subtracted in 200 components = 0.493321 Jy
! Clean residual min=-0.007734 max=0.018606 Jy/beam
! Clean residual mean=0.000002 rms=0.002177 Jy/beam
! Combined flux in latest and established models = 0.493321 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 0.493321 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.59 mas, bmaj=3.965 mas, bpa=-2.81 degrees
! Estimated noise=212.442 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.0383374 Jy
! Component: 100  -  total flux cleaned = 0.0599147 Jy
! Component: 150  -  total flux cleaned = 0.073599 Jy
! Component: 200  -  total flux cleaned = 0.0829465 Jy
! Total flux subtracted in 200 components = 0.0829465 Jy
! Clean residual min=-0.002483 max=0.006820 Jy/beam
! Clean residual mean=0.000305 rms=0.000956 Jy/beam
! Combined flux in latest and established models = 0.576267 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 54 components and 0.576267 Jy
! Inverting map 
! Added new window around map position (-2.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00719248 Jy
! Component: 100  -  total flux cleaned = 0.012278 Jy
! Component: 150  -  total flux cleaned = 0.0161472 Jy
! Component: 200  -  total flux cleaned = 0.0191719 Jy
! Total flux subtracted in 200 components = 0.0191719 Jy
! Clean residual min=-0.002058 max=0.002304 Jy/beam
! Clean residual mean=0.000155 rms=0.000588 Jy/beam
! Combined flux in latest and established models = 0.595439 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 84 components and 0.595439 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.797 mas, bmaj=9.684 mas, bpa=-20.07 degrees
! Estimated noise=282.601 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00347692 Jy
! Component: 100  -  total flux cleaned = 0.00530399 Jy
! Component: 150  -  total flux cleaned = 0.00582863 Jy
! Component: 200  -  total flux cleaned = 0.0062152 Jy
! Total flux subtracted in 200 components = 0.0062152 Jy
! Clean residual min=-0.001727 max=0.002471 Jy/beam
! Clean residual mean=0.000287 rms=0.000699 Jy/beam
! Combined flux in latest and established models = 0.601655 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.000255415 Jy
! Component: 100  -  total flux cleaned = 0.000286708 Jy
! Component: 150  -  total flux cleaned = 0.000344232 Jy
! Component: 200  -  total flux cleaned = 0.000370152 Jy
! Total flux subtracted in 200 components = 0.000370152 Jy
! Clean residual min=-0.001636 max=0.002480 Jy/beam
! Clean residual mean=0.000279 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.602025 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 122 components and 0.602025 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.59 mas, bmaj=3.965 mas, bpa=-2.81 degrees
! Estimated noise=212.442 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000639992 Jy
! Component: 100  -  total flux cleaned = -0.000578253 Jy
! Component: 150  -  total flux cleaned = -0.000520208 Jy
! Component: 200  -  total flux cleaned = -0.000519982 Jy
! Total flux subtracted in 200 components = -0.000519982 Jy
! Clean residual min=-0.001807 max=0.002063 Jy/beam
! Clean residual mean=0.000106 rms=0.000505 Jy/beam
! Combined flux in latest and established models = 0.601505 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 140 components and 0.601505 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232953Jy  sigma=0.001858
! Fit after  self-cal, rms=0.232911Jy  sigma=0.001857
wmodel J1753+4409_S_2003_06_18_pus_map.mod
! Writing 140 model components to file: J1753+4409_S_2003_06_18_pus_map.mod
wobs J1753+4409_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J1753+4409_S_2003_06_18_pus_uvs.fits
wwins J1753+4409_S_2003_06_18_pus_map.win
! wwins: Wrote 5 windows to J1753+4409_S_2003_06_18_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.00086615 Jy
! Component: 100  -  total flux cleaned = 0.00132422 Jy
! Component: 150  -  total flux cleaned = 0.00172578 Jy
! Component: 200  -  total flux cleaned = 0.00205204 Jy
! Component: 250  -  total flux cleaned = 0.00234021 Jy
! Component: 300  -  total flux cleaned = 0.00267761 Jy
! Component: 350  -  total flux cleaned = 0.00297981 Jy
! Component: 400  -  total flux cleaned = 0.00322176 Jy
! Component: 450  -  total flux cleaned = 0.00343346 Jy
! Component: 500  -  total flux cleaned = 0.00369349 Jy
! Component: 550  -  total flux cleaned = 0.00392358 Jy
! Component: 600  -  total flux cleaned = 0.00409986 Jy
! Component: 650  -  total flux cleaned = 0.00432338 Jy
! Component: 700  -  total flux cleaned = 0.0044949 Jy
! Component: 750  -  total flux cleaned = 0.00468819 Jy
! Component: 800  -  total flux cleaned = 0.00487901 Jy
! Component: 850  -  total flux cleaned = 0.00506744 Jy
! Component: 900  -  total flux cleaned = 0.00523033 Jy
! Component: 950  -  total flux cleaned = 0.00536852 Jy
! Component: 1000  -  total flux cleaned = 0.00552783 Jy
! Component: 1050  -  total flux cleaned = 0.00568554 Jy
! Component: 1100  -  total flux cleaned = 0.0058193 Jy
! Component: 1150  -  total flux cleaned = 0.00597342 Jy
! Component: 1200  -  total flux cleaned = 0.00603886 Jy
! Component: 1250  -  total flux cleaned = 0.00621137 Jy
! Component: 1300  -  total flux cleaned = 0.00625386 Jy
! Component: 1350  -  total flux cleaned = 0.00633825 Jy
! Component: 1400  -  total flux cleaned = 0.00638009 Jy
! Component: 1450  -  total flux cleaned = 0.00646342 Jy
! Component: 1500  -  total flux cleaned = 0.00654596 Jy
! Component: 1550  -  total flux cleaned = 0.00662758 Jy
! Component: 1600  -  total flux cleaned = 0.00666812 Jy
! Component: 1650  -  total flux cleaned = 0.00678856 Jy
! Component: 1700  -  total flux cleaned = 0.00678828 Jy
! Component: 1750  -  total flux cleaned = 0.00684774 Jy
! Component: 1800  -  total flux cleaned = 0.00694608 Jy
! Component: 1850  -  total flux cleaned = 0.00694611 Jy
! Component: 1900  -  total flux cleaned = 0.00706234 Jy
! Component: 1950  -  total flux cleaned = 0.00710073 Jy
! Component: 2000  -  total flux cleaned = 0.00715809 Jy
! Total flux subtracted in 2048 components = 0.00721501 Jy
! Clean residual min=-0.001068 max=0.001094 Jy/beam
! Clean residual mean=0.000046 rms=0.000358 Jy/beam
! Combined flux in latest and established models = 0.60872 Jy
keep
! Adding 142 model components to the UV plane model.
! The established model now contains 279 components and 0.60872 Jy
wmap "J1753+4409_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.59 x 3.965 at -2.81 degrees (North through East)
! Clean map  min=-0.0020287  max=0.35999 Jy/beam
! Writing clean map to FITS file: J1753+4409_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.359995 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000357625 
device "J1753+4409_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J1753+4409_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.298025 0.298025 0.596051 1.1921 2.3842 4.76841 9.53682 19.0736 38.1473 76.2945
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.359 
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.59 x 3.965 at -2.81 degrees (North through East)
! Clean map  min=-0.0020287  max=0.35999 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1753+4409_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J1753+4409_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1753+4409_S_2003_06_18_pus_uvs.log closed on Wed Jan 24 18:51:25 2007