! Started logfile: J1800+7828_S_2003_09_17_pus_uvs.log on Mon May 21 22:34:21 2007
obs J1800+7828_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1800+7828_S_2003_09_17_pus_uva.fits
! AN table 1: 101 integrations on 120 of 120 possible baselines.
! AN table 2: 160 integrations on 120 of 120 possible baselines.
! AN table 3: 48 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.210383 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1800+7828
! 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 1732 lines of history.
! 
! Reading 31204 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 883 telescope corrections were flagged in sub-array 1.
!  A total of 1863 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 883 telescope corrections were flagged in sub-array 1.
!  A total of 1863 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 883 telescope corrections were flagged in sub-array 1.
!  A total of 1863 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 883 telescope corrections were flagged in sub-array 1.
!  A total of 1863 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.159785Jy  sigma=0.006677
! Fit after  self-cal, rms=0.608376Jy  sigma=0.003375
! 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.962 mas, bmaj=2.24 mas, bpa=84.7 degrees
! Estimated noise=1392.61 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.89921 Jy
! Component: 100  -  total flux cleaned = 1.19318 Jy
! Total flux subtracted in 100 components = 1.19318 Jy
! Clean residual min=-0.031442 max=0.126607 Jy/beam
! Clean residual mean=0.000742 rms=0.009201 Jy/beam
! Combined flux in latest and established models = 1.19318 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.19318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.510501Jy  sigma=0.002639
! Fit after  self-cal, rms=0.510334Jy  sigma=0.002639
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.136104 Jy
! Component: 100  -  total flux cleaned = 0.208066 Jy
! Total flux subtracted in 100 components = 0.208066 Jy
! Clean residual min=-0.024161 max=0.057484 Jy/beam
! Clean residual mean=0.000593 rms=0.006526 Jy/beam
! Combined flux in latest and established models = 1.40125 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 20 components and 1.40125 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.448316Jy  sigma=0.002072
! Fit after  self-cal, rms=0.448366Jy  sigma=0.002072
! Inverting map 
! Added new window around map position (-4, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.059068 Jy
! Component: 100  -  total flux cleaned = 0.100473 Jy
! Total flux subtracted in 100 components = 0.100473 Jy
! Clean residual min=-0.021508 max=0.029696 Jy/beam
! Clean residual mean=0.000520 rms=0.005748 Jy/beam
! Combined flux in latest and established models = 1.50172 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 36 components and 1.50172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.431901Jy  sigma=0.001894
! Fit after  self-cal, rms=0.431537Jy  sigma=0.001891
! 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.361 mas, bmaj=3.058 mas, bpa=88.02 degrees
! Estimated noise=723.41 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.0845487 Jy
! Component: 100  -  total flux cleaned = 0.136292 Jy
! Component: 150  -  total flux cleaned = 0.170036 Jy
! Component: 200  -  total flux cleaned = 0.192625 Jy
! Total flux subtracted in 200 components = 0.192625 Jy
! Clean residual min=-0.020516 max=0.044524 Jy/beam
! Clean residual mean=0.004612 rms=0.008298 Jy/beam
! Combined flux in latest and established models = 1.69434 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 61 components and 1.69434 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418009Jy  sigma=0.001710
! Fit after  self-cal, rms=0.417132Jy  sigma=0.001704
! Inverting map 
! Added new window around map position (-10, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0463916 Jy
! Component: 100  -  total flux cleaned = 0.0730886 Jy
! Component: 150  -  total flux cleaned = 0.0908979 Jy
! Component: 200  -  total flux cleaned = 0.103028 Jy
! Total flux subtracted in 200 components = 0.103028 Jy
! Clean residual min=-0.022444 max=0.038076 Jy/beam
! Clean residual mean=0.003540 rms=0.007127 Jy/beam
! Combined flux in latest and established models = 1.79737 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 89 components and 1.79737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.411438Jy  sigma=0.001658
! Fit after  self-cal, rms=0.410714Jy  sigma=0.001651
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.03     GC        1.00*    HN        0.93     KP        1.12     
!   LA        0.98     MK        1.00*    NL        0.98     NY        1.00     
!   ON        0.98     OV        1.45     PT        1.00     SC        1.03     
!   TS        0.96     KK        1.00*    WZ        0.98     WF        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.02     HN        0.92     KP        0.99     
!   LA        0.97     MK        1.01     NL        0.98     NY        1.02     
!   ON        1.01     OV        0.86     PT        0.97     SC        0.97     
!   TS        0.98     KK        1.06     WZ        0.99     WF        0.87     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.97     GC        1.00     HN        1.01     KP        0.99     
!   LA        0.93     MK        1.01     NL        0.96     NY        0.93     
!   ON        0.94     OV        0.88     PT        0.97     SC        0.97     
!   TS        1.03     KK        1.07     WZ        0.95     WF        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.04     GC        1.00*    HN        1.00     KP        1.21     
!   LA        0.98     MK        1.00*    NL        1.01     NY        1.03     
!   ON        0.98     OV        1.65     PT        0.98     SC        1.08     
!   TS        0.96     KK        1.00*    WZ        0.95     WF        0.94     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        0.98     HN        1.00     KP        1.05     
!   LA        0.99     MK        1.15     NL        1.02     NY        1.00     
!   ON        1.01     OV        0.95     PT        0.96     SC        1.02     
!   TS        0.98     KK        1.09     WZ        0.95     WF        0.92     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.98     GC        0.95     HN        1.00     KP        1.06     
!   LA        0.95     MK        1.09     NL        1.00     NY        0.97     
!   ON        0.97     OV        0.92     PT        0.96     SC        1.02     
!   TS        1.04     KK        1.08     WZ        0.89     WF        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.02     GC        1.00*    HN        1.01     KP        1.13     
!   LA        0.93     MK        1.00*    NL        0.96     NY        0.98     
!   ON        0.97     OV        3.03     PT        1.03     SC        1.10     
!   TS        1.01     KK        1.00*    WZ        0.94     WF        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.05     HN        1.01     KP        1.04     
!   LA        0.96     MK        1.08     NL        0.97     NY        0.95     
!   ON        1.03     OV        0.97     PT        1.01     SC        1.04     
!   TS        4.76     KK        1.06     WZ        0.95     WF        0.96     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.06     HN        1.02     KP        1.03     
!   LA        0.93     MK        1.05     NL        0.95     NY        0.91     
!   ON        1.00     OV        0.95     PT        0.98     SC        1.04     
!   TS        1.07     KK        1.06     WZ        0.95     WF        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     GC        1.00*    HN        0.90     KP        1.18     
!   LA        0.96     MK        1.00*    NL        1.00     NY        0.96     
!   ON        0.97     OV        3.52     PT        0.98     SC        1.07     
!   TS        0.98     KK        1.00*    WZ        0.99     WF        0.95     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     GC        1.06     HN        0.89     KP        1.05     
!   LA        1.00     MK        1.03     NL        0.99     NY        0.96     
!   ON        1.01     OV        0.93     PT        0.96     SC        1.04     
!   TS        1.02     KK        1.16     WZ        0.97     WF        0.96     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     GC        1.03     HN        1.05     KP        1.06     
!   LA        0.98     MK        0.98     NL        0.97     NY        0.90     
!   ON        0.98     OV        0.91     PT        0.94     SC        1.02     
!   TS        1.15     KK        1.15     WZ        0.95     WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.410714Jy  sigma=0.001651
! Fit after  self-cal, rms=0.442467Jy  sigma=0.001401
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.389 mas, bmaj=3.084 mas, bpa=86.67 degrees
! Estimated noise=730.711 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 (-33.5, -8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0310215 Jy
! Component: 100  -  total flux cleaned = 0.0504123 Jy
! Component: 150  -  total flux cleaned = 0.0589369 Jy
! Component: 200  -  total flux cleaned = 0.0618747 Jy
! Total flux subtracted in 200 components = 0.0618747 Jy
! Clean residual min=-0.009818 max=0.015747 Jy/beam
! Clean residual mean=0.000853 rms=0.002830 Jy/beam
! Combined flux in latest and established models = 1.85925 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 129 components and 1.85925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.440106Jy  sigma=0.001371
! Fit after  self-cal, rms=0.440839Jy  sigma=0.001369
! Inverting map 
! Added new window around map position (-26, -4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0168867 Jy
! Component: 100  -  total flux cleaned = 0.0204106 Jy
! Component: 150  -  total flux cleaned = 0.0218543 Jy
! Component: 200  -  total flux cleaned = 0.0228142 Jy
! Total flux subtracted in 200 components = 0.0228142 Jy
! Clean residual min=-0.008589 max=0.011615 Jy/beam
! Clean residual mean=0.000622 rms=0.002445 Jy/beam
! Combined flux in latest and established models = 1.88206 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 150 components and 1.88206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.439942Jy  sigma=0.001360
! Fit after  self-cal, rms=0.439883Jy  sigma=0.001360
! Inverting map 
! Added new window around map position (-25.5, -11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0127561 Jy
! Component: 100  -  total flux cleaned = 0.0158504 Jy
! Component: 150  -  total flux cleaned = 0.01703 Jy
! Component: 200  -  total flux cleaned = 0.0183824 Jy
! Total flux subtracted in 200 components = 0.0183824 Jy
! Clean residual min=-0.008050 max=0.009685 Jy/beam
! Clean residual mean=0.000413 rms=0.002175 Jy/beam
! Combined flux in latest and established models = 1.90044 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 179 components and 1.90044 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.439348Jy  sigma=0.001354
! Fit after  self-cal, rms=0.439328Jy  sigma=0.001354
! 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.439328Jy  sigma=0.001354
! Fit after  self-cal, rms=0.443701Jy  sigma=0.001342
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.392 mas, bmaj=3.089 mas, bpa=86.75 degrees
! Estimated noise=729.811 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000357278 Jy
! Component: 100  -  total flux cleaned = 0.000957777 Jy
! Component: 150  -  total flux cleaned = 0.00226604 Jy
! Component: 200  -  total flux cleaned = 0.00321372 Jy
! Total flux subtracted in 200 components = 0.00321372 Jy
! Clean residual min=-0.006713 max=0.007966 Jy/beam
! Clean residual mean=0.000405 rms=0.001855 Jy/beam
! Combined flux in latest and established models = 1.90366 Jy
selfcal
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 197 components and 1.90366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443322Jy  sigma=0.001339
! Fit after  self-cal, rms=0.443386Jy  sigma=0.001338
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.0024706 Jy
! Component: 100  -  total flux cleaned = 0.00356214 Jy
! Component: 150  -  total flux cleaned = 0.0043743 Jy
! Component: 200  -  total flux cleaned = 0.00494959 Jy
! Total flux subtracted in 200 components = 0.00494959 Jy
! Clean residual min=-0.006410 max=0.007720 Jy/beam
! Clean residual mean=0.000353 rms=0.001783 Jy/beam
! Combined flux in latest and established models = 1.90861 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 208 components and 1.90861 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443194Jy  sigma=0.001336
! Fit after  self-cal, rms=0.443197Jy  sigma=0.001336
! Inverting map 
! Added new window around map position (-31, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00662718 Jy
! Component: 100  -  total flux cleaned = 0.00843449 Jy
! Component: 150  -  total flux cleaned = 0.00951224 Jy
! Component: 200  -  total flux cleaned = 0.0105154 Jy
! Total flux subtracted in 200 components = 0.0105154 Jy
! Clean residual min=-0.006468 max=0.006593 Jy/beam
! Clean residual mean=0.000242 rms=0.001648 Jy/beam
! Combined flux in latest and established models = 1.91912 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 228 components and 1.91912 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.442998Jy  sigma=0.001334
! Fit after  self-cal, rms=0.442998Jy  sigma=0.001334
! 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.442998Jy  sigma=0.001334
! Fit after  self-cal, rms=0.444741Jy  sigma=0.001334
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.394 mas, bmaj=3.094 mas, bpa=86.85 degrees
! Estimated noise=729.534 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00311098 Jy
! Component: 100  -  total flux cleaned = -0.00238061 Jy
! Component: 150  -  total flux cleaned = -0.00169862 Jy
! Component: 200  -  total flux cleaned = -0.000898023 Jy
! Total flux subtracted in 200 components = -0.000898023 Jy
! Clean residual min=-0.005713 max=0.006665 Jy/beam
! Clean residual mean=0.000309 rms=0.001566 Jy/beam
! Combined flux in latest and established models = 1.91822 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 236 components and 1.91822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.444575Jy  sigma=0.001332
! Fit after  self-cal, rms=0.444582Jy  sigma=0.001332
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 (-42.5, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00719848 Jy
! Component: 100  -  total flux cleaned = 0.0103315 Jy
! Component: 150  -  total flux cleaned = 0.0110725 Jy
! Component: 200  -  total flux cleaned = 0.0117619 Jy
! Total flux subtracted in 200 components = 0.0117619 Jy
! Clean residual min=-0.005477 max=0.005735 Jy/beam
! Clean residual mean=0.000201 rms=0.001431 Jy/beam
! Combined flux in latest and established models = 1.92999 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 247 components and 1.92999 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.444450Jy  sigma=0.001331
! Fit after  self-cal, rms=0.444443Jy  sigma=0.001331
! 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.444443Jy  sigma=0.001331
! Fit after  self-cal, rms=0.445183Jy  sigma=0.001330
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.878 mas, bmaj=9.697 mas, bpa=58.74 degrees
! Estimated noise=1097.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0046579 Jy
! Component: 100  -  total flux cleaned = 0.00910994 Jy
! Component: 150  -  total flux cleaned = 0.0111828 Jy
! Component: 200  -  total flux cleaned = 0.0120342 Jy
! Total flux subtracted in 200 components = 0.0120342 Jy
! Clean residual min=-0.008543 max=0.007537 Jy/beam
! Clean residual mean=0.000409 rms=0.002491 Jy/beam
! Combined flux in latest and established models = 1.94202 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 262 components and 1.94202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445123Jy  sigma=0.001330
! Fit after  self-cal, rms=0.445076Jy  sigma=0.001330
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.00199197 Jy
! Component: 100  -  total flux cleaned = 0.00273447 Jy
! Component: 150  -  total flux cleaned = 0.00326406 Jy
! Component: 200  -  total flux cleaned = 0.00374566 Jy
! Total flux subtracted in 200 components = 0.00374566 Jy
! Clean residual min=-0.008765 max=0.006976 Jy/beam
! Clean residual mean=0.000284 rms=0.002394 Jy/beam
! Combined flux in latest and established models = 1.94577 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 273 components and 1.94577 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445090Jy  sigma=0.001330
! Fit after  self-cal, rms=0.445056Jy  sigma=0.001330
! 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.396 mas, bmaj=3.098 mas, bpa=86.94 degrees
! Estimated noise=729.249 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.396 x 3.098 at 86.94 degrees (North through East)
! Clean map  min=-0.0049735  max=1.2692 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.445056Jy  sigma=0.001330
! Fit after  self-cal, rms=0.698288Jy  sigma=0.001214
! Inverting map and beam 
! Estimated beam: bmin=2.397 mas, bmaj=3.101 mas, bpa=87.11 degrees
! Estimated noise=728.286 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.004486 Jy
! Component: 100  -  total flux cleaned = -0.00633697 Jy
! Component: 150  -  total flux cleaned = -0.00727677 Jy
! Component: 200  -  total flux cleaned = -0.00775797 Jy
! Total flux subtracted in 200 components = -0.00775797 Jy
! Clean residual min=-0.005142 max=0.004655 Jy/beam
! Clean residual mean=0.000084 rms=0.001193 Jy/beam
! Combined flux in latest and established models = 1.93801 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 284 components and 1.93801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.698222Jy  sigma=0.001213
! Fit after  self-cal, rms=0.698196Jy  sigma=0.001213
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000842776 Jy
! Component: 100  -  total flux cleaned = -0.00106429 Jy
! Component: 150  -  total flux cleaned = -0.00126908 Jy
! Component: 200  -  total flux cleaned = -0.0014648 Jy
! Total flux subtracted in 200 components = -0.0014648 Jy
! Clean residual min=-0.005091 max=0.004604 Jy/beam
! Clean residual mean=0.000101 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 1.93654 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 289 components and 1.93654 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.698163Jy  sigma=0.001213
! Fit after  self-cal, rms=0.698178Jy  sigma=0.001213
! 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.698178Jy  sigma=0.001213
! Fit after  self-cal, rms=0.694658Jy  sigma=0.001213
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.981 mas, bmaj=2.26 mas, bpa=84.13 degrees
! Estimated noise=1412.99 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.916282 Jy
! Component: 100  -  total flux cleaned = 1.21098 Jy
! Component: 150  -  total flux cleaned = 1.34544 Jy
! Component: 200  -  total flux cleaned = 1.41943 Jy
! Total flux subtracted in 200 components = 1.41943 Jy
! Clean residual min=-0.011628 max=0.038865 Jy/beam
! Clean residual mean=0.000436 rms=0.004081 Jy/beam
! Combined flux in latest and established models = 1.41943 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.41943 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.398 mas, bmaj=3.103 mas, bpa=87.1 degrees
! Estimated noise=727.97 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.108515 Jy
! Component: 100  -  total flux cleaned = 0.172708 Jy
! Component: 150  -  total flux cleaned = 0.218858 Jy
! Component: 200  -  total flux cleaned = 0.255814 Jy
! Total flux subtracted in 200 components = 0.255814 Jy
! Clean residual min=-0.008632 max=0.022478 Jy/beam
! Clean residual mean=0.002958 rms=0.005177 Jy/beam
! Combined flux in latest and established models = 1.67524 Jy
! Adding 83 model components to the UV plane model.
! The established model now contains 86 components and 1.67524 Jy
! Inverting map 
! Added new window around map position (-4.5, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0305723 Jy
! Component: 100  -  total flux cleaned = 0.0563355 Jy
! Component: 150  -  total flux cleaned = 0.0782997 Jy
! Component: 200  -  total flux cleaned = 0.0971766 Jy
! Total flux subtracted in 200 components = 0.0971766 Jy
! Clean residual min=-0.006123 max=0.012361 Jy/beam
! Clean residual mean=0.001863 rms=0.003229 Jy/beam
! Combined flux in latest and established models = 1.77242 Jy
! Adding 96 model components to the UV plane model.
! The established model now contains 163 components and 1.77242 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.883 mas, bmaj=9.715 mas, bpa=58.82 degrees
! Estimated noise=1092.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0449551 Jy
! Component: 100  -  total flux cleaned = 0.075353 Jy
! Component: 150  -  total flux cleaned = 0.0970492 Jy
! Component: 200  -  total flux cleaned = 0.113139 Jy
! Total flux subtracted in 200 components = 0.113139 Jy
! Clean residual min=-0.007338 max=0.011652 Jy/beam
! Clean residual mean=0.002109 rms=0.003751 Jy/beam
! Combined flux in latest and established models = 1.88556 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.0122993 Jy
! Component: 100  -  total flux cleaned = 0.021813 Jy
! Component: 150  -  total flux cleaned = 0.0292331 Jy
! Component: 200  -  total flux cleaned = 0.035039 Jy
! Total flux subtracted in 200 components = 0.035039 Jy
! Clean residual min=-0.007048 max=0.007012 Jy/beam
! Clean residual mean=0.000812 rms=0.002414 Jy/beam
! Combined flux in latest and established models = 1.9206 Jy
! Adding 136 model components to the UV plane model.
! The established model now contains 285 components and 1.9206 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.398 mas, bmaj=3.103 mas, bpa=87.1 degrees
! Estimated noise=727.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00210296 Jy
! Component: 100  -  total flux cleaned = -0.000851197 Jy
! Component: 150  -  total flux cleaned = 0.000260024 Jy
! Component: 200  -  total flux cleaned = 0.00106486 Jy
! Total flux subtracted in 200 components = 0.00106486 Jy
! Clean residual min=-0.004766 max=0.006072 Jy/beam
! Clean residual mean=0.000239 rms=0.001238 Jy/beam
! Combined flux in latest and established models = 1.92166 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 301 components and 1.92166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.694727Jy  sigma=0.001214
! Fit after  self-cal, rms=0.694809Jy  sigma=0.001213
wmodel J1800+7828_S_2003_09_17_pus_map.mod
! Writing 301 model components to file: J1800+7828_S_2003_09_17_pus_map.mod
wobs J1800+7828_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1800+7828_S_2003_09_17_pus_uvs.fits
wwins J1800+7828_S_2003_09_17_pus_map.win
! wwins: Wrote 9 windows to J1800+7828_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.0025214 Jy
! Component: 100  -  total flux cleaned = 0.00411112 Jy
! Component: 150  -  total flux cleaned = 0.00559491 Jy
! Component: 200  -  total flux cleaned = 0.0069941 Jy
! Component: 250  -  total flux cleaned = 0.00817693 Jy
! Component: 300  -  total flux cleaned = 0.00917031 Jy
! Component: 350  -  total flux cleaned = 0.00985581 Jy
! Component: 400  -  total flux cleaned = 0.010387 Jy
! Component: 450  -  total flux cleaned = 0.0107109 Jy
! Component: 500  -  total flux cleaned = 0.0110909 Jy
! Component: 550  -  total flux cleaned = 0.0115855 Jy
! Component: 600  -  total flux cleaned = 0.0117669 Jy
! Component: 650  -  total flux cleaned = 0.0120053 Jy
! Component: 700  -  total flux cleaned = 0.0121223 Jy
! Component: 750  -  total flux cleaned = 0.0121801 Jy
! Component: 800  -  total flux cleaned = 0.0122939 Jy
! Component: 850  -  total flux cleaned = 0.0122376 Jy
! Component: 900  -  total flux cleaned = 0.0123486 Jy
! Component: 950  -  total flux cleaned = 0.0122392 Jy
! Component: 1000  -  total flux cleaned = 0.012348 Jy
! Component: 1050  -  total flux cleaned = 0.0124552 Jy
! Component: 1100  -  total flux cleaned = 0.0124551 Jy
! Component: 1150  -  total flux cleaned = 0.0125608 Jy
! Component: 1200  -  total flux cleaned = 0.012717 Jy
! Component: 1250  -  total flux cleaned = 0.0128201 Jy
! Component: 1300  -  total flux cleaned = 0.0128715 Jy
! Component: 1350  -  total flux cleaned = 0.0131246 Jy
! Component: 1400  -  total flux cleaned = 0.0131746 Jy
! Component: 1450  -  total flux cleaned = 0.0133734 Jy
! Component: 1500  -  total flux cleaned = 0.0134221 Jy
! Component: 1550  -  total flux cleaned = 0.0135684 Jy
! Component: 1600  -  total flux cleaned = 0.0136649 Jy
! Component: 1650  -  total flux cleaned = 0.0137611 Jy
! Component: 1700  -  total flux cleaned = 0.0139039 Jy
! Component: 1750  -  total flux cleaned = 0.0139036 Jy
! Component: 1800  -  total flux cleaned = 0.0140912 Jy
! Component: 1850  -  total flux cleaned = 0.0140913 Jy
! Component: 1900  -  total flux cleaned = 0.0141377 Jy
! Component: 1950  -  total flux cleaned = 0.0143216 Jy
! Component: 2000  -  total flux cleaned = 0.0144129 Jy
! Total flux subtracted in 2048 components = 0.0145485 Jy
! Clean residual min=-0.003515 max=0.002381 Jy/beam
! Clean residual mean=0.000077 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 1.93621 Jy
keep
! Adding 172 model components to the UV plane model.
! The established model now contains 471 components and 1.93621 Jy
wmap "J1800+7828_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.398 x 3.103 at 87.1 degrees (North through East)
! Clean map  min=-0.0039557  max=1.2751 Jy/beam
! Writing clean map to FITS file: J1800+7828_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.27507 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000859256 
device "J1800+7828_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1800+7828_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.202167 0.202167 0.404335 0.808669 1.61734 3.23468 6.46935 12.9387 25.8774 51.7548
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.275 
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.398 x 3.103 at 87.1 degrees (North through East)
! Clean map  min=-0.0039557  max=1.2751 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1800+7828_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1800+7828_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1800+7828_S_2003_09_17_pus_uvs.log closed on Mon May 21 22:36:20 2007