! Started logfile: 2356+385_S.log on Fri Apr 21 11:13:48 2000
observe 2356+385_S.edt
! Reading UV FITS file: 2356+385_S.edt
! AN table 1: 120 integrations on 77 of 91 possible baselines.
! AN table 2: 61 integrations on 3 of 3 possible baselines.
! Apparent sampling: 0.304256 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2356+385
! 
! 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 1239 lines of history.
! 
! Reading 11468 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 944 telescope corrections were flagged in sub-array 1.
!  A total of 87 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 944 telescope corrections were flagged in sub-array 1.
!  A total of 87 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 973 telescope corrections were flagged in sub-array 1.
!  A total of 183 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 979 telescope corrections were flagged in sub-array 1.
!  A total of 96 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.685067Jy  sigma=4.010896
! Fit after  self-cal, rms=0.683763Jy  sigma=4.004884
! 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.047 mas, bmaj=3.573 mas, bpa=0.7738 degrees
! Estimated noise=2.25327 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.241191 Jy
! Total flux subtracted in 50 components = 0.241191 Jy
! Clean residual min=-0.018712 max=0.067281 Jy/beam
! Clean residual mean=0.000032 rms=0.005437 Jy/beam
! Combined flux in latest and established models = 0.241191 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.241191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174526Jy  sigma=1.018674
! Fit after  self-cal, rms=0.174526Jy  sigma=1.018674
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0574529 Jy
! Total flux subtracted in 50 components = 0.0574529 Jy
! Clean residual min=-0.015236 max=0.023849 Jy/beam
! Clean residual mean=0.000023 rms=0.003886 Jy/beam
! Combined flux in latest and established models = 0.298643 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.298643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152525Jy  sigma=0.889328
! Fit after  self-cal, rms=0.152496Jy  sigma=0.889152
! 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.595 mas, bmaj=3.891 mas, bpa=-1.905 degrees
! Estimated noise=1.20328 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.0430998 Jy
! Component: 100  -  total flux cleaned = 0.0669049 Jy
! Total flux subtracted in 100 components = 0.0669049 Jy
! Clean residual min=-0.010539 max=0.013781 Jy/beam
! Clean residual mean=0.000041 rms=0.002635 Jy/beam
! Combined flux in latest and established models = 0.365548 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 28 components and 0.365548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141208Jy  sigma=0.823064
! Fit after  self-cal, rms=0.141185Jy  sigma=0.822930
! 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 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.06     GC        1.02     GN        1.02     
!   HN        0.94     KP        0.87     LA        0.91     MC        1.26     
!   NL        0.85     ON        0.93     OV        1.00     PT        0.94     
!   SC        0.90     WF        1.00     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.00     GC        1.04     GN        0.95     
!   HN        0.96     KP        0.90     LA        0.96     MC        1.12     
!   NL        0.97     ON        1.01     OV        0.92     PT        0.85     
!   SC        1.02     WF        1.03     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     GC        1.09     GN        0.86     
!   HN        1.18     KP        1.05     LA        0.93     MC        1.17     
!   NL        1.01     ON        0.79     OV        1.02     PT        0.94     
!   SC        1.16     WF        0.92     
! 
!  Telescope amplitude corrections in sub-array 2:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.91     GC        0.93     GN        1.07     
!   HN        1.16     KP        1.04     LA        0.85     MC        0.96     
!   NL        1.03     ON        0.94     OV        0.94     PT        0.99     
!   SC        1.27     WF        0.94     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Fit before self-cal, rms=0.141185Jy  sigma=0.822930
! Fit after  self-cal, rms=0.131002Jy  sigma=0.789548
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.569 mas, bmaj=4.044 mas, bpa=-0.9338 degrees
! Estimated noise=1.20122 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.0047544 Jy
! Component: 100  -  total flux cleaned = 0.00553678 Jy
! Total flux subtracted in 100 components = 0.00553678 Jy
! Clean residual min=-0.006282 max=0.006417 Jy/beam
! Clean residual mean=0.000001 rms=0.001316 Jy/beam
! Combined flux in latest and established models = 0.371085 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 35 components and 0.371085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130847Jy  sigma=0.788647
! Fit after  self-cal, rms=0.130879Jy  sigma=0.788529
! 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.000285015 Jy
! Component: 100  -  total flux cleaned = 0.000285983 Jy
! Total flux subtracted in 100 components = 0.000285983 Jy
! Clean residual min=-0.006278 max=0.006280 Jy/beam
! Clean residual mean=0.000001 rms=0.001312 Jy/beam
! Combined flux in latest and established models = 0.371371 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 37 components and 0.371371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130848Jy  sigma=0.788351
! Fit after  self-cal, rms=0.128175Jy  sigma=0.775368
! Inverting map and beam 
! Estimated beam: bmin=2.555 mas, bmaj=4.043 mas, bpa=-1.608 degrees
! Estimated noise=1.20431 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.00431083 Jy
! Component: 100  -  total flux cleaned = 0.00544822 Jy
! Total flux subtracted in 100 components = 0.00544822 Jy
! Clean residual min=-0.004654 max=0.004739 Jy/beam
! Clean residual mean=0.000001 rms=0.001003 Jy/beam
! Combined flux in latest and established models = 0.376819 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 39 components and 0.376819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128042Jy  sigma=0.774709
! Fit after  self-cal, rms=0.128054Jy  sigma=0.774679
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2356+385_S
! Writing UV FITS file: 2356+385_S.uvf
! Writing 39 model components to file: 2356+385_S.mod
! wwins: Wrote 1 windows to 2356+385_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.555 x 4.043 at -1.608 degrees (North through East)
! Clean map  min=-0.0044041  max=0.32303 Jy/beam
! Writing clean map to FITS file: 2356+385_S.fits
! Writing difmap environment to: 2356+385_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2356+385_Suv.ps/vps,1,2
! Attempting to open device: '2356+385_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 2356+385_Sim.ps/vps
! Attempting to open device: '2356+385_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=2.555 mas, bmaj=4.043 mas, bpa=-1.608 degrees
! Estimated noise=1.20431 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.555 x 4.043 at -1.608 degrees (North through East)
! Clean map  min=-0.0044041  max=0.32303 Jy/beam
quit
! Quitting program
! Log file 2356+385_S.log closed on Fri Apr 21 11:14:51 2000