Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Out of bounds" error while reading las file 3.0 #506

Open
lucasaguiar26 opened this issue Mar 9, 2022 · 2 comments
Open

"Out of bounds" error while reading las file 3.0 #506

lucasaguiar26 opened this issue Mar 9, 2022 · 2 comments
Labels

Comments

@lucasaguiar26
Copy link

lucasaguiar26 commented Mar 9, 2022

Hello, I have a bunch of las files with version 3.0 that I am trying to read using lasio library (version 0.29).

lasfile = lasio.read(rootdir + "file.las")

They were all converted from DLIS files in the same way, but I got the error "index 5 is out of bounds for axis 1 with size 5", or another index/size number depending on the file, for some of these files. Although the others I can read just fine.

I looked at the documentation but could not find any error handler I could use in this case. Anyone one could help me?

I realized when this error occurs:

  • If there is just one Curve Information section in the las file, lasio can read it just fine;
  • If there are more than one Curve Info section with the same number of curves, lasio only reads the last section;
  • If there are more than one Curve Info section with different length of curves, lasio shows this error (...out of bounds for axis...)
@lucasaguiar26 lucasaguiar26 changed the title "Out of bonds" error while reading las file 3.0 "Out of bounds" error while reading las file 3.0 Mar 9, 2022
@kinverarity1
Copy link
Owner

@lucasaguiar26 thanks for raising this issue and providing detailed information. Would you be able to attach a simple example LAS file for the last situation you describe ("If there are more than one Curve Info section with different length of curves, lasio shows this error (...out of bounds for axis...)"), so that we can easily reproduce the error?

@lucasaguiar26
Copy link
Author

Ok. Here is an example.
test_well.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants