...
Plot the results and cross-reference with the original result of 6 fields to confirm that you understand what has been computed.
Automatic conversion between grids
Write some macro code which automatically converts t2m_forecast.grib to use the same grid as the first field in uv850.grib. Hints:
- read both files
- use the
grib_get_double(fieldset, string)
function twice to extract the grid resolution fromuv850[1]
- use the
read()
command to set the grid ont2m