obspy util matrix2stream
and stream2matrix starting the pull request.