sonic_porosity¶ petrophys.interpretation.porosity.sonic_porosity sonic_porosity( dtc, matrix='sandstone', dtc_fluid=189.0, compaction_factor=1.0, transform='wyllie', )[source]¶ Calculate sonic porosity with matrix selection. Parameters: dtc (float or np.ndarray) – Compressional slowness matrix (str) – Matrix type dtc_fluid (float) – Fluid slowness compaction_factor (float) – Compaction correction (Cp), Wyllie only transform (str) – "wyllie" (time average, the default) or "raymer" (raymer_hunt_gardner(), exact form). Returns: Sonic porosity, limited to 0-0.5: (Wyllie porosity) / Cp, or the RHG porosity Return type: float or np.ndarray