native

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProductAny = iota
	ProductGRIB
	ProductBUFR
	ProductMETAR
	ProductGTS
	ProductTAF
)
View Source
const MaxStringLength = 1030
View Source
const ParameterNumberOfPoints = "numberOfDataPoints"
View Source
const SizeOfFloat64 int64 = 8

Variables

View Source
var DefaultContext = Ccodes_context_get_default()

Functions

func Ccodes_context_delete

func Ccodes_context_delete(ctx Ccodes_context)

func Ccodes_get_double

func Ccodes_get_double(handle Ccodes_handle, key string) (float64, error)

func Ccodes_get_long

func Ccodes_get_long(handle Ccodes_handle, key string) (int64, error)

func Ccodes_get_string

func Ccodes_get_string(handle Ccodes_handle, key string) (string, error)

func Ccodes_grib_get_data

func Ccodes_grib_get_data(handle Ccodes_handle) (latitudes []float64, longitudes []float64, values []float64, err error)

func Ccodes_grib_get_data_unsafe

func Ccodes_grib_get_data_unsafe(handle Ccodes_handle) (latitudes unsafe.Pointer, longitudes unsafe.Pointer, values unsafe.Pointer, err error)

func Ccodes_handle_delete

func Ccodes_handle_delete(handle Ccodes_handle) error

func Ccodes_index_delete

func Ccodes_index_delete(index Ccodes_index)

func Ccodes_index_select_double

func Ccodes_index_select_double(index Ccodes_index, key string, value float64) error

func Ccodes_index_select_long

func Ccodes_index_select_long(index Ccodes_index, key string, value int64) error

func Ccodes_index_select_string

func Ccodes_index_select_string(index Ccodes_index, key string, value string) error

func Ccodes_keys_iterator_delete

func Ccodes_keys_iterator_delete(kiter Ccodes_keys_iterator) error

func Ccodes_keys_iterator_get_name

func Ccodes_keys_iterator_get_name(kiter Ccodes_keys_iterator) string

func Ccodes_keys_iterator_next

func Ccodes_keys_iterator_next(kiter Ccodes_keys_iterator) int

func Ccodes_set_double

func Ccodes_set_double(handle Ccodes_handle, key string, value float64) error

func Ccodes_set_long

func Ccodes_set_long(handle Ccodes_handle, key string, value int64) error

func Cfclose

func Cfclose(file CFILE) error

func Cfree

func Cfree(ptr unsafe.Pointer)

func Cgrib_get_error_message

func Cgrib_get_error_message(res int) string

func Cmalloc

func Cmalloc(size CsizeT) unsafe.Pointer

func Cmclose

func Cmclose(memory Cbytes) error

Types

type CFILE

type CFILE = unsafe.Pointer

func Cfopen

func Cfopen(filename string, mode string) (CFILE, error)

type Cbytes

type Cbytes = unsafe.Pointer

type Ccodes_context

type Ccodes_context = unsafe.Pointer

func Ccodes_context_get_default

func Ccodes_context_get_default() Ccodes_context

type Ccodes_handle

type Ccodes_handle = unsafe.Pointer

func Ccodes_handle_new_from_file

func Ccodes_handle_new_from_file(ctx Ccodes_context, file CFILE, product int) (Ccodes_handle, error)

func Ccodes_handle_new_from_index

func Ccodes_handle_new_from_index(index Ccodes_index) (Ccodes_handle, error)

func Ccodes_handle_new_from_message

func Ccodes_handle_new_from_message(ctx Ccodes_context, data Cbytes, size Clong) (Ccodes_handle, error)

type Ccodes_index

type Ccodes_index = unsafe.Pointer

func Ccodes_index_new

func Ccodes_index_new(ctx Ccodes_context, keys string) (Ccodes_index, error)

func Ccodes_index_new_from_file

func Ccodes_index_new_from_file(ctx Ccodes_context, filename string, keys string) (Ccodes_index, error)

type Ccodes_keys_iterator

type Ccodes_keys_iterator = unsafe.Pointer

func Ccodes_keys_iterator_new

func Ccodes_keys_iterator_new(handle Ccodes_handle, flags int, namespace string) Ccodes_keys_iterator

type Cdouble

type Cdouble = float64

type Cint

type Cint = int32

type Clong

type Clong = int64

type CsizeT

type CsizeT = int64

type Culong

type Culong = uint64

Jump to

Keyboard shortcuts

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