add tscalc_d.sh
update wavesave.sh to setup tscalc_d.sh