Expand description
las_rs — a high-performance parser and writer for LAS (Log ASCII
Standard) well-log files, supporting LAS 1.2, 2.0, and 3.0.
The crate is pure Rust by default. The optional python feature adds the
PyO3 bindings that back the las-rs
PyPI wheel; Rust consumers never pull PyO3 or numpy.
§Quick start
// Read from disk (encoding auto-detected).
let las = las_rs::read_file("welllog.las")?;
// Header metadata.
println!("well: {:?}", las.well_value("WELL"));
println!("index unit: {:?}", las.index_unit);
// Curve data (NULLs are NaN).
for name in las.curve_mnemonics() {
let n = las.curve_data(name).map_or(0, |d| d.len());
println!("{name}: {n} samples");
}Parse from a string with parse, or take full control of parsing via
ReadOptions + parse_with / read_file_with.
Re-exports§
pub use core::types::HeaderItem;pub use core::types::CurveItem;pub use core::types::SectionItems;pub use core::types::Value;pub use core::las_file::LASFile;pub use core::errors::LasError;pub use api::parse;pub use api::parse_with;pub use api::read_file;pub use api::read_file_with;pub use api::ReadOptions;pub use reader::data::NullPolicy;