! Started logfile: 1946-200_K.log on Wed Oct  1 16:59:31 2003
observe 1946-200_K
! Reading UV FITS file: 1946-200_K
! AN table 1: 66 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.40101 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1949-19
! 
! 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 1185 lines of history.
! 
! Reading 9528 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 = 8.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 570 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 477 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 293 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 356 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 534 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 414 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 579 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 660 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.835880Jy  sigma=4.850008
! Fit after  self-cal, rms=0.732652Jy  sigma=4.253956
! 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.4049 mas, bmaj=2.111 mas, bpa=26.07 degrees
! Estimated noise=4.45602 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.03).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.292167 Jy
! Component: 100  -  total flux cleaned = 0.35867 Jy
! Total flux subtracted in 100 components = 0.35867 Jy
! Clean residual min=-0.038281 max=0.031704 Jy/beam
! Clean residual mean=-0.000067 rms=0.011204 Jy/beam
! Combined flux in latest and established models = 0.35867 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 26 components and 0.35867 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.401247Jy  sigma=2.303263
! Fit after  self-cal, rms=0.401063Jy  sigma=2.302203
! 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.5852 mas, bmaj=2.45 mas, bpa=25.43 degrees
! Estimated noise=2.46382 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.0115488 Jy
! Component: 100  -  total flux cleaned = 0.0107261 Jy
! Component: 150  -  total flux cleaned = 0.0107249 Jy
! Component: 200  -  total flux cleaned = 0.0106954 Jy
! Total flux subtracted in 200 components = 0.0106954 Jy
! Clean residual min=-0.019140 max=0.021388 Jy/beam
! Clean residual mean=0.000003 rms=0.006582 Jy/beam
! Combined flux in latest and established models = 0.369365 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 54 components and 0.369365 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.398000Jy  sigma=2.284485
! Fit after  self-cal, rms=0.397926Jy  sigma=2.284103
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 183 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.98606
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        0.90     HN        1.00*    KP        1.11     
!   LA        0.98     MK        1.00*    NL        1.09     OV        0.91     
!   PT        1.02     SC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.966381
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.81     HN        1.00*    KP        1.23     
!   LA        1.13     MK        1.00*    NL        1.00*    OV        0.92     
!   PT        1.34     SC        0.94     
! 
! 
! Correcting IF 5.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.996409
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.16     
!   LA        0.86     MK        1.00*    NL        1.00*    OV        1.02     
!   PT        0.99     SC        1.00*    
! 
! 
! Correcting IF 6.
!  A total of 42 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.998942
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    HN        1.00*    KP        0.98     
!   LA        0.94     MK        1.00*    NL        1.00*    OV        1.06     
!   PT        1.05     SC        1.00*    
! 
! 
! Correcting IF 7.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Fit before self-cal, rms=0.397926Jy  sigma=2.284103
! Fit after  self-cal, rms=0.404825Jy  sigma=2.374623
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.5107 mas, bmaj=2.423 mas, bpa=25.72 degrees
! Estimated noise=2.71631 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.00592281 Jy
! Component: 100  -  total flux cleaned = -0.0069483 Jy
! Component: 150  -  total flux cleaned = -0.00804896 Jy
! Component: 200  -  total flux cleaned = -0.00924527 Jy
! Total flux subtracted in 200 components = -0.00924527 Jy
! Clean residual min=-0.014968 max=0.013602 Jy/beam
! Clean residual mean=-0.000030 rms=0.004936 Jy/beam
! Combined flux in latest and established models = 0.36012 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 70 components and 0.36012 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.404342Jy  sigma=2.370709
! Fit after  self-cal, rms=0.404505Jy  sigma=2.370070
! 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.71817e-05 Jy
! Component: 100  -  total flux cleaned = 0.000126586 Jy
! Component: 150  -  total flux cleaned = -0.000212565 Jy
! Component: 200  -  total flux cleaned = -0.000518304 Jy
! Total flux subtracted in 200 components = -0.000518304 Jy
! Clean residual min=-0.014177 max=0.013252 Jy/beam
! Clean residual mean=-0.000018 rms=0.004839 Jy/beam
! Combined flux in latest and established models = 0.359602 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 86 components and 0.359602 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.404380Jy  sigma=2.368972
! Fit after  self-cal, rms=0.417781Jy  sigma=2.356933
! Inverting map and beam 
! Estimated beam: bmin=0.5159 mas, bmaj=2.441 mas, bpa=25.67 degrees
! Estimated noise=2.77891 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.00371676 Jy
! Component: 100  -  total flux cleaned = 0.004129 Jy
! Component: 150  -  total flux cleaned = 0.00413138 Jy
! Component: 200  -  total flux cleaned = 0.00442383 Jy
! Total flux subtracted in 200 components = 0.00442383 Jy
! Clean residual min=-0.013176 max=0.015240 Jy/beam
! Clean residual mean=0.000087 rms=0.004524 Jy/beam
! Combined flux in latest and established models = 0.364026 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 113 components and 0.364026 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.417605Jy  sigma=2.356005
! Fit after  self-cal, rms=0.417642Jy  sigma=2.355769
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1946-200_K
! Writing UV FITS file: 1946-200_K.uvf
! Writing 113 model components to file: 1946-200_K.mod
! wwins: Wrote 1 windows to 1946-200_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5159 x 2.441 at 25.67 degrees (North through East)
! Clean map  min=-0.029466  max=0.37771 Jy/beam
! Writing clean map to FITS file: 1946-200_K.fits
! Writing difmap environment to: 1946-200_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1946-200_Kuv.ps/vps,1,2
! Attempting to open device: '1946-200_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1946-200_Kim.ps/vps
! Attempting to open device: '1946-200_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.5159 mas, bmaj=2.441 mas, bpa=25.67 degrees
! Estimated noise=2.77891 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5159 x 2.441 at 25.67 degrees (North through East)
! Clean map  min=-0.029466  max=0.37771 Jy/beam
quit
! Quitting program
! Log file 1946-200_K.log closed on Wed Oct  1 17:00:13 2003