Skip to content
Snippets Groups Projects
Commit 2312f72f authored by Tucker Siegel's avatar Tucker Siegel
Browse files

update

parent c717552d
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ import ( ...@@ -22,6 +22,7 @@ import (
// @Param value query int true "Value of mode" // @Param value query int true "Value of mode"
// @Param anchor_stage query string false "anchoring stage" // @Param anchor_stage query string false "anchoring stage"
// @Param anchor_date query string false "anchoring date" // @Param anchor_date query string false "anchoring date"
// @Param comparison query int false "comparison. -1 for normals, or any int between 1981 and 2021 for a single year"
// @Router /gdd/forecast/stages [get] // @Router /gdd/forecast/stages [get]
func ForecastStages(c *fiber.Ctx) error { func ForecastStages(c *fiber.Ctx) error {
ctx := common.DawnCtx{FiberCtx: c} ctx := common.DawnCtx{FiberCtx: c}
......
...@@ -161,8 +161,6 @@ func BinStageMatches(stageState map[string]models.StageStateInner, year int, sta ...@@ -161,8 +161,6 @@ func BinStageMatches(stageState map[string]models.StageStateInner, year int, sta
// min := stateVal.Normal95thIdx // min := stateVal.Normal95thIdx
min := Min(stateVal.Hists) min := Min(stateVal.Hists)
stepSize := int(math.Ceil(AvgDiff(stateVal.Hists)) + 1) // add 1 to increase range (cheating a little) and for uncertainty stepSize := int(math.Ceil(AvgDiff(stateVal.Hists)) + 1) // add 1 to increase range (cheating a little) and for uncertainty
max := min + int(stepSize)*5
rangeSize := max - min
arr := []float64{} arr := []float64{}
idxs := []int{} idxs := []int{}
base := min base := min
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment