kinverarity1 / lasio

Python library for reading and writing well data using Log ASCII Standard (LAS) files
https://lasio.readthedocs.io/en/latest/
MIT License
344 stars 151 forks source link

Non standard LAS with extra line after ~A giving the column names #90

Open VelizarVESSELINOV opened 9 years ago

VelizarVESSELINOV commented 9 years ago
<class 'lasio.las.LASDataError'> error: Failed to read data:\nValueError: could not convert string to float: b'DEPT'"

Suggestion check if the lines in ~A section start with character and not a number consider this line as line starting with comment like "#"

~CURVE INFORMATION 
DEPT.FT     .1 :DEPTH                
GR.            API : Gamma Ray
CALX.          IN : X-Axis Cal
CALY.          IN : Y-Axis Cal
NPLS.          V/V : Neutron P
ILD.           OHMM : Deep Ind
ILM.           OHMM : Medium I
RHOB.          G/CC : Bulk Den
DRHO.          G/CC : Bulk Den
DPLS.          V/V : Density P
PE.            BARNS/E : Photo
X-Por.          V/V: CROSS-PLOT
~A   
DEPT             GR        CALX        CALY        NPLS         ILD         ILM        RHOB        DRHO        DPLS          PE        X-Por
-0.1000             61.109        2.632        3.488       -0.002       10.070    10000.000        2.699       -0.036        0.007        4.132        0.277
-0.0000             61.022        2.632        3.491       -0.002       10.081    10000.000        2.700       -0.033        0.006        4.041        0.247
kinverarity1 commented 8 years ago

Note to self: I will have to be careful if I implement this in how it might interact with LAS 3.

Could just make it a feature that only happens when VERS is 1.2 or 2.