lasio icon indicating copy to clipboard operation
lasio copied to clipboard

"Out of bounds" error while reading las file 3.0

Open lucasaguiar26 opened this issue 2 years ago • 2 comments

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 avatar Mar 09 '22 00:03 lucasaguiar26

@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?

kinverarity1 avatar Apr 20 '22 01:04 kinverarity1

Ok. Here is an example. test_well.zip

lucasaguiar26 avatar Apr 27 '22 11:04 lucasaguiar26