Documentation ¶
Index ¶
- Constants
- Variables
- func Ccodes_context_delete(ctx Ccodes_context)
- func Ccodes_count_in_file(ctx Ccodes_context, file CFILE) (int, error)
- func Ccodes_get_double(handle Ccodes_handle, key string) (float64, error)
- func Ccodes_get_double_array(handle Ccodes_handle, key string) ([]float64, error)
- func Ccodes_get_long(handle Ccodes_handle, key string) (int64, error)
- func Ccodes_get_long_array(handle Ccodes_handle, key string) ([]int64, error)
- func Ccodes_get_native_type(handle Ccodes_handle, key string) (int, error)
- func Ccodes_get_size(handle Ccodes_handle, key string) (int64, error)
- func Ccodes_get_string(handle Ccodes_handle, key string) (string, error)
- func Ccodes_grib_get_data(handle Ccodes_handle) (latitudes []float64, longitudes []float64, values []float64, err error)
- func Ccodes_grib_get_data_unsafe(handle Ccodes_handle) (latitudes unsafe.Pointer, longitudes unsafe.Pointer, values unsafe.Pointer, ...)
- func Ccodes_handle_delete(handle Ccodes_handle) error
- func Ccodes_index_delete(index Ccodes_index)
- func Ccodes_index_select_double(index Ccodes_index, key string, value float64) error
- func Ccodes_index_select_long(index Ccodes_index, key string, value int64) error
- func Ccodes_index_select_string(index Ccodes_index, key string, value string) error
- func Ccodes_keys_iterator_delete(kiter Ccodes_keys_iterator) error
- func Ccodes_keys_iterator_get_name(kiter Ccodes_keys_iterator) string
- func Ccodes_keys_iterator_next(kiter Ccodes_keys_iterator) int
- func Ccodes_set_double(handle Ccodes_handle, key string, value float64) error
- func Ccodes_set_long(handle Ccodes_handle, key string, value int64) error
- func Cfclose(file CFILE) error
- func Cfree(ptr unsafe.Pointer)
- func Cgrib_get_error_message(res int) string
- func Cmalloc(size CsizeT) unsafe.Pointer
- type CFILE
- type Ccodes_context
- type Ccodes_handle
- type Ccodes_index
- type Ccodes_keys_iterator
- type Cdouble
- type Cint
- type Clong
- type CsizeT
- type Culong
Constants ¶
View Source
const ( ProductAny = iota ProductGRIB ProductBUFR ProductMETAR ProductGTS ProductTAF )
View Source
const ( CODES_KEYS_ITERATOR_ALL_KEYS = 0 CODES_KEYS_ITERATOR_SKIP_READ_ONLY = 1 << 0 CODES_KEYS_ITERATOR_SKIP_OPTIONAL = 1 << 1 CODES_KEYS_ITERATOR_SKIP_EDITION_SPECIFIC = 1 << 2 CODES_KEYS_ITERATOR_SKIP_CODED = 1 << 3 CODES_KEYS_ITERATOR_SKIP_COMPUTED = 1 << 4 CODES_KEYS_ITERATOR_SKIP_DUPLICATES = 1 << 5 CODES_KEYS_ITERATOR_SKIP_FUNCTION = 1 << 6 CODES_KEYS_ITERATOR_DUMP_ONLY = 1 << 7 )
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_count_in_file ¶
func Ccodes_count_in_file(ctx Ccodes_context, file CFILE) (int, error)
func Ccodes_get_double ¶
func Ccodes_get_double(handle Ccodes_handle, key string) (float64, error)
func Ccodes_get_double_array ¶
func Ccodes_get_double_array(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_long_array ¶
func Ccodes_get_long_array(handle Ccodes_handle, key string) ([]int64, error)
func Ccodes_get_native_type ¶
func Ccodes_get_native_type(handle Ccodes_handle, key string) (int, error)
func Ccodes_get_size ¶
func Ccodes_get_size(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_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 Cgrib_get_error_message ¶
Types ¶
type Ccodes_context ¶
func Ccodes_context_get_default ¶
func Ccodes_context_get_default() Ccodes_context
type Ccodes_handle ¶
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)
type Ccodes_index ¶
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 ¶
func Ccodes_keys_iterator_new ¶
func Ccodes_keys_iterator_new(handle Ccodes_handle, flags int, namespace string) Ccodes_keys_iterator
Click to show internal directories.
Click to hide internal directories.