! Started logfile: 2147+077_S.log on Mon Feb  2 21:13:01 1998
observe 2147+077_S.edt
! Reading UV FITS file: 2147+077_S.edt
! AN table 1: 29 integrations on 55 of 55 possible baselines.
! Apparent sampling: 0.50094 visibilities/baseline/integration-bin.
! Found source: 2147+077
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 784 lines of history.
! 
! Reading 3196 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.5
integer clean_niter
clean_niter = 50
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.500x0.500 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
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 179 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 179 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 179 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 179 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.641195Jy  sigma=3.181566
! Fit after  self-cal, rms=0.641085Jy  sigma=3.181047
! 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=2.543 mas, bmaj=13.72 mas, bpa=-13.13 degrees
! Estimated noise=3.76 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=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.26035 Jy
! Total flux subtracted in 50 components = 0.26035 Jy
! Clean residual min=-0.023175 max=0.074893 Jy/beam
! Clean residual mean=0.000073 rms=0.008455 Jy/beam
! Combined flux in latest and established models = 0.26035 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.26035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168911Jy  sigma=0.836360
! Fit after  self-cal, rms=0.168828Jy  sigma=0.835950
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0805503 Jy
! Total flux subtracted in 50 components = 0.0805503 Jy
! Clean residual min=-0.013297 max=0.037582 Jy/beam
! Clean residual mean=0.000035 rms=0.005247 Jy/beam
! Combined flux in latest and established models = 0.3409 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 13 components and 0.340901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125035Jy  sigma=0.618770
! Fit after  self-cal, rms=0.124985Jy  sigma=0.618524
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0423761 Jy
! Total flux subtracted in 50 components = 0.0423761 Jy
! Clean residual min=-0.011380 max=0.021545 Jy/beam
! Clean residual mean=0.000016 rms=0.003947 Jy/beam
! Combined flux in latest and established models = 0.383277 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 19 components and 0.383277 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108748Jy  sigma=0.537985
! Fit after  self-cal, rms=0.108696Jy  sigma=0.537729
! 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=3.209 mas, bmaj=13.45 mas, bpa=-12.77 degrees
! Estimated noise=2.79981 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0401313 Jy
! Component: 100  -  total flux cleaned = 0.0641257 Jy
! Total flux subtracted in 100 components = 0.0641257 Jy
! Clean residual min=-0.009905 max=0.013359 Jy/beam
! Clean residual mean=-0.000009 rms=0.003102 Jy/beam
! Combined flux in latest and established models = 0.447402 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 38 components and 0.447402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094164Jy  sigma=0.465606
! Fit after  self-cal, rms=0.093923Jy  sigma=0.464418
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.97     GN        0.88     HN        0.98     
!   KK        1.11     KP        0.95     LA        0.94     MK        1.01     
!   NL        0.91     OV        0.96     PT        0.94     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.95     GN        0.85     HN        0.99     
!   KK        1.02     KP        0.99     LA        0.96     MK        1.07     
!   NL        0.93     OV        0.98     PT        0.97     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00     GN        0.94     HN        1.02     
!   KK        1.07     KP        0.98     LA        0.93     MK        1.06     
!   NL        0.99     OV        1.01     PT        0.96     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.01     GN        0.94     HN        1.02     
!   KK        1.11     KP        0.98     LA        1.01     MK        1.05     
!   NL        1.00     OV        1.01     PT        0.96     
! 
! 
! Fit before self-cal, rms=0.093923Jy  sigma=0.464418
! Fit after  self-cal, rms=0.086251Jy  sigma=0.434850
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.255 mas, bmaj=13.73 mas, bpa=-12.58 degrees
! Estimated noise=2.71953 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104965 Jy
! Component: 100  -  total flux cleaned = 0.0152101 Jy
! Total flux subtracted in 100 components = 0.0152101 Jy
! Clean residual min=-0.004572 max=0.004720 Jy/beam
! Clean residual mean=0.000003 rms=0.001236 Jy/beam
! Combined flux in latest and established models = 0.462612 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 50 components and 0.462613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.085092Jy  sigma=0.428962
! Fit after  self-cal, rms=0.085016Jy  sigma=0.428534
! 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00258696 Jy
! Component: 100  -  total flux cleaned = 0.0029938 Jy
! Total flux subtracted in 100 components = 0.0029938 Jy
! Clean residual min=-0.004388 max=0.004228 Jy/beam
! Clean residual mean=0.000001 rms=0.001173 Jy/beam
! Combined flux in latest and established models = 0.465606 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 0.465606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084861Jy  sigma=0.427758
! Fit after  self-cal, rms=0.084111Jy  sigma=0.424044
! Inverting map and beam 
! Estimated beam: bmin=3.245 mas, bmaj=13.71 mas, bpa=-12.57 degrees
! Estimated noise=2.72197 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00291906 Jy
! Component: 100  -  total flux cleaned = 0.00376075 Jy
! Total flux subtracted in 100 components = 0.00376075 Jy
! Clean residual min=-0.004145 max=0.003881 Jy/beam
! Clean residual mean=-0.000001 rms=0.001105 Jy/beam
! Combined flux in latest and established models = 0.469367 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 65 components and 0.469367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084005Jy  sigma=0.423490
! Fit after  self-cal, rms=0.083995Jy  sigma=0.423455
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2147+077_S
! Writing UV FITS file: 2147+077_S.uvf
! Writing 65 model components to file: 2147+077_S.mod
! wwins: Wrote 1 windows to 2147+077_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.245 x 13.71 at -12.57 degrees (North through East)
! Clean map  min=-0.0039922  max=0.35891 Jy/beam
! Writing clean map to FITS file: 2147+077_S.fits
! Writing difmap environment to: 2147+077_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2147+077_Suv.ps/vps,1,2
! Attempting to open device: '2147+077_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 2147+077_Sim.ps/vps
! Attempting to open device: '2147+077_Sim.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=3.245 mas, bmaj=13.71 mas, bpa=-12.57 degrees
! Estimated noise=2.72197 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.245 x 13.71 at -12.57 degrees (North through East)
! Clean map  min=-0.0039922  max=0.35891 Jy/beam
quit
! Quitting program
! Log file 2147+077_S.log closed on Mon Feb  2 21:18:12 1998