Configurable palette
This commit is contained in:
8
gopow.go
8
gopow.go
@@ -10,7 +10,6 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
app := cli.NewApp()
|
||||
app.Name = "RTL GoPow"
|
||||
app.Usage = "Render a rtl_power CSV output as waterfall image"
|
||||
@@ -19,7 +18,6 @@ func main() {
|
||||
app.Email = "d@hogborg.se"
|
||||
|
||||
app.Action = func(c *cli.Context) {
|
||||
|
||||
if c.Bool("verbose") == true {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
} else {
|
||||
@@ -49,7 +47,6 @@ func main() {
|
||||
}).Fatal("write failed")
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
app.Flags = []cli.Flag{
|
||||
@@ -86,6 +83,11 @@ func main() {
|
||||
Name: "no-annotations",
|
||||
Usage: "Disabled annotations such as time and frequency scales",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "palette",
|
||||
Usage: "Select the palette for output image. [spectrum,yellow]",
|
||||
Value: "spectrum",
|
||||
},
|
||||
}
|
||||
|
||||
app.Run(os.Args)
|
||||
|
||||
Reference in New Issue
Block a user