Crates.io | lasrs |
lib.rs | lasrs |
version | 0.1.3 |
source | src |
created_at | 2020-05-16 17:02:48.254586 |
updated_at | 2020-05-16 17:37:20.180962 |
description | A library for parsing geophysical well log (.las) files |
homepage | https://github.com/laslibs/lasrs |
repository | https://github.com/laslibs/lasrs |
max_upload_size | |
id | 242418 |
size | 369,384 |
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
Test
cargo test