obspy.io.mseed.core._np_copy_astype

_np_copy_astype(data, dtype)[source]

Helper function to copy data, replacing trace.data.copy().astype(dtype)

This is done to avoid copying data in memory twice that could happen due to an API change in numpy’s astype method (copy kwarg). This helper workaround function can be dropped once bumping minimum numpy version to >=1.7.0