Learn Texas RRC data

The Railroad Commission publishes some of the most complete oil and gas data in the world, in some of the least approachable formats in the world. These 17 articles explain what is in it, how the pieces key together, and how to get answers out of it.

108 minutes end to end · free · no signup

Start with Start here — what the Texas RRC actually publishes


Foundations

What the Railroad Commission publishes, and how the pieces fit.

  1. Start here — what the Texas RRC actually publishes

    The Railroad Commission gives away roughly sixty oil and gas datasets. This is the map: which files exist, what each one is really about, and how they hang together once you know the join keys.

    Step 1 6 min read

Identifiers and keys

API numbers, districts, P-5 numbers — the keys everything joins on.

  1. Texas RRC districts — the complete list, with 6E, offices and counties

    All thirteen Railroad Commission oil and gas districts and the statewide code, the office that administers each, the internal number the production system uses instead of the printed one, and which counties belong to which district — including the one that has none.

    Step 5 7 min read

Formats and encodings

EBCDIC, fixed-width COBOL layouts, implied decimals, zoned signs.

Dataset guides

Dataset by dataset: what is in it, and what it does not tell you.

  1. The RRC oil and gas ledgers (and why PDQ is usually what you want)

    The oil ledger, the gas ledger, the historical ledgers and the statewide production files are the Commission's mainframe view of production and allowables. Here is what each holds, why they arrive as EBCDIC packed decimal, which questions only they can answer, and why for almost everything else the PDQ tables are the better download.

    Step 10 7 min read

  2. Texas well, pipeline and survey shapefiles — downloading RRC GIS layers and converting to GeoPackage or KML

    The Commission publishes its map data as shapefiles, one zip per county, in a 1927 datum. Here is what is in the well, pipeline, survey and base layers, how to get a statewide layer out of 255 files, how to reproject and convert them — and when a GeoPackage of the parsed permit or wellbore data is the better answer.

    Step 13 7 min read

Recipes and tools

Worked joins, the HTTP API and the Python SDK.

  1. How to download Texas drilling permits (daily and monthly) as CSV or Excel

    The Railroad Commission publishes drilling permits nightly as a fixed-width mainframe extract. Here is how to get them as CSV, Excel or a GeoPackage instead — the whole state, one county, one district, one operator or one day — and which of the seven permit files to take.

    Step 14 7 min read

  2. How to download Texas oil and gas production data by county, lease, operator and district

    The Commission's production release is a 3.6 GB zip of sixteen tables. You almost never want the zip. Here is which table answers which question — county, lease, operator, field or district — how to filter it down to a download you can open, and the four traps that make production numbers wrong.

    Step 15 8 min read