! Started logfile: 1338+381_X.log on Mon May  7 13:39:05 2001
observe 1338+381_X.edt
! Reading UV FITS file: 1338+381_X.edt
! AN table 1: 71 integrations on 36 of 36 possible baselines.
! AN table 2: 63 integrations on 21 of 36 possible baselines.
! Apparent sampling: 0.823924 visibilities/baseline/integration-bin.
! Found source: 1338+381
! 
! 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 1399 lines of history.
! 
! Reading 12784 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 4.0/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.100x0.100 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 24 telescope corrections were flagged in sub-array 1.
!  A total of 233 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  A total of 282 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  A total of 284 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 604 telescope corrections were flagged in sub-array 1.
!  A total of 387 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.908637Jy  sigma=5.311817
! Fit after  self-cal, rms=0.908468Jy  sigma=5.311861
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvweight 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.
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9306 mas, bmaj=1.412 mas, bpa=-39.92 degrees
! Estimated noise=3.31975 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0780865 Jy
! Total flux subtracted in 50 components = 0.0780865 Jy
! Clean residual min=-0.014732 max=0.024624 Jy/beam
! Clean residual mean=0.000154 rms=0.004404 Jy/beam
! Combined flux in latest and established models = 0.0780865 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.0780865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088287Jy  sigma=0.511584
! Fit after  self-cal, rms=0.088286Jy  sigma=0.511577
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Uniform Weighting CLEAN ***"
! *** Finished Uniform Weighting CLEAN *** 
print "****************************************"
! **************************************** 
uvweight 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
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.399 mas, bmaj=1.845 mas, bpa=-48.11 degrees
! Estimated noise=1.29619 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0188988 Jy
! Component: 100  -  total flux cleaned = 0.0271822 Jy
! Total flux subtracted in 100 components = 0.0271822 Jy
! Clean residual min=-0.007164 max=0.017124 Jy/beam
! Clean residual mean=0.000800 rms=0.002570 Jy/beam
! Combined flux in latest and established models = 0.105269 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 25 components and 0.105269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084841Jy  sigma=0.491287
! Fit after  self-cal, rms=0.084794Jy  sigma=0.491009
! Inverting map 
! Added new window around map position (-1.1, -3.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0145078 Jy
! Component: 100  -  total flux cleaned = 0.0201425 Jy
! Total flux subtracted in 100 components = 0.0201425 Jy
! Clean residual min=-0.005539 max=0.009036 Jy/beam
! Clean residual mean=0.000438 rms=0.001636 Jy/beam
! Combined flux in latest and established models = 0.125411 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 51 components and 0.125411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082688Jy  sigma=0.478441
! Fit after  self-cal, rms=0.082299Jy  sigma=0.476175
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.19     GC        1.05     HN        0.97     
!   KP        1.00     LA        0.96     NL        0.97     OV        1.02     
!   PT        0.95     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.97     GC        1.05     KP        0.95     
!   LA        0.97     PT        0.94     MC        1.03     NY        0.82     
!   ON        0.53     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.16     GC        0.95     HN        0.97     
!   KP        0.95     LA        1.01     NL        1.02     OV        1.07     
!   PT        0.92     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        0.67     KP        0.88     
!   LA        1.02     PT        0.91     MC        1.08     NY        0.88     
!   ON        0.63     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.09     GC        1.19     HN        0.92     
!   KP        1.00     LA        1.02     NL        1.06     OV        1.08     
!   PT        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.90     FD        0.91     GC        0.63     KP        0.90     
!   LA        1.04     PT        0.93     MC        1.20     NY        0.79     
!   ON        0.70     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.22     FD        0.99     GC        1.08     HN        0.68     
!   KP        0.99     LA        1.25     NL        0.89     OV        0.88     
!   PT        0.83     
! 
!  A total of 156 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.76     KP        1.00*    
!   LA        1.00*    PT        1.00*    MC        0.81     NY        0.76     
!   ON        0.57     
! 
! 
! Fit before self-cal, rms=0.082299Jy  sigma=0.476175
! Fit after  self-cal, rms=0.080785Jy  sigma=0.468194
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.371 mas, bmaj=1.822 mas, bpa=-43.87 degrees
! Estimated noise=1.29224 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00220249 Jy
! Component: 100  -  total flux cleaned = 0.00166584 Jy
! Total flux subtracted in 100 components = 0.00166584 Jy
! Clean residual min=-0.002916 max=0.003980 Jy/beam
! Clean residual mean=0.000057 rms=0.000862 Jy/beam
! Combined flux in latest and established models = 0.127077 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 66 components and 0.127077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.080542Jy  sigma=0.467021
! Fit after  self-cal, rms=0.080525Jy  sigma=0.466770
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
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 doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000980337 Jy
! Component: 100  -  total flux cleaned = 0.000361421 Jy
! Total flux subtracted in 100 components = 0.000361421 Jy
! Clean residual min=-0.002636 max=0.003294 Jy/beam
! Clean residual mean=0.000052 rms=0.000773 Jy/beam
! Combined flux in latest and established models = 0.127438 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 76 components and 0.127438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.080426Jy  sigma=0.466280
! Fit after  self-cal, rms=0.081762Jy  sigma=0.461663
! Inverting map and beam 
! Estimated beam: bmin=1.371 mas, bmaj=1.823 mas, bpa=-43.05 degrees
! Estimated noise=1.30979 mJy/beam.
doamp = false
solint = solint / 1.5
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 doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0010546 Jy
! Component: 100  -  total flux cleaned = 0.00076806 Jy
! Total flux subtracted in 100 components = 0.00076806 Jy
! Clean residual min=-0.002462 max=0.002842 Jy/beam
! Clean residual mean=0.000050 rms=0.000714 Jy/beam
! Combined flux in latest and established models = 0.128207 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 89 components and 0.128206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.081703Jy  sigma=0.461350
! Fit after  self-cal, rms=0.081703Jy  sigma=0.461288
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1338+381_X
! Writing UV FITS file: 1338+381_X.uvf
! Writing 89 model components to file: 1338+381_X.mod
! wwins: Wrote 2 windows to 1338+381_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.371 x 1.823 at -43.05 degrees (North through East)
! Clean map  min=-0.0023492  max=0.0897 Jy/beam
! Writing clean map to FITS file: 1338+381_X.fits
! Writing difmap environment to: 1338+381_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1338+381_Xuv.ps/vps,1,2
! Attempting to open device: '1338+381_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1338+381_Xim.ps/vps
! Attempting to open device: '1338+381_Xim.ps/vps'
cmul = 1.0
uvweight 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.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=1.371 mas, bmaj=1.823 mas, bpa=-43.05 degrees
! Estimated noise=1.30979 mJy/beam.
! The new contour levels are:
!  -0.00212414 0.00212414 0.00424827 0.00849654 0.0169931 0.0339862 0.0679723 0.135945 0.271889 0.543779 1.08756 2.17512 4.35023 8.70046 17.4009 34.8018 69.6037 139.207 278.415 556.829 1113.66 2227.32 4454.64 8909.27 17818.5
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.371 x 1.823 at -43.05 degrees (North through East)
! Clean map  min=-0.0023492  max=0.0897 Jy/beam
quit
! Quitting program
! Log file 1338+381_X.log closed on Mon May  7 13:39:24 2001