forked from ecmwf/eccodes-python
/
eccodes.h
24 lines (19 loc) · 1.12 KB
/
eccodes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* (C) Copyright 2017- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
*/
typedef struct grib_handle codes_handle;
typedef struct grib_context codes_context;
grib_handle* codes_handle_new_from_file(codes_context* c, FILE* f, ProductKind product, int* error);
codes_handle* codes_bufr_handle_new_from_samples(codes_context* c, const char* sample_name);
int codes_bufr_copy_data(grib_handle* hin, grib_handle* hout);
void codes_bufr_multi_element_constant_arrays_on(codes_context* c);
void codes_bufr_multi_element_constant_arrays_off(codes_context* c);
int codes_bufr_extract_headers_malloc(codes_context* c, const char* filename, codes_bufr_header** result, int* num_messages, int strict_mode);
char* codes_samples_path(const codes_context *c);
char* codes_definition_path(const codes_context *c);