Latitudes, longitudes, data values arrays are returned. They must be properly allocated by the caller and their required dimension can be obtained with grib_get_size or by getting (with grib_get) the value of the integer key "numberOfPoints".
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: get_data.f90
[in] | gribid | id of the grib loaded in memory |
[out] | lats | latitudes array with dimension "size" |
[out] | lons | longitudes array with dimension "size" |
[out] | values | data values array with dimension "size" |
[out] | status | GRIB_SUCCESS if OK, integer value on error |