! Started logfile: 1207-319_K.log on Wed Oct  1 16:26:31 2003
observe 1207-319_K
! Reading UV FITS file: 1207-319_K
! AN table 1: 71 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.295149 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1209-32
! 
! 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 1182 lines of history.
! 
! Reading 7544 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 368 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 403 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 574 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 571 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 434 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 368 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 437 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 617 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.833169Jy  sigma=4.878078
! Fit after  self-cal, rms=0.736309Jy  sigma=4.310996
! 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
peakwin 1
! Inverting map and beam 
! Estimated beam: bmin=0.2754 mas, bmaj=2.114 mas, bpa=-15.51 degrees
! Estimated noise=4.05367 mJy/beam.
! Added new window around map position (0, 0).
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.263586 Jy
! Component: 100  -  total flux cleaned = 0.329682 Jy
! Total flux subtracted in 100 components = 0.329682 Jy
! Clean residual min=-0.028685 max=0.031273 Jy/beam
! Clean residual mean=0.000546 rms=0.009658 Jy/beam
! Combined flux in latest and established models = 0.329682 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.329682 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.339759Jy  sigma=1.989278
! Fit after  self-cal, rms=0.339713Jy  sigma=1.989009
! 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.3015 mas, bmaj=2.718 mas, bpa=-15.9 degrees
! Estimated noise=2.12362 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.039764 Jy
! Component: 100  -  total flux cleaned = 0.0567876 Jy
! Component: 150  -  total flux cleaned = 0.064787 Jy
! Component: 200  -  total flux cleaned = 0.0690171 Jy
! Total flux subtracted in 200 components = 0.0690171 Jy
! Clean residual min=-0.019555 max=0.019396 Jy/beam
! Clean residual mean=0.000853 rms=0.005810 Jy/beam
! Combined flux in latest and established models = 0.398699 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 61 model components to the UV plane model.
! The established model now contains 73 components and 0.398699 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.335673Jy  sigma=1.965345
! Fit after  self-cal, rms=0.335645Jy  sigma=1.965184
! 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 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01462
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.09     
!   LA        1.01     MK        0.82     NL        1.00*    OV        0.88     
!   PT        1.06     SC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.02191
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.08     
!   LA        0.93     MK        0.94     NL        1.00*    OV        0.98     
!   PT        0.86     SC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.02417
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        0.86     MK        0.98     NL        1.00*    OV        0.97     
!   PT        0.95     SC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.994959
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.01     
!   LA        1.00*    MK        0.90     NL        1.00*    OV        0.86     
!   PT        1.28     SC        1.00*    
! 
! 
! Correcting IF 5.
!  A total of 105 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.979599
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.12     
!   LA        0.85     MK        1.09     NL        1.00*    OV        1.14     
!   PT        1.01     SC        1.00*    
! 
! 
! Correcting IF 6.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.965421
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.91     HN        1.00*    KP        0.89     
!   LA        0.99     MK        1.26     NL        1.00*    OV        1.25     
!   PT        1.07     SC        1.00*    
! 
! 
! Correcting IF 7.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.966437
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.84     FD        1.00*    HN        1.00*    KP        0.90     
!   LA        1.00*    MK        1.07     NL        1.00*    OV        1.33     
!   PT        1.21     SC        1.00*    
! 
! 
! Correcting IF 8.
!  A total of 93 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*    
! 
! 
! Fit before self-cal, rms=0.335645Jy  sigma=1.965184
! Fit after  self-cal, rms=0.332289Jy  sigma=1.964570
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3003 mas, bmaj=2.647 mas, bpa=-15.99 degrees
! Estimated noise=2.18819 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.0032465 Jy
! Component: 100  -  total flux cleaned = -0.00359256 Jy
! Component: 150  -  total flux cleaned = -0.0037084 Jy
! Component: 200  -  total flux cleaned = -0.00365767 Jy
! Total flux subtracted in 200 components = -0.00365767 Jy
! Clean residual min=-0.015434 max=0.016903 Jy/beam
! Clean residual mean=0.000314 rms=0.004570 Jy/beam
! Combined flux in latest and established models = 0.395041 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 88 components and 0.395041 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.332253Jy  sigma=1.964352
! Fit after  self-cal, rms=0.332354Jy  sigma=1.964052
! 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 = 0.000205265 Jy
! Component: 100  -  total flux cleaned = 0.000299883 Jy
! Component: 150  -  total flux cleaned = 0.000426134 Jy
! Component: 200  -  total flux cleaned = 0.000543604 Jy
! Total flux subtracted in 200 components = 0.000543604 Jy
! Clean residual min=-0.015415 max=0.016500 Jy/beam
! Clean residual mean=0.000318 rms=0.004528 Jy/beam
! Combined flux in latest and established models = 0.395585 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 93 components and 0.395585 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.332343Jy  sigma=1.963985
! Fit after  self-cal, rms=0.340075Jy  sigma=1.941828
! Inverting map and beam 
! Estimated beam: bmin=0.3 mas, bmaj=2.668 mas, bpa=-15.95 degrees
! Estimated noise=2.22344 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.00444611 Jy
! Component: 100  -  total flux cleaned = 0.00647202 Jy
! Component: 150  -  total flux cleaned = 0.00721595 Jy
! Component: 200  -  total flux cleaned = 0.00731931 Jy
! Total flux subtracted in 200 components = 0.00731931 Jy
! Clean residual min=-0.013179 max=0.010943 Jy/beam
! Clean residual mean=0.000247 rms=0.003417 Jy/beam
! Combined flux in latest and established models = 0.402904 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 115 components and 0.402904 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.340039Jy  sigma=1.941387
! Fit after  self-cal, rms=0.340078Jy  sigma=1.941204
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1207-319_K
! Writing UV FITS file: 1207-319_K.uvf
! Writing 115 model components to file: 1207-319_K.mod
! wwins: Wrote 1 windows to 1207-319_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3 x 2.668 at -15.95 degrees (North through East)
! Clean map  min=-0.013101  max=0.33651 Jy/beam
! Writing clean map to FITS file: 1207-319_K.fits
! Writing difmap environment to: 1207-319_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1207-319_Kuv.ps/vps,1,2
! Attempting to open device: '1207-319_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1207-319_Kim.ps/vps
! Attempting to open device: '1207-319_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.3 mas, bmaj=2.668 mas, bpa=-15.95 degrees
! Estimated noise=2.22344 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3 x 2.668 at -15.95 degrees (North through East)
! Clean map  min=-0.013101  max=0.33651 Jy/beam
quit
! Quitting program
! Log file 1207-319_K.log closed on Wed Oct  1 16:27:13 2003