add support for SEG2 data format code 2

Should add a test. Seems to work, though.