read_formation_pressure

petrophys.interpretation.saturation.height.read_formation_pressure

read_formation_pressure(
source,
*,
depth_column=None,
pressure_column=None,
fluid_column=None,
use_column=None,
depth_unit=None,
pressure_unit=None,
depth_reference=None,
fluid_map=None,
csv_kwargs=None,
)[source]

Read a CSV, LAS path, lasio.LASFile, or pandas DataFrame of stations.

Unambiguous column names such as TVDSS_M/PRES_BAR carry metadata. LAS curve units and a DREF parameter are also read. Otherwise supply column names, units and a positive-down TVD datum explicitly. DEPT alone never implies TVD; this reader does not convert MD to TVD.

FLUID is optional: without it, use the result’s infer_contacts() method. If present it contains oil/gas/water (case insensitive), or numeric codes mapped by fluid_map={1: 'gas', 2: 'oil', 3: 'water'}. LAS may instead provide FLDMAP as 1=gas;2=oil;3=water. Codes are not assumed universal. USE_FIT, if present, accepts true/false or 1/0. Without it, every finite station of the selected fluid pair is used. Unknown labels are rejected. Apply reservoir selection and measurement QC before fitting. The reader does not infer fluid identities; infer_contacts() is an explicit, separate interpretation step. Raw time-indexed pretests are not station pressure measurements: use read_mdt_pretest().pick_pressure() first, then formation_pressures_from_mdt() with explicit TVD depths and datum.

csv_kwargs passes delimiter, null-value and other options to read_csv. Inputs are copied, never modified. Units are retained; pressures must share a common absolute/gauge basis. Read a single connected reservoir.