! Started logfile: 2021+317_Q.log on Thu Apr  1 15:33:40 2004
observe 2021+317_Q.edt
! Reading UV FITS file: 2021+317_Q.edt
! AN table 1: 41 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.653117 visibilities/baseline/integration-bin.
! Found source: 2021+317
! 
! 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  4.29136e+10        8e+06          1        8e+06
!  02        2  4.29266e+10        8e+06          1        8e+06
!  03        3  4.29656e+10        8e+06          1        8e+06
!  04        4  4.30436e+10        8e+06          1        8e+06
!  05        5  4.31866e+10        8e+06          1        8e+06
!  06        6  4.32906e+10        8e+06          1        8e+06
!  07        7  4.33556e+10        8e+06          1        8e+06
!  08        8  4.33816e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1534 lines of history.
! 
! Reading 7712 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.02
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.0200x0.0200 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 115 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 165 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 174 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 144 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 86 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 97 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 92 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 252 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.750802Jy  sigma=4.310902
! Fit after  self-cal, rms=0.679001Jy  sigma=3.914296
! 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.1786 mas, bmaj=0.4065 mas, bpa=15.32 degrees
! Estimated noise=3.5804 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.598847 Jy
! Component: 100  -  total flux cleaned = 0.707287 Jy
! Total flux subtracted in 100 components = 0.707287 Jy
! Clean residual min=-0.114974 max=0.095445 Jy/beam
! Clean residual mean=0.000111 rms=0.028317 Jy/beam
! Combined flux in latest and established models = 0.707287 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.707287 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.615818Jy  sigma=3.544539
! Fit after  self-cal, rms=0.615773Jy  sigma=3.544302
! 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.2103 mas, bmaj=0.4244 mas, bpa=14.6 degrees
! Estimated noise=2.06185 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.0572929 Jy
! Component: 100  -  total flux cleaned = -0.0876724 Jy
! Component: 150  -  total flux cleaned = -0.0998627 Jy
! Component: 200  -  total flux cleaned = -0.102446 Jy
! Total flux subtracted in 200 components = -0.102446 Jy
! Clean residual min=-0.081823 max=0.067208 Jy/beam
! Clean residual mean=-0.000050 rms=0.019804 Jy/beam
! Combined flux in latest and established models = 0.604842 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 25 components and 0.604842 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.610433Jy  sigma=3.512986
! Fit after  self-cal, rms=0.610326Jy  sigma=3.512277
! 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.987009
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.85     FD        1.01     HN        0.78     KP        1.13     
!   LA        1.20     MK        1.09     OV        1.01     PT        0.93     
!   SC        1.12     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.97421
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.02     HN        0.68     KP        1.22     
!   LA        1.13     MK        1.32     OV        1.00*    PT        0.83     
!   SC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.989054
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.17     FD        0.98     HN        0.65     KP        1.14     
!   LA        1.08     MK        1.18     OV        1.00*    PT        0.90     
!   SC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.03356
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.06     HN        0.79     KP        1.10     
!   LA        1.13     MK        0.76     OV        1.00*    PT        0.88     
!   SC        1.00*    
! 
! 
! Correcting IF 5.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.968967
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        1.11     HN        0.84     KP        1.36     
!   LA        1.13     MK        1.10     OV        0.97     PT        1.11     
!   SC        0.77     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.959116
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.86     FD        1.07     HN        0.81     KP        1.12     
!   LA        1.18     MK        1.00     OV        1.12     PT        1.19     
!   SC        1.03     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.996542
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.77     FD        0.90     HN        0.81     KP        1.13     
!   LA        1.24     MK        1.08     OV        1.00     PT        1.09     
!   SC        1.01     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 1.02474
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        0.95     HN        0.77     KP        1.12     
!   LA        1.14     MK        0.88     OV        1.00*    PT        1.05     
!   SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.610326Jy  sigma=3.512277
! Fit after  self-cal, rms=0.581734Jy  sigma=3.403985
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2076 mas, bmaj=0.4156 mas, bpa=14 degrees
! Estimated noise=2.02263 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.0293304 Jy
! Component: 100  -  total flux cleaned = 0.0364569 Jy
! Component: 150  -  total flux cleaned = 0.0418206 Jy
! Component: 200  -  total flux cleaned = 0.045566 Jy
! Total flux subtracted in 200 components = 0.045566 Jy
! Clean residual min=-0.057383 max=0.045580 Jy/beam
! Clean residual mean=-0.000094 rms=0.013533 Jy/beam
! Combined flux in latest and established models = 0.650408 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 50 components and 0.650408 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.579044Jy  sigma=3.394229
! Fit after  self-cal, rms=0.579961Jy  sigma=3.391929
! 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.00228937 Jy
! Component: 100  -  total flux cleaned = 0.00262315 Jy
! Component: 150  -  total flux cleaned = 0.00326649 Jy
! Component: 200  -  total flux cleaned = 0.00356903 Jy
! Total flux subtracted in 200 components = 0.00356903 Jy
! Clean residual min=-0.056172 max=0.045650 Jy/beam
! Clean residual mean=-0.000094 rms=0.013462 Jy/beam
! Combined flux in latest and established models = 0.653977 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 61 components and 0.653977 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.579547Jy  sigma=3.390437
! Fit after  self-cal, rms=0.603893Jy  sigma=3.263135
! Inverting map and beam 
! Estimated beam: bmin=0.2076 mas, bmaj=0.4201 mas, bpa=14.84 degrees
! Estimated noise=2.07592 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.0101318 Jy
! Component: 100  -  total flux cleaned = 0.0129521 Jy
! Component: 150  -  total flux cleaned = 0.0144896 Jy
! Component: 200  -  total flux cleaned = 0.0160383 Jy
! Total flux subtracted in 200 components = 0.0160383 Jy
! Clean residual min=-0.028425 max=0.032613 Jy/beam
! Clean residual mean=0.000056 rms=0.007132 Jy/beam
! Combined flux in latest and established models = 0.670015 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 68 components and 0.670015 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.603445Jy  sigma=3.259852
! Fit after  self-cal, rms=0.604092Jy  sigma=3.258640
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2021+317_Q
! Writing UV FITS file: 2021+317_Q.uvf
! Writing 68 model components to file: 2021+317_Q.mod
! wwins: Wrote 1 windows to 2021+317_Q.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2076 x 0.4201 at 14.84 degrees (North through East)
! Clean map  min=-0.027858  max=0.71373 Jy/beam
! Writing clean map to FITS file: 2021+317_Q.fits
! Writing difmap environment to: 2021+317_Q.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2021+317_Quv.ps/vps,1,2
! Attempting to open device: '2021+317_Quv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2021+317_Qim.ps/vps
! Attempting to open device: '2021+317_Qim.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.2076 mas, bmaj=0.4201 mas, bpa=14.84 degrees
! Estimated noise=2.07592 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2076 x 0.4201 at 14.84 degrees (North through East)
! Clean map  min=-0.027858  max=0.71373 Jy/beam
quit
! Quitting program
! Log file 2021+317_Q.log closed on Thu Apr  1 15:34:00 2004