obs

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	SID          int
	Lat          float32
	Lon          float32
	Elev         int
	Observations []Observation
}

func (*Data) Parameters

func (d *Data) Parameters() ([]harp.Parameter, error)

type Database

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

func Create

func Create(filename, obstype string, parameters []harp.Parameter) (*Database, error)

func Open

func Open(filename, obstype string) (*Database, error)

func (*Database) Add

func (db *Database) Add(data Data) error

func (*Database) Close

func (db *Database) Close() error

type Observation

type Observation struct {
	ValidDate time.Time
	Data      map[string]float32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL