petektools 0.1.0

Standalone numerics & geostatistics kernels for Rust: scattered-data gridding (minimum-curvature, IDW, nearest) and a curated numeric front-door. Pure leaf; PyO3 bindings planned.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `units` — domain-agnostic oilfield-unit conversion constants and helpers.
//!
//! One home for every unit factor so downstream consumers can never disagree on
//! a conversion. Pure arithmetic over `f64` — no I/O, no domain types, no error
//! surface. Curated here (rather than a consumer's own module) so the whole
//! family shares one set of constants; moved out of petekSim's `srs-units`.
//!
//! ```
//! use petektools::units::{acres_to_ft2, ACRE_TO_FT2};
//! assert_eq!(acres_to_ft2(2.0), 2.0 * ACRE_TO_FT2);
//! ```

pub mod convert;

pub use convert::{
    acre_ft_to_ft3, acres_to_ft2, degf_to_degr, ft3_to_acre_ft, ft3_to_rb, rb_to_ft3, ACRE_TO_FT2,
    FT3_PER_BBL,
};