updated downloader
This commit is contained in:
parent
ca95e06ab7
commit
8e9f117799
30 changed files with 1209 additions and 698 deletions
26
assemble_cube.go
Normal file
26
assemble_cube.go
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
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")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue