! Started logfile: 1243-072_K.log on Wed May 21 10:30:35 2003
observe 1243-072_K.edt
! Reading UV FITS file: 1243-072_K.edt
! AN table 1: 44 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.734848 visibilities/baseline/integration-bin.
! Found source: 1243-072
! 
! There are 8 IFs, and a total of 8 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.42136e+10        8e+06          1        8e+06
!  02        2  2.42266e+10        8e+06          1        8e+06
!  03        3  2.42656e+10        8e+06          1        8e+06
!  04        4  2.43436e+10        8e+06          1        8e+06
!  05        5  2.44866e+10        8e+06          1        8e+06
!  06        6  2.45906e+10        8e+06          1        8e+06
!  07        7  2.46556e+10        8e+06          1        8e+06
!  08        8  2.46816e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 882 lines of history.
! 
! Reading 11640 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.03
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.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.0300x0.0300 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..8
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
! Reading IF 5 channels: 5..5
! Reading IF 6 channels: 6..6
! Reading IF 7 channels: 7..7
! Reading IF 8 channels: 8..8
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 101 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 101 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 112 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 112 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 112 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 112 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 101 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 112 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.549149Jy  sigma=5.460142
! Fit after  self-cal, rms=0.548921Jy  sigma=5.459837
! 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.2372 mas, bmaj=0.6732 mas, bpa=-3.775 degrees
! Estimated noise=1.27668 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.378033 Jy
! Component: 100  -  total flux cleaned = 0.46054 Jy
! Total flux subtracted in 100 components = 0.46054 Jy
! Clean residual min=-0.013892 max=0.029484 Jy/beam
! Clean residual mean=0.000120 rms=0.004637 Jy/beam
! Combined flux in latest and established models = 0.46054 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.46054 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.236594Jy  sigma=2.324210
! Fit after  self-cal, rms=0.236593Jy  sigma=2.324191
! 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.2899 mas, bmaj=0.8526 mas, bpa=-6.725 degrees
! Estimated noise=0.710588 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0362438 Jy
! Component: 100  -  total flux cleaned = 0.0519822 Jy
! Component: 150  -  total flux cleaned = 0.0609037 Jy
! Component: 200  -  total flux cleaned = 0.0660746 Jy
! Total flux subtracted in 200 components = 0.0660746 Jy
! Clean residual min=-0.013989 max=0.022679 Jy/beam
! Clean residual mean=0.000149 rms=0.003914 Jy/beam
! Combined flux in latest and established models = 0.526615 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 39 model components to the UV plane model.
! The established model now contains 43 components and 0.526614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.231500Jy  sigma=2.271854
! Fit after  self-cal, rms=0.231487Jy  sigma=2.271673
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 0.985935
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HN        1.07     KP        1.00     
!   LA        0.97     MK        0.98     NL        1.01     OV        1.08     
!   PT        0.90     SC        1.11     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.99487
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HN        1.08     KP        1.01     
!   LA        0.95     MK        0.99     NL        1.04     OV        1.05     
!   PT        0.90     SC        1.04     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.993284
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HN        1.06     KP        1.02     
!   LA        1.01     MK        1.02     NL        1.06     OV        1.00     
!   PT        0.90     SC        0.99     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.00458
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.03     HN        1.09     KP        0.99     
!   LA        0.97     MK        0.99     NL        1.03     OV        1.05     
!   PT        0.86     SC        0.94     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.996881
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HN        1.12     KP        0.98     
!   LA        0.95     MK        0.96     NL        1.04     OV        1.07     
!   PT        0.95     SC        0.95     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.994784
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HN        1.09     KP        0.97     
!   LA        0.97     MK        1.02     NL        1.06     OV        1.07     
!   PT        0.90     SC        0.97     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.997176
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HN        1.04     KP        1.00     
!   LA        0.95     MK        1.00     NL        1.05     OV        1.03     
!   PT        0.91     SC        1.02     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 1.01357
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HN        0.99     KP        0.97     
!   LA        0.99     MK        0.98     NL        1.02     OV        1.03     
!   PT        0.91     SC        0.97     
! 
! 
! Fit before self-cal, rms=0.231487Jy  sigma=2.271673
! Fit after  self-cal, rms=0.225677Jy  sigma=2.243981
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2909 mas, bmaj=0.857 mas, bpa=-6.678 degrees
! Estimated noise=0.707657 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00392559 Jy
! Component: 100  -  total flux cleaned = -0.00449519 Jy
! Component: 150  -  total flux cleaned = -0.00489796 Jy
! Component: 200  -  total flux cleaned = -0.00525369 Jy
! Total flux subtracted in 200 components = -0.00525369 Jy
! Clean residual min=-0.009422 max=0.012908 Jy/beam
! Clean residual mean=-0.000067 rms=0.002393 Jy/beam
! Combined flux in latest and established models = 0.521361 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 58 components and 0.521361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.225579Jy  sigma=2.243020
! Fit after  self-cal, rms=0.225613Jy  sigma=2.242761
! 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)
! Added new window around map position (-0.78, 0.81).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0118807 Jy
! Component: 100  -  total flux cleaned = 0.0146002 Jy
! Component: 150  -  total flux cleaned = 0.013773 Jy
! Component: 200  -  total flux cleaned = 0.0129005 Jy
! Total flux subtracted in 200 components = 0.0129005 Jy
! Clean residual min=-0.007736 max=0.008091 Jy/beam
! Clean residual mean=-0.000125 rms=0.001999 Jy/beam
! Combined flux in latest and established models = 0.534261 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 81 components and 0.534261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.224974Jy  sigma=2.236660
! Fit after  self-cal, rms=0.224508Jy  sigma=2.195780
! Inverting map and beam 
! Estimated beam: bmin=0.2908 mas, bmaj=0.86 mas, bpa=-6.692 degrees
! Estimated noise=0.711456 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00471932 Jy
! Component: 100  -  total flux cleaned = 0.00484016 Jy
! Component: 150  -  total flux cleaned = 0.00463638 Jy
! Component: 200  -  total flux cleaned = 0.00445025 Jy
! Total flux subtracted in 200 components = 0.00445025 Jy
! Clean residual min=-0.007546 max=0.006453 Jy/beam
! Clean residual mean=-0.000097 rms=0.001732 Jy/beam
! Combined flux in latest and established models = 0.538711 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 101 components and 0.538711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.224383Jy  sigma=2.194460
! Fit after  self-cal, rms=0.224385Jy  sigma=2.194235
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1243-072_K
! Writing UV FITS file: 1243-072_K.uvf
! Writing 101 model components to file: 1243-072_K.mod
! wwins: Wrote 2 windows to 1243-072_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2908 x 0.86 at -6.692 degrees (North through East)
! Clean map  min=-0.0073034  max=0.49524 Jy/beam
! Writing clean map to FITS file: 1243-072_K.fits
! Writing difmap environment to: 1243-072_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1243-072_Kuv.ps/vps,1,2
! Attempting to open device: '1243-072_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1243-072_Kim.ps/vps
! Attempting to open device: '1243-072_Kim.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=0.2908 mas, bmaj=0.86 mas, bpa=-6.692 degrees
! Estimated noise=0.711456 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2908 x 0.86 at -6.692 degrees (North through East)
! Clean map  min=-0.0073034  max=0.49524 Jy/beam
quit
! Quitting program
! Log file 1243-072_K.log closed on Wed May 21 10:31:10 2003