Look up the matching tier level for a value.
{
"function": "lookup",
"tier_selector": {
"id": "monthly-power-peak",
"resolution": "monthly",
"unit": "kW"
},
"boundaries": [100.0],
"levels": [3000.0, 5000.0],
"unit": "SEK",
"output": {
"id": "monthly-fixed-fee",
"resolution": "monthly",
"unit": "SEK"
}
}Power for a certain month = 150 kW → falls into tier 2 (since 150 >= 100) → monthly_fixed_fee for that month = 5000 SEK (the level of the matching tier)
Tier boundaries. N contiguous tiers have N-1 boundaries: [0, b1), [b1, b2), ..., [bN-1, ∞).
1[100]Level value for each of the N tiers.
2[3000, 5000]Output Dataset produced by this function, a local name used by subsequent functions to reference this result
{
"id": "quarter-hourly-energy-offtake",
"resolution": "quarter_hourly",
"unit": "kWh"
}Reference used to select the matching tier. Each value in here is used to find a matching tier level to produce as output
{
"id": "quarter-hourly-energy-offtake",
"resolution": "quarter_hourly",
"unit": "kWh"
}Unit shared by all level values.
A, kV, kW, kWh, hours, SEK, NOK, SEK_per_kWh, SEK_per_kW, % "lookup"