mirror of https://github.com/ecmwf/eccodes.git
API documentation
This commit is contained in:
parent
a96e43b41f
commit
b89527692c
|
@ -757,7 +757,7 @@ int codes_get_double(codes_handle* h, const char* key, double* value
|
|||
*
|
||||
* @param h : the handle to get the data from
|
||||
* @param key : the key to be searched
|
||||
* @param i : zero based index
|
||||
* @param i : zero-based index
|
||||
* @param value : the address of a double where the data will be retrieved
|
||||
* @return 0 if OK, integer value on error
|
||||
*/
|
||||
|
@ -768,22 +768,22 @@ int codes_get_double_element(codes_handle* h, const char* key, int i, double* va
|
|||
*
|
||||
* @param h : the handle to get the data from
|
||||
* @param key : the key to be searched
|
||||
* @param i : zero based array of indexes
|
||||
* @param i : zero-based array of indexes
|
||||
* @param size : size of the i and value arrays
|
||||
* @param value : the address of a double where the data will be retrieved
|
||||
* @param value : the double array for the data values
|
||||
* @return 0 if OK, integer value on error
|
||||
*/
|
||||
int codes_get_double_elements(codes_handle* h, const char* key, int* i, long size,double* value);
|
||||
int codes_get_double_elements(codes_handle* h, const char* key, int* i, long size, double* value);
|
||||
|
||||
/**
|
||||
* Get a string value from a key, if several keys of the same name are present, the last one is returned
|
||||
* @see codes_set_string
|
||||
*
|
||||
* @param h : the handle to get the data from
|
||||
* @param key : the key to be searched
|
||||
* @param mesg : the address of a string where the data will be retrieved
|
||||
* @param length : the address of a size_t that contains allocated length of the string on input, and that contains the actual length of the string on output
|
||||
* @return 0 if OK, integer value on error
|
||||
* @param h : the handle to get the data from
|
||||
* @param key : the key to be searched
|
||||
* @param mesg : the address of a string where the data will be retrieved
|
||||
* @param length : the address of a size_t that contains allocated length of the string on input, and that contains the actual length of the string on output
|
||||
* @return 0 if OK, integer value on error
|
||||
*/
|
||||
int codes_get_string(codes_handle* h, const char* key, char* mesg, size_t *length );
|
||||
|
||||
|
|
|
@ -773,7 +773,7 @@ int grib_get_double (grib_handle* h, const char* key, double* value);
|
|||
*
|
||||
* @param h : the handle to get the data from
|
||||
* @param key : the key to be searched
|
||||
* @param i : zero based index
|
||||
* @param i : zero-based index
|
||||
* @param value : the address of a double where the data will be retrieved
|
||||
* @return 0 if OK, integer value on error
|
||||
*/
|
||||
|
@ -784,12 +784,12 @@ int grib_get_double_element(grib_handle* h, const char* key, int i, double* valu
|
|||
*
|
||||
* @param h : the handle to get the data from
|
||||
* @param key : the key to be searched
|
||||
* @param i : zero based array of indexes
|
||||
* @param i : zero-based array of indexes
|
||||
* @param size : size of the i and value arrays
|
||||
* @param value : the address of a double where the data will be retrieved
|
||||
* @param value : the double array for the data values
|
||||
* @return 0 if OK, integer value on error
|
||||
*/
|
||||
int grib_get_double_elements(grib_handle* h, const char* key, int* i, long size,double* value);
|
||||
int grib_get_double_elements(grib_handle* h, const char* key, int* i, long size, double* value);
|
||||
|
||||
/**
|
||||
* Get a string value from a key, if several keys of the same name are present, the last one is returned
|
||||
|
|
|
@ -948,7 +948,7 @@ int grib_points_get_values(grib_handle* h, grib_points* points, double* val)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int grib_get_double_elements(grib_handle* h, const char* name, int* i, long len,double* val)
|
||||
int grib_get_double_elements(grib_handle* h, const char* name, int* i, long len, double* val)
|
||||
{
|
||||
double* values=0;
|
||||
int ret=0;
|
||||
|
@ -966,7 +966,6 @@ int grib_get_double_elements(grib_handle* h, const char* name, int* i, long len,
|
|||
}
|
||||
|
||||
values=(double*)grib_context_malloc( h->context,size * sizeof(double));
|
||||
|
||||
if (!values) {
|
||||
grib_context_log(h->context,GRIB_LOG_ERROR,"grib_get_double_elements: unable to allocate %ld bytes\n",
|
||||
size*sizeof(double));
|
||||
|
|
Loading…
Reference in New Issue