Skip to content

03_Convert

yohanesnuwara edited this page Jun 28, 2020 · 1 revision

Function convert

convert is used to convert from non-oilfield units (Metric or SI) to oilfield units.

Usage

from utilities import convert

# convert 1000 U.S. gallon to oilfield unit of volume (barrel, bbl)
print(convert(1000, 'gal', 'bbl'))

Output:

20.0
Clone this wiki locally