! Started logfile: 1156+295_S.log on Thu Oct 22 19:58:35 1998
observe 1156+295_S.edt
! Reading UV FITS file: 1156+295_S.edt
! AN table 1: 138 integrations on 106 of 120 possible baselines.
! AN table 2: 69 integrations on 78 of 78 possible baselines.
! AN table 3: 61 integrations on 79 of 105 possible baselines.
! Apparent sampling: 0.207701 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1156+295
! 
! 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 1602 lines of history.
! 
! Reading 20628 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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.400x0.400 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 1617 telescope corrections were flagged in sub-array 1.
!  A total of 690 telescope corrections were flagged in sub-array 2.
!  A total of 610 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1697 telescope corrections were flagged in sub-array 1.
!  A total of 690 telescope corrections were flagged in sub-array 2.
!  A total of 610 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1702 telescope corrections were flagged in sub-array 1.
!  A total of 691 telescope corrections were flagged in sub-array 2.
!  A total of 610 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1702 telescope corrections were flagged in sub-array 1.
!  A total of 690 telescope corrections were flagged in sub-array 2.
!  A total of 610 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.472532Jy  sigma=2.521281
! Fit after  self-cal, rms=0.470782Jy  sigma=2.513645
! 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.37 mas, bmaj=4.272 mas, bpa=-14.4 degrees
! Estimated noise=1.83452 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.861114 Jy
! Total flux subtracted in 50 components = 0.861114 Jy
! Clean residual min=-0.039507 max=0.240962 Jy/beam
! Clean residual mean=0.000335 rms=0.012640 Jy/beam
! Combined flux in latest and established models = 0.861114 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.861114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.551287Jy  sigma=2.948416
! Fit after  self-cal, rms=0.551258Jy  sigma=2.948230
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.2132 Jy
! Total flux subtracted in 50 components = 0.2132 Jy
! Clean residual min=-0.033852 max=0.099387 Jy/beam
! Clean residual mean=0.000236 rms=0.009202 Jy/beam
! Combined flux in latest and established models = 1.07431 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 1.07431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436634Jy  sigma=2.329280
! Fit after  self-cal, rms=0.436239Jy  sigma=2.327296
! Inverting map 
! Added new window around map position (1.6, 4.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.122643 Jy
! Total flux subtracted in 50 components = 0.122643 Jy
! Clean residual min=-0.029784 max=0.074694 Jy/beam
! Clean residual mean=0.000178 rms=0.007881 Jy/beam
! Combined flux in latest and established models = 1.19696 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 25 components and 1.19696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387330Jy  sigma=2.062153
! Fit after  self-cal, rms=0.386459Jy  sigma=2.057690
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0901565 Jy
! Total flux subtracted in 50 components = 0.0901565 Jy
! Clean residual min=-0.028991 max=0.063319 Jy/beam
! Clean residual mean=0.000135 rms=0.007017 Jy/beam
! Combined flux in latest and established models = 1.28711 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 30 components and 1.28711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355539Jy  sigma=1.889584
! Fit after  self-cal, rms=0.354960Jy  sigma=1.886592
! Inverting map 
! Added new window around map position (4.8, 5.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0717601 Jy
! Total flux subtracted in 50 components = 0.0717601 Jy
! Clean residual min=-0.028465 max=0.043220 Jy/beam
! Clean residual mean=0.000100 rms=0.006408 Jy/beam
! Combined flux in latest and established models = 1.35887 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 35 components and 1.35887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333826Jy  sigma=1.771544
! Fit after  self-cal, rms=0.333415Jy  sigma=1.769414
! 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=2.983 mas, bmaj=5.29 mas, bpa=-13.82 degrees
! Estimated noise=1.00812 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.111941 Jy
! Component: 100  -  total flux cleaned = 0.184382 Jy
! Total flux subtracted in 100 components = 0.184382 Jy
! Clean residual min=-0.028312 max=0.052953 Jy/beam
! Clean residual mean=0.001499 rms=0.008709 Jy/beam
! Combined flux in latest and established models = 1.54326 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 59 model components to the UV plane model.
! The established model now contains 89 components and 1.54326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295975Jy  sigma=1.564523
! Fit after  self-cal, rms=0.295198Jy  sigma=1.560324
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.97     GC        1.00     GN        1.10     
!   HN        0.98     KK        0.95     KP        0.98     LA        0.99     
!   MC        1.23     NL        0.94     ON        1.00*    OV        0.97     
!   PT        0.93     SC        0.99     WF        0.88     MK        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.06     GN        1.00     
!   HN        1.02     KP        0.97     LA        0.84     MC        0.96     
!   NL        0.95     ON        0.96     OV        1.02     SC        0.92     
!   WF        0.86     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.86     FD        0.97     GC        1.02     GN        0.99     
!   HN        1.19     KK        1.16     KP        0.76     LA        0.80     
!   MC        1.00*    NL        0.79     ON        1.00*    OV        0.82     
!   PT        0.81     WF        1.02     MK        0.94     
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        0.98     GC        1.00     GN        1.08     
!   HN        0.98     KK        0.97     KP        0.98     LA        0.97     
!   MC        0.62     NL        1.04     ON        1.00*    OV        0.96     
!   PT        0.94     SC        1.02     WF        1.00     MK        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00     GC        1.04     GN        0.97     
!   HN        1.04     KP        0.98     LA        0.94     MC        0.92     
!   NL        1.02     ON        0.95     OV        1.02     SC        1.00     
!   WF        1.03     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.90     FD        0.97     GC        1.02     GN        0.97     
!   HN        1.16     KK        1.00     KP        0.79     LA        0.81     
!   MC        1.00*    NL        1.03     ON        1.00*    OV        0.82     
!   PT        0.80     WF        1.09     MK        0.95     
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.13     FD        1.01     GC        1.01     GN        1.15     
!   HN        0.96     KK        0.96     KP        1.01     LA        1.00     
!   MC        1.00*    NL        1.07     ON        1.00*    OV        1.00     
!   PT        0.97     SC        1.04     WF        1.01     MK        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.05     GC        1.09     GN        1.00     
!   HN        1.07     KP        1.01     LA        1.00     MC        1.06     
!   NL        1.05     ON        0.94     OV        1.02     SC        0.96     
!   WF        1.05     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.01     GC        1.07     GN        1.00     
!   HN        1.22     KK        1.04     KP        0.81     LA        0.78     
!   MC        1.00*    NL        1.07     ON        1.00*    OV        0.85     
!   PT        0.84     WF        1.12     MK        0.92     
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.15     FD        1.03     GC        1.02     GN        1.14     
!   HN        1.00     KK        0.98     KP        1.02     LA        1.01     
!   MC        1.00*    NL        1.06     ON        1.00*    OV        1.07     
!   PT        0.98     SC        1.05     WF        1.02     MK        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.05     GC        1.06     GN        1.02     
!   HN        1.08     KP        1.02     LA        0.99     MC        2.60     
!   NL        1.07     ON        0.96     OV        1.06     SC        1.03     
!   WF        1.06     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.02     GC        1.07     GN        1.00     
!   HN        1.20     KK        1.09     KP        0.84     LA        0.82     
!   MC        1.00*    NL        1.07     ON        1.00*    OV        0.88     
!   PT        0.85     WF        1.08     MK        0.95     
! 
! 
! Fit before self-cal, rms=0.295198Jy  sigma=1.560324
! Fit after  self-cal, rms=0.211179Jy  sigma=1.091205
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.067 mas, bmaj=5.403 mas, bpa=-13.87 degrees
! Estimated noise=0.990009 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 (7.2, 8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.03171 Jy
! Component: 100  -  total flux cleaned = 0.0505447 Jy
! Total flux subtracted in 100 components = 0.0505447 Jy
! Clean residual min=-0.008378 max=0.016053 Jy/beam
! Clean residual mean=0.001342 rms=0.002465 Jy/beam
! Combined flux in latest and established models = 1.5938 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 112 components and 1.5938 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206802Jy  sigma=1.064607
! Fit after  self-cal, rms=0.206502Jy  sigma=1.062690
! Inverting map 
! Added new window around map position (2, 19.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0179682 Jy
! Component: 100  -  total flux cleaned = 0.0270434 Jy
! Total flux subtracted in 100 components = 0.0270434 Jy
! Clean residual min=-0.008004 max=0.011167 Jy/beam
! Clean residual mean=0.001047 rms=0.002232 Jy/beam
! Combined flux in latest and established models = 1.62084 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 129 components and 1.62084 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204892Jy  sigma=1.053021
! Fit after  self-cal, rms=0.204800Jy  sigma=1.052532
! 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.00678862 Jy
! Component: 100  -  total flux cleaned = 0.011601 Jy
! Total flux subtracted in 100 components = 0.011601 Jy
! Clean residual min=-0.007545 max=0.010851 Jy/beam
! Clean residual mean=0.000920 rms=0.002138 Jy/beam
! Combined flux in latest and established models = 1.63244 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 140 components and 1.63244 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203995Jy  sigma=1.047848
! Fit after  self-cal, rms=0.185797Jy  sigma=0.946569
! Inverting map and beam 
! Estimated beam: bmin=3.064 mas, bmaj=5.394 mas, bpa=-13.89 degrees
! Estimated noise=0.99284 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.0116738 Jy
! Component: 100  -  total flux cleaned = 0.0198783 Jy
! Total flux subtracted in 100 components = 0.0198783 Jy
! Clean residual min=-0.004718 max=0.007815 Jy/beam
! Clean residual mean=0.000659 rms=0.001409 Jy/beam
! Combined flux in latest and established models = 1.65232 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 161 components and 1.65232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185079Jy  sigma=0.942056
! Fit after  self-cal, rms=0.185018Jy  sigma=0.941695
! Inverting map 
! Added new window around map position (0.4, 31.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00630197 Jy
! Component: 100  -  total flux cleaned = 0.0100821 Jy
! Total flux subtracted in 100 components = 0.0100821 Jy
! Clean residual min=-0.004510 max=0.006807 Jy/beam
! Clean residual mean=0.000548 rms=0.001325 Jy/beam
! Combined flux in latest and established models = 1.6624 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 182 components and 1.6624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184601Jy  sigma=0.939086
! Fit after  self-cal, rms=0.184575Jy  sigma=0.938970
! Inverting map 
! Added new window around map position (-16.8, 50.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00443716 Jy
! Component: 100  -  total flux cleaned = 0.00763387 Jy
! Total flux subtracted in 100 components = 0.00763387 Jy
! Clean residual min=-0.004536 max=0.006160 Jy/beam
! Clean residual mean=0.000461 rms=0.001261 Jy/beam
! Combined flux in latest and established models = 1.67004 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 196 components and 1.67004 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184270Jy  sigma=0.937175
! Fit after  self-cal, rms=0.184246Jy  sigma=0.937087
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1156+295_S
! Writing UV FITS file: 1156+295_S.uvf
! Writing 196 model components to file: 1156+295_S.mod
! wwins: Wrote 7 windows to 1156+295_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.064 x 5.394 at -13.89 degrees (North through East)
! Clean map  min=-0.004465  max=1.1463 Jy/beam
! Writing clean map to FITS file: 1156+295_S.fits
! Writing difmap environment to: 1156+295_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1156+295_Suv.ps/vps,1,2
! Attempting to open device: '1156+295_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1156+295_Sim.ps/vps
! Attempting to open device: '1156+295_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.064 mas, bmaj=5.394 mas, bpa=-13.89 degrees
! Estimated noise=0.99284 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.064 x 5.394 at -13.89 degrees (North through East)
! Clean map  min=-0.004465  max=1.1463 Jy/beam
quit
! Quitting program
! Log file 1156+295_S.log closed on Thu Oct 22 20:05:02 1998