Results file#
Every run writes its full results to one Parquet file, <deck>.parquet next to
the deck. --name and --output-dir change its name and folder, and a run with
--set writes it into the parquets subfolder of that folder. Open it with
Lantern to browse the
plots, or read it with any Parquet reader, for example polars, pandas or DuckDB:
import polars as pl
results = pl.read_parquet("my_deck.parquet")
emissions = results.filter(pl.col("attribute") == "total_equivalent_wtw", pl.col("kind") == "global")
The results file holds every result of every node that holds results, and nothing else. Node inputs, such as a fleet’s trade target, are not in it, except the fuel and emission constants the results were converted with, which the metadata holds.
Table#
The table is long: one row per series and date. A series whose values are all zero or missing is left out.
Column |
Type |
Content |
|---|---|---|
|
string |
|
|
string |
Node name; empty for |
|
string |
Result name, e.g. |
|
string or missing |
First key of a result kept per fuel, fuel type, vessel, … |
|
string or missing |
Second key of a result kept per pair, e.g. (fuel, emission) |
|
date |
Date of the time step |
|
32-bit float or missing |
Value, to about seven significant digits; |
Keys that are identifiers, such as fuel types or energy demand types, are
written by name (OIL, PROPULSION, see Appendix: IDs). The
attributes of each kind are listed under Results.
Values are per year where the unit says so. The results that count what
happened in a time step, newbuilds, scrap, fuel_conversions,
retrofit_technology_uptake, newbuild_power, scrapped_power,
fuel_converted_power, development and computational_time, are divided by
the length of the step: the difference of
its dates in calendar years, so a step from 1 January to 1 January is one year,
leap year or not. The first step counts as one year.
Money is in the deck’s Currency. The tables
below write it currency; the file’s units name the currency itself, such as
USD/t.
Metadata#
The Parquet key-value metadata holds a JSON document under the key navigate:
Key |
Content |
|---|---|
|
Version of this layout, currently |
|
Navigate version that wrote the file |
|
Name of the run: the deck’s file name without extension, or the name given with |
|
Time the file was written, UTC, ISO 8601 |
|
The placeholder values given with |
|
Unit of each attribute, e.g. |
|
The run’s constants: |
|
The fuel each plant produces |
A per-ton result converts to per energy with the heating value of its fuel: a
port’s bunker_price divided by lower_heating_value of the fuel in key1 is
the price in currency/GJ, and a plant’s investment_cost divided by the heating
value of its plant_fuel is the cost in currency/GJ.
Schema version#
This page specifies the results file; the study files of
Horizon extend it with
keys of their own. An addition keeps schema_version: a new metadata key, a
new entry in a metadata mapping, or a new result, key, unit label or column. A
breaking change raises it by one: a metadata key, column or result removed or
renamed, or a value whose meaning, unit or encoding changes.
A reader ignores the keys and columns it does not know. It checks
schema_version against the versions it reads, and otherwise stops with a
message naming the version found, the versions it reads and the tool to
upgrade. A reader that uses an optional key tests whether the key is present,
not the version. A study file also carries study_schema_version, which
versions Horizon’s own keys and its run column the same way.
navigate --version names the schema a Navigate writes:
|
Written by |
Change |
|---|---|---|
1 |
Navigate 1.1.0 and later |
The first results file. |
A results file from a development build before Navigate 1.1.0 is not read, as those builds used the numbers 1 to 3 for layouts that have since changed.
Results#
This section lists every series a results file can hold. A series is one
kind, node, attribute, key1 and key2, and has a row for every date
of the run:
consumed = results.filter(
pl.col("kind") == "fleet",
pl.col("node") == "bulk_carrier",
pl.col("attribute") == "consumed_energy",
pl.col("key1") == "fossil_fuel_oil",
)
The tables name a series by kind.attribute, the way Lantern’s plot catalogue
does: fleet.consumed_energy stands for the series with kind fleet and
attribute consumed_energy, one per fleet and fuel. A row that names several
kinds describes the attribute in each of them.
global holds one series per attribute and key, with no node. Every other
kind holds one per node of that type in the run. That means every Fleet,
Vessel, Port, Plant, Producer, Regulation and Levy the deck uses, including
those it loads from the assumptions library.
A series is written only when some date of it holds a value other than zero. The Present when column says what a run needs for that. If the run doesn’t meet it, the series is left out of the file, so filtering for it returns no rows. A series that is in the file can still be missing at some dates, as that column says.
Some rules hold throughout:
Vessel results describe one ship. A
vesselseries is one ship of that type, regulation results per vessel included. The fleet sums its vessel types, each weighted by itsexisting_vessels, andglobalsums the fleets. Speeds, rates, savings, shares and intensities are not summed: each kind computes its own from its totals.The first date sets up the run. The first time step starts the fleets and production and runs the bunkering. Newbuilds, scrapping, fuel conversions, technology installation, speed management and plant development start at the second date. Their counts are 0 at the first date,
developmentaside, which counts the plants in the initial pipeline, and the results they write are missing there.The keys hold names. The Keys column names what
key1holds and, after the comma,key2:fuel, emission, vessel, technology, regulation and levy are node names.
feed is a Feedstock or Process name.
fuel type is a FuelTypeID. On a vessel it is the vessel’s primary fuel type, so
installed_powerkeyedOILis the power of the oil-fuelled vessels.energy demand is an EnergyDemandID. In port it is only
ELECTRICALorHEAT.timing is a TimingID.
Energy demand#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
energy demand |
Energy demand at sea before operational measures and technologies. |
Each demand the vessels have at sea |
|
|
energy demand |
Energy demand in port before operational measures and technologies. |
Vessels with a demand in port |
|
|
|
Always |
|
|
|
energy demand |
Energy demand at sea after operational measures, before technologies. |
As |
|
|
energy demand |
Energy demand in port after operational measures, before technologies. |
As |
|
|
|
Always |
|
|
|
energy demand |
Energy demand at sea after operational measures and technologies. |
As |
|
|
energy demand |
Energy demand in port after operational measures and technologies. |
As |
|
|
|
Always |
|
|
|
|
Vessels at the first date; 0 for a fleet that starts empty |
|
|
|
energy demand |
1 − energy / raw energy of the demand, in port included for |
Operational measures or technologies reduce the demand |
|
|
1 − |
|
|
|
|
1 − |
As above, or operational measures apply |
|
|
|
1 − |
Technologies are installed |
|
|
|
1 − |
Any of the three above |
Fuel consumption#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
fuel |
Fuel burnt, in energy. |
Each fuel burnt |
|
|
fuel type |
|
Each fuel type burnt |
|
|
All fuels plus shore power. |
Always |
|
|
|
fuel type, fuel |
Fuel burnt by the vessels of a primary fuel type. |
Each pair burnt |
|
|
fuel type |
Share of the energy the vessels of a primary fuel type burn that is a fuel of another type: their pilot fuel. |
Vessels burn a pilot fuel; missing at dates the vessels of the fuel type burn nothing |
Expenses and compliance#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
fuel |
Bunker price times the fuel bunkered. |
Each fuel bunkered |
|
|
fuel |
Levies charged on the fuel bunkered; negative for a subsidy. |
A Levy charges a fuel bunkered in its Jurisdiction |
|
|
fuel |
|
Each fuel bunkered |
|
|
Cost of the remedial units the regulations require. |
Vessels miss a regulation’s threshold |
|
|
|
Cost of the flexibility units bought from vessels that over-comply. |
A |
|
|
|
Revenue from the surplus units sold to vessels that under-comply. |
As |
|
|
|
|
Any of the three |
|
|
|
All fuel expenses plus shore power expenses. |
Always |
|
|
|
|
Always |
|
|
|
regulation |
Remedial units required, under the regulation’s global warming potentials. |
As |
|
|
levy |
Emissions a levy charged: its charge over its Rate. |
A Levy with a positive Rate charges |
Emissions#
The CO2-equivalents use the model’s global warming potentials, which the metadata holds.
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
emission |
Well-to-tank emissions of all fuels bunkered. |
Each emission of a fuel bunkered |
|
|
emission |
Tank-to-wake emissions of all fuels burnt. |
As |
|
|
emission |
|
As |
|
|
All of |
Always |
|
|
|
Total well-to-tank emissions per |
Always |
|
|
|
Total tank-to-wake emissions per |
Always |
|
|
|
|
Always |
Shore power#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
Shore power drawn in port. |
Vessels call at a Port with a ShorePowerAvailability above 0 |
|
|
|
Cost of the shore power, at the port’s ShorePowerPrice. |
As |
|
|
|
Levies charged on the shore power drawn; negative for a subsidy. Counted in |
A Levy charges shore power drawn in its Jurisdiction |
|
|
|
emission |
Emissions of the shore power, well-to-wake, one gas unweighted. Counted in |
As |
Fleet power and costs#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
fuel type |
Installed power of the vessels. |
Always |
|
|
fuel type |
Installed power of the newbuilds. |
Newbuilds |
|
|
fuel type |
Installed power scrapped. |
Scrapping |
|
|
fuel type, fuel type |
Installed power fuel converted from one type to the other. |
Fuel conversions |
|
|
Asset charter of the vessels: their acquisition cost, levelized. |
Always |
|
|
|
Levelized cost of the installed technologies. |
Technologies are installed |
|
|
|
Running cost of the fuel conversions made. |
Fuel conversions |
|
|
|
|
Always |
|
|
|
|
Always |
|
|
|
Capital tied up in the vessels, depreciated linearly. |
Always |
|
|
|
fuel type |
Power-weighted average age of the vessels. |
Each fuel type in the fleet |
|
|
fuel type |
Fuel the vessels could burn, at their minimum pilot fuel share. |
Each fuel type the vessels can burn |
Fleet composition#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
Trade satisfied; at the first date, the fleet’s trade. |
Always |
|
|
|
vessel |
Number of vessels of each type in the fleet. |
Each vessel type ever in the fleet |
|
|
vessel |
Vessels built. |
Newbuilds |
|
|
vessel |
Vessels scrapped, primary and secondary. |
Scrapping |
|
|
vessel, vessel |
Vessels fuel converted from one type to the other. |
Fuel conversions |
|
|
vessel, technology |
Share of the vessels of a type carrying the technology. |
The fleet has Technologies |
|
|
vessel, technology |
Share of the newbuilds of a type carrying the technology. |
As |
|
|
vessel, technology |
Share of the vessels of a type retrofitted with the technology per year. |
Retrofits, at the dates RetrofitInterval allows |
|
|
technology |
|
As |
Transport work, speeds and freight rate#
A fleet’s speeds are its vessels’ averaged by existing_vessels.
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
Transport work performed. |
Always |
|
|
|
Speed the Route sets, weighted by the time at sea. |
Always |
|
|
|
Lowest speed attainable on the route. |
The fleet has AllowSpeedManagement; missing at the first date |
|
|
|
Highest speed attainable on the route. |
As |
|
|
|
Speed sailed, averaged over the route. |
As |
|
|
|
Speed that speed management aims for; |
As |
|
|
|
Lowest speed sailed on the route. |
As |
|
|
|
Highest speed sailed on the route. |
As |
|
|
|
For a vessel: the cost of a ship ordered at the date, levelized over the cargo-miles it carries. The cost is its asset charter plus the fuel, levy, regulation and technology expenses it actually has. For a fleet: the |
Missing where the vessel type leaves the fleet within the ship’s lead time and lifetime; for a fleet, where none of its vessel types has a rate |
Vessel#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
1 where the fleet holds vessels of the type, 0 elsewhere. |
The type is ever in the fleet |
|
|
|
Lifetime. |
Always |
|
|
|
Lead time, used only in the levelized costs. |
The vessel has a LeadTime |
|
|
|
What an operator pays the owner: the acquisition cost of a ship ordered at the date, levelized over its operating years. |
Always |
|
|
|
What a cargo owner pays the operator: the asset charter rate plus the fuel, levy, regulation and technology expenses, levelized over the operating years. They are the expenses the ship actually has where |
Missing at the first date where |
|
|
|
Freight rate expected when ordering a ship at the date, which the newbuild choice weighs. |
Missing at the first date |
|
|
|
Levelized cost of the installed technologies, averaged over the fleet’s vessels of the type. |
Technologies are installed |
|
|
|
Value of a GJ less energy demand to a vessel of the type, at the prices of the bunkering expected at the date, averaged over its legs and ports by their energy demand. Technology installation and speed management value each leg and port at its own price. |
Missing at the first date and where the type is not expected in service |
|
|
|
1 − |
|
|
|
|
1 − |
As above, or operational measures apply |
|
|
|
Equal to |
Technologies are installed |
|
|
|
1 − |
Any of the three above |
Bunkering#
The energies are the masses times the fuel’s lower_heating_value.
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
fuel |
Fuel bunkered. |
Each fuel bunkered |
|
|
fuel |
Fuel available for bunkering. |
A fuel from producers that reaches the port. A liquid-market fuel only at a port that allows it with a bunkering limit, missing at dates it allows the fuel without one and 0 at dates it does not allow it; in |
|
|
fuel |
Limit the port’s infrastructure puts on bunkering. |
The Port has |
|
|
fuel |
|
As |
|
|
fuel |
|
As |
|
|
fuel |
|
As |
Port#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
fuel |
1 where the port allows bunkering the fuel, 0 elsewhere. |
The fuel is allowed at some date |
|
|
fuel |
Bunker price. |
A liquid-market fuel the port allows, or a fuel from producers that reaches the port; 0 at other dates |
|
|
fuel, emission |
Well-to-tank emissions per ton of the fuel bunkered, one gas unweighted. |
As |
|
|
fuel, emission |
|
As |
Production#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
fuel |
Fuel produced. |
Each fuel the plants produce |
|
|
fuel type |
|
As |
|
|
feed |
Feed used. |
Plants in production use the feed |
|
|
feed |
Availability of the feed. |
The Producer has |
|
|
Capital tied up in the plants, depreciated linearly. |
Plants in production |
Producer#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
Plants the producer can add to its pipeline, its MaximumDevelopment. |
Always |
|
|
|
Plants added to the pipeline; at the first date, the plants in the initial pipeline. |
Plants are developed |
|
|
|
fuel |
Share of a fuel’s expected shortfall, summed over the ports short of it, that the producer is asked to supply: its share of the development potential of the producers that can make the fuel. |
Each fuel the producer can make, while it has potential |
Plant#
The fuel a plant makes is in the metadata under plant_fuel.
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
Levelized production cost of a plant invested in at the date. |
Always |
|
|
|
Production-weighted average cost of the plants of this type producing. |
Missing at dates the plant type is not expected to produce |
|
|
|
emission |
Well-to-tank emissions per ton of fuel from a plant invested in at the date. |
Each emission of the fuel |
|
|
emission |
Production-weighted average well-to-tank emissions per ton of fuel. |
As |
Regulation#
A regulation writes results only at dates it is Active. measure is the unit
of its Measure. CO2-equivalents use its own global warming potentials.
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
Cost of a remedial unit, its RemedialCost. |
Always |
|
|
|
Price of a flexibility unit. |
A |
|
|
|
vessel |
Threshold of each policed vessel type. |
Each policed vessel type with a threshold |
|
|
Threshold of the pool: the vessel thresholds averaged by measure; under |
A |
|
|
|
vessel |
Threshold after adjustment for non-compliance. Under |
AllowThresholdAdjustment |
|
|
Threshold of the pool after adjustment. |
A |
|
|
|
vessel |
Emissions allowed per vessel. |
Policed vessel types in a fleet that call at a port of the Jurisdiction |
|
|
Emissions allowed across the policed vessels. |
Always |
|
|
|
vessel |
Measure achieved per vessel. |
As |
|
|
Measure achieved across the policed vessels. |
An |
|
|
|
vessel |
Emissions per vessel. |
As |
|
|
Emissions across the policed vessels. |
Always |
|
|
|
Surplus units generated. |
A |
|
|
|
Flexibility units used. |
A |
|
|
|
Remedial units required. |
Vessels, or a |
|
|
|
|
Either of the two |
|
|
|
Revenue from the surplus units sold. |
A |
|
|
|
Cost of the flexibility units bought. |
A |
|
|
|
Cost of the remedial units. |
As |
Levy#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
Revenue collected; negative where the levy pays a subsidy. |
The Levy is Active and charges a fuel bunkered or shore power drawn in its Jurisdiction |
Run#
Series |
Unit |
Keys |
Content |
Present when |
|---|---|---|---|---|
|
|
timing |
Computational time of the time step, without initialization and reading events, per phase of the step. |
Always |