heligo

package module
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 14 Imported by: 1

README

heligo

A seismic helicorder plotting library implemented in pure Go.

Preview

Helicorder Plot

Quick Start

See example for more details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataProvider

type DataProvider interface {
	GetPlotName() string
	GetStation() string
	GetNetwork() string
	GetChannel() string
	GetLocation() string
	GetPlotData(start, end time.Time) ([]PlotData, error)
}

type Helicorder

type Helicorder struct {
	// contains filtered or unexported fields
}

func New

func New(dataProvider DataProvider, hoursTickSpan, minutesTickSpan time.Duration) (Helicorder, error)

func (*Helicorder) Bytes added in v0.0.10

func (h *Helicorder) Bytes(size int, format string) ([]byte, error)

func (*Helicorder) Plot

func (h *Helicorder) Plot(date time.Time, maxSamples int, scaleFactor, lineWidth float64) error

func (*Helicorder) Save

func (h *Helicorder) Save(size int, filePath string) error

type PlotData

type PlotData struct {
	Time  time.Time
	Value float64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳