You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
When reading a LAS file with an empty ~Other section, the section is incorrectly filled with data from the ~ASCII section.
I am new to LASIO / LAS files so I may be missing something obvious here. :) But being simple about this, I can correctly write an empty ~Other section to file so I also expect to be able to correctly read an empty ~Other section from file. Additionally: the ~Other section is optional by LAS standard 2.0 and not always present in LAS files. However, it is seems to be required for writing a LASFile to file. Same for section ~Parameter. Should these sections be made optional for writing a LASFile to file?
Steps to reproduce
Write and read back a minimal LASFile (see documentation):
$ cat testfile.las
~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : One line per depth step
DLM . SPACE : Column Data Section Delimiter
~Well ------------------------------------------------------
STRT.m 10.0 : START DEPTH
STOP.m 49.5 : STOP DEPTH
STEP.m 0.5 : STEP
NULL. -9999.25 : NULL VALUE
COMP. : COMPANY
WELL. : WELL
FLD . : FIELD
LOC . : LOCATION
PROV. : PROVINCE
CNTY. : COUNTY
STAT. : STATE
CTRY. : COUNTRY
SRVC. : SERVICE COMPANY
DATE. : DATE
UWI . : UNIQUE WELL ID
API . : API NUMBER
~Curve Information -----------------------------------------
DEPTH.m :
~Params ----------------------------------------------------
~Other -----------------------------------------------------
~ASCII -----------------------------------------------------
10.00000
10.50000
...
Thank you for raising this issue, I am quite busy at the moment but will take a look. Certainly lasio should be capable of reading files without ~Other sections.
kinverarity1
changed the title
Correctly reading a LAS file with an empty ~Other section
LAS file does not load properly if ~Other line immediately precedes ~ASCII line
Apr 9, 2021
kinverarity1
changed the title
LAS file does not load properly if ~Other line immediately precedes ~ASCII line
Data section not identified if ~Other line immediately precedes ~ASCII line
Apr 9, 2021
LASIO Version 2.8
Log ASCII Standard (LAS) 2.0
Describe the issue
When reading a LAS file with an empty
~Other
section, the section is incorrectly filled with data from the~ASCII
section.I am new to LASIO / LAS files so I may be missing something obvious here. :) But being simple about this, I can correctly write an empty
~Other
section to file so I also expect to be able to correctly read an empty~Other
section from file. Additionally: the~Other
section is optional by LAS standard 2.0 and not always present in LAS files. However, it is seems to be required for writing a LASFile to file. Same for section~Parameter
. Should these sections be made optional for writing a LASFile to file?Steps to reproduce
Write and read back a minimal LASFile (see documentation):
contents of
testfile.las
:Reading
testfile.las
:Note this behaviour is also reproducible with
ignore_data=True
on read:Additional
The information originally added here has been moved to #435
The text was updated successfully, but these errors were encountered: