! Started logfile: J1931+2243_X_2001_07_05_pus_uvs.log on Thu Jul  5 15:45:16 2007
obs J1931+2243_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1931+2243_X_2001_07_05_pus_uva.fits
! AN table 1: 73 integrations on 171 of 171 possible baselines.
! AN table 2: 112 integrations on 171 of 171 possible baselines.
! AN table 3: 273 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.182282 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1931+2243
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2374 lines of history.
! 
! Reading 57104 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1168 telescope corrections were flagged in sub-array 1.
!  A total of 1347 telescope corrections were flagged in sub-array 2.
!  A total of 3154 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1168 telescope corrections were flagged in sub-array 1.
!  A total of 1347 telescope corrections were flagged in sub-array 2.
!  A total of 3145 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1168 telescope corrections were flagged in sub-array 1.
!  A total of 1347 telescope corrections were flagged in sub-array 2.
!  A total of 3154 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1168 telescope corrections were flagged in sub-array 1.
!  A total of 1349 telescope corrections were flagged in sub-array 2.
!  A total of 3145 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.882672Jy  sigma=0.007618
! Fit after  self-cal, rms=0.743074Jy  sigma=0.006353
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5588 mas, bmaj=0.9463 mas, bpa=-4.097 degrees
! Estimated noise=618.727 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.195911 Jy
! Component: 100  -  total flux cleaned = 0.26204 Jy
! Total flux subtracted in 100 components = 0.26204 Jy
! Clean residual min=-0.008482 max=0.030287 Jy/beam
! Clean residual mean=0.000219 rms=0.003009 Jy/beam
! Combined flux in latest and established models = 0.26204 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.26204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188366Jy  sigma=0.001455
! Fit after  self-cal, rms=0.188083Jy  sigma=0.001454
! Inverting map 
! Your choice of large map pixels excluded 2% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.035078 Jy
! Component: 100  -  total flux cleaned = 0.055969 Jy
! Total flux subtracted in 100 components = 0.055969 Jy
! Clean residual min=-0.008743 max=0.014132 Jy/beam
! Clean residual mean=0.000130 rms=0.002266 Jy/beam
! Combined flux in latest and established models = 0.318009 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 0.318009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178480Jy  sigma=0.001333
! Fit after  self-cal, rms=0.178318Jy  sigma=0.001332
! Inverting map 
! Your choice of large map pixels excluded 2% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Added new window around map position (-0.8, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0168769 Jy
! Component: 100  -  total flux cleaned = 0.0294099 Jy
! Total flux subtracted in 100 components = 0.0294099 Jy
! Clean residual min=-0.008925 max=0.009383 Jy/beam
! Clean residual mean=0.000085 rms=0.002048 Jy/beam
! Combined flux in latest and established models = 0.347419 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 25 components and 0.347419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175696Jy  sigma=0.001297
! Fit after  self-cal, rms=0.175606Jy  sigma=0.001296
! Inverting map 
! Your choice of large map pixels excluded 2% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.6724 mas, bmaj=1.109 mas, bpa=-10.13 degrees
! Estimated noise=356.655 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.0181365 Jy
! Component: 100  -  total flux cleaned = 0.0285212 Jy
! Component: 150  -  total flux cleaned = 0.0351302 Jy
! Component: 200  -  total flux cleaned = 0.0395293 Jy
! Total flux subtracted in 200 components = 0.0395293 Jy
! Clean residual min=-0.004655 max=0.005691 Jy/beam
! Clean residual mean=0.000159 rms=0.001113 Jy/beam
! Combined flux in latest and established models = 0.386948 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 40 components and 0.386948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173973Jy  sigma=0.001275
! Fit after  self-cal, rms=0.173860Jy  sigma=0.001274
! Inverting map 
! Your choice of large map pixels excluded 2% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   NY        0.92     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.94     WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        0.98     
!   LA        0.97     MC        0.94     MK        1.00*    NL        0.97     
!   NY        0.90     OV        1.03     PT        1.00     SC        0.94     
!   TS        1.00*    WF        1.03     WZ        0.95     
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.98     KP        0.97     
!   LA        0.96     MC        1.33     MK        0.95     NL        0.99     
!   NY        0.97     OV        0.99     PT        1.00     SC        1.02     
!   TS        1.52     WF        1.01     WZ        1.17     
! 
! 
! Correcting IF 2.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.86     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.05     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   NY        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.92     WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.02     
!   LA        0.95     MC        0.91     MK        1.00*    NL        0.91     
!   NY        0.97     OV        1.03     PT        0.95     SC        0.93     
!   TS        1.00*    WF        1.10     WZ        0.99     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     GC        0.91     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.97     KP        0.99     
!   LA        0.96     MC        5.82     MK        0.93     NL        0.96     
!   NY        1.49     OV        0.97     PT        0.98     SC        0.97     
!   TS        1.44     WF        1.00     WZ        3.05     
! 
! 
! Correcting IF 3.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.89     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.88     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   NY        1.06     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.07     WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        0.96     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.04     
!   LA        1.02     MC        0.92     MK        1.00*    NL        0.93     
!   NY        0.95     OV        1.06     PT        0.99     SC        0.90     
!   TS        1.00*    WF        0.98     WZ        0.97     
! 
!  A total of 48 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.98     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.94     KP        1.03     
!   LA        0.98     MC        1.36     MK        0.97     NL        0.99     
!   NY        1.06     OV        1.04     PT        1.01     SC        0.99     
!   TS        1.36     WF        1.00     WZ        1.14     
! 
! 
! Correcting IF 4.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.86     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.16     NL        1.00*    
!   NY        0.83     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.92     WF        1.00*    WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.95     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.03     
!   LA        0.99     MC        0.95     MK        1.00*    NL        0.95     
!   NY        0.87     OV        1.04     PT        0.97     SC        0.99     
!   TS        1.00*    WF        1.03     WZ        0.95     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.96     GC        0.91     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.98     KP        0.97     
!   LA        0.95     MC        1.29     MK        1.01     NL        1.00     
!   NY        1.01     OV        1.02     PT        1.00     SC        1.05     
!   TS        1.59     WF        1.01     WZ        1.15     
! 
! 
! Fit before self-cal, rms=0.173860Jy  sigma=0.001274
! Fit after  self-cal, rms=0.211313Jy  sigma=0.001238
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.683 mas, bmaj=1.132 mas, bpa=-10.57 degrees
! Estimated noise=358.918 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.000925925 Jy
! Component: 100  -  total flux cleaned = 0.00029662 Jy
! Component: 150  -  total flux cleaned = 0.000132517 Jy
! Component: 200  -  total flux cleaned = 6.21489e-05 Jy
! Total flux subtracted in 200 components = 6.21489e-05 Jy
! Clean residual min=-0.002436 max=0.002806 Jy/beam
! Clean residual mean=0.000079 rms=0.000695 Jy/beam
! Combined flux in latest and established models = 0.38701 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 46 components and 0.38701 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211238Jy  sigma=0.001237
! Fit after  self-cal, rms=0.212618Jy  sigma=0.001236
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212618Jy  sigma=0.001236
! Fit after  self-cal, rms=0.267324Jy  sigma=0.001223
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.6841 mas, bmaj=1.129 mas, bpa=-10.66 degrees
! Estimated noise=358.668 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000654087 Jy
! Component: 100  -  total flux cleaned = 0.000130364 Jy
! Component: 150  -  total flux cleaned = -4.18479e-05 Jy
! Component: 200  -  total flux cleaned = -0.000194249 Jy
! Total flux subtracted in 200 components = -0.000194249 Jy
! Clean residual min=-0.001879 max=0.002122 Jy/beam
! Clean residual mean=0.000077 rms=0.000534 Jy/beam
! Combined flux in latest and established models = 0.386816 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 51 components and 0.386816 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267309Jy  sigma=0.001222
! Fit after  self-cal, rms=0.267860Jy  sigma=0.001222
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.02067e-05 Jy
! Component: 100  -  total flux cleaned = -0.00016039 Jy
! Component: 150  -  total flux cleaned = -0.000202646 Jy
! Component: 200  -  total flux cleaned = -0.000243362 Jy
! Total flux subtracted in 200 components = -0.000243362 Jy
! Clean residual min=-0.001787 max=0.002053 Jy/beam
! Clean residual mean=0.000080 rms=0.000521 Jy/beam
! Combined flux in latest and established models = 0.386573 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 55 components and 0.386573 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267853Jy  sigma=0.001221
! Fit after  self-cal, rms=0.267844Jy  sigma=0.001221
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267844Jy  sigma=0.001221
! Fit after  self-cal, rms=0.275023Jy  sigma=0.001221
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.685 mas, bmaj=1.13 mas, bpa=-10.6 degrees
! Estimated noise=358.81 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000193676 Jy
! Component: 100  -  total flux cleaned = -0.000286436 Jy
! Component: 150  -  total flux cleaned = -0.000365744 Jy
! Component: 200  -  total flux cleaned = -0.000401957 Jy
! Total flux subtracted in 200 components = -0.000401957 Jy
! Clean residual min=-0.001729 max=0.002171 Jy/beam
! Clean residual mean=0.000082 rms=0.000509 Jy/beam
! Combined flux in latest and established models = 0.386171 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 55 components and 0.386171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275023Jy  sigma=0.001221
! Fit after  self-cal, rms=0.275056Jy  sigma=0.001221
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.57546e-05 Jy
! Component: 100  -  total flux cleaned = 5.40133e-05 Jy
! Component: 150  -  total flux cleaned = 5.30462e-05 Jy
! Component: 200  -  total flux cleaned = 5.27161e-05 Jy
! Total flux subtracted in 200 components = 5.27161e-05 Jy
! Clean residual min=-0.001738 max=0.002106 Jy/beam
! Clean residual mean=0.000082 rms=0.000504 Jy/beam
! Combined flux in latest and established models = 0.386223 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 56 components and 0.386223 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275050Jy  sigma=0.001221
! Fit after  self-cal, rms=0.275050Jy  sigma=0.001221
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275050Jy  sigma=0.001221
! Fit after  self-cal, rms=0.277109Jy  sigma=0.001221
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=2.137 mas, bmaj=2.495 mas, bpa=-4.462 degrees
! Estimated noise=512.228 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00144525 Jy
! Component: 100  -  total flux cleaned = 0.00143389 Jy
! Component: 150  -  total flux cleaned = 0.00145653 Jy
! Component: 200  -  total flux cleaned = 0.00147252 Jy
! Total flux subtracted in 200 components = 0.00147252 Jy
! Clean residual min=-0.001704 max=0.002621 Jy/beam
! Clean residual mean=0.000223 rms=0.000763 Jy/beam
! Combined flux in latest and established models = 0.387696 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 58 components and 0.387696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277120Jy  sigma=0.001221
! Fit after  self-cal, rms=0.277119Jy  sigma=0.001221
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000181389 Jy
! Component: 100  -  total flux cleaned = 0.00025914 Jy
! Component: 150  -  total flux cleaned = 0.000293003 Jy
! Component: 200  -  total flux cleaned = 0.000333383 Jy
! Total flux subtracted in 200 components = 0.000333383 Jy
! Clean residual min=-0.001739 max=0.002542 Jy/beam
! Clean residual mean=0.000212 rms=0.000763 Jy/beam
! Combined flux in latest and established models = 0.388029 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 62 components and 0.388029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277127Jy  sigma=0.001221
! Fit after  self-cal, rms=0.277125Jy  sigma=0.001221
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.6856 mas, bmaj=1.13 mas, bpa=-10.58 degrees
! Estimated noise=358.966 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6856 x 1.13 at -10.58 degrees (North through East)
! Clean map  min=-0.001449  max=0.27659 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 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.5791 mas, bmaj=0.9517 mas, bpa=-5.784 degrees
! Estimated noise=652.799 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.203758 Jy
! Component: 100  -  total flux cleaned = 0.271595 Jy
! Component: 150  -  total flux cleaned = 0.305884 Jy
! Component: 200  -  total flux cleaned = 0.325934 Jy
! Total flux subtracted in 200 components = 0.325934 Jy
! Clean residual min=-0.003996 max=0.011015 Jy/beam
! Clean residual mean=0.000117 rms=0.001294 Jy/beam
! Combined flux in latest and established models = 0.325934 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 14 model components to the UV plane model.
! The established model now contains 14 components and 0.325934 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.6856 mas, bmaj=1.13 mas, bpa=-10.58 degrees
! Estimated noise=358.966 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.0233998 Jy
! Component: 100  -  total flux cleaned = 0.0370045 Jy
! Component: 150  -  total flux cleaned = 0.045539 Jy
! Component: 200  -  total flux cleaned = 0.0510531 Jy
! Total flux subtracted in 200 components = 0.0510531 Jy
! Clean residual min=-0.001805 max=0.002962 Jy/beam
! Clean residual mean=0.000176 rms=0.000601 Jy/beam
! Combined flux in latest and established models = 0.376987 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 34 components and 0.376987 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00366047 Jy
! Component: 100  -  total flux cleaned = 0.00611528 Jy
! Component: 150  -  total flux cleaned = 0.00777369 Jy
! Component: 200  -  total flux cleaned = 0.00889579 Jy
! Total flux subtracted in 200 components = 0.00889579 Jy
! Clean residual min=-0.001751 max=0.001790 Jy/beam
! Clean residual mean=0.000083 rms=0.000486 Jy/beam
! Combined flux in latest and established models = 0.385883 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 36 components and 0.385883 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=2.137 mas, bmaj=2.495 mas, bpa=-4.462 degrees
! Estimated noise=512.228 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00193552 Jy
! Component: 100  -  total flux cleaned = 0.00226342 Jy
! Component: 150  -  total flux cleaned = 0.00229396 Jy
! Component: 200  -  total flux cleaned = 0.00233181 Jy
! Total flux subtracted in 200 components = 0.00233181 Jy
! Clean residual min=-0.001765 max=0.002500 Jy/beam
! Clean residual mean=0.000206 rms=0.000765 Jy/beam
! Combined flux in latest and established models = 0.388215 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 = 2.05247e-05 Jy
! Component: 100  -  total flux cleaned = 3.86059e-05 Jy
! Component: 150  -  total flux cleaned = 4.71436e-05 Jy
! Component: 200  -  total flux cleaned = 5.52852e-05 Jy
! Total flux subtracted in 200 components = 5.52852e-05 Jy
! Clean residual min=-0.001758 max=0.002501 Jy/beam
! Clean residual mean=0.000204 rms=0.000763 Jy/beam
! Combined flux in latest and established models = 0.38827 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 39 components and 0.38827 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! Estimated beam: bmin=0.6856 mas, bmaj=1.13 mas, bpa=-10.58 degrees
! Estimated noise=358.966 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000854303 Jy
! Component: 100  -  total flux cleaned = -0.000987964 Jy
! Component: 150  -  total flux cleaned = -0.000918487 Jy
! Component: 200  -  total flux cleaned = -0.000858168 Jy
! Total flux subtracted in 200 components = -0.000858168 Jy
! Clean residual min=-0.001724 max=0.001576 Jy/beam
! Clean residual mean=0.000067 rms=0.000480 Jy/beam
! Combined flux in latest and established models = 0.387412 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 0.387412 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277131Jy  sigma=0.001220
! Fit after  self-cal, rms=0.277077Jy  sigma=0.001220
wmodel J1931+2243_X_2001_07_05_pus_map.mod
! Writing 42 model components to file: J1931+2243_X_2001_07_05_pus_map.mod
wobs J1931+2243_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1931+2243_X_2001_07_05_pus_uvs.fits
wwins J1931+2243_X_2001_07_05_pus_map.win
! wwins: Wrote 2 windows to J1931+2243_X_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 2.16655e-05 Jy
! Component: 100  -  total flux cleaned = 0.000105974 Jy
! Component: 150  -  total flux cleaned = 0.000351927 Jy
! Component: 200  -  total flux cleaned = 0.000564951 Jy
! Component: 250  -  total flux cleaned = 0.000798942 Jy
! Component: 300  -  total flux cleaned = 0.000925916 Jy
! Component: 350  -  total flux cleaned = 0.000975486 Jy
! Component: 400  -  total flux cleaned = 0.00100003 Jy
! Component: 450  -  total flux cleaned = 0.00107209 Jy
! Component: 500  -  total flux cleaned = 0.0011192 Jy
! Component: 550  -  total flux cleaned = 0.001189 Jy
! Component: 600  -  total flux cleaned = 0.00123461 Jy
! Component: 650  -  total flux cleaned = 0.00125715 Jy
! Component: 700  -  total flux cleaned = 0.00127959 Jy
! Component: 750  -  total flux cleaned = 0.00130177 Jy
! Component: 800  -  total flux cleaned = 0.00138882 Jy
! Component: 850  -  total flux cleaned = 0.00143168 Jy
! Component: 900  -  total flux cleaned = 0.00149532 Jy
! Component: 950  -  total flux cleaned = 0.00153722 Jy
! Component: 1000  -  total flux cleaned = 0.00155836 Jy
! Total flux subtracted in 1024 components = 0.00164135 Jy
! Clean residual min=-0.001036 max=0.001290 Jy/beam
! Clean residual mean=0.000048 rms=0.000409 Jy/beam
! Combined flux in latest and established models = 0.389053 Jy
keep
! Adding 85 model components to the UV plane model.
! The established model now contains 127 components and 0.389053 Jy
wmap "J1931+2243_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6856 x 1.13 at -10.58 degrees (North through East)
! Clean map  min=-0.001568  max=0.27783 Jy/beam
! Writing clean map to FITS file: J1931+2243_X_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.277831 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.02% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000408847 
device "J1931+2243_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1931+2243_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.44147 0.44147 0.88294 1.76588 3.53176 7.06352 14.127 28.2541 56.5082
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.277 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6856 x 1.13 at -10.58 degrees (North through East)
! Clean map  min=-0.001568  max=0.27783 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1931+2243_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1931+2243_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1931+2243_X_2001_07_05_pus_uvs.log closed on Thu Jul  5 15:47:07 2007