welltest_pta.parse

welltest_pta.parse(filepath, p_range=P_RANGE_DEFAULT, t_range=T_RANGE_DEFAULT)[source]

Parse a well-test ASCII gauge file into a clean DataFrame.

Parameters:
  • filepath (str | Path) – Path to the ASCII (.txt, .csv, .dat, .prn, …) file.

  • p_range (tuple[float, float]) – Physical sanity bounds for pressure (psia). Values outside are NaN-ed.

  • t_range (tuple[float, float]) – Physical sanity bounds for temperature.

Return type:

DataFrame

Returns:

  • DataFrame with at least timestamp and pressure columns, plus

  • temperature, delta_hours, and QC flags when available.