fix forecast korekce
This commit is contained in:
@@ -14,7 +14,7 @@ as $fn$
|
||||
p_from as ts_from,
|
||||
case
|
||||
when p_to <= p_from then p_from + interval '15 minutes'
|
||||
when p_to > p_from + interval '120 hours' then p_from + interval '120 hours'
|
||||
when p_to > p_from + interval '60 days' then p_from + interval '60 days'
|
||||
else p_to
|
||||
end as ts_to
|
||||
),
|
||||
@@ -64,4 +64,4 @@ as $fn$
|
||||
$fn$;
|
||||
|
||||
comment on function ems.fn_forecast_pv_slots_range(int, timestamptz, timestamptz) is
|
||||
'JSON pole {interval_start, pv_forecast_total_w} po 15 min pro [p_from, p_to); doplnění grafu plánu za hranicí planning_interval.';
|
||||
'JSON pole {interval_start, pv_forecast_total_w} po 15 min pro [p_from, p_to); doplnění grafu plánu za hranicí planning_interval. Horizont je omezený na max. 60 dní.';
|
||||
|
||||
@@ -26,7 +26,7 @@ as $fn$
|
||||
p_from as ts_from,
|
||||
case
|
||||
when p_to <= p_from then p_from + interval '15 minutes'
|
||||
when p_to > p_from + interval '120 hours' then p_from + interval '120 hours'
|
||||
when p_to > p_from + interval '60 days' then p_from + interval '60 days'
|
||||
else p_to
|
||||
end as ts_to
|
||||
),
|
||||
@@ -120,4 +120,4 @@ as $fn$
|
||||
$fn$;
|
||||
|
||||
comment on function ems.fn_forecast_pv_slots_range_corrected(int, timestamptz, timestamptz, timestamptz, timestamptz, numeric, int) is
|
||||
'JSON pole {interval_start, pv_forecast_total_w, pv_forecast_corrected_w, slot_of_day} po 15 min pro [p_from, p_to). Korekce je aditivní delta profil z fn_pv_forecast_delta_profile.';
|
||||
'JSON pole {interval_start, pv_forecast_total_w, pv_forecast_corrected_w, slot_of_day} po 15 min pro [p_from, p_to). Korekce je aditivní delta profil z fn_pv_forecast_delta_profile. Horizont je omezený na max. 60 dní.';
|
||||
|
||||
Reference in New Issue
Block a user