aux platform

This commit is contained in:
nuknal
2024-05-16 10:14:32 +08:00
parent 6a22735d78
commit 7e4efd83a1
8 changed files with 140 additions and 20 deletions

View File

@@ -11,10 +11,10 @@ var extractCmd = &cobra.Command{
Long: `Extract data from raw data files`,
Run: func(cmd *cobra.Command, args []string) {
params := extract.Params{
InputData: "demo/4545.dat",
InputData: "demo/051513.dat",
OutputPath: "demo/output",
TempPath: "demo/temp",
DataId: "004545",
DataId: "051513",
}
p := extract.NewExtractor(&params)
p.ExtractAosData()

View File

@@ -1,6 +1,8 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
"starwiz.cn/sjy01/preprocessing/extract"
)
@@ -10,14 +12,17 @@ var parseCmd = &cobra.Command{
Short: "Parse the data",
Long: `Parse the data`,
Run: func(cmd *cobra.Command, args []string) {
params := extract.Params{
InputData: "demo/4545.dat",
InputData: "demo/051513.dat",
OutputPath: "demo/output",
TempPath: "demo/temp",
DataId: "004545",
DataId: "051513",
}
p := extract.NewExtractor(&params)
p.ParseAuxPlatform("demo/temp/004545_S44_AUX1.dat")
// p.ParseAuxPlatform("demo/output/051513_S46_AUX1.dat")
fmt.Println("Reference Time: 2000-01-01 12:00:00 UTC, seconds:", extract.Time2000UTCSec())
p.SeprateAuxAndImgData("demo/temp/051513_S46.dat")
},
}