The given value is set for the key in the gribid message. In some cases the value can be an array rather than a scalar. As examples of array keys we have "values","pl", "pv" respectively the data values, the list of number of points for each latitude in a reduced grid and the list of vertical levels. In these cases the value array must be allocated by the caller and their required dimension can be obtained with grib_get_size.
The gribid references to a grib message loaded in memory.
In case of error, if the status parameter (optional) is not given, the program will exit with an error message.
Otherwise the error message can be gathered with grib_get_error_string.
Examples: set.f90
[in] | gribid | id of the grib loaded in memory |
[in] | key | key name |
[out] | value | value can be a scalar or array of integer(4),real(4),real(8) |
[out] | status | GRIB_SUCCESS if OK, integer value on error |