# Data, units, and country coverage

This document explains the observations behind the Energy Flow Observatory, the quantities passed to its optimizer, and the distinctions that matter when reading a blank cell or a newly appearing trade link. The release uses a saved dataset. Opening the website does not retrieve a new UN Comtrade vintage.

## 1. What the dataset measures

The source is **UN Comtrade importer declarations**. An edge points from the recorded partner exporter to the declaring importer. The two commodity networks are separate.

| Network | Commodity code | Displayed quantity |
| --- | --- | --- |
| Crude oil | HS 270900 | Million physical barrels of crude oil |
| LNG | HS 271111 | Million liquid barrels of LNG |

The saved metadata records the retrieval snapshot as **24 November 2026 at 05:33:17 UTC**. Annual observations cover **2021 through 2025**. Scenario calculations use **2021 or 2025** as their baseline. These are the years present in this release, rather than a promise that every reporter has complete observations through the same date.

Imports are the accounting perspective throughout. The dataset is not formed by adding an export declaration to the corresponding import declaration. Such a sum would count two reports of the same bilateral trade as two flows. The `source` and `direction` fields in the [saved dataset](../dist/data/energy-data.json) record the perspective used here. The [UN Comtrade data-item reference](https://comtradeplus.un.org/en/reference-tables?table=dataitem) describes the upstream quantity and reporting fields.

The network measures trade within a reporting cohort. Its total is neither global production nor global consumption. In particular, an exporter's row sum measures its exports to the included importers. Exports to omitted buyers, domestic use, production, stock changes, and refining activity are not recovered by summing this matrix.

## 2. The three country sets

It is useful to keep three sets distinct.

1. **The country catalogue** contains 254 country and statistical-area identities. Its numeric Comtrade codes are the durable identifiers. It should not be described as 254 sovereign states.
2. **The observed-history panel** has the same 254 potential source identities and a product-specific set of declaring importers. It contains 57 crude importer identities and 30 LNG importer identities across the saved years. Their eligibility varies by year.
3. **A scenario panel** retains the common known-pair scope for 2021 and 2025 and the exporters that are active in the selected baseline. It is the matrix that the optimizer receives.

A country can be in the catalogue without having an active exporter role or a measured importer role in a scenario. A country can also appear in both roles. The mathematical exporter and importer nodes remain distinct, and the model does not infer transshipment between them.

Comtrade reporting identifiers must not be replaced with ISO numeric country codes. For example, the scenario panels use **842 for the United States** and **251 for France**. The wider catalogue also contains geographic identities such as code 840. Historical or alternative statistical identities can coexist. Keep the supplied numeric identifier when joining observations, selecting a scenario, or interpreting an export. A display-name alias does not merge those identities.

### Scenario panels in this release

Volumes below are in millions of barrels of the named product.

| Product | Baseline | Exporter roles | Importer roles | Positive links | Measured baseline volume |
| --- | ---: | ---: | ---: | ---: | ---: |
| Crude | 2021 | 126 | 48 | 822 | 14,588.279147 |
| Crude | 2025 | 121 | 48 | 778 | 15,681.542227 |
| LNG | 2021 | 54 | 28 | 274 | 4,533.237143 |
| LNG | 2025 | 63 | 28 | 302 | 4,666.168318 |

These counts and totals can be read directly from `products[product].panels[year]`. They are not the totals of every country visible in the catalogue.

### Eligible reporters in the observed-history panel

| Year | Crude importers | LNG importers |
| --- | ---: | ---: |
| 2021 | 57 | 30 |
| 2022 | 55 | 30 |
| 2023 | 55 | 30 |
| 2024 | 53 | 28 |
| 2025 | 50 | 28 |

The website preserves these eligibility decisions from the saved snapshot. It does not infer eligibility from the map or from the presence of a country name.

## 3. Converting quantities to barrels

Let $m$ be mass in kilograms, $v$ be liquid volume in cubic metres, and $c_b$ be cubic metres per barrel. The metadata uses

$$
c_b=0.158987294928\ \text{m}^3/\text{barrel}.
$$

This is the petroleum barrel of 42 US gallons. The [NIST conversion table](https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b9) gives the petroleum-barrel conversion, rounded in its printed table.

### Crude oil

For a mass-based conversion, the release uses

$$
Q_{\mathrm{crude}}=7.32\frac{m}{1000}
\quad\text{barrels}.
$$

The factor is the average-specific-gravity conversion in the [UNSD Energy Statistics Yearbook conversion table](https://unstats.un.org/unsd/energy/yearbook/conversion.htm). It is a common conversion convention, not a measured density for every grade, country, or shipment. A direct liquid volume, where accepted upstream, would instead convert as $Q=v/c_b$.

### LNG

The release uses a liquid-density assumption of

$$
\rho_{\mathrm{LNG}}=450\ \text{kg}/\text{m}^3.
$$

For a mass-based conversion,

$$
Q_{\mathrm{LNG}}=\frac{m}{\rho_{\mathrm{LNG}}c_b}
\quad\text{liquid barrels}.
$$

Under this assumption, one tonne corresponds to about **13.97736 liquid barrels**. This density is a modeling assumption recorded in the release. It should not be interpreted as a common measured density for every LNG cargo.

The optimizer uses **million barrels**, so the quantities above are divided by $10^6$. A value of 10 in an LNG panel means 10 million liquid barrels. It does not mean 10 million barrels of oil equivalent, nor a standard-temperature gas volume. No calorific-value conversion is performed. Crude and LNG volumes should therefore not be added into a single energy total. Pipeline gas is outside the model.

### What a density sensitivity can establish

For a flow converted entirely from mass, changing LNG density from $\rho_0$ to $\rho_1$ multiplies its liquid volume by $\rho_0/\rho_1$. That effect concerns the units and physical-volume assumption.

If every entry of one model panel is multiplied by the same positive factor, supply, demand, capacities, optimal service, and absolute shortfall scale by that factor. The percentage loss and service fractions stay unchanged in the mathematical model. This follows by scaling every feasible allocation by the same factor. The minimum-change objective scales by the same factor as well.

That invariance does not justify ignoring conversion uncertainty. A revision that changes only some flows, changes the quantity-selection rule, or changes which records are accepted can alter country shares, topology, and percentage losses. Such a revision requires rebuilding the panel and rerunning the model.

## 4. A zero and an unknown answer different questions

The historical data store six observation states. The `status` string is indexed in row-major order. With source index $i$, target index $j$, and $n_J$ target identities, the position is $i n_J+j$.

| Stored status | Meaning | Usable in a historical change? |
| --- | --- | --- |
| `0` | Unobserved reporter or quantity | No |
| `1` | No recorded trade under an eligible reporter | Yes, as zero within that reporting scope |
| `2` | Observed positive quantity under an eligible reporter | Yes |
| `3` | Trade recorded, quantity unavailable | No |
| `4` | Observed quantity, reporter below the coverage threshold | No |
| `5` | Self pair, excluded | No |

Status `1` means no bilateral trade was recorded under the eligible reporting scope. It is not proof that the physical trade was exactly zero. Status `3` means trade is recorded but a usable quantity is unavailable. Relabeling the latter as zero would create spurious disappearances and distort both country totals and flow changes.

The observed-history object stores positive usable flows in a sparse `edges` list and stores the observation state separately. An omitted sparse edge must be interpreted together with its status. Absence from the edge list alone is not sufficient evidence for an observed zero.

### The numerical baseline and its observation mask

Each scenario panel has two aligned matrices:

$$
B_{ij}\geq 0,
\qquad
M_{ij}\in\{0,1\}.
$$

$B$ is the numerical reference used in optimization. $M$, stored as `usable`, says whether the baseline is usable as an observation. The solver's supply and demand totals are sums of $B$. An unknown pair has a zero numerical reference in this bundle, but its observation mask remains false.

This distinction matters under complete candidate routes. A hypothetical new candidate can carry modeled flow even when its observed baseline is unknown. The interface and exports retain a blank observed baseline and observed change. They can still provide a numerical model reference and model adjustment. This is a modeling convention for the objective, not an imputation of the missing observation.

## 5. What “every country pair” means

The catalogue has

$$
254\cdot253=64{,}262
$$

directed non-self pairs. The directory export contains all $254^2=64{,}516$ ordered pairs, including 254 explicitly excluded self pairs. Direction matters: exporter $a$ to importer $b$ differs from exporter $b$ to importer $a$.

The directory classifies each pair in the following order, implemented by [`describePair`](../dist/pairs.js).

| Directory state | Required information | Direct route scenario |
| --- | --- | --- |
| Recorded positive | Active roles, usable mask, positive $B_{ij}$ | Available |
| Known zero | Active roles, usable mask, zero $B_{ij}$ | Available, with zero measured direct exposure |
| Unknown baseline | Active roles, unusable mask | Unavailable |
| Outside panel | Missing active exporter or importer role | Unavailable |
| Self excluded | Same identity at both ends | Excluded |

A known-zero corridor can be selected because its direct exposure is identified as zero within the measured scope. Closing it alone removes no baseline volume. An unknown corridor cannot be assigned the same interpretation: its direct exposure is not identified.

### Pair coverage by baseline

| Product | Year | Positive | Known zero | Runnable pairs | Unknown within active roles | Complete non-self candidates |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
| Crude | 2021 | 822 | 5,148 | 5,970 | 34 | 6,004 |
| Crude | 2025 | 778 | 4,953 | 5,731 | 33 | 5,764 |
| LNG | 2021 | 274 | 1,215 | 1,489 | 4 | 1,493 |
| LNG | 2025 | 302 | 1,439 | 1,741 | 4 | 1,745 |

The complete candidate count is the number of non-self pairs between the selected exporter and importer roles. It includes unknown-baseline candidates, which explains why it exceeds the runnable direct-shock count. Neither count implies a feasible terminal, contract, vessel movement, or shipping lane for every candidate.

The **complete pair matrix**, **complete candidate support**, and **full country directory** are different objects. The matrix is a display of the selected role set. Complete support is an optimization assumption about allowable routes. The directory is a catalogue of all country pairs and their coverage states.

## 6. Historical comparisons use matched observations

For years $a$ and $b$, define the comparison set

$$
\mathcal C_{a,b}
=\{(i,j):\text{the pair has status 1 or 2 in both years}\}.
$$

The observed change is

$$
\Delta^{\mathrm{obs}}_{ij}=B^{(b)}_{ij}-B^{(a)}_{ij},
\qquad (i,j)\in\mathcal C_{a,b}.
$$

Historical totals, country changes, new and closed links, and turnover use this same comparison set. A pair with a usable quantity in only one year can still display that year's quantity in the matrix, but its change remains unavailable. The implementation is `historical()` in [`app.js`](../dist/app.js).

Two consequences follow. First, the comparison set can change when the selected years change. A total for 2021 when compared with 2022 need not equal the 2021 total when compared with 2025. Second, historical totals need not equal scenario totals because the scenario panels apply their own common 2021/2025 mask and active-source selection.

“Newly recorded” means positive in the later year and recorded zero in the earlier year on comparable observations. It does not establish when a commercial relationship began. An observed change spanning 2021 to 2025 includes several years of adjustment and does not isolate the 2022 crisis.

## 7. Why 2026 is not the annual scenario baseline

The metadata reports September 2026 as the latest monthly period in the underlying work. Only five crude reporters and two LNG reporters were eligible in that month. A balanced January–July 2026 window covered 17 crude importers, representing 58.36% of baseline volume, and 14 LNG importers, representing 47.61%.

Those figures are saved coverage notes. The browser dataset does not include a complete monthly network for 2026 and the website does not extrapolate those partial observations into a full annual baseline. Its latest scenario baseline remains 2025. Refreshing the app's data requires a deliberate new preparation and release step.

## 8. A map is a schematic view of the same accounting network

The geography comes from Natural Earth. Country anchor points are label points, not ports or terminals. Connections show directed country pairs and do not trace a vessel route, a canal passage, or a pipeline. Fourteen catalogue identities have no mapped coordinates in this release. They remain available in the catalogue, network, and tabular representations.

Map filtering changes what is drawn. It does not remove a country or an arc from the optimization. A visually sparse map and an all-pairs matrix can therefore represent the same model solution. The [geography notice](../dist/data/GEOGRAPHY_NOTICE.txt) records the source and public-domain status.

## 9. File structure and fields

| Location in `energy-data.json` | Purpose |
| --- | --- |
| `metadata` | Snapshot, years, scope, units, conversion assumptions, and partial monthly coverage |
| `countries` | Numeric codes, names, ISO labels, regions, coordinate matches |
| `products[product].panels[year]` | Numerical scenario baseline and usable mask, source and target roles, row and column totals |
| `products[product].observed` | Annual sparse edge lists, observation states, eligible targets, and comparison rules |
| `reference` | Saved calculation summaries used for comparison and review |

The reference object contains 20 shock-summary rows, 1,456 exporter-ranking rows, 400 headroom-sensitivity rows, 84 joint-shock-curve rows, 12 observed-metric rows, and 720 country-envelope rows. These saved outputs are useful numerical reference material. Their presence does not make them an independent historical forecast evaluation.

## 10. What can be reproduced from this release

The released browser data and code are sufficient to rerun the site's capacity scenarios, inspect the included masks, recompute the displayed historical comparisons, and export the resulting country and pair tables. A browser API credential is not required.

The browser bundle does not contain the raw Comtrade responses, the original per-record quantity choices and flags, the complete reporter-selection calculations, or the script that constructed this exact saved snapshot. Its status legend refers to a reporter coverage threshold, but the numeric threshold and every upstream rejection decision cannot be recovered from this file alone. The conversion formulas above explain the recorded unit assumptions. They do not reconstruct which source quantity field was accepted for every individual record.

Consequently, this release supports reproduction **from the saved analytical inputs onward**. Rebuilding the exact input snapshot from raw records requires the corresponding upstream preparation archive. A fresh retrieval from Comtrade can differ because the data vintage and reporting coverage may have changed. Reviewers should keep that distinction explicit when comparing a new extraction with this release.

