fixed wind data bug

This commit is contained in:
straitz 2025-12-16 11:42:00 +09:00
parent b355b41ed2
commit ca95e06ab7
4 changed files with 10 additions and 9 deletions

View file

@ -186,7 +186,7 @@ func (s *service) Update(ctx context.Context) error {
}
func assembleCube(dir string, run time.Time, cubePath string) error {
const sizePerVar = 97 * 47 * 361 * 720 * 4 // 97 time steps (0-96 hours), 47 pressure levels
const sizePerVar = 33 * 47 * 361 * 720 * 4 // 33 time steps (0-96 hours, 3-hour intervals), 47 pressure levels
total := int64(sizePerVar * 3) // 3 variables: gh, u, v
f, err := os.Create(cubePath)
if err != nil {