obspy.signal.util.nextpow2

nextpow2(i)[source]

Find the next power of two

>>> nextpow2(5)
8
>>> nextpow2(250)
256

This Page