! Started logfile: 1546+027_K.log on Wed Oct  1 16:43:56 2003
observe 1546+027_K
! Reading UV FITS file: 1546+027_K
! AN table 1: 34 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.760784 visibilities/baseline/integration-bin.
! Found source: 1546+027
! 
! 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 9312 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 47 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 47 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 47 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 47 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 48 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 48 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 48 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 48 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.588008Jy  sigma=2.931791
! Fit after  self-cal, rms=0.542902Jy  sigma=2.692747
! 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.2477 mas, bmaj=0.6641 mas, bpa=-2.907 degrees
! Estimated noise=2.11658 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.801924 Jy
! Component: 100  -  total flux cleaned = 0.998287 Jy
! Total flux subtracted in 100 components = 0.998287 Jy
! Clean residual min=-0.046318 max=0.080263 Jy/beam
! Clean residual mean=-0.000009 rms=0.016307 Jy/beam
! Combined flux in latest and established models = 0.998287 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.998287 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.539419Jy  sigma=2.671332
! Fit after  self-cal, rms=0.539409Jy  sigma=2.671252
! 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.2603 mas, bmaj=0.7107 mas, bpa=-1.675 degrees
! Estimated noise=1.33026 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.0958819 Jy
! Component: 100  -  total flux cleaned = 0.141337 Jy
! Component: 150  -  total flux cleaned = 0.167059 Jy
! Component: 200  -  total flux cleaned = 0.182465 Jy
! Total flux subtracted in 200 components = 0.182465 Jy
! Clean residual min=-0.036962 max=0.053315 Jy/beam
! Clean residual mean=-0.000028 rms=0.011186 Jy/beam
! Combined flux in latest and established models = 1.18075 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 38 components and 1.18075 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.524967Jy  sigma=2.565590
! Fit after  self-cal, rms=0.524908Jy  sigma=2.565086
! 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.986778
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.22     FD        0.87     HN        1.09     KP        0.94     
!   LA        0.99     MK        0.84     NL        1.25     OV        0.94     
!   PT        0.91     SC        1.08     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.9883
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.20     FD        0.88     HN        1.15     KP        0.91     
!   LA        0.94     MK        0.90     NL        1.27     OV        0.96     
!   PT        0.83     SC        1.08     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00211
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.13     FD        0.99     HN        1.09     KP        0.93     
!   LA        0.95     MK        0.90     NL        1.13     OV        0.96     
!   PT        0.94     SC        0.95     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.996462
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.97     HN        1.04     KP        0.96     
!   LA        0.94     MK        0.95     NL        1.08     OV        1.00     
!   PT        1.03     SC        1.00     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 1.00798
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.88     HN        0.98     KP        1.00     
!   LA        1.01     MK        1.01     NL        1.16     OV        1.03     
!   PT        0.93     SC        0.90     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.985102
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.09     HN        0.87     KP        0.81     
!   LA        1.00     MK        1.12     NL        1.26     OV        1.18     
!   PT        0.95     SC        0.90     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.945854
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.12     HN        0.96     KP        0.85     
!   LA        1.03     MK        1.13     NL        1.25     OV        1.24     
!   PT        1.00     SC        0.93     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.946611
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.10     HN        0.94     KP        0.96     
!   LA        1.02     MK        1.16     NL        1.20     OV        1.29     
!   PT        0.94     SC        0.90     
! 
! 
! Fit before self-cal, rms=0.524908Jy  sigma=2.565086
! Fit after  self-cal, rms=0.498938Jy  sigma=2.442361
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2591 mas, bmaj=0.7133 mas, bpa=-1.395 degrees
! Estimated noise=1.27797 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.0283477 Jy
! Component: 100  -  total flux cleaned = -0.0355637 Jy
! Component: 150  -  total flux cleaned = -0.0373174 Jy
! Component: 200  -  total flux cleaned = -0.0382586 Jy
! Total flux subtracted in 200 components = -0.0382586 Jy
! Clean residual min=-0.016812 max=0.034704 Jy/beam
! Clean residual mean=-0.000008 rms=0.006086 Jy/beam
! Combined flux in latest and established models = 1.14249 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 46 components and 1.14249 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.497452Jy  sigma=2.431631
! Fit after  self-cal, rms=0.497511Jy  sigma=2.431379
! 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.21, -1.71).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0301812 Jy
! Component: 100  -  total flux cleaned = 0.046112 Jy
! Component: 150  -  total flux cleaned = 0.0567441 Jy
! Component: 200  -  total flux cleaned = 0.0610234 Jy
! Total flux subtracted in 200 components = 0.0610234 Jy
! Clean residual min=-0.012523 max=0.014917 Jy/beam
! Clean residual mean=0.000016 rms=0.003681 Jy/beam
! Combined flux in latest and established models = 1.20352 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 46 model components to the UV plane model.
! The established model now contains 92 components and 1.20352 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.495637Jy  sigma=2.417544
! Fit after  self-cal, rms=0.495844Jy  sigma=2.395913
! Inverting map and beam 
! Estimated beam: bmin=0.2589 mas, bmaj=0.7135 mas, bpa=-1.454 degrees
! Estimated noise=1.27607 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.0091514 Jy
! Component: 100  -  total flux cleaned = 0.0126169 Jy
! Component: 150  -  total flux cleaned = 0.0145887 Jy
! Component: 200  -  total flux cleaned = 0.016036 Jy
! Total flux subtracted in 200 components = 0.016036 Jy
! Clean residual min=-0.010641 max=0.011068 Jy/beam
! Clean residual mean=0.000013 rms=0.002979 Jy/beam
! Combined flux in latest and established models = 1.21955 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 116 components and 1.21955 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.495617Jy  sigma=2.394384
! Fit after  self-cal, rms=0.495601Jy  sigma=2.394125
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1546+027_K
! Writing UV FITS file: 1546+027_K.uvf
! Writing 116 model components to file: 1546+027_K.mod
! wwins: Wrote 2 windows to 1546+027_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2589 x 0.7135 at -1.454 degrees (North through East)
! Clean map  min=-0.010206  max=1.0062 Jy/beam
! Writing clean map to FITS file: 1546+027_K.fits
! Writing difmap environment to: 1546+027_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1546+027_Kuv.ps/vps,1,2
! Attempting to open device: '1546+027_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1546+027_Kim.ps/vps
! Attempting to open device: '1546+027_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.2589 mas, bmaj=0.7135 mas, bpa=-1.454 degrees
! Estimated noise=1.27607 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2589 x 0.7135 at -1.454 degrees (North through East)
! Clean map  min=-0.010206  max=1.0062 Jy/beam
quit
! Quitting program
! Log file 1546+027_K.log closed on Wed Oct  1 16:44:33 2003