Automated Hydraulic Units, Fluid Types, and Free-Fluid Levels Resolved Using New Algorithms Applicable to Distributed Pressure Measurements