! Started logfile: 0748+126_K.log on Wed Oct  1 16:02:49 2003
observe 0748+126_K
! Reading UV FITS file: 0748+126_K
! AN table 1: 34 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.420915 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0748+126
! 
! 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 5152 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 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=1.026476Jy  sigma=5.954292
! Fit after  self-cal, rms=1.011900Jy  sigma=5.869918
! 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.2517 mas, bmaj=2.187 mas, bpa=-24.88 degrees
! Estimated noise=2.34776 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 = 1.38728 Jy
! Component: 100  -  total flux cleaned = 1.77072 Jy
! Total flux subtracted in 100 components = 1.77072 Jy
! Clean residual min=-0.132645 max=0.168665 Jy/beam
! Clean residual mean=0.000482 rms=0.046066 Jy/beam
! Combined flux in latest and established models = 1.77072 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 17 components and 1.77072 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.494562Jy  sigma=2.834615
! Fit after  self-cal, rms=0.494461Jy  sigma=2.834030
! 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.293 mas, bmaj=2.165 mas, bpa=-25.66 degrees
! Estimated noise=1.69502 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.2058 Jy
! Component: 100  -  total flux cleaned = 0.310858 Jy
! Component: 150  -  total flux cleaned = 0.379919 Jy
! Component: 200  -  total flux cleaned = 0.425865 Jy
! Total flux subtracted in 200 components = 0.425865 Jy
! Clean residual min=-0.068486 max=0.093336 Jy/beam
! Clean residual mean=0.000017 rms=0.024567 Jy/beam
! Combined flux in latest and established models = 2.19658 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 44 model components to the UV plane model.
! The established model now contains 55 components and 2.19658 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.400719Jy  sigma=2.279641
! Fit after  self-cal, rms=0.400510Jy  sigma=2.278489
! 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: 1.02038
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.07     KP        0.95     
!   LA        0.96     MK        0.86     NL        1.04     OV        0.99     
!   PT        0.93     SC        1.00*    
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.01328
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.14     KP        0.95     
!   LA        0.97     MK        0.89     NL        1.08     OV        1.00     
!   PT        0.84     SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.01661
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.11     KP        0.90     
!   LA        0.96     MK        0.88     NL        1.03     OV        1.02     
!   PT        0.93     SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.00459
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.07     KP        0.95     
!   LA        0.94     MK        0.96     NL        0.97     OV        1.01     
!   PT        1.06     SC        1.00*    
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.993863
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        0.96     KP        1.00     
!   LA        0.98     MK        1.03     NL        1.06     OV        1.10     
!   PT        0.92     SC        1.00*    
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.996828
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        0.84     KP        0.82     
!   LA        1.01     MK        1.09     NL        1.10     OV        1.22     
!   PT        0.95     SC        1.00*    
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.97071
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        0.94     KP        0.79     
!   LA        0.99     MK        1.12     NL        1.12     OV        1.30     
!   PT        1.04     SC        1.00*    
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.953644
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        0.92     KP        1.02     
!   LA        1.00     MK        1.16     NL        1.13     OV        1.28     
!   PT        0.98     SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.400510Jy  sigma=2.278489
! Fit after  self-cal, rms=0.313536Jy  sigma=1.786230
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2934 mas, bmaj=2.15 mas, bpa=-25.63 degrees
! Estimated noise=1.66444 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.0186083 Jy
! Component: 100  -  total flux cleaned = -0.0295642 Jy
! Component: 150  -  total flux cleaned = -0.032387 Jy
! Component: 200  -  total flux cleaned = -0.0326974 Jy
! Total flux subtracted in 200 components = -0.0326974 Jy
! Clean residual min=-0.016618 max=0.017184 Jy/beam
! Clean residual mean=-0.000060 rms=0.005313 Jy/beam
! Combined flux in latest and established models = 2.16389 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 78 components and 2.16389 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.312139Jy  sigma=1.778505
! Fit after  self-cal, rms=0.312119Jy  sigma=1.778274
! 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.000409543 Jy
! Component: 100  -  total flux cleaned = -0.000402403 Jy
! Component: 150  -  total flux cleaned = -0.000635653 Jy
! Component: 200  -  total flux cleaned = -0.00105886 Jy
! Total flux subtracted in 200 components = -0.00105886 Jy
! Clean residual min=-0.015610 max=0.015357 Jy/beam
! Clean residual mean=-0.000057 rms=0.004923 Jy/beam
! Combined flux in latest and established models = 2.16283 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 82 components and 2.16283 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.311794Jy  sigma=1.776305
! Fit after  self-cal, rms=0.301646Jy  sigma=1.698895
! Inverting map and beam 
! Estimated beam: bmin=0.2937 mas, bmaj=2.15 mas, bpa=-25.61 degrees
! Estimated noise=1.66844 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.00872118 Jy
! Component: 100  -  total flux cleaned = -0.00983882 Jy
! Component: 150  -  total flux cleaned = -0.00929648 Jy
! Component: 200  -  total flux cleaned = -0.009291 Jy
! Total flux subtracted in 200 components = -0.009291 Jy
! Clean residual min=-0.011640 max=0.012977 Jy/beam
! Clean residual mean=-0.000052 rms=0.003636 Jy/beam
! Combined flux in latest and established models = 2.15354 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 110 components and 2.15354 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.301240Jy  sigma=1.697126
! Fit after  self-cal, rms=0.301238Jy  sigma=1.697093
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0748+126_K
! Writing UV FITS file: 0748+126_K.uvf
! Writing 110 model components to file: 0748+126_K.mod
! wwins: Wrote 1 windows to 0748+126_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2937 x 2.15 at -25.61 degrees (North through East)
! Clean map  min=-0.011688  max=1.8063 Jy/beam
! Writing clean map to FITS file: 0748+126_K.fits
! Writing difmap environment to: 0748+126_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0748+126_Kuv.ps/vps,1,2
! Attempting to open device: '0748+126_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0748+126_Kim.ps/vps
! Attempting to open device: '0748+126_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.2937 mas, bmaj=2.15 mas, bpa=-25.61 degrees
! Estimated noise=1.66844 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2937 x 2.15 at -25.61 degrees (North through East)
! Clean map  min=-0.011688  max=1.8063 Jy/beam
quit
! Quitting program
! Log file 0748+126_K.log closed on Wed Oct  1 16:03:29 2003