JustinGOSSES / wellio.js

JavaScript for converting well-log standard .las file format to json format
https://justingosses.github.io/wellio.js/
MIT License
34 stars 5 forks source link

Handle duplicate headers and changing number of data columns. #71

Closed dcslagel closed 3 years ago

dcslagel commented 3 years ago

Description:

Handle duplicate headers and changing number of data columns. This pull-request enables parsing some of the LAS files in issue:

Changes to dist/index.js:

Add tests:

This is a fairly big change, with moving some code sections around and replacing some code with a sub-function.

Test Results:

npm run test-las2json
...
1..50
# tests 50
# pass  50

--

Let me know if this change could be accepted (or rejected) or needs some additional changes to be approved and merged.

Thank you, DC

JustinGOSSES commented 3 years ago

Sorry I've been slow on this one. Will try to review this within the week. As you say, it's a bigger change than normal, so want to give it a good review.