Refinery-to-Crude Matching Dashboard

This dashboard pulls the refinery master, crude universe, and matching outputs into one interactive web view. It is designed to help inspect refinery geography, compare refinery type patterns across countries, explore the crude candidate universe, and understand how the matching logic turns refinery attributes into top-ranked crude candidates.

822
Active refineries
66
Crude candidates
109
Countries with refineries
6
Refinery types
101,952 kbd
Total refining capacity
822
Ranked match rows

1. Global refinery landscape

A world view of all active refineries, colored by refinery type so you can immediately see how hydroskimming, cracking, coking, topping, condensate-splitter, and upgrader assets are distributed.

Source: GlobalData Downstream Analytics refinery dataset.

2. What kind of refineries each country has

These two complementary views help answer different questions: which countries have the most refining capacity by type, and which refinery types dominate by count within each country.

Source: GlobalData Downstream Analytics refinery dataset.

3. Crude candidate universe

This map shows the combined BP + Exxon crude universe used by the matcher. Marker size follows representative stream volume where available, and color distinguishes assay source provenance.

Source: BP and Exxon crude assay workbooks plus curated proxy metadata. This BP+Exxon list is useful for matching, but it is not exhaustive—many crude streams and reservoirs are not shown here.

4. Global crude production

This view shows which countries produce the most crude worldwide using the INDPROD signal from the country-flow workbook.

Source: `crude_oil_country_flows_2025_domestic_crude_refined_calc.xlsx`, `FLOW_BREAKDOWN = INDPROD`, aggregated from 2025 monthly KBD rows.

5. Crude trade dynamics

These maps show major crude import and export flows between countries using multi-year average crude trade patterns from the annual UN Comtrade workbooks.

Source: UN Comtrade crude trade workbooks. Trade views use multi-year averages across available annual files (2014–2025); missing years are ignored. Primary/latest file present: Crude_TradeData_2025.xlsx. No 2026 workbook is currently present in the repo.

6. Biggest importers and exporters

These views summarize which countries move the most crude and who their biggest counterparties are. Each bar shows total flow, split by the main origin or destination countries behind it.

Source: UN Comtrade crude trade workbooks. Trade views use multi-year averages across available annual files (2014–2025); missing years are ignored. Primary/latest file present: Crude_TradeData_2025.xlsx. No 2026 workbook is currently present in the repo.

7. Domestic crude refinery intake

This view highlights the countries that refine the largest volumes of their own domestic crude. It uses the domestic crude refined signal assembled for the country sourcing profiles and is useful for spotting where domestic supply likely matters most.

Source: Domestic crude refined country-flow workbook plus refinery-country harmonization in the country sourcing build step.

8. How refinery-to-crude matching works

The matching logic is a transparent heuristic: first remove obviously implausible candidates, then rank what remains using multiple soft signals. This section translates the config and validation notes into a clearer step-by-step flow.

Hard filters first

The matcher first excludes crude candidates that are extreme type/API/sulfur mismatches for a refinery. This keeps obviously implausible pairings out before ranking begins.

Soft scoring second

Surviving candidates are ranked using refinery type fit, API fit, sulfur fit, NCI alignment, country sourcing, geography, and crude production signal.

Country sourcing is a modifier

Country crude sourcing is used as a plausibility prior, not as a hard constraint. When sourcing is weak, geography and technical fit matter more.

Heuristic, not truth

This v1 model infers likely refinery–crude relationships. It does not claim observed plant-level intake truth and should be read as an inspectable heuristic.

Current caveats: Gulf rankings are still sensitive to candidate-universe gaps and refinery capability thresholds. Some import-heavy countries also have ambiguous trade denominators.
Step 1

Start with a refinery

Read refinery type, NCI, country, geography, and status from the refinery master.

↓
Step 2

Pull the crude candidate universe

Consider all crude assays in the combined BP + Exxon universe with available quality metadata.

↓
Step 3

Apply hard filters

Drop extreme mismatches before scoring.

  • Type envelope: first-pass refinery-type bounds.
  • API mismatch: reject if API is too far outside bounds.
  • Sulfur mismatch: reject if sulfur is too far outside bounds.
↓
Step 4

Score the survivors

Rank the remaining candidates using weighted soft signals.

  • Refinery type fit0.15
  • API fit0.20
  • Sulfur fit0.20
  • NCI alignment0.20
  • Country sourcing0.15
  • Geography/logistics0.05
  • Production signal0.05
↓
Step 5

Return top matches

Keep the highest-ranked 1–3 crude matches and surface the explanation fields in the output tables/workbook.

Source: refinery matching config, refinery master, BP/Exxon crude assays, and country sourcing profiles.

9. Refineries matched to crude origins

This map puts refinery markers and crude-origin markers in the same view. Hover any refinery to see its top crude fits, read the stored rationale text, and watch the matched crude markers light up on the map.

Source: Generated refinery matches plus the combined BP/Exxon crude master. Hover behavior highlights the top 1–3 matched crude origins for the selected refinery.