! Started logfile: 1520+437_K.log on Wed Oct  1 16:43:15 2003
observe 1520+437_K
! Reading UV FITS file: 1520+437_K
! AN table 1: 38 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.264327 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1521+43
! 
! 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 3616 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 229 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 380 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 380 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 230 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 380 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 242 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 380 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 380 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.861159Jy  sigma=5.023347
! Fit after  self-cal, rms=0.790077Jy  sigma=4.610098
! 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 win_mult
! Inverting map and beam 
! Estimated beam: bmin=0.3271 mas, bmaj=2.225 mas, bpa=4.268 degrees
! Estimated noise=5.18572 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.182841 Jy
! Component: 100  -  total flux cleaned = 0.222984 Jy
! Total flux subtracted in 100 components = 0.222984 Jy
! Clean residual min=-0.017170 max=0.020033 Jy/beam
! Clean residual mean=0.000007 rms=0.006602 Jy/beam
! Combined flux in latest and established models = 0.222984 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.222984 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.225850Jy  sigma=1.316134
! Fit after  self-cal, rms=0.225838Jy  sigma=1.316086
! 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.377 mas, bmaj=2.169 mas, bpa=5.578 degrees
! Estimated noise=4.79589 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.017452 Jy
! Component: 100  -  total flux cleaned = 0.0185391 Jy
! Component: 150  -  total flux cleaned = 0.0188354 Jy
! Component: 200  -  total flux cleaned = 0.0195196 Jy
! Total flux subtracted in 200 components = 0.0195196 Jy
! Clean residual min=-0.014718 max=0.013274 Jy/beam
! Clean residual mean=0.000027 rms=0.004556 Jy/beam
! Combined flux in latest and established models = 0.242504 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 88 model components to the UV plane model.
! The established model now contains 97 components and 0.242504 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.223918Jy  sigma=1.304629
! Fit after  self-cal, rms=0.223906Jy  sigma=1.304505
! 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.02657
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.02     
!   LA        1.00*    MK        0.99     NL        1.00*    OV        0.89     
!   PT        0.84     SC        1.00*    
! 
! 
! Correcting IF 2.
!  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*    
! 
! 
! Correcting IF 3.
!  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*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.993037
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.08     
!   LA        0.91     MK        1.00*    NL        1.00*    OV        1.00     
!   PT        1.08     SC        1.00*    
! 
! 
! Correcting IF 5.
!  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*    
! 
! 
! Correcting IF 6.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.974978
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.09     MK        1.05     NL        0.99     OV        1.13     
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 7.
!  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*    
! 
! 
! Correcting IF 8.
!  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.223906Jy  sigma=1.304505
! Fit after  self-cal, rms=0.221092Jy  sigma=1.308717
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3834 mas, bmaj=2.144 mas, bpa=5.567 degrees
! Estimated noise=4.88997 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.00193972 Jy
! Component: 100  -  total flux cleaned = 0.00361893 Jy
! Component: 150  -  total flux cleaned = 0.00497072 Jy
! Component: 200  -  total flux cleaned = 0.00552822 Jy
! Total flux subtracted in 200 components = 0.00552822 Jy
! Clean residual min=-0.010309 max=0.009512 Jy/beam
! Clean residual mean=0.000052 rms=0.003081 Jy/beam
! Combined flux in latest and established models = 0.248032 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 134 components and 0.248032 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.220963Jy  sigma=1.307767
! Fit after  self-cal, rms=0.220988Jy  sigma=1.307615
! 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.000653827 Jy
! Component: 100  -  total flux cleaned = 0.00107794 Jy
! Component: 150  -  total flux cleaned = 0.00145547 Jy
! Component: 200  -  total flux cleaned = 0.00173987 Jy
! Total flux subtracted in 200 components = 0.00173987 Jy
! Clean residual min=-0.009760 max=0.009569 Jy/beam
! Clean residual mean=0.000053 rms=0.002990 Jy/beam
! Combined flux in latest and established models = 0.249772 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 161 components and 0.249772 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.220956Jy  sigma=1.307373
! Fit after  self-cal, rms=0.223153Jy  sigma=1.299598
! Inverting map and beam 
! Estimated beam: bmin=0.3856 mas, bmaj=2.136 mas, bpa=5.718 degrees
! Estimated noise=4.9258 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.00375284 Jy
! Component: 100  -  total flux cleaned = 0.00446891 Jy
! Component: 150  -  total flux cleaned = 0.00480323 Jy
! Component: 200  -  total flux cleaned = 0.00522481 Jy
! Total flux subtracted in 200 components = 0.00522481 Jy
! Clean residual min=-0.009676 max=0.007384 Jy/beam
! Clean residual mean=0.000034 rms=0.002678 Jy/beam
! Combined flux in latest and established models = 0.254997 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 188 components and 0.254997 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.223084Jy  sigma=1.299040
! Fit after  self-cal, rms=0.223101Jy  sigma=1.298975
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1520+437_K
! Writing UV FITS file: 1520+437_K.uvf
! Writing 188 model components to file: 1520+437_K.mod
! wwins: Wrote 1 windows to 1520+437_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3856 x 2.136 at 5.718 degrees (North through East)
! Clean map  min=-0.0096505  max=0.24116 Jy/beam
! Writing clean map to FITS file: 1520+437_K.fits
! Writing difmap environment to: 1520+437_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1520+437_Kuv.ps/vps,1,2
! Attempting to open device: '1520+437_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1520+437_Kim.ps/vps
! Attempting to open device: '1520+437_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.3856 mas, bmaj=2.136 mas, bpa=5.718 degrees
! Estimated noise=4.9258 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3856 x 2.136 at 5.718 degrees (North through East)
! Clean map  min=-0.0096505  max=0.24116 Jy/beam
quit
! Quitting program
! Log file 1520+437_K.log closed on Wed Oct  1 16:43:56 2003