! Started logfile: 1004+141_X.log on Fri Jun 23 12:10:52 2000
observe 1004+141_X.edt
! Reading UV FITS file: 1004+141_X.edt
! AN table 1: 47 integrations on 104 of 105 possible baselines.
! AN table 2: 50 integrations on 21 of 21 possible baselines.
! AN table 3: 15 integrations on 1 of 1 possible baselines.
! AN table 4: 82 integrations on 90 of 91 possible baselines.
! Apparent sampling: 0.440111 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1004+141
! 
! 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.40999e+09        8e+06          1        8e+06
!  02        2  8.47999e+09        8e+06          1        8e+06
!  03        3  8.79499e+09        8e+06          1        8e+06
!  04        4  8.89999e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1048 lines of history.
! 
! Reading 23472 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 281 telescope corrections were flagged in sub-array 1.
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  A total of 701 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 284 telescope corrections were flagged in sub-array 1.
!  A total of 32 telescope corrections were flagged in sub-array 2.
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  A total of 704 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 285 telescope corrections were flagged in sub-array 1.
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  A total of 704 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 281 telescope corrections were flagged in sub-array 1.
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  A total of 702 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.638456Jy  sigma=3.758510
! Fit after  self-cal, rms=0.636803Jy  sigma=3.749953
! 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.6239 mas, bmaj=1.197 mas, bpa=-7.883 degrees
! Estimated noise=1.52575 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.270332 Jy
! Total flux subtracted in 50 components = 0.270332 Jy
! Clean residual min=-0.024127 max=0.097374 Jy/beam
! Clean residual mean=-0.000073 rms=0.006813 Jy/beam
! Combined flux in latest and established models = 0.270332 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.270332 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219958Jy  sigma=1.289659
! Fit after  self-cal, rms=0.219654Jy  sigma=1.287868
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.10406 Jy
! Total flux subtracted in 50 components = 0.10406 Jy
! Clean residual min=-0.014758 max=0.051964 Jy/beam
! Clean residual mean=-0.000066 rms=0.004308 Jy/beam
! Combined flux in latest and established models = 0.374392 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 0.374392 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164100Jy  sigma=0.960891
! Fit after  self-cal, rms=0.163155Jy  sigma=0.955320
! Inverting map 
! Added new window around map position (0.7, -0.3).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0579989 Jy
! Total flux subtracted in 50 components = 0.0579989 Jy
! Clean residual min=-0.011213 max=0.026986 Jy/beam
! Clean residual mean=-0.000063 rms=0.002974 Jy/beam
! Combined flux in latest and established models = 0.43239 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 19 components and 0.432391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141800Jy  sigma=0.829322
! Fit after  self-cal, rms=0.141343Jy  sigma=0.826646
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0332371 Jy
! Total flux subtracted in 50 components = 0.0332371 Jy
! Clean residual min=-0.009498 max=0.020283 Jy/beam
! Clean residual mean=-0.000060 rms=0.002408 Jy/beam
! Combined flux in latest and established models = 0.465628 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 24 components and 0.465628 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133177Jy  sigma=0.778429
! Fit after  self-cal, rms=0.133038Jy  sigma=0.777612
! Inverting map 
! Added new window around map position (8.3, -7.3).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0229295 Jy
! Total flux subtracted in 50 components = 0.0229295 Jy
! Clean residual min=-0.008095 max=0.012568 Jy/beam
! Clean residual mean=-0.000054 rms=0.002105 Jy/beam
! Combined flux in latest and established models = 0.488557 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 32 components and 0.488557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128964Jy  sigma=0.753485
! Fit after  self-cal, rms=0.128907Jy  sigma=0.753159
! 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=0.8083 mas, bmaj=1.53 mas, bpa=-7.861 degrees
! Estimated noise=0.857194 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.0260348 Jy
! Component: 100  -  total flux cleaned = 0.0441761 Jy
! Total flux subtracted in 100 components = 0.0441761 Jy
! Clean residual min=-0.007291 max=0.012973 Jy/beam
! Clean residual mean=-0.000137 rms=0.002504 Jy/beam
! Combined flux in latest and established models = 0.532733 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 57 components and 0.532733 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123604Jy  sigma=0.721745
! Fit after  self-cal, rms=0.123442Jy  sigma=0.720798
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     GC        1.01     GN        0.98     
!   HN        1.04     KK        1.01     KP        0.97     LA        0.94     
!   MK        1.04     NL        1.00     NY        1.13     OV        1.00     
!   PT        0.96     SC        1.03     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.99     GC        1.05     KP        1.02     
!   LA        0.98     OV        0.97     PT        1.05     
! 
!  Telescope amplitude corrections in sub-array 3:
!   MC        0.00*    ON        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.02     GC        0.87     GN        0.92     
!   HN        1.02     KP        0.96     LA        0.93     MC        1.07     
!   NL        0.99     ON        1.00*    OV        1.01     PT        0.93     
!   SC        0.99     WF        1.02     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        1.02     GN        1.01     
!   HN        1.06     KK        1.02     KP        0.96     LA        0.93     
!   MK        1.04     NL        0.99     NY        1.14     OV        1.01     
!   PT        0.95     SC        0.96     WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.06     KP        0.99     
!   LA        0.99     OV        0.97     PT        1.05     
! 
!  Telescope amplitude corrections in sub-array 3:
!   MC        0.00*    ON        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.99     GC        0.86     GN        0.97     
!   HN        1.03     KP        0.98     LA        0.93     MC        1.07     
!   NL        0.99     ON        1.00*    OV        1.00     PT        0.94     
!   SC        0.97     WF        1.06     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.01     GN        0.99     
!   HN        1.08     KK        1.03     KP        0.96     LA        0.94     
!   MK        1.01     NL        1.02     NY        1.09     OV        1.02     
!   PT        0.95     SC        1.05     WF        0.95     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.98     GC        1.03     KP        0.99     
!   LA        0.98     OV        0.97     PT        1.06     
! 
!  Telescope amplitude corrections in sub-array 3:
!   MC        0.00*    ON        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.99     GC        0.95     GN        0.90     
!   HN        0.98     KP        0.99     LA        0.95     MC        0.97     
!   NL        0.99     ON        1.00*    OV        0.98     PT        0.95     
!   SC        1.02     WF        1.02     
! 
! 
! 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.97     GC        0.98     GN        1.01     
!   HN        1.03     KK        1.05     KP        0.97     LA        0.93     
!   MK        1.01     NL        1.00     NY        1.06     OV        0.99     
!   PT        0.95     SC        1.01     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.98     GC        1.00     KP        0.98     
!   LA        1.02     OV        0.93     PT        1.06     
! 
!  Telescope amplitude corrections in sub-array 3:
!   MC        0.00*    ON        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00     GC        0.92     GN        0.92     
!   HN        0.96     KP        1.00     LA        0.94     MC        1.04     
!   NL        0.99     ON        1.00*    OV        0.98     PT        0.94     
!   SC        0.95     WF        1.06     
! 
! 
! Fit before self-cal, rms=0.123442Jy  sigma=0.720798
! Fit after  self-cal, rms=0.117193Jy  sigma=0.696619
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8205 mas, bmaj=1.542 mas, bpa=-7.585 degrees
! Estimated noise=0.840179 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.0093259 Jy
! Component: 100  -  total flux cleaned = 0.0146267 Jy
! Total flux subtracted in 100 components = 0.0146267 Jy
! Clean residual min=-0.004299 max=0.007566 Jy/beam
! Clean residual mean=-0.000073 rms=0.001367 Jy/beam
! Combined flux in latest and established models = 0.54736 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 72 components and 0.54736 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116529Jy  sigma=0.692342
! Fit after  self-cal, rms=0.116495Jy  sigma=0.692126
! 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)
! Added new window around map position (9.4, -7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00759543 Jy
! Component: 100  -  total flux cleaned = 0.0115814 Jy
! Total flux subtracted in 100 components = 0.0115814 Jy
! Clean residual min=-0.003831 max=0.006944 Jy/beam
! Clean residual mean=-0.000055 rms=0.001179 Jy/beam
! Combined flux in latest and established models = 0.558941 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 101 components and 0.558941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116044Jy  sigma=0.689270
! Fit after  self-cal, rms=0.114836Jy  sigma=0.681825
! Inverting map and beam 
! Estimated beam: bmin=0.8185 mas, bmaj=1.54 mas, bpa=-7.621 degrees
! Estimated noise=0.839982 mJy/beam.
! Added new window around map position (1.9, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00665918 Jy
! Component: 100  -  total flux cleaned = 0.0108631 Jy
! Total flux subtracted in 100 components = 0.0108631 Jy
! Clean residual min=-0.003011 max=0.005426 Jy/beam
! Clean residual mean=-0.000047 rms=0.000983 Jy/beam
! Combined flux in latest and established models = 0.569804 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 119 components and 0.569804 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114465Jy  sigma=0.679529
! Fit after  self-cal, rms=0.114055Jy  sigma=0.678567
! Inverting map and beam 
! Estimated beam: bmin=0.8169 mas, bmaj=1.539 mas, bpa=-7.62 degrees
! Estimated noise=0.839075 mJy/beam.
! Added new window around map position (6.9, -5.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00586624 Jy
! Component: 100  -  total flux cleaned = 0.00996534 Jy
! Total flux subtracted in 100 components = 0.00996534 Jy
! Clean residual min=-0.002682 max=0.003851 Jy/beam
! Clean residual mean=-0.000034 rms=0.000813 Jy/beam
! Combined flux in latest and established models = 0.57977 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 150 components and 0.57977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113750Jy  sigma=0.676754
! Fit after  self-cal, rms=0.113601Jy  sigma=0.676534
! Inverting map and beam 
! Estimated beam: bmin=0.8167 mas, bmaj=1.539 mas, bpa=-7.645 degrees
! Estimated noise=0.838703 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.00380324 Jy
! Component: 100  -  total flux cleaned = 0.00690362 Jy
! Total flux subtracted in 100 components = 0.00690362 Jy
! Clean residual min=-0.002488 max=0.003206 Jy/beam
! Clean residual mean=-0.000028 rms=0.000738 Jy/beam
! Combined flux in latest and established models = 0.586673 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 165 components and 0.586673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113459Jy  sigma=0.675688
! Fit after  self-cal, rms=0.113452Jy  sigma=0.675623
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1004+141_X
! Writing UV FITS file: 1004+141_X.uvf
! Writing 165 model components to file: 1004+141_X.mod
! wwins: Wrote 6 windows to 1004+141_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8167 x 1.539 at -7.645 degrees (North through East)
! Clean map  min=-0.0024754  max=0.35322 Jy/beam
! Writing clean map to FITS file: 1004+141_X.fits
! Writing difmap environment to: 1004+141_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1004+141_Xuv.ps/vps,1,2
! Attempting to open device: '1004+141_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1004+141_Xim.ps/vps
! Attempting to open device: '1004+141_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=0.8167 mas, bmaj=1.539 mas, bpa=-7.645 degrees
! Estimated noise=0.838703 mJy/beam.
! The new contour levels are:
!  -0.00223045 0.00223045 0.00446089 0.00892179 0.0178436 0.0356871 0.0713743 0.142749 0.285497 0.570994 1.14199 2.28398 4.56795 9.13591 18.2718 36.5436 73.0873 146.175 292.349 584.698 1169.4 2338.79 4677.58 9355.17 18710.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8167 x 1.539 at -7.645 degrees (North through East)
! Clean map  min=-0.0024754  max=0.35322 Jy/beam
quit
! Quitting program
! Log file 1004+141_X.log closed on Fri Jun 23 12:12:41 2000