L1A -> L2

This commit is contained in:
nuknal
2024-09-25 16:06:20 +08:00
parent 2c3c58f3fc
commit 5ccae01ee2
5 changed files with 125 additions and 25 deletions

View File

@@ -22,15 +22,15 @@ var (
var cmdWarp = &cobra.Command{
Use: "warp",
Short: "transform the input image using rpc",
Short: "L1A to L2: transform the input image using rpc",
Run: func(cmd *cobra.Command, args []string) {
godal.RegisterAll()
dem.Dem1KmLT = dem.NewDem1Km(config.GCONFIG.Dem.Dem1Km)
warpDEM, _ = filepath.Abs(config.GCONFIG.Dem.Dem1Km)
err := producer.Warp(warpIn, warpOut, warpMeta, warpRPC, warpDEM)
err := producer.L1AtoL2(warpIn, warpOut, warpMeta, warpRPC, warpDEM)
if err != nil {
logrus.Error("Generate L2 product failed:", err)
os.Exit(10)
os.Exit(1)
}
},
}