Robert Smallshire
c04cf0901f
General code clean-up of issue PyCharm linter is highlighting.
2015-01-30 14:44:08 +01:00
Robert Smallshire
e56eefbd2c
Return double-precision IEEE float values when reading single-precision IBM floats to prevent loss of precision.
2015-01-30 14:36:35 +01:00
Robert Smallshire
f8c298a971
Correctness and robustness improvements to the IBM <-> IEEE floating point conversions, including additional tests.
2015-01-30 14:34:27 +01:00
Robert Smallshire
e74f4498aa
Fixes issues revealed by the new loadsave.py example program.
2015-01-29 13:26:25 +01:00
Robert Smallshire
ee1e05a9ff
Forward endian parameter in read_binary_values()
2015-01-29 09:45:03 +01:00
Robert Smallshire
81728459e7
Removed dead code. Tightened up use of encodings.
2015-01-29 09:44:25 +01:00
Robert Smallshire
7bad88ce57
Simplified extended textual header formatting.
2015-01-29 09:43:43 +01:00
Robert Smallshire
2e342e5277
Merge branch 'rewrite' of github.com:rob-smallshire/segpy into rewrite
2015-01-28 21:50:15 +01:00
Robert Smallshire
ccbedfa150
High level SEG Y writer. Work in progress
2015-01-28 21:50:04 +01:00
Robert Smallshire
255a490914
Code reorganisation - segpy is now a proper Python package. Rework of the extended textual header for symmetry with the reader. Some additional tests.
2015-01-28 21:42:52 +01:00
Robert Smallshire
8c1fe0742d
Merge pull request #14 from wassname/patch-3
...
Fixed pack traceheader error
2015-01-28 14:49:21 +01:00
Robert Smallshire
2709785169
Merge pull request #13 from wassname/patch-2
...
Added missing argument for use of SegYReader
2015-01-28 14:48:11 +01:00
wassname
9444567b38
Fixed pack traceheader error
...
In python 3.3 I got the error: error: pack expected 91 items for packing (got 1), which is fixed is I pass the traceheader's items in as separate arguments by adding an *.
2015-01-28 16:30:55 +08:00
wassname
0f5db22d41
Added missing argument for use of SegYReader
2015-01-28 15:54:20 +08:00
Robert Smallshire
246b8515e4
Pass the trace header format to the read_trace_header() function.
2014-12-03 21:52:14 +01:00
Robert Smallshire
1fd7a5d4c6
SegYReader3D.trace_index now accepts an (inline, crossline) tuple rather than two separate arguments.
2014-12-03 20:41:12 +01:00
Robert Smallshire
91e325c95a
Some progress towards complete support for writing SEG Y
2014-12-03 20:38:08 +01:00
Robert Smallshire
2ee69544de
Toolkit functions for writing headers.
2014-10-23 14:16:17 +02:00
Robert Smallshire
6f3aba6a4d
A function for padding iterables.
2014-10-23 14:10:58 +02:00
Robert Smallshire
905ec4fe39
Support for regular and extended textual headers.
2014-10-23 11:41:22 +02:00
Robert Smallshire
ceb0f9bd61
A function to guess whether a byte stream contains EBCDIC or ASCII text.
2014-10-23 11:40:00 +02:00
Robert Smallshire
d2f1beac9d
Support for reading textual (normal and extended) headers. Support for alternative inline/xline numbering in 3D seismic.
2014-10-23 11:39:16 +02:00
Robert Smallshire
d50dc0b097
Adds a function for batching iterable series.
2014-10-23 11:37:07 +02:00
Robert Smallshire
ef58b37e6c
Fix fencepost errors for row-major indexing.
2014-10-23 11:33:07 +02:00
Robert Smallshire
27d78b6b6a
Remove commented out line.
2014-10-23 11:32:07 +02:00
Robert Smallshire
7ac0083a52
Extracted Python 2/3 specific code into the portability module
2014-10-21 15:14:51 +02:00
Robert Smallshire
ee228e2dc9
Improved portability between Python 2 and Python 3. Beginnings of code for writing SEG Y.
2014-10-21 14:54:49 +02:00
Robert Smallshire
1abff28a40
Adds optional progress reporting to long running functions
2014-09-03 11:29:28 +02:00
Robert Smallshire
ddf4f2f6ab
Construct a trace-length catalog giving the number of samples per trace
2014-09-03 09:50:06 +02:00
Robert Smallshire
dfb92978f3
Adds additional catalog types for catalogs with a single constant value shared amongst all keys
2014-09-03 09:42:24 +02:00
Robert Smallshire
fd0de79d18
Typo in TRACE_HEADER_DEF
2014-09-02 13:42:05 +02:00
Robert Smallshire
8eaea4b066
Merge branch 'abingham-rewrite' into rewrite
2014-09-02 13:36:41 +02:00
Robert Smallshire
b0fe25b809
Manual merge of abingham pull request
2014-09-02 13:36:14 +02:00
Robert Smallshire
5f1bf53992
Fixes issue #7 - incorrect type in TRACE_HEADER_DEF
2014-09-02 13:26:45 +02:00
Robert Smallshire
9ddae466dd
Typos
2014-09-02 11:11:56 +02:00
Robert Smallshire
bcadf4478a
Formatting
2014-09-02 11:10:07 +02:00
Robert Smallshire
8b9931cd84
Typos and using wrong variable.
2014-09-02 11:06:47 +02:00
Robert Smallshire
81f55a3058
Formatting
2014-09-02 11:06:16 +02:00
Robert Smallshire
8f6e0daf30
Renamed inlines_xlines() method to inline_xline_numbers() since that is what it actually yields.
2014-09-02 11:03:14 +02:00
Robert Smallshire
b4800551fd
Fixed scrambled code
2014-09-02 11:02:17 +02:00
Austin Bingham
e02b7be182
Mostly PEP8 cleanups in the course of reading the code.
...
I took the liberty of adding a few specific exception types, some
documentation, and things like that, but this is mostly a cosmetic chance.
2014-09-02 09:39:04 +02:00
Robert Smallshire
dcac37022d
General cleanup.
2014-09-01 13:58:34 +02:00
Robert Smallshire
3b8f3ac26c
Compile a struct format for trace headers
2014-08-27 15:57:27 +02:00
Robert Smallshire
c6ebe9f3d6
Fixes blunders in trace header definition
2014-08-27 15:56:10 +02:00
Robert Smallshire
3a885b93ca
Ignore data directory.
2014-08-27 15:55:45 +02:00
Robert Smallshire
8e08508ac6
Simplify code.
2014-08-27 10:24:54 +02:00
Robert Smallshire
e64ec24bf7
Minor formatting consistency.
2014-08-27 10:06:44 +02:00
Robert Smallshire
b816f7787b
More PEP 8 naming compliance
2014-08-27 09:47:29 +02:00
Robert Smallshire
283070d491
Improved handling and tolerance of non-compliant SEG Y revisions.
2014-08-27 09:42:29 +02:00
Robert Smallshire
b52aae71e4
More renaming towards PEP 8 standards.
2014-08-27 09:21:10 +02:00