FaciesResult¶
petrophys.interpretation.core_analysis.FaciesResult
- class FaciesResult(
- depth,
- facies,
- n_facies,
- feature_names,
- weights,
- cluster_centers,
- inertia=0.0,
Result of a digital core facies classification.
- Parameters:
depth (np.ndarray) – Depth of each sample.
facies (np.ndarray of int) – Facies class label per sample (1-based).
n_facies (int) – Number of distinct facies.
feature_names (list of str) – Names of the input features used for clustering.
weights (np.ndarray) – Feature weights used during clustering.
cluster_centers (np.ndarray) – Shape (n_facies, n_features) — cluster centroids in original (un-scaled) feature space.
inertia (float) – K-means inertia (within-cluster sum of squares).
Attributes
Methods
Return the samples within a depth interval.
Return the fractional occurrence (0–1) of each facies.
Compute P13, P50, P87 of each feature per facies class.
Export depth + facies label to a DataFrame.
- statistics(data)[source]¶
Compute P13, P50, P87 of each feature per facies class.
- Parameters:
data (dict) – Feature name → depth array (same length as self.depth).
- Returns:
One row per facies (index
facies) withcount,proportion_pctand<feature>_P13,_P50,_P87columns.- Return type:
pd.DataFrame