! Started logfile: 1622-253_X.log on Wed Feb 18 20:51:04 1998
observe 1622-253_X.edt
! Reading UV FITS file: 1622-253_X.edt
! AN table 1: 16 integrations on 45 of 45 possible baselines.
! AN table 2: 59 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.205333 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1622-253
! 
! 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 724 lines of history.
! 
! Reading 2772 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
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 = 9.0
float win_mult
win_mult = 1.8
float solint
solint = 3.6/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.
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
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 62 telescope corrections were flagged in sub-array 1.
!  A total of 520 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 62 telescope corrections were flagged in sub-array 1.
!  A total of 520 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 62 telescope corrections were flagged in sub-array 1.
!  A total of 520 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 62 telescope corrections were flagged in sub-array 1.
!  A total of 520 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.225188Jy  sigma=5.781260
! Fit after  self-cal, rms=1.226423Jy  sigma=5.788108
! 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.7689 mas, bmaj=4.77 mas, bpa=-7.007 degrees
! Estimated noise=4.15092 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 = 1.62875 Jy
! Total flux subtracted in 50 components = 1.62875 Jy
! Clean residual min=-0.119743 max=0.454245 Jy/beam
! Clean residual mean=0.003054 rms=0.039055 Jy/beam
! Combined flux in latest and established models = 1.62875 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.62875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.640070Jy  sigma=3.024051
! Fit after  self-cal, rms=0.640070Jy  sigma=3.024051
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.38213 Jy
! Total flux subtracted in 50 components = 0.38213 Jy
! Clean residual min=-0.052139 max=0.148447 Jy/beam
! Clean residual mean=0.001352 rms=0.019791 Jy/beam
! Combined flux in latest and established models = 2.01088 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 2.01088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351322Jy  sigma=1.649589
! Fit after  self-cal, rms=0.351264Jy  sigma=1.649333
! 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.9575 mas, bmaj=5.478 mas, bpa=-7.3 degrees
! Estimated noise=3.02814 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.217119 Jy
! Component: 100  -  total flux cleaned = 0.310528 Jy
! Total flux subtracted in 100 components = 0.310528 Jy
! Clean residual min=-0.041060 max=0.050474 Jy/beam
! Clean residual mean=-0.000687 rms=0.012267 Jy/beam
! Combined flux in latest and established models = 2.32141 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 42 model components to the UV plane model.
! The established model now contains 50 components and 2.32141 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214497Jy  sigma=0.984895
! Fit after  self-cal, rms=0.214291Jy  sigma=0.983918
! 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        0.99     FD        0.97     GN        1.03     HN        1.00     
!   KP        0.98     LA        0.94     NL        0.97     OV        0.97     
!   PT        0.98     WF        1.04     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.95     GN        1.23     KK        1.08     
!   KP        0.99     LA        0.97     MK        1.00     NL        1.00     
!   OV        0.98     PT        1.01     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GN        0.99     HN        1.01     
!   KP        0.97     LA        0.95     NL        0.96     OV        0.98     
!   PT        0.97     WF        1.05     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.95     GN        1.45     KK        1.10     
!   KP        0.99     LA        0.98     MK        1.01     NL        0.99     
!   OV        0.98     PT        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GN        1.01     HN        0.99     
!   KP        0.96     LA        0.94     NL        0.96     OV        0.98     
!   PT        0.97     WF        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.94     GN        1.19     KK        1.12     
!   KP        0.97     LA        0.98     MK        0.99     NL        0.98     
!   OV        0.98     PT        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.96     GN        1.03     HN        0.99     
!   KP        0.97     LA        0.94     NL        0.95     OV        0.97     
!   PT        0.97     WF        1.03     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.94     GN        1.22     KK        1.14     
!   KP        0.98     LA        0.98     MK        0.99     NL        0.98     
!   OV        0.96     PT        0.99     
! 
! 
! Fit before self-cal, rms=0.214291Jy  sigma=0.983918
! Fit after  self-cal, rms=0.138533Jy  sigma=0.606002
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.017 mas, bmaj=5.628 mas, bpa=-8.212 degrees
! Estimated noise=3.03571 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.00368037 Jy
! Component: 100  -  total flux cleaned = -0.00291519 Jy
! Total flux subtracted in 100 components = -0.00291519 Jy
! Clean residual min=-0.016253 max=0.020195 Jy/beam
! Clean residual mean=0.000788 rms=0.004066 Jy/beam
! Combined flux in latest and established models = 2.31849 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 64 components and 2.31849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132445Jy  sigma=0.579481
! Fit after  self-cal, rms=0.132256Jy  sigma=0.578509
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
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.00138805 Jy
! Component: 100  -  total flux cleaned = 0.00253914 Jy
! Total flux subtracted in 100 components = 0.00253914 Jy
! Clean residual min=-0.015216 max=0.017837 Jy/beam
! Clean residual mean=0.000747 rms=0.003750 Jy/beam
! Combined flux in latest and established models = 2.32103 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 74 components and 2.32103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129314Jy  sigma=0.566143
! Fit after  self-cal, rms=0.127256Jy  sigma=0.553572
! Inverting map and beam 
! Estimated beam: bmin=1.018 mas, bmaj=5.639 mas, bpa=-8.251 degrees
! Estimated noise=3.03037 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
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.00934858 Jy
! Component: 100  -  total flux cleaned = -0.00877602 Jy
! Total flux subtracted in 100 components = -0.00877602 Jy
! Clean residual min=-0.012377 max=0.016634 Jy/beam
! Clean residual mean=0.000795 rms=0.003172 Jy/beam
! Combined flux in latest and established models = 2.31226 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 77 components and 2.31226 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124248Jy  sigma=0.541850
! Fit after  self-cal, rms=0.124216Jy  sigma=0.541681
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1622-253_X
! Writing UV FITS file: 1622-253_X.uvf
! Writing 77 model components to file: 1622-253_X.mod
! wwins: Wrote 1 windows to 1622-253_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.018 x 5.639 at -8.251 degrees (North through East)
! Clean map  min=-0.012137  max=2.1617 Jy/beam
! Writing clean map to FITS file: 1622-253_X.fits
! Writing difmap environment to: 1622-253_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1622-253_Xuv.ps/vps,1,2
! Attempting to open device: '1622-253_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1622-253_Xim.ps/vps
! Attempting to open device: '1622-253_Xim.ps/vps'
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 -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=1.018 mas, bmaj=5.639 mas, bpa=-8.251 degrees
! Estimated noise=3.03037 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.018 x 5.639 at -8.251 degrees (North through East)
! Clean map  min=-0.012137  max=2.1617 Jy/beam
quit
! Quitting program
! Log file 1622-253_X.log closed on Wed Feb 18 20:56:00 1998