forked from gsn/predictor
fixed wind data bug
This commit is contained in:
parent
b355b41ed2
commit
ca95e06ab7
4 changed files with 10 additions and 9 deletions
|
|
@ -6,11 +6,11 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// Generate steps from 0 to 96 with step 1 hour (97 steps total)
|
||||
// GFS provides hourly data for 0-120 hours, we use first 96 hours
|
||||
// Generate steps from 0 to 96 with step 3 hours (33 steps total)
|
||||
// GFS provides 3-hourly data for 0-120 hours, we use first 96 hours (0, 3, 6, ..., 96)
|
||||
var steps = func() []int {
|
||||
result := make([]int, 0, 97)
|
||||
for i := 0; i <= 96; i++ {
|
||||
result := make([]int, 0, 33)
|
||||
for i := 0; i <= 96; i += 3 {
|
||||
result = append(result, i)
|
||||
}
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue