package grib import ( "testing" "time" ) func TestAssembleCubeFromExisting(t *testing.T) { dir := "C:/tmp/grib" run := time.Date(2026, 1, 16, 6, 0, 0, 0, time.UTC) cubePath := dir + "/" + run.Format("20060102_15") + ".cube" t.Logf("Assembling cube from existing GRIB files...") t.Logf("Directory: %s", dir) t.Logf("Run: %s", run.Format("2006-01-02 15:04 MST")) t.Logf("Output: %s", cubePath) err := assembleCube(dir, run, cubePath) if err != nil { t.Fatalf("Failed to assemble cube: %v", err) } t.Logf("✓ Cube assembled successfully!") t.Logf("Cube file: %s", cubePath) }