gobufrkit

package module
v0.0.0-...-3e45f1f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

GoBufrKit

An unfinished project for implementing WMO BUFR decoder in Go. Build the binary with go build or directly run with go run main.go.

The current code is able to decode most BUFR messages. The output format is plain text only. JSON output is almost there, as well as binary output, i.e. encoder. The intention was to make a faster alternative to PyBufrKit. But I cannot see myself working on this project anytime soon. Adoptions are welcome.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DefinitionsPath string
	TablesPath      string

	// Only binary stream provides compressed data
	// in the format described by the BUFR Spec.
	InputType  tdcfio.InputType
	Compatible bool
	Verbose    bool
}

type Runtime

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

func NewRuntime

func NewRuntime(config *Config, pr tdcfio.PeekableReader) (*Runtime, error)

func (*Runtime) Run

func (rt *Runtime) Run() (*bufr.Message, error)

Directories

Path Synopsis
ast
Package ast provides building blocks for constructing the tree of parsed template.
Package ast provides building blocks for constructing the tree of parsed template.
parser
Package parser parses UnexpandedTemplate and construct a tree of the parsed template.
Package parser parses UnexpandedTemplate and construct a tree of the parsed template.
package tdcfio provides basic io features for working with WMO TDCF messages.
package tdcfio provides basic io features for working with WMO TDCF messages.

Jump to

Keyboard shortcuts

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