! Started logfile: 1548+056_K.log on Wed Oct  1 16:44:33 2003
observe 1548+056_K.edt
! Reading UV FITS file: 1548+056_K.edt
! AN table 1: 68 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.925817 visibilities/baseline/integration-bin.
! Found source: J1550+05
! 
! 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 1190 lines of history.
! 
! Reading 22664 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 126 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 157 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 126 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 126 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 126 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 126 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 126 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 126 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.887038Jy  sigma=5.193604
! Fit after  self-cal, rms=0.884270Jy  sigma=5.177404
! 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.2203 mas, bmaj=0.7238 mas, bpa=-4.863 degrees
! Estimated noise=1.62024 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 = 1.15149 Jy
! Component: 100  -  total flux cleaned = 1.46159 Jy
! Total flux subtracted in 100 components = 1.46159 Jy
! Clean residual min=-0.140157 max=0.142870 Jy/beam
! Clean residual mean=0.000515 rms=0.032767 Jy/beam
! Combined flux in latest and established models = 1.46159 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 1.4616 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.643666Jy  sigma=3.768621
! Fit after  self-cal, rms=0.643632Jy  sigma=3.768426
! 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.2577 mas, bmaj=0.7914 mas, bpa=-4.233 degrees
! Estimated noise=0.947401 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.254319 Jy
! Component: 100  -  total flux cleaned = 0.395396 Jy
! Component: 150  -  total flux cleaned = 0.481381 Jy
! Component: 200  -  total flux cleaned = 0.53776 Jy
! Total flux subtracted in 200 components = 0.53776 Jy
! Clean residual min=-0.082449 max=0.133304 Jy/beam
! Clean residual mean=0.000284 rms=0.027825 Jy/beam
! Combined flux in latest and established models = 1.99935 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 59 components and 1.99935 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.534160Jy  sigma=3.127452
! Fit after  self-cal, rms=0.533805Jy  sigma=3.125369
! 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.00176
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     HN        1.11     KP        0.91     
!   LA        0.92     MK        0.87     NL        1.28     OV        0.98     
!   PT        0.86     SC        1.07     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.996628
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.94     HN        1.15     KP        0.92     
!   LA        0.92     MK        0.90     NL        1.37     OV        1.01     
!   PT        0.77     SC        1.06     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00646
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.05     HN        1.08     KP        0.88     
!   LA        0.91     MK        0.91     NL        1.25     OV        1.00     
!   PT        0.87     SC        0.99     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.991348
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.08     HN        1.07     KP        0.91     
!   LA        0.91     MK        0.98     NL        1.16     OV        1.00     
!   PT        0.97     SC        1.01     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.992336
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     HN        0.99     KP        0.97     
!   LA        0.94     MK        1.05     NL        1.24     OV        1.11     
!   PT        0.86     SC        0.93     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.969996
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.17     HN        0.86     KP        0.80     
!   LA        0.97     MK        1.10     NL        1.35     OV        1.23     
!   PT        0.91     SC        0.91     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.947779
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.13     HN        0.95     KP        0.80     
!   LA        0.97     MK        1.10     NL        1.34     OV        1.33     
!   PT        0.97     SC        0.94     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.918998
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.12     HN        0.95     KP        1.09     
!   LA        0.97     MK        1.14     NL        1.43     OV        1.32     
!   PT        0.91     SC        0.94     
! 
! 
! Fit before self-cal, rms=0.533805Jy  sigma=3.125369
! Fit after  self-cal, rms=0.457469Jy  sigma=2.720741
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2584 mas, bmaj=0.7954 mas, bpa=-3.882 degrees
! Estimated noise=0.896064 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.0566209 Jy
! Component: 100  -  total flux cleaned = -0.0725043 Jy
! Component: 150  -  total flux cleaned = -0.0719565 Jy
! Component: 200  -  total flux cleaned = -0.0714829 Jy
! Total flux subtracted in 200 components = -0.0714829 Jy
! Clean residual min=-0.052932 max=0.066199 Jy/beam
! Clean residual mean=0.000225 rms=0.014876 Jy/beam
! Combined flux in latest and established models = 1.92787 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 77 components and 1.92787 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.450893Jy  sigma=2.677634
! Fit after  self-cal, rms=0.451004Jy  sigma=2.677051
! 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.000669706 Jy
! Component: 100  -  total flux cleaned = -0.000212733 Jy
! Component: 150  -  total flux cleaned = 0.000174106 Jy
! Component: 200  -  total flux cleaned = 0.000174119 Jy
! Total flux subtracted in 200 components = 0.000174119 Jy
! Clean residual min=-0.052357 max=0.064874 Jy/beam
! Clean residual mean=0.000226 rms=0.014710 Jy/beam
! Combined flux in latest and established models = 1.92805 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 84 components and 1.92805 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.450306Jy  sigma=2.672757
! Fit after  self-cal, rms=0.430583Jy  sigma=2.537159
! Inverting map and beam 
! Estimated beam: bmin=0.2573 mas, bmaj=0.7925 mas, bpa=-3.753 degrees
! Estimated noise=0.894651 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.00852716 Jy
! Component: 100  -  total flux cleaned = 0.00899137 Jy
! Component: 150  -  total flux cleaned = 0.00978476 Jy
! Component: 200  -  total flux cleaned = 0.0104994 Jy
! Total flux subtracted in 200 components = 0.0104994 Jy
! Clean residual min=-0.044488 max=0.057281 Jy/beam
! Clean residual mean=0.000191 rms=0.012550 Jy/beam
! Combined flux in latest and established models = 1.93854 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 87 components and 1.93854 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.429722Jy  sigma=2.532109
! Fit after  self-cal, rms=0.429733Jy  sigma=2.531944
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1548+056_K
! Writing UV FITS file: 1548+056_K.uvf
! Writing 87 model components to file: 1548+056_K.mod
! wwins: Wrote 1 windows to 1548+056_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2573 x 0.7925 at -3.753 degrees (North through East)
! Clean map  min=-0.043792  max=1.4849 Jy/beam
! Writing clean map to FITS file: 1548+056_K.fits
! Writing difmap environment to: 1548+056_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1548+056_Kuv.ps/vps,1,2
! Attempting to open device: '1548+056_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1548+056_Kim.ps/vps
! Attempting to open device: '1548+056_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.2573 mas, bmaj=0.7925 mas, bpa=-3.753 degrees
! Estimated noise=0.894651 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2573 x 0.7925 at -3.753 degrees (North through East)
! Clean map  min=-0.043792  max=1.4849 Jy/beam
quit
! Quitting program
! Log file 1548+056_K.log closed on Wed Oct  1 16:45:13 2003