aux platform
This commit is contained in:
26
cmd/parse.go
Normal file
26
cmd/parse.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"starwiz.cn/sjy01/preprocessing/extract"
|
||||
)
|
||||
|
||||
var parseCmd = &cobra.Command{
|
||||
Use: "parse",
|
||||
Short: "Parse the data",
|
||||
Long: `Parse the data`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
params := extract.Params{
|
||||
InputData: "demo/4545.dat",
|
||||
OutputPath: "demo/output",
|
||||
TempPath: "demo/temp",
|
||||
DataId: "004545",
|
||||
}
|
||||
p := extract.NewExtractor(¶ms)
|
||||
p.ParseAuxPlatform("demo/temp/004545_S44_AUX1.dat")
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(parseCmd)
|
||||
}
|
||||
Reference in New Issue
Block a user