obspy/obspy — pull request #850 by claudiodsf (2014-07-28 09:25:52+00:00)
Title: sac read/write fixes: swapping bytes, missing header field.

This PR fixes some sac-related code:

- byte swapping should work correctly now;
- a header field was missing in the `IDICT`dictionary, implying that this field was aways written to disk as `0`;
- a test in `tes_core.py` was pointless.

**Please don't merge yet**, this PR is still incomplete.

- [ ] Tests are still failing because of a problem I will discuss in a comment below.
- [ ] I would like to add a `byteorder` option to `writeSAC()`