mirror of https://github.com/ecmwf/eccodes.git
Add extra error codes
This commit is contained in:
parent
3d513738c8
commit
bd62688189
|
@ -1,69 +1,80 @@
|
|||
integer, parameter,public :: CODES_FUNCTIONALITY_NOT_ENABLED = -67
|
||||
integer, parameter,public :: CODES_WRONG_BITMAP_SIZE = -66
|
||||
integer, parameter,public :: CODES_OUT_OF_RANGE = -65
|
||||
integer, parameter,public :: CODES_UNSUPPORTED_EDITION = -64
|
||||
integer, parameter,public :: CODES_ATTRIBUTE_NOT_FOUND = -63
|
||||
integer, parameter,public :: CODES_TOO_MANY_ATTRIBUTES = -62
|
||||
integer, parameter,public :: CODES_ATTRIBUTE_CLASH = -61
|
||||
integer, parameter,public :: CODES_NULL_POINTER = -60
|
||||
integer, parameter,public :: CODES_MISSING_BUFR_ENTRY = -59
|
||||
integer, parameter,public :: CODES_WRONG_CONVERSION = -58
|
||||
integer, parameter,public :: CODES_STRING_TOO_SMALL = -57
|
||||
integer, parameter,public :: CODES_INVALID_KEY_VALUE = -56
|
||||
integer, parameter,public :: CODES_VALUE_DIFFERENT = -55
|
||||
integer, parameter,public :: CODES_DIFFERENT_EDITION = -54
|
||||
integer, parameter,public :: CODES_INVALID_BPV = -53
|
||||
integer, parameter,public :: CODES_CORRUPTED_INDEX = -52
|
||||
integer, parameter,public :: CODES_MESSAGE_MALFORMED = -51
|
||||
integer, parameter,public :: CODES_UNDERFLOW = -50
|
||||
integer, parameter,public :: CODES_SWITCH_NO_MATCH = -49
|
||||
integer, parameter,public :: CODES_CONSTANT_FIELD = -48
|
||||
integer, parameter,public :: CODES_MESSAGE_TOO_LARGE = -47
|
||||
integer, parameter,public :: CODES_INTERNAL_ARRAY_TOO_SMALL = -46
|
||||
integer, parameter,public :: CODES_PREMATURE_END_OF_FILE = -45
|
||||
integer, parameter,public :: CODES_NULL_INDEX = -44
|
||||
integer, parameter,public :: CODES_END_OF_INDEX = -43
|
||||
integer, parameter,public :: CODES_WRONG_GRID = -42
|
||||
integer, parameter,public :: CODES_NO_VALUES = -41
|
||||
integer, parameter,public :: CODES_END = -40
|
||||
integer, parameter,public :: CODES_WRONG_TYPE = -39
|
||||
integer, parameter,public :: CODES_NO_DEFINITIONS = -38
|
||||
integer, parameter,public :: CODES_HASH_ARRAY_NO_MATCH = -37
|
||||
integer, parameter,public :: CODES_CONCEPT_NO_MATCH = -36
|
||||
integer, parameter,public :: CODES_OUT_OF_AREA = -35
|
||||
integer, parameter,public :: CODES_MISSING_KEY = -34
|
||||
integer, parameter,public :: CODES_INVALID_ORDERBY = -33
|
||||
integer, parameter,public :: CODES_INVALID_NEAREST = -32
|
||||
integer, parameter,public :: CODES_INVALID_KEYS_ITERATOR = -31
|
||||
integer, parameter,public :: CODES_INVALID_ITERATOR = -30
|
||||
integer, parameter,public :: CODES_INVALID_INDEX = -29
|
||||
integer, parameter,public :: CODES_INVALID_GRIB = -28
|
||||
integer, parameter,public :: CODES_INVALID_FILE = -27
|
||||
integer, parameter,public :: CODES_WRONG_STEP_UNIT = -26
|
||||
integer, parameter,public :: CODES_WRONG_STEP = -25
|
||||
integer, parameter,public :: CODES_INVALID_TYPE = -24
|
||||
integer, parameter,public :: CODES_WRONG_LENGTH = -23
|
||||
integer, parameter,public :: CODES_VALUE_CANNOT_BE_MISSING = -22
|
||||
integer, parameter,public :: CODES_INVALID_SECTION_NUMBER = -21
|
||||
integer, parameter,public :: CODES_NULL_HANDLE = -20
|
||||
integer, parameter,public :: CODES_INVALID_ARGUMENT = -19
|
||||
integer, parameter,public :: CODES_READ_ONLY = -18
|
||||
integer, parameter,public :: CODES_OUT_OF_MEMORY = -17
|
||||
integer, parameter,public :: CODES_GEOCALCULUS_PROBLEM = -16
|
||||
integer, parameter,public :: CODES_NO_MORE_IN_SET = -15
|
||||
integer, parameter,public :: CODES_ENCODING_ERROR = -14
|
||||
integer, parameter,public :: CODES_DECODING_ERROR = -13
|
||||
integer, parameter,public :: CODES_INVALID_MESSAGE = -12
|
||||
integer, parameter,public :: CODES_IO_PROBLEM = -11
|
||||
integer, parameter,public :: CODES_NOT_FOUND = -10
|
||||
integer, parameter,public :: CODES_WRONG_ARRAY_SIZE = -9
|
||||
integer, parameter,public :: CODES_CODE_NOT_FOUND_IN_TABLE = -8
|
||||
integer, parameter,public :: CODES_FILE_NOT_FOUND = -7
|
||||
integer, parameter,public :: CODES_ARRAY_TOO_SMALL = -6
|
||||
integer, parameter,public :: CODES_7777_NOT_FOUND = -5
|
||||
integer, parameter,public :: CODES_NOT_IMPLEMENTED = -4
|
||||
integer, parameter,public :: CODES_BUFFER_TOO_SMALL = -3
|
||||
integer, parameter,public :: CODES_INTERNAL_ERROR = -2
|
||||
integer, parameter,public :: CODES_END_OF_FILE = -1
|
||||
integer, parameter,public :: CODES_SUCCESS = 0
|
||||
integer, parameter,public :: CODES_NULL = -1
|
||||
integer, parameter,public :: CODES_UNABLE_TO_COMPARE_ACCESSORS = -78
|
||||
integer, parameter,public :: CODES_TYPE_AND_VALUE_MISMATCH = -77
|
||||
integer, parameter,public :: CODES_TYPE_MISMATCH = -76
|
||||
integer, parameter,public :: CODES_NAME_MISMATCH = -75
|
||||
integer, parameter,public :: CODES_COUNT_MISMATCH = -74
|
||||
integer, parameter,public :: CODES_OFFSET_MISMATCH = -73
|
||||
integer, parameter,public :: CODES_STRING_VALUE_MISMATCH = -72
|
||||
integer, parameter,public :: CODES_BYTE_VALUE_MISMATCH = -71
|
||||
integer, parameter,public :: CODES_LONG_VALUE_MISMATCH = -70
|
||||
integer, parameter,public :: CODES_DOUBLE_VALUE_MISMATCH = -69
|
||||
integer, parameter,public :: CODES_VALUE_MISMATCH = -68
|
||||
integer, parameter,public :: CODES_FUNCTIONALITY_NOT_ENABLED = -67
|
||||
integer, parameter,public :: CODES_WRONG_BITMAP_SIZE = -66
|
||||
integer, parameter,public :: CODES_OUT_OF_RANGE = -65
|
||||
integer, parameter,public :: CODES_UNSUPPORTED_EDITION = -64
|
||||
integer, parameter,public :: CODES_ATTRIBUTE_NOT_FOUND = -63
|
||||
integer, parameter,public :: CODES_TOO_MANY_ATTRIBUTES = -62
|
||||
integer, parameter,public :: CODES_ATTRIBUTE_CLASH = -61
|
||||
integer, parameter,public :: CODES_NULL_POINTER = -60
|
||||
integer, parameter,public :: CODES_MISSING_BUFR_ENTRY = -59
|
||||
integer, parameter,public :: CODES_WRONG_CONVERSION = -58
|
||||
integer, parameter,public :: CODES_STRING_TOO_SMALL = -57
|
||||
integer, parameter,public :: CODES_INVALID_KEY_VALUE = -56
|
||||
integer, parameter,public :: CODES_VALUE_DIFFERENT = -55
|
||||
integer, parameter,public :: CODES_DIFFERENT_EDITION = -54
|
||||
integer, parameter,public :: CODES_INVALID_BPV = -53
|
||||
integer, parameter,public :: CODES_CORRUPTED_INDEX = -52
|
||||
integer, parameter,public :: CODES_MESSAGE_MALFORMED = -51
|
||||
integer, parameter,public :: CODES_UNDERFLOW = -50
|
||||
integer, parameter,public :: CODES_SWITCH_NO_MATCH = -49
|
||||
integer, parameter,public :: CODES_CONSTANT_FIELD = -48
|
||||
integer, parameter,public :: CODES_MESSAGE_TOO_LARGE = -47
|
||||
integer, parameter,public :: CODES_INTERNAL_ARRAY_TOO_SMALL = -46
|
||||
integer, parameter,public :: CODES_PREMATURE_END_OF_FILE = -45
|
||||
integer, parameter,public :: CODES_NULL_INDEX = -44
|
||||
integer, parameter,public :: CODES_END_OF_INDEX = -43
|
||||
integer, parameter,public :: CODES_WRONG_GRID = -42
|
||||
integer, parameter,public :: CODES_NO_VALUES = -41
|
||||
integer, parameter,public :: CODES_END = -40
|
||||
integer, parameter,public :: CODES_WRONG_TYPE = -39
|
||||
integer, parameter,public :: CODES_NO_DEFINITIONS = -38
|
||||
integer, parameter,public :: CODES_HASH_ARRAY_NO_MATCH = -37
|
||||
integer, parameter,public :: CODES_CONCEPT_NO_MATCH = -36
|
||||
integer, parameter,public :: CODES_OUT_OF_AREA = -35
|
||||
integer, parameter,public :: CODES_MISSING_KEY = -34
|
||||
integer, parameter,public :: CODES_INVALID_ORDERBY = -33
|
||||
integer, parameter,public :: CODES_INVALID_NEAREST = -32
|
||||
integer, parameter,public :: CODES_INVALID_KEYS_ITERATOR = -31
|
||||
integer, parameter,public :: CODES_INVALID_ITERATOR = -30
|
||||
integer, parameter,public :: CODES_INVALID_INDEX = -29
|
||||
integer, parameter,public :: CODES_INVALID_GRIB = -28
|
||||
integer, parameter,public :: CODES_INVALID_FILE = -27
|
||||
integer, parameter,public :: CODES_WRONG_STEP_UNIT = -26
|
||||
integer, parameter,public :: CODES_WRONG_STEP = -25
|
||||
integer, parameter,public :: CODES_INVALID_TYPE = -24
|
||||
integer, parameter,public :: CODES_WRONG_LENGTH = -23
|
||||
integer, parameter,public :: CODES_VALUE_CANNOT_BE_MISSING = -22
|
||||
integer, parameter,public :: CODES_INVALID_SECTION_NUMBER = -21
|
||||
integer, parameter,public :: CODES_NULL_HANDLE = -20
|
||||
integer, parameter,public :: CODES_INVALID_ARGUMENT = -19
|
||||
integer, parameter,public :: CODES_READ_ONLY = -18
|
||||
integer, parameter,public :: CODES_OUT_OF_MEMORY = -17
|
||||
integer, parameter,public :: CODES_GEOCALCULUS_PROBLEM = -16
|
||||
integer, parameter,public :: CODES_NO_MORE_IN_SET = -15
|
||||
integer, parameter,public :: CODES_ENCODING_ERROR = -14
|
||||
integer, parameter,public :: CODES_DECODING_ERROR = -13
|
||||
integer, parameter,public :: CODES_INVALID_MESSAGE = -12
|
||||
integer, parameter,public :: CODES_IO_PROBLEM = -11
|
||||
integer, parameter,public :: CODES_NOT_FOUND = -10
|
||||
integer, parameter,public :: CODES_WRONG_ARRAY_SIZE = -9
|
||||
integer, parameter,public :: CODES_CODE_NOT_FOUND_IN_TABLE = -8
|
||||
integer, parameter,public :: CODES_FILE_NOT_FOUND = -7
|
||||
integer, parameter,public :: CODES_ARRAY_TOO_SMALL = -6
|
||||
integer, parameter,public :: CODES_7777_NOT_FOUND = -5
|
||||
integer, parameter,public :: CODES_NOT_IMPLEMENTED = -4
|
||||
integer, parameter,public :: CODES_BUFFER_TOO_SMALL = -3
|
||||
integer, parameter,public :: CODES_INTERNAL_ERROR = -2
|
||||
integer, parameter,public :: CODES_END_OF_FILE = -1
|
||||
integer, parameter,public :: CODES_SUCCESS = 0
|
||||
integer, parameter,public :: CODES_NULL = -1
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
integer, parameter,public :: GRIB_UNABLE_TO_COMPARE_ACCESSORS = -78
|
||||
integer, parameter,public :: GRIB_TYPE_AND_VALUE_MISMATCH = -77
|
||||
integer, parameter,public :: GRIB_TYPE_MISMATCH = -76
|
||||
integer, parameter,public :: GRIB_NAME_MISMATCH = -75
|
||||
integer, parameter,public :: GRIB_COUNT_MISMATCH = -74
|
||||
integer, parameter,public :: GRIB_OFFSET_MISMATCH = -73
|
||||
integer, parameter,public :: GRIB_STRING_VALUE_MISMATCH = -72
|
||||
integer, parameter,public :: GRIB_BYTE_VALUE_MISMATCH = -71
|
||||
integer, parameter,public :: GRIB_LONG_VALUE_MISMATCH = -70
|
||||
integer, parameter,public :: GRIB_DOUBLE_VALUE_MISMATCH = -69
|
||||
integer, parameter,public :: GRIB_VALUE_MISMATCH = -68
|
||||
integer, parameter,public :: GRIB_FUNCTIONALITY_NOT_ENABLED = -67
|
||||
integer, parameter,public :: GRIB_WRONG_BITMAP_SIZE = -66
|
||||
integer, parameter,public :: GRIB_OUT_OF_RANGE = -65
|
||||
|
|
158
src/eccodes.h
158
src/eccodes.h
|
@ -1461,140 +1461,162 @@ Error codes returned by the eccodes functions.
|
|||
*/
|
||||
/*! @{*/
|
||||
/** No error */
|
||||
#define CODES_SUCCESS GRIB_SUCCESS
|
||||
#define CODES_SUCCESS GRIB_SUCCESS
|
||||
/** End of resource reached */
|
||||
#define CODES_END_OF_FILE GRIB_END_OF_FILE
|
||||
#define CODES_END_OF_FILE GRIB_END_OF_FILE
|
||||
/** Internal error */
|
||||
#define CODES_INTERNAL_ERROR GRIB_INTERNAL_ERROR
|
||||
#define CODES_INTERNAL_ERROR GRIB_INTERNAL_ERROR
|
||||
/** Passed buffer is too small */
|
||||
#define CODES_BUFFER_TOO_SMALL GRIB_BUFFER_TOO_SMALL
|
||||
#define CODES_BUFFER_TOO_SMALL GRIB_BUFFER_TOO_SMALL
|
||||
/** Function not yet implemented */
|
||||
#define CODES_NOT_IMPLEMENTED GRIB_NOT_IMPLEMENTED
|
||||
#define CODES_NOT_IMPLEMENTED GRIB_NOT_IMPLEMENTED
|
||||
/** Missing 7777 at end of message */
|
||||
#define CODES_7777_NOT_FOUND GRIB_7777_NOT_FOUND
|
||||
#define CODES_7777_NOT_FOUND GRIB_7777_NOT_FOUND
|
||||
/** Passed array is too small */
|
||||
#define CODES_ARRAY_TOO_SMALL GRIB_ARRAY_TOO_SMALL
|
||||
#define CODES_ARRAY_TOO_SMALL GRIB_ARRAY_TOO_SMALL
|
||||
/** File not found */
|
||||
#define CODES_FILE_NOT_FOUND GRIB_FILE_NOT_FOUND
|
||||
#define CODES_FILE_NOT_FOUND GRIB_FILE_NOT_FOUND
|
||||
/** Code not found in code table */
|
||||
#define CODES_CODE_NOT_FOUND_IN_TABLE GRIB_CODE_NOT_FOUND_IN_TABLE
|
||||
#define CODES_CODE_NOT_FOUND_IN_TABLE GRIB_CODE_NOT_FOUND_IN_TABLE
|
||||
/** Array size mismatch */
|
||||
#define CODES_WRONG_ARRAY_SIZE GRIB_WRONG_ARRAY_SIZE
|
||||
#define CODES_WRONG_ARRAY_SIZE GRIB_WRONG_ARRAY_SIZE
|
||||
/** Key/value not found */
|
||||
#define CODES_NOT_FOUND GRIB_NOT_FOUND
|
||||
#define CODES_NOT_FOUND GRIB_NOT_FOUND
|
||||
/** Input output problem */
|
||||
#define CODES_IO_PROBLEM GRIB_IO_PROBLEM
|
||||
#define CODES_IO_PROBLEM GRIB_IO_PROBLEM
|
||||
/** Message invalid */
|
||||
#define CODES_INVALID_MESSAGE GRIB_INVALID_MESSAGE
|
||||
#define CODES_INVALID_MESSAGE GRIB_INVALID_MESSAGE
|
||||
/** Decoding invalid */
|
||||
#define CODES_DECODING_ERROR GRIB_DECODING_ERROR
|
||||
#define CODES_DECODING_ERROR GRIB_DECODING_ERROR
|
||||
/** Encoding invalid */
|
||||
#define CODES_ENCODING_ERROR GRIB_ENCODING_ERROR
|
||||
#define CODES_ENCODING_ERROR GRIB_ENCODING_ERROR
|
||||
/** Code cannot unpack because of string too small */
|
||||
#define CODES_NO_MORE_IN_SET GRIB_NO_MORE_IN_SET
|
||||
#define CODES_NO_MORE_IN_SET GRIB_NO_MORE_IN_SET
|
||||
/** Problem with calculation of geographic attributes */
|
||||
#define CODES_GEOCALCULUS_PROBLEM GRIB_GEOCALCULUS_PROBLEM
|
||||
#define CODES_GEOCALCULUS_PROBLEM GRIB_GEOCALCULUS_PROBLEM
|
||||
/** Memory allocation error */
|
||||
#define CODES_OUT_OF_MEMORY GRIB_OUT_OF_MEMORY
|
||||
#define CODES_OUT_OF_MEMORY GRIB_OUT_OF_MEMORY
|
||||
/** Value is read only */
|
||||
#define CODES_READ_ONLY GRIB_READ_ONLY
|
||||
#define CODES_READ_ONLY GRIB_READ_ONLY
|
||||
/** Invalid argument */
|
||||
#define CODES_INVALID_ARGUMENT GRIB_INVALID_ARGUMENT
|
||||
#define CODES_INVALID_ARGUMENT GRIB_INVALID_ARGUMENT
|
||||
/** Null handle */
|
||||
#define CODES_NULL_HANDLE GRIB_NULL_HANDLE
|
||||
#define CODES_NULL_HANDLE GRIB_NULL_HANDLE
|
||||
/** Invalid section number */
|
||||
#define CODES_INVALID_SECTION_NUMBER GRIB_INVALID_SECTION_NUMBER
|
||||
#define CODES_INVALID_SECTION_NUMBER GRIB_INVALID_SECTION_NUMBER
|
||||
/** Value cannot be missing */
|
||||
#define CODES_VALUE_CANNOT_BE_MISSING GRIB_VALUE_CANNOT_BE_MISSING
|
||||
#define CODES_VALUE_CANNOT_BE_MISSING GRIB_VALUE_CANNOT_BE_MISSING
|
||||
/** Wrong message length */
|
||||
#define CODES_WRONG_LENGTH GRIB_WRONG_LENGTH
|
||||
#define CODES_WRONG_LENGTH GRIB_WRONG_LENGTH
|
||||
/** Invalid key type */
|
||||
#define CODES_INVALID_TYPE GRIB_INVALID_TYPE
|
||||
#define CODES_INVALID_TYPE GRIB_INVALID_TYPE
|
||||
/** Unable to set step */
|
||||
#define CODES_WRONG_STEP GRIB_WRONG_STEP
|
||||
#define CODES_WRONG_STEP GRIB_WRONG_STEP
|
||||
/** Wrong units for step (step must be integer) */
|
||||
#define CODES_WRONG_STEP_UNIT GRIB_WRONG_STEP_UNIT
|
||||
#define CODES_WRONG_STEP_UNIT GRIB_WRONG_STEP_UNIT
|
||||
/** Invalid file id */
|
||||
#define CODES_INVALID_FILE GRIB_INVALID_FILE
|
||||
#define CODES_INVALID_FILE GRIB_INVALID_FILE
|
||||
/** Invalid grib id */
|
||||
#define CODES_INVALID_GRIB GRIB_INVALID_GRIB
|
||||
#define CODES_INVALID_GRIB GRIB_INVALID_GRIB
|
||||
/** Invalid index id */
|
||||
#define CODES_INVALID_INDEX GRIB_INVALID_INDEX
|
||||
#define CODES_INVALID_INDEX GRIB_INVALID_INDEX
|
||||
/** Invalid iterator id */
|
||||
#define CODES_INVALID_ITERATOR GRIB_INVALID_ITERATOR
|
||||
#define CODES_INVALID_ITERATOR GRIB_INVALID_ITERATOR
|
||||
/** Invalid keys iterator id */
|
||||
#define CODES_INVALID_KEYS_ITERATOR GRIB_INVALID_KEYS_ITERATOR
|
||||
#define CODES_INVALID_KEYS_ITERATOR GRIB_INVALID_KEYS_ITERATOR
|
||||
/** Invalid nearest id */
|
||||
#define CODES_INVALID_NEAREST GRIB_INVALID_NEAREST
|
||||
#define CODES_INVALID_NEAREST GRIB_INVALID_NEAREST
|
||||
/** Invalid order by */
|
||||
#define CODES_INVALID_ORDERBY GRIB_INVALID_ORDERBY
|
||||
#define CODES_INVALID_ORDERBY GRIB_INVALID_ORDERBY
|
||||
/** Missing a key from the fieldset */
|
||||
#define CODES_MISSING_KEY GRIB_MISSING_KEY
|
||||
#define CODES_MISSING_KEY GRIB_MISSING_KEY
|
||||
/** The point is out of the grid area */
|
||||
#define CODES_OUT_OF_AREA GRIB_OUT_OF_AREA
|
||||
#define CODES_OUT_OF_AREA GRIB_OUT_OF_AREA
|
||||
/** Concept no match */
|
||||
#define CODES_CONCEPT_NO_MATCH GRIB_CONCEPT_NO_MATCH
|
||||
#define CODES_CONCEPT_NO_MATCH GRIB_CONCEPT_NO_MATCH
|
||||
/** Hash array no match */
|
||||
#define CODES_HASH_ARRAY_NO_MATCH GRIB_HASH_ARRAY_NO_MATCH
|
||||
#define CODES_HASH_ARRAY_NO_MATCH GRIB_HASH_ARRAY_NO_MATCH
|
||||
/** Definitions files not found */
|
||||
#define CODES_NO_DEFINITIONS GRIB_NO_DEFINITIONS
|
||||
#define CODES_NO_DEFINITIONS GRIB_NO_DEFINITIONS
|
||||
/** Wrong type while packing */
|
||||
#define CODES_WRONG_TYPE GRIB_WRONG_TYPE
|
||||
#define CODES_WRONG_TYPE GRIB_WRONG_TYPE
|
||||
/** End of resource */
|
||||
#define CODES_END GRIB_END
|
||||
#define CODES_END GRIB_END
|
||||
/** Unable to code a field without values */
|
||||
#define CODES_NO_VALUES GRIB_NO_VALUES
|
||||
#define CODES_NO_VALUES GRIB_NO_VALUES
|
||||
/** Grid description is wrong or inconsistent */
|
||||
#define CODES_WRONG_GRID GRIB_WRONG_GRID
|
||||
#define CODES_WRONG_GRID GRIB_WRONG_GRID
|
||||
/** End of index reached */
|
||||
#define CODES_END_OF_INDEX GRIB_END_OF_INDEX
|
||||
#define CODES_END_OF_INDEX GRIB_END_OF_INDEX
|
||||
/** Null index */
|
||||
#define CODES_NULL_INDEX GRIB_NULL_INDEX
|
||||
#define CODES_NULL_INDEX GRIB_NULL_INDEX
|
||||
/** End of resource reached when reading message */
|
||||
#define CODES_PREMATURE_END_OF_FILE GRIB_PREMATURE_END_OF_FILE
|
||||
#define CODES_PREMATURE_END_OF_FILE GRIB_PREMATURE_END_OF_FILE
|
||||
/** An internal array is too small */
|
||||
#define CODES_INTERNAL_ARRAY_TOO_SMALL GRIB_INTERNAL_ARRAY_TOO_SMALL
|
||||
#define CODES_INTERNAL_ARRAY_TOO_SMALL GRIB_INTERNAL_ARRAY_TOO_SMALL
|
||||
/** Message is too large for the current architecture */
|
||||
#define CODES_MESSAGE_TOO_LARGE GRIB_MESSAGE_TOO_LARGE
|
||||
#define CODES_MESSAGE_TOO_LARGE GRIB_MESSAGE_TOO_LARGE
|
||||
/** Constant field */
|
||||
#define CODES_CONSTANT_FIELD GRIB_CONSTANT_FIELD
|
||||
#define CODES_CONSTANT_FIELD GRIB_CONSTANT_FIELD
|
||||
/** Switch unable to find a matching case */
|
||||
#define CODES_SWITCH_NO_MATCH GRIB_SWITCH_NO_MATCH
|
||||
#define CODES_SWITCH_NO_MATCH GRIB_SWITCH_NO_MATCH
|
||||
/** Underflow */
|
||||
#define CODES_UNDERFLOW GRIB_UNDERFLOW
|
||||
#define CODES_UNDERFLOW GRIB_UNDERFLOW
|
||||
/** Message malformed */
|
||||
#define CODES_MESSAGE_MALFORMED GRIB_MESSAGE_MALFORMED
|
||||
#define CODES_MESSAGE_MALFORMED GRIB_MESSAGE_MALFORMED
|
||||
/** Index is corrupted */
|
||||
#define CODES_CORRUPTED_INDEX GRIB_CORRUPTED_INDEX
|
||||
#define CODES_CORRUPTED_INDEX GRIB_CORRUPTED_INDEX
|
||||
/** Invalid number of bits per value */
|
||||
#define CODES_INVALID_BPV GRIB_INVALID_BPV
|
||||
#define CODES_INVALID_BPV GRIB_INVALID_BPV
|
||||
/** Edition of two messages is different */
|
||||
#define CODES_DIFFERENT_EDITION GRIB_DIFFERENT_EDITION
|
||||
#define CODES_DIFFERENT_EDITION GRIB_DIFFERENT_EDITION
|
||||
/** Value is different */
|
||||
#define CODES_VALUE_DIFFERENT GRIB_VALUE_DIFFERENT
|
||||
#define CODES_VALUE_DIFFERENT GRIB_VALUE_DIFFERENT
|
||||
/** Invalid key value */
|
||||
#define CODES_INVALID_KEY_VALUE GRIB_INVALID_KEY_VALUE
|
||||
#define CODES_INVALID_KEY_VALUE GRIB_INVALID_KEY_VALUE
|
||||
/** String is smaller than requested */
|
||||
#define CODES_STRING_TOO_SMALL GRIB_STRING_TOO_SMALL
|
||||
#define CODES_STRING_TOO_SMALL GRIB_STRING_TOO_SMALL
|
||||
/** Wrong type conversion */
|
||||
#define CODES_WRONG_CONVERSION GRIB_WRONG_CONVERSION
|
||||
#define CODES_WRONG_CONVERSION GRIB_WRONG_CONVERSION
|
||||
/** Missing BUFR table entry for descriptor */
|
||||
#define CODES_MISSING_BUFR_ENTRY GRIB_MISSING_BUFR_ENTRY
|
||||
#define CODES_MISSING_BUFR_ENTRY GRIB_MISSING_BUFR_ENTRY
|
||||
/** Null pointer */
|
||||
#define CODES_NULL_POINTER GRIB_NULL_POINTER
|
||||
#define CODES_NULL_POINTER GRIB_NULL_POINTER
|
||||
/** Attribute is already present, cannot add */
|
||||
#define CODES_ATTRIBUTE_CLASH GRIB_ATTRIBUTE_CLASH
|
||||
#define CODES_ATTRIBUTE_CLASH GRIB_ATTRIBUTE_CLASH
|
||||
/** Too many attributes. Increase MAX_ACCESSOR_ATTRIBUTES */
|
||||
#define CODES_TOO_MANY_ATTRIBUTES GRIB_TOO_MANY_ATTRIBUTES
|
||||
#define CODES_TOO_MANY_ATTRIBUTES GRIB_TOO_MANY_ATTRIBUTES
|
||||
/** Attribute not found. */
|
||||
#define CODES_ATTRIBUTE_NOT_FOUND GRIB_ATTRIBUTE_NOT_FOUND
|
||||
#define CODES_ATTRIBUTE_NOT_FOUND GRIB_ATTRIBUTE_NOT_FOUND
|
||||
/** Edition not supported. */
|
||||
#define CODES_UNSUPPORTED_EDITION GRIB_UNSUPPORTED_EDITION
|
||||
#define CODES_UNSUPPORTED_EDITION GRIB_UNSUPPORTED_EDITION
|
||||
/** Value out of coding range */
|
||||
#define CODES_OUT_OF_RANGE GRIB_OUT_OF_RANGE
|
||||
#define CODES_OUT_OF_RANGE GRIB_OUT_OF_RANGE
|
||||
/** Size of bitmap is incorrect */
|
||||
#define CODES_WRONG_BITMAP_SIZE GRIB_WRONG_BITMAP_SIZE
|
||||
#define CODES_WRONG_BITMAP_SIZE GRIB_WRONG_BITMAP_SIZE
|
||||
/** Functionality not enabled */
|
||||
#define CODES_FUNCTIONALITY_NOT_ENABLED GRIB_FUNCTIONALITY_NOT_ENABLED
|
||||
#define CODES_FUNCTIONALITY_NOT_ENABLED GRIB_FUNCTIONALITY_NOT_ENABLED
|
||||
/** Value mismatch */
|
||||
#define CODES_VALUE_MISMATCH GRIB_VALUE_MISMATCH
|
||||
/** Double values are different */
|
||||
#define CODES_DOUBLE_VALUE_MISMATCH GRIB_DOUBLE_VALUE_MISMATCH
|
||||
/** Long values are different */
|
||||
#define CODES_LONG_VALUE_MISMATCH GRIB_LONG_VALUE_MISMATCH
|
||||
/** Byte values are different */
|
||||
#define CODES_BYTE_VALUE_MISMATCH GRIB_BYTE_VALUE_MISMATCH
|
||||
/** String values are different */
|
||||
#define CODES_STRING_VALUE_MISMATCH GRIB_STRING_VALUE_MISMATCH
|
||||
/** Offset mismatch */
|
||||
#define CODES_OFFSET_MISMATCH GRIB_OFFSET_MISMATCH
|
||||
/** Count mismatch */
|
||||
#define CODES_COUNT_MISMATCH GRIB_COUNT_MISMATCH
|
||||
/** Name mismatch */
|
||||
#define CODES_NAME_MISMATCH GRIB_NAME_MISMATCH
|
||||
/** Type mismatch */
|
||||
#define CODES_TYPE_MISMATCH GRIB_TYPE_MISMATCH
|
||||
/** Type and value mismatch */
|
||||
#define CODES_TYPE_AND_VALUE_MISMATCH GRIB_TYPE_AND_VALUE_MISMATCH
|
||||
/** Unable to compare accessors */
|
||||
#define CODES_UNABLE_TO_COMPARE_ACCESSORS GRIB_UNABLE_TO_COMPARE_ACCESSORS
|
||||
/*! @}*/
|
||||
#endif
|
||||
|
|
|
@ -8,8 +8,6 @@ grib_errors.cc : grib_errors.txt errors.pl
|
|||
cmp -s eccodes.h eccodes.h.new || (mv eccodes.h.new eccodes.h)
|
||||
cmp -s ../fortran/grib_api_constants.h grib_api_constants.h.new || (mv grib_api_constants.h.new ../fortran/grib_api_constants.h)
|
||||
cmp -s ../fortran/eccodes_constants.h eccodes_constants.h.new || (mv eccodes_constants.h.new ../fortran/eccodes_constants.h)
|
||||
cmp -s ../python/grib_errors.h grib_errors.h.new || (mv grib_errors.h.new ../python/grib_errors.h)
|
||||
cmp -s ../python/gribapi/errors.py errors.py.new || (mv errors.py.new ../python/gribapi/errors.py)
|
||||
|
||||
|
||||
proto:;-chmod +w eccodes_prototypes.h; mkptypes -A $(libeccodes_la_prototypes) $(libeccodes_extra_prototypes) > temp && mv temp eccodes_prototypes.h;rm -f temp
|
||||
|
|
158
src/grib_api.h
158
src/grib_api.h
|
@ -1655,140 +1655,162 @@ Error codes returned by the grib_api functions.
|
|||
*/
|
||||
/*! @{*/
|
||||
/** No error */
|
||||
#define GRIB_SUCCESS 0
|
||||
#define GRIB_SUCCESS 0
|
||||
/** End of resource reached */
|
||||
#define GRIB_END_OF_FILE -1
|
||||
#define GRIB_END_OF_FILE -1
|
||||
/** Internal error */
|
||||
#define GRIB_INTERNAL_ERROR -2
|
||||
#define GRIB_INTERNAL_ERROR -2
|
||||
/** Passed buffer is too small */
|
||||
#define GRIB_BUFFER_TOO_SMALL -3
|
||||
#define GRIB_BUFFER_TOO_SMALL -3
|
||||
/** Function not yet implemented */
|
||||
#define GRIB_NOT_IMPLEMENTED -4
|
||||
#define GRIB_NOT_IMPLEMENTED -4
|
||||
/** Missing 7777 at end of message */
|
||||
#define GRIB_7777_NOT_FOUND -5
|
||||
#define GRIB_7777_NOT_FOUND -5
|
||||
/** Passed array is too small */
|
||||
#define GRIB_ARRAY_TOO_SMALL -6
|
||||
#define GRIB_ARRAY_TOO_SMALL -6
|
||||
/** File not found */
|
||||
#define GRIB_FILE_NOT_FOUND -7
|
||||
#define GRIB_FILE_NOT_FOUND -7
|
||||
/** Code not found in code table */
|
||||
#define GRIB_CODE_NOT_FOUND_IN_TABLE -8
|
||||
#define GRIB_CODE_NOT_FOUND_IN_TABLE -8
|
||||
/** Array size mismatch */
|
||||
#define GRIB_WRONG_ARRAY_SIZE -9
|
||||
#define GRIB_WRONG_ARRAY_SIZE -9
|
||||
/** Key/value not found */
|
||||
#define GRIB_NOT_FOUND -10
|
||||
#define GRIB_NOT_FOUND -10
|
||||
/** Input output problem */
|
||||
#define GRIB_IO_PROBLEM -11
|
||||
#define GRIB_IO_PROBLEM -11
|
||||
/** Message invalid */
|
||||
#define GRIB_INVALID_MESSAGE -12
|
||||
#define GRIB_INVALID_MESSAGE -12
|
||||
/** Decoding invalid */
|
||||
#define GRIB_DECODING_ERROR -13
|
||||
#define GRIB_DECODING_ERROR -13
|
||||
/** Encoding invalid */
|
||||
#define GRIB_ENCODING_ERROR -14
|
||||
#define GRIB_ENCODING_ERROR -14
|
||||
/** Code cannot unpack because of string too small */
|
||||
#define GRIB_NO_MORE_IN_SET -15
|
||||
#define GRIB_NO_MORE_IN_SET -15
|
||||
/** Problem with calculation of geographic attributes */
|
||||
#define GRIB_GEOCALCULUS_PROBLEM -16
|
||||
#define GRIB_GEOCALCULUS_PROBLEM -16
|
||||
/** Memory allocation error */
|
||||
#define GRIB_OUT_OF_MEMORY -17
|
||||
#define GRIB_OUT_OF_MEMORY -17
|
||||
/** Value is read only */
|
||||
#define GRIB_READ_ONLY -18
|
||||
#define GRIB_READ_ONLY -18
|
||||
/** Invalid argument */
|
||||
#define GRIB_INVALID_ARGUMENT -19
|
||||
#define GRIB_INVALID_ARGUMENT -19
|
||||
/** Null handle */
|
||||
#define GRIB_NULL_HANDLE -20
|
||||
#define GRIB_NULL_HANDLE -20
|
||||
/** Invalid section number */
|
||||
#define GRIB_INVALID_SECTION_NUMBER -21
|
||||
#define GRIB_INVALID_SECTION_NUMBER -21
|
||||
/** Value cannot be missing */
|
||||
#define GRIB_VALUE_CANNOT_BE_MISSING -22
|
||||
#define GRIB_VALUE_CANNOT_BE_MISSING -22
|
||||
/** Wrong message length */
|
||||
#define GRIB_WRONG_LENGTH -23
|
||||
#define GRIB_WRONG_LENGTH -23
|
||||
/** Invalid key type */
|
||||
#define GRIB_INVALID_TYPE -24
|
||||
#define GRIB_INVALID_TYPE -24
|
||||
/** Unable to set step */
|
||||
#define GRIB_WRONG_STEP -25
|
||||
#define GRIB_WRONG_STEP -25
|
||||
/** Wrong units for step (step must be integer) */
|
||||
#define GRIB_WRONG_STEP_UNIT -26
|
||||
#define GRIB_WRONG_STEP_UNIT -26
|
||||
/** Invalid file id */
|
||||
#define GRIB_INVALID_FILE -27
|
||||
#define GRIB_INVALID_FILE -27
|
||||
/** Invalid grib id */
|
||||
#define GRIB_INVALID_GRIB -28
|
||||
#define GRIB_INVALID_GRIB -28
|
||||
/** Invalid index id */
|
||||
#define GRIB_INVALID_INDEX -29
|
||||
#define GRIB_INVALID_INDEX -29
|
||||
/** Invalid iterator id */
|
||||
#define GRIB_INVALID_ITERATOR -30
|
||||
#define GRIB_INVALID_ITERATOR -30
|
||||
/** Invalid keys iterator id */
|
||||
#define GRIB_INVALID_KEYS_ITERATOR -31
|
||||
#define GRIB_INVALID_KEYS_ITERATOR -31
|
||||
/** Invalid nearest id */
|
||||
#define GRIB_INVALID_NEAREST -32
|
||||
#define GRIB_INVALID_NEAREST -32
|
||||
/** Invalid order by */
|
||||
#define GRIB_INVALID_ORDERBY -33
|
||||
#define GRIB_INVALID_ORDERBY -33
|
||||
/** Missing a key from the fieldset */
|
||||
#define GRIB_MISSING_KEY -34
|
||||
#define GRIB_MISSING_KEY -34
|
||||
/** The point is out of the grid area */
|
||||
#define GRIB_OUT_OF_AREA -35
|
||||
#define GRIB_OUT_OF_AREA -35
|
||||
/** Concept no match */
|
||||
#define GRIB_CONCEPT_NO_MATCH -36
|
||||
#define GRIB_CONCEPT_NO_MATCH -36
|
||||
/** Hash array no match */
|
||||
#define GRIB_HASH_ARRAY_NO_MATCH -37
|
||||
#define GRIB_HASH_ARRAY_NO_MATCH -37
|
||||
/** Definitions files not found */
|
||||
#define GRIB_NO_DEFINITIONS -38
|
||||
#define GRIB_NO_DEFINITIONS -38
|
||||
/** Wrong type while packing */
|
||||
#define GRIB_WRONG_TYPE -39
|
||||
#define GRIB_WRONG_TYPE -39
|
||||
/** End of resource */
|
||||
#define GRIB_END -40
|
||||
#define GRIB_END -40
|
||||
/** Unable to code a field without values */
|
||||
#define GRIB_NO_VALUES -41
|
||||
#define GRIB_NO_VALUES -41
|
||||
/** Grid description is wrong or inconsistent */
|
||||
#define GRIB_WRONG_GRID -42
|
||||
#define GRIB_WRONG_GRID -42
|
||||
/** End of index reached */
|
||||
#define GRIB_END_OF_INDEX -43
|
||||
#define GRIB_END_OF_INDEX -43
|
||||
/** Null index */
|
||||
#define GRIB_NULL_INDEX -44
|
||||
#define GRIB_NULL_INDEX -44
|
||||
/** End of resource reached when reading message */
|
||||
#define GRIB_PREMATURE_END_OF_FILE -45
|
||||
#define GRIB_PREMATURE_END_OF_FILE -45
|
||||
/** An internal array is too small */
|
||||
#define GRIB_INTERNAL_ARRAY_TOO_SMALL -46
|
||||
#define GRIB_INTERNAL_ARRAY_TOO_SMALL -46
|
||||
/** Message is too large for the current architecture */
|
||||
#define GRIB_MESSAGE_TOO_LARGE -47
|
||||
#define GRIB_MESSAGE_TOO_LARGE -47
|
||||
/** Constant field */
|
||||
#define GRIB_CONSTANT_FIELD -48
|
||||
#define GRIB_CONSTANT_FIELD -48
|
||||
/** Switch unable to find a matching case */
|
||||
#define GRIB_SWITCH_NO_MATCH -49
|
||||
#define GRIB_SWITCH_NO_MATCH -49
|
||||
/** Underflow */
|
||||
#define GRIB_UNDERFLOW -50
|
||||
#define GRIB_UNDERFLOW -50
|
||||
/** Message malformed */
|
||||
#define GRIB_MESSAGE_MALFORMED -51
|
||||
#define GRIB_MESSAGE_MALFORMED -51
|
||||
/** Index is corrupted */
|
||||
#define GRIB_CORRUPTED_INDEX -52
|
||||
#define GRIB_CORRUPTED_INDEX -52
|
||||
/** Invalid number of bits per value */
|
||||
#define GRIB_INVALID_BPV -53
|
||||
#define GRIB_INVALID_BPV -53
|
||||
/** Edition of two messages is different */
|
||||
#define GRIB_DIFFERENT_EDITION -54
|
||||
#define GRIB_DIFFERENT_EDITION -54
|
||||
/** Value is different */
|
||||
#define GRIB_VALUE_DIFFERENT -55
|
||||
#define GRIB_VALUE_DIFFERENT -55
|
||||
/** Invalid key value */
|
||||
#define GRIB_INVALID_KEY_VALUE -56
|
||||
#define GRIB_INVALID_KEY_VALUE -56
|
||||
/** String is smaller than requested */
|
||||
#define GRIB_STRING_TOO_SMALL -57
|
||||
#define GRIB_STRING_TOO_SMALL -57
|
||||
/** Wrong type conversion */
|
||||
#define GRIB_WRONG_CONVERSION -58
|
||||
#define GRIB_WRONG_CONVERSION -58
|
||||
/** Missing BUFR table entry for descriptor */
|
||||
#define GRIB_MISSING_BUFR_ENTRY -59
|
||||
#define GRIB_MISSING_BUFR_ENTRY -59
|
||||
/** Null pointer */
|
||||
#define GRIB_NULL_POINTER -60
|
||||
#define GRIB_NULL_POINTER -60
|
||||
/** Attribute is already present, cannot add */
|
||||
#define GRIB_ATTRIBUTE_CLASH -61
|
||||
#define GRIB_ATTRIBUTE_CLASH -61
|
||||
/** Too many attributes. Increase MAX_ACCESSOR_ATTRIBUTES */
|
||||
#define GRIB_TOO_MANY_ATTRIBUTES -62
|
||||
#define GRIB_TOO_MANY_ATTRIBUTES -62
|
||||
/** Attribute not found. */
|
||||
#define GRIB_ATTRIBUTE_NOT_FOUND -63
|
||||
#define GRIB_ATTRIBUTE_NOT_FOUND -63
|
||||
/** Edition not supported. */
|
||||
#define GRIB_UNSUPPORTED_EDITION -64
|
||||
#define GRIB_UNSUPPORTED_EDITION -64
|
||||
/** Value out of coding range */
|
||||
#define GRIB_OUT_OF_RANGE -65
|
||||
#define GRIB_OUT_OF_RANGE -65
|
||||
/** Size of bitmap is incorrect */
|
||||
#define GRIB_WRONG_BITMAP_SIZE -66
|
||||
#define GRIB_WRONG_BITMAP_SIZE -66
|
||||
/** Functionality not enabled */
|
||||
#define GRIB_FUNCTIONALITY_NOT_ENABLED -67
|
||||
#define GRIB_FUNCTIONALITY_NOT_ENABLED -67
|
||||
/** Value mismatch */
|
||||
#define GRIB_VALUE_MISMATCH -68
|
||||
/** Double values are different */
|
||||
#define GRIB_DOUBLE_VALUE_MISMATCH -69
|
||||
/** Long values are different */
|
||||
#define GRIB_LONG_VALUE_MISMATCH -70
|
||||
/** Byte values are different */
|
||||
#define GRIB_BYTE_VALUE_MISMATCH -71
|
||||
/** String values are different */
|
||||
#define GRIB_STRING_VALUE_MISMATCH -72
|
||||
/** Offset mismatch */
|
||||
#define GRIB_OFFSET_MISMATCH -73
|
||||
/** Count mismatch */
|
||||
#define GRIB_COUNT_MISMATCH -74
|
||||
/** Name mismatch */
|
||||
#define GRIB_NAME_MISMATCH -75
|
||||
/** Type mismatch */
|
||||
#define GRIB_TYPE_MISMATCH -76
|
||||
/** Type and value mismatch */
|
||||
#define GRIB_TYPE_AND_VALUE_MISMATCH -77
|
||||
/** Unable to compare accessors */
|
||||
#define GRIB_UNABLE_TO_COMPARE_ACCESSORS -78
|
||||
/*! @}*/
|
||||
#endif
|
||||
|
|
|
@ -1564,30 +1564,6 @@ typedef struct j2k_encode_helper
|
|||
/* This part is automatically generated by ./errors.pl, do not edit */
|
||||
#ifndef grib_errors_internal_H
|
||||
#define grib_errors_internal_H
|
||||
/** Value mismatch */
|
||||
#define GRIB_VALUE_MISMATCH 1
|
||||
/** double values are different */
|
||||
#define GRIB_DOUBLE_VALUE_MISMATCH 2
|
||||
/** long values are different */
|
||||
#define GRIB_LONG_VALUE_MISMATCH 3
|
||||
/** byte values are different */
|
||||
#define GRIB_BYTE_VALUE_MISMATCH 4
|
||||
/** string values are different */
|
||||
#define GRIB_STRING_VALUE_MISMATCH 5
|
||||
/** Offset mismatch */
|
||||
#define GRIB_OFFSET_MISMATCH 6
|
||||
/** Count mismatch */
|
||||
#define GRIB_COUNT_MISMATCH 7
|
||||
/** Name mismatch */
|
||||
#define GRIB_NAME_MISMATCH 8
|
||||
/** Type mismatch */
|
||||
#define GRIB_TYPE_MISMATCH 9
|
||||
/** Type and value mismatch */
|
||||
#define GRIB_TYPE_AND_VALUE_MISMATCH 10
|
||||
/** Unable to compare accessors */
|
||||
#define GRIB_UNABLE_TO_COMPARE_ACCESSORS 11
|
||||
/** Unable to reset iterator */
|
||||
#define GRIB_UNABLE_TO_RESET_ITERATOR 12
|
||||
/** Assertion failure */
|
||||
#define GRIB_ASSERTION_FAILURE 13
|
||||
#endif
|
||||
|
|
|
@ -80,19 +80,18 @@ static const char *errors[] = {
|
|||
"Value out of coding range", /* -65 GRIB_OUT_OF_RANGE */
|
||||
"Size of bitmap is incorrect", /* -66 GRIB_WRONG_BITMAP_SIZE */
|
||||
"Functionality not enabled", /* -67 GRIB_FUNCTIONALITY_NOT_ENABLED */
|
||||
"Value mismatch", /* 1 GRIB_VALUE_MISMATCH */
|
||||
"double values are different", /* 2 GRIB_DOUBLE_VALUE_MISMATCH */
|
||||
"long values are different", /* 3 GRIB_LONG_VALUE_MISMATCH */
|
||||
"byte values are different", /* 4 GRIB_BYTE_VALUE_MISMATCH */
|
||||
"string values are different", /* 5 GRIB_STRING_VALUE_MISMATCH */
|
||||
"Offset mismatch", /* 6 GRIB_OFFSET_MISMATCH */
|
||||
"Count mismatch", /* 7 GRIB_COUNT_MISMATCH */
|
||||
"Name mismatch", /* 8 GRIB_NAME_MISMATCH */
|
||||
"Type mismatch", /* 9 GRIB_TYPE_MISMATCH */
|
||||
"Type and value mismatch", /* 10 GRIB_TYPE_AND_VALUE_MISMATCH */
|
||||
"Unable to compare accessors", /* 11 GRIB_UNABLE_TO_COMPARE_ACCESSORS */
|
||||
"Unable to reset iterator", /* 12 GRIB_UNABLE_TO_RESET_ITERATOR */
|
||||
"Assertion failure", /* 13 GRIB_ASSERTION_FAILURE */
|
||||
"Value mismatch", /* -68 GRIB_VALUE_MISMATCH */
|
||||
"Double values are different", /* -69 GRIB_DOUBLE_VALUE_MISMATCH */
|
||||
"Long values are different", /* -70 GRIB_LONG_VALUE_MISMATCH */
|
||||
"Byte values are different", /* -71 GRIB_BYTE_VALUE_MISMATCH */
|
||||
"String values are different", /* -72 GRIB_STRING_VALUE_MISMATCH */
|
||||
"Offset mismatch", /* -73 GRIB_OFFSET_MISMATCH */
|
||||
"Count mismatch", /* -74 GRIB_COUNT_MISMATCH */
|
||||
"Name mismatch", /* -75 GRIB_NAME_MISMATCH */
|
||||
"Type mismatch", /* -76 GRIB_TYPE_MISMATCH */
|
||||
"Type and value mismatch", /* -77 GRIB_TYPE_AND_VALUE_MISMATCH */
|
||||
"Unable to compare accessors", /* -78 GRIB_UNABLE_TO_COMPARE_ACCESSORS */
|
||||
"Assertion failure", /* 2 GRIB_ASSERTION_FAILURE */
|
||||
};
|
||||
|
||||
#define NUMBER(a) sizeof(a)/sizeof(a[0])
|
||||
|
|
|
@ -73,3 +73,14 @@ GRIB_UNSUPPORTED_EDITION Edition not supported.
|
|||
GRIB_OUT_OF_RANGE Value out of coding range
|
||||
GRIB_WRONG_BITMAP_SIZE Size of bitmap is incorrect
|
||||
GRIB_FUNCTIONALITY_NOT_ENABLED Functionality not enabled
|
||||
GRIB_VALUE_MISMATCH Value mismatch
|
||||
GRIB_DOUBLE_VALUE_MISMATCH Double values are different
|
||||
GRIB_LONG_VALUE_MISMATCH Long values are different
|
||||
GRIB_BYTE_VALUE_MISMATCH Byte values are different
|
||||
GRIB_STRING_VALUE_MISMATCH String values are different
|
||||
GRIB_OFFSET_MISMATCH Offset mismatch
|
||||
GRIB_COUNT_MISMATCH Count mismatch
|
||||
GRIB_NAME_MISMATCH Name mismatch
|
||||
GRIB_TYPE_MISMATCH Type mismatch
|
||||
GRIB_TYPE_AND_VALUE_MISMATCH Type and value mismatch
|
||||
GRIB_UNABLE_TO_COMPARE_ACCESSORS Unable to compare accessors
|
||||
|
|
|
@ -1,14 +1 @@
|
|||
/* accessors compare */
|
||||
GRIB_VALUE_MISMATCH Value mismatch
|
||||
GRIB_DOUBLE_VALUE_MISMATCH double values are different
|
||||
GRIB_LONG_VALUE_MISMATCH long values are different
|
||||
GRIB_BYTE_VALUE_MISMATCH byte values are different
|
||||
GRIB_STRING_VALUE_MISMATCH string values are different
|
||||
GRIB_OFFSET_MISMATCH Offset mismatch
|
||||
GRIB_COUNT_MISMATCH Count mismatch
|
||||
GRIB_NAME_MISMATCH Name mismatch
|
||||
GRIB_TYPE_MISMATCH Type mismatch
|
||||
GRIB_TYPE_AND_VALUE_MISMATCH Type and value mismatch
|
||||
GRIB_UNABLE_TO_COMPARE_ACCESSORS Unable to compare accessors
|
||||
GRIB_UNABLE_TO_RESET_ITERATOR Unable to reset iterator
|
||||
GRIB_ASSERTION_FAILURE Assertion failure
|
||||
|
|
Loading…
Reference in New Issue