subroutine hec_dig_read_weights c c read parameters for amplitude weights c read raw t0's c from file dig_weight_amp.dat c c read parameters for amplitude for time weights c from file dig_weight_tim.dat c c compute t0's c implicit none c include'hec_par.inc' ! shared parameters include'hec_datacard.inc' include'hec_dig.inc' ! digital filtering common include'hec_dig_sys.inc' ! digital filtering system common include'hec_geo.inc' ! geometry correspondence tables c c local variables c integer ic, i_t, iw integer dig_weight_version_tim character*8 cg integer n_raw, n, n_p real t0_raw, t0_raw_ref integer nbad, ic_bad(i_adc_dim), i, j c c open file for parameters for amplitude weights and raw t0's c open(unit=10,file='dig_weights_amp.dat',status='OLD') c c see inc/hec_dig_sys.inc for a description of the variables c read (10,*,ERR=11,END=10) dig_weight_version read (10,fmt='(I1)',ERR=11,END=10) dig_nslice read (10,fmt='(I1)',ERR=11,END=10) dig_nwpar read (10,fmt='(I1)',ERR=11,END=10) dig_slice_1 if (irunpd .ge. 7) then read (10,*,ERR=11,END=10) dig_t_global read (10,*,ERR=11,END=10) dig_ic_ref endif c c echo version to output c print *, ' ' print *, ' *** reading amplitude filtering parameters and' print *, ' raw t0''s for version', dig_weight_version c c build the format (dig_nwpar)G14.7 c insist that 0