26 lines
716 B
Go
26 lines
716 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"time"
|
|
)
|
|
|
|
// This will be a simple wrapper that calls the internal assembleCube function
|
|
// We'll compile it as part of the grib package
|
|
|
|
func main() {
|
|
dir := "C:/tmp/grib"
|
|
run := time.Date(2025, 12, 6, 0, 0, 0, 0, time.UTC)
|
|
cubePath := fmt.Sprintf("%s/%s.cube", dir, run.Format("20060102_15"))
|
|
|
|
fmt.Printf("Assembling cube from existing GRIB files...\n")
|
|
fmt.Printf("Directory: %s\n", dir)
|
|
fmt.Printf("Run: %s\n", run.Format("2006-01-02 15:04 MST"))
|
|
fmt.Printf("Output: %s\n", cubePath)
|
|
fmt.Println()
|
|
|
|
// Just print instructions - we'll do it directly
|
|
fmt.Println("Run this Go code to assemble:")
|
|
fmt.Printf("cd internal/pkg/grib && go test -run TestAssemble\n")
|
|
}
|