Skip to main content

Conditional substitution: where condition matches, use replacement; otherwise keep input.

Works with the same condition types as Select:

Time conditions: month, day_of_week, time_of_day, exclude_holidays, and, or, not

Value conditions: highest, lowest

condition
MonthCondition · object
required

Condition that only applies in the specified months.

Example:
{
"months": [1, 2, 3, 11, 12],
"type": "month"
}
input
Dataset · object
required

Dataset to be masked

Example:
{
"id": "quarter-hourly-energy-offtake",
"resolution": "quarter_hourly",
"unit": "kWh"
}
output
Dataset · object
required

Output Dataset produced by this function, a local name used by subsequent functions to reference this result

Example:
{
"id": "quarter-hourly-energy-offtake",
"resolution": "quarter_hourly",
"unit": "kWh"
}
replacement
Level · object
required

Some floating point value and an associated Unit

Example:
{ "unit": "SEK_per_kW", "value": 50 }
function
string
default:mask
Allowed value: "mask"