#log #parser #las #version #geophysical

lasrs

A library for parsing geophysical well log (.las) files

4 releases

0.1.3 May 16, 2020
0.1.2 May 16, 2020
0.1.1 May 16, 2020
0.1.0 May 16, 2020

#5 in #las

MIT/Apache

97KB
307 lines

Test

Lasrs

A Rust library for parsing geophysical well log (.las) files

Supports only version 2.0 of LAS Specification. For more information about this format, see the Canadian Well Logging Society.

  • Usage And this to your cargo.toml

    [dependencies]
    lasrs = "0.1.3"
    
    

    and this to your crate root (if you're using Rust 2015):

    extern crate lasrs;
    

    A example of reading version of well log headers.

    use lasrs::Las;
    
    fn main() {
        let las = Las::new("./sample/example.las");
    
        assert_eq!(
            vec!["DEPT", "DT", "RHOB", "NPHI", "SFLU", "SFLA", "ILM", "ILD"],
            las.headers()
        );
    
        let las = Las::new("./sample/A10.las");
    
        assert_eq!(
            vec!["DEPT", "Perm", "Gamma", "Porosity", "Fluvialfacies", "NetGross"],
            las.headers()
        );
    }
    
  • Documentation

    Module documentation with examples

  • Test

    • Clone this repo and run:
    cargo test
    

Dependencies

~2–3MB
~54K SLoC