<div>Hi All</div>
<div> </div>
<div>When I tried to downsample a sac data using decimate command,I encountered a curious problem on the delta change.</div>
<div>Suppose we have one data with samplng rate 100hz, and we want to downsample to 1hz.</div>
<div>the cmd I used is </div>
<div>decimate 5, now delta=0.05;</div>
<div>decimate 5  now=delta=0.25</div>
<div>decimate 2  now delta=0.5</div>
<div>decimate 2  now  delta=0.999999</div>
<div> </div>
<div>in the final step the delta is 0.999999 instead of 1.0. Since our later processing need to check the consistent of  sachdr.delta and we have some LHZ sac with delta=1.0, we need to make the downsampled-data&#39;s delta to be 1.0 ,not 0.9999999. </div>

<div> </div>
<div>Is there any way to aviod the 0.99999 thing ? Or we can forcely change delta to 1.0 using  ch delta 1.0 without  bad effects for later processing ?</div>
<div> </div>
<div>And there is another question, can sac cmd  &quot; interp &quot;be used to downsamp  origin data ? is it differ from decimate ?</div>
<div> </div>
<div>thanks for all your help in advance.</div>
<div> </div>
<div>wt</div>