delta

package module
v0.0.0-...-39e5283 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

README

DELTA

Meta information for the GeoNet sensor network, please cite as https://doi.org/10.21420/0VY2-C144.

Build Status

network

Geographical and equipment grouping meta data.

environment

Information about the recording site environment.

assets

Physical equipment asset management.

install

Equipment installation and connections details.

calibration

Equipment calibration files.

docs

Miscellaneous documentation.

meta

Golang module to load the meta data csv files.

resp

Golang module to configure and describe instrument responses.

tools

Golang tools to manage and process the meta data.

internal

Golang internal modules used by the tests and tools.

vendor

Golang external modules used by the tests and tools.

tests

Consistency checking of the network meta data.

Documentation

Index

Constants

View Source
const ResponseName = "Response"

Variables

This section is empty.

Functions

func New

func New() (*meta.Set, error)

New returns a Set pointer based on the embeded csv files. Multiple calls will return the same pointer and error as the first call.

func NewBase

func NewBase(base string) (*meta.Set, error)

NewBase returns a Delta pointer based on an optional directory base prefix. If the base is empty then the default embeded Set will be returned.

func NewFS

func NewFS(fs fs.FS) (*meta.Set, error)

NewFS returns a Delta pointer based on a given FS structure.

func NewResp

func NewResp(base string) ([]string, error)

NewResp returns a slice of response file names.

Types

type DB

type DB struct {
	*sql.DB
}

DB is a wrapper for an SQL DB pointer.

func NewDB

func NewDB(path ...string) (*DB, error)

NewDB returns a DB pointer, a non-empty path is used as a file name, otherwise the database is generated in memory.

func (*DB) Init

func (db *DB) Init(ctx context.Context, set *meta.Set, files ...string) error

Init updates the contents of the given database with contents from the given delta base and response paths. If these are empty then the default compiled in versions will be used.

Directories

Path Synopsis
cmd
internal
expr
Package expr provides helpful conversion of mathematic expressions to base types.
Package expr provides helpful conversion of mathematic expressions to base types.
stationxml
Automatically generate stationxml bindings from the schema files.
Automatically generate stationxml bindings from the schema files.
required to run tests
required to run tests
tools

Jump to

Keyboard shortcuts

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