! Started logfile: 2136+141_K.log on Wed Oct  1 17:07:53 2003
observe 2136+141_K
! Reading UV FITS file: 2136+141_K
! AN table 1: 73 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.922374 visibilities/baseline/integration-bin.
! Found source: 2136+141
! 
! 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 24240 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 39 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 39 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 39 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 39 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 39 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 39 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 39 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.771710Jy  sigma=4.489582
! Fit after  self-cal, rms=0.736478Jy  sigma=4.283475
! 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.2369 mas, bmaj=0.6663 mas, bpa=4.872 degrees
! Estimated noise=1.08624 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.801914 Jy
! Component: 100  -  total flux cleaned = 1.13633 Jy
! Total flux subtracted in 100 components = 1.13633 Jy
! Clean residual min=-0.091967 max=0.200164 Jy/beam
! Clean residual mean=-0.000647 rms=0.033790 Jy/beam
! Combined flux in latest and established models = 1.13633 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 23 components and 1.13633 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.627609Jy  sigma=3.652781
! Fit after  self-cal, rms=0.622806Jy  sigma=3.624980
! 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.2915 mas, bmaj=0.7121 mas, bpa=3.562 degrees
! Estimated noise=0.785164 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.264099 Jy
! Component: 100  -  total flux cleaned = 0.415925 Jy
! Component: 150  -  total flux cleaned = 0.516685 Jy
! Component: 200  -  total flux cleaned = 0.584334 Jy
! Total flux subtracted in 200 components = 0.584334 Jy
! Clean residual min=-0.070379 max=0.126931 Jy/beam
! Clean residual mean=-0.000355 rms=0.022045 Jy/beam
! Combined flux in latest and established models = 1.72066 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 61 components and 1.72066 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.493146Jy  sigma=2.860470
! Fit after  self-cal, rms=0.491640Jy  sigma=2.851903
! 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.992139
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        0.84     HN        1.13     KP        0.94     
!   LA        0.95     MK        0.91     NL        1.28     OV        0.81     
!   PT        0.88     SC        1.25     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00063
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        0.82     HN        1.16     KP        0.95     
!   LA        0.95     MK        0.92     NL        1.28     OV        0.82     
!   PT        0.82     SC        1.16     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00135
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.92     HN        1.19     KP        0.90     
!   LA        0.94     MK        0.94     NL        1.24     OV        0.81     
!   PT        0.90     SC        1.06     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.991192
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.94     HN        1.19     KP        0.94     
!   LA        0.95     MK        0.99     NL        1.16     OV        0.82     
!   PT        1.00     SC        1.11     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 1.00987
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.82     HN        1.04     KP        1.01     
!   LA        1.00     MK        1.10     NL        1.26     OV        0.86     
!   PT        0.88     SC        1.00     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.982347
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.05     HN        0.96     KP        0.83     
!   LA        1.02     MK        1.18     NL        1.29     OV        0.95     
!   PT        0.93     SC        1.01     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.956718
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.04     HN        1.03     KP        0.84     
!   LA        1.00     MK        1.19     NL        1.33     OV        1.05     
!   PT        0.99     SC        1.03     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.932042
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.03     HN        1.09     KP        1.10     
!   LA        1.02     MK        1.19     NL        1.36     OV        1.06     
!   PT        0.95     SC        0.97     
! 
! 
! Fit before self-cal, rms=0.491640Jy  sigma=2.851903
! Fit after  self-cal, rms=0.431121Jy  sigma=2.540037
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2996 mas, bmaj=0.7294 mas, bpa=3.902 degrees
! Estimated noise=0.760099 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.047187 Jy
! Component: 100  -  total flux cleaned = -0.0628897 Jy
! Component: 150  -  total flux cleaned = -0.0655871 Jy
! Component: 200  -  total flux cleaned = -0.0655692 Jy
! Total flux subtracted in 200 components = -0.0655691 Jy
! Clean residual min=-0.032675 max=0.069914 Jy/beam
! Clean residual mean=-0.000075 rms=0.010450 Jy/beam
! Combined flux in latest and established models = 1.65509 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 81 components and 1.65509 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.425420Jy  sigma=2.513670
! Fit after  self-cal, rms=0.425083Jy  sigma=2.510506
! 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.42, 0.12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0365359 Jy
! Component: 100  -  total flux cleaned = 0.0318788 Jy
! Component: 150  -  total flux cleaned = 0.0289412 Jy
! Component: 200  -  total flux cleaned = 0.0255143 Jy
! Total flux subtracted in 200 components = 0.0255143 Jy
! Clean residual min=-0.022578 max=0.031114 Jy/beam
! Clean residual mean=-0.000010 rms=0.006904 Jy/beam
! Combined flux in latest and established models = 1.68061 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 100 components and 1.68061 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.415519Jy  sigma=2.462519
! Fit after  self-cal, rms=0.411793Jy  sigma=2.414838
! Inverting map and beam 
! Estimated beam: bmin=0.2996 mas, bmaj=0.7313 mas, bpa=3.591 degrees
! Estimated noise=0.764038 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.0132828 Jy
! Component: 100  -  total flux cleaned = 0.00954537 Jy
! Component: 150  -  total flux cleaned = 0.00593857 Jy
! Component: 200  -  total flux cleaned = 0.00494244 Jy
! Total flux subtracted in 200 components = 0.00494245 Jy
! Clean residual min=-0.016041 max=0.020289 Jy/beam
! Clean residual mean=-0.000026 rms=0.004892 Jy/beam
! Combined flux in latest and established models = 1.68555 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 110 components and 1.68555 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.409061Jy  sigma=2.401207
! Fit after  self-cal, rms=0.408648Jy  sigma=2.399247
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2136+141_K
! Writing UV FITS file: 2136+141_K.uvf
! Writing 110 model components to file: 2136+141_K.mod
! wwins: Wrote 2 windows to 2136+141_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2996 x 0.7313 at 3.591 degrees (North through East)
! Clean map  min=-0.018215  max=0.99892 Jy/beam
! Writing clean map to FITS file: 2136+141_K.fits
! Writing difmap environment to: 2136+141_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2136+141_Kuv.ps/vps,1,2
! Attempting to open device: '2136+141_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2136+141_Kim.ps/vps
! Attempting to open device: '2136+141_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.2996 mas, bmaj=0.7313 mas, bpa=3.591 degrees
! Estimated noise=0.764038 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2996 x 0.7313 at 3.591 degrees (North through East)
! Clean map  min=-0.018215  max=0.99892 Jy/beam
quit
! Quitting program
! Log file 2136+141_K.log closed on Wed Oct  1 17:08:35 2003