Ticket #37 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

WRITESEED uses false byte order

Reported by: Franz Owned by: MarcusWalther
Priority: high Milestone:
Component: SH Severity: major
Keywords: Cc:

Description (last modified by MarcusWalther) (diff)

At least on little endian machines WRITESEED seems to swap data bytes. This was working in a version from 2006.

Also see http://list.seismic-handler.org/pipermail/users/2011-May/000102.html

Change History

comment:1 Changed 10 years ago by MarcusWalther

  • Description modified (diff)

comment:2 Changed 9 years ago by MarcusWalther

  • Status changed from new to accepted

This bug is confirmed:

For example reading GSE example in SH:

|sh> readgse GRF_031102_0225.GSE 1
|sh> write_seed
creating file gra1_031102_0225.bhz
|sh> quit y

Old systems:

$ hexdump -C gra1_031102_0225.bhz | head
00000000  30 30 30 30 30 31 44 20  47 52 41 31 00 20 20 42  |000001D GRA1.  B|
00000010  48 5a 00 00 07 d3 01 32  02 19 00 00 00 00 0e 00  |HZ.....2........|
00000020  00 14 00 01 00 00 00 01  00 00 00 00 00 40 00 30  |.............@.0|
00000030  03 e8 00 00 0a 01 0c 00  00 00 00 00 00 00 00 00  |................|
00000040  02 55 55 55 ff ff fe b2  00 00 00 0c fe b2 00 20  |.UUU........... |
00000050  0b 05 14 0e 0c 1a 18 28  26 06 01 0d 05 f0 ec f8  |.......(&.......|
00000060  0a 10 ef e4 f4 f7 ef d6  eb 0d 06 fc e3 f0 1e 16  |................|
00000070  f4 e0 00 30 2e 14 ff 0c  2a 27 07 f3 10 31 32 1e  |...0....*'...12.|
00000080  15 55 55 55 08 07 15 1c  11 1e 26 11 21 29 12 0a  |.UUU......&.!)..|
00000090  ff 05 0f 09 04 01 05 ff  e8 e5 f6 fd e3 c0 cd f4  |................|

New systems:

$ hexdump -C gra1_031102_0225.bhz.smpc28 | head
00000000  30 30 30 30 30 31 44 20  47 52 41 31 00 20 20 42  |000001D GRA1.  B|
00000010  48 5a 00 00 d3 07 32 01  02 19 00 00 00 00 00 0e  |HZ....2.........|
00000020  14 00 01 00 00 00 00 01  00 00 00 00 40 00 30 00  |............@.0.|
00000030  e8 03 00 00 0a 01 0c 00  00 00 00 00 00 00 00 00  |................|
00000040  55 55 55 02 b2 fe ff ff  0c 00 00 00 20 00 b2 fe  |UUU......... ...|
00000050  0e 14 05 0b 28 18 1a 0c  0d 01 06 26 f8 ec f0 05  |....(......&....|
00000060  e4 ef 10 0a d6 ef f7 f4  fc 06 0d eb 16 1e f0 e3  |................|
00000070  30 00 e0 f4 0c ff 14 2e  f3 07 27 2a 1e 32 31 10  |0.........'*.21.|
00000080  55 55 55 15 1c 15 07 08  11 26 1e 11 0a 12 29 21  |UUU......&....)!|
00000090  09 0f 05 ff ff 05 01 04  fd f6 e5 e8 f4 cd c0 e3  |................|

This error occurs on 32 and 64-bit systems.

comment:3 Changed 9 years ago by MarcusWalther

  • Status changed from accepted to closed
  • Resolution set to fixed

Issue fixed in r499.

Note: See TracTickets for help on using tickets.