This commit is contained in:
Shahram Najm 2023-08-12 14:11:20 +01:00
parent 02694d6828
commit e22fb03bfb
2 changed files with 20 additions and 14 deletions

View File

@ -433,7 +433,7 @@ codes_handle* codes_handle_new_from_message(codes_context* c, const void* data,
/**
* Create a handle from a user message in memory. The message will not be freed at the end.
* The message will be copied as soon as a modification is needed.
* This function works also with GRIB multi-field messages.
* This function also works with GRIB multi-field messages.
*
* @param c : the context from which the handle will be created (NULL for default context)
* @param data : the actual message
@ -1229,7 +1229,7 @@ void codes_grib_multi_support_on(codes_context* c);
void codes_grib_multi_support_off(codes_context* c);
/**
* Reset file handle in multiple GRIB field support mode
* Reset file handle in GRIB multi-field support mode
*
* @param c : the context to be modified
* @param f : the file pointer
@ -1351,9 +1351,12 @@ int codes_set_values(codes_handle* h, codes_values* codes_values, size_t arg_cou
codes_handle* codes_handle_new_from_partial_message_copy(codes_context* c, const void* data, size_t size);
codes_handle* codes_handle_new_from_partial_message(codes_context* c, const void* data, size_t buflen);
/* Returns a bool i.e. 0 or 1. The error code is the final argument */
/* Check whether the given key has the value 'missing'.
Returns a bool i.e. 0 or 1. The error code is an argument */
int codes_is_missing(const codes_handle* h, const char* key, int* err);
/* Returns a bool i.e. 0 or 1 */
/* Check whether the given key is defined (exists).
Returns a bool i.e. 0 or 1 */
int codes_is_defined(const codes_handle* h, const char* key);
/* Returns 1 if the BUFR key is in the header and 0 if it is in the data section.
@ -1364,8 +1367,10 @@ int codes_bufr_key_is_header(const codes_handle* h, const char* key, int* err);
The error code is the final argument */
int codes_bufr_key_is_coordinate(const codes_handle* h, const char* key, int* err);
/* Set the given key to have the value 'missing' */
int codes_set_missing(codes_handle* h, const char* key);
/* The truncation is the Gaussian number (or order) */
/* The truncation is the Gaussian number (also called order) */
int codes_get_gaussian_latitudes(long truncation, double* latitudes);
int codes_julian_to_datetime(double jd, long* year, long* month, long* day, long* hour, long* minute, long* second);
@ -1386,7 +1391,6 @@ int codes_check_message_footer(const void* bytes, size_t length, ProductKind pro
/* --------------------------------------- */
#define CODES_UTIL_GRID_SPEC_REGULAR_LL GRIB_UTIL_GRID_SPEC_REGULAR_LL
#define CODES_UTIL_GRID_SPEC_ROTATED_LL GRIB_UTIL_GRID_SPEC_ROTATED_LL
#define CODES_UTIL_GRID_SPEC_REGULAR_GG GRIB_UTIL_GRID_SPEC_REGULAR_GG
@ -1418,7 +1422,6 @@ int codes_check_message_footer(const void* bytes, size_t length, ProductKind pro
#define CODES_UTIL_ACCURACY_SAME_DECIMAL_SCALE_FACTOR_AS_INPUT GRIB_UTIL_ACCURACY_SAME_DECIMAL_SCALE_FACTOR_AS_INPUT
#define CODES_UTIL_ACCURACY_USE_PROVIDED_DECIMAL_SCALE_FACTOR GRIB_UTIL_ACCURACY_USE_PROVIDED_DECIMAL_SCALE_FACTOR
codes_handle* codes_grib_util_set_spec(codes_handle* h,
const codes_util_grid_spec* grid_spec,
const codes_util_packing_spec* packing_spec, /* NULL for defaults (same as input) */

View File

@ -1231,7 +1231,7 @@ void grib_multi_support_on(grib_context* c);
void grib_multi_support_off(grib_context* c);
/**
* Reset file handle in multi-field support mode
* Reset file handle in GRIB multi-field support mode
*
* @param c : the context to be modified
* @param f : the file pointer
@ -1334,27 +1334,30 @@ void grib_update_sections_lengths(grib_handle* h);
* @return the error message
*/
const char* grib_get_error_message(int code);
const char* grib_get_type_name(int type);
int grib_get_native_type(const grib_handle* h, const char* name, int* type);
void grib_check(const char* call, const char* file, int line, int e, const char* msg);
#define GRIB_CHECK(a, msg) grib_check(#a, __FILE__, __LINE__, a, msg)
#define GRIB_CHECK_NOLINE(a, msg) grib_check(#a, 0, 0, a, msg)
int grib_set_values(grib_handle* h, grib_values* grib_values, size_t arg_count);
grib_handle* grib_handle_new_from_partial_message_copy(grib_context* c, const void* data, size_t size);
grib_handle* grib_handle_new_from_partial_message(grib_context* c, const void* data, size_t buflen);
/* Returns a bool i.e. 0 or 1. The error code is an argument */
/* Check whether the given key has the value 'missing'.
Returns a bool i.e. 0 or 1. The error code is an argument */
int grib_is_missing(const grib_handle* h, const char* key, int* err);
/* Returns a bool i.e. 0 or 1 */
/* Check whether the given key is defined (exists).
Returns a bool i.e. 0 or 1 */
int grib_is_defined(const grib_handle* h, const char* key);
/* Set the given key to have the value 'missing' */
int grib_set_missing(grib_handle* h, const char* key);
/* The truncation is the Gaussian number (or order) */
/* The truncation is the Gaussian number (also called order) */
int grib_get_gaussian_latitudes(long truncation, double* latitudes);
int grib_julian_to_datetime(double jd, long* year, long* month, long* day, long* hour, long* minute, long* second);