There is some duplicated code for calculating data for plot layers representing 50% and 95% intervals and point forecasts here. Let's reduce duplication by extracting the relevant code into two functions we can call -- one that calculates and returns layers representing point forecasts and one that calculates and returns a layer representing interval forecasts.
There is some duplicated code for calculating data for plot layers representing 50% and 95% intervals and point forecasts here. Let's reduce duplication by extracting the relevant code into two functions we can call -- one that calculates and returns layers representing point forecasts and one that calculates and returns a layer representing interval forecasts.