You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This article relates to GRIB edition 2

Problem

Setting the fixed surface keys in the wrong order can lead to incorrect values.

Solution

The keys in Section 4 that relate to fixed surface properties should be set such that the two "type" keys: typeOfFirstFixedSurface and typeOfSecondFixedSurface are set before the scale keys.

codes_handle* h = ...;
...
codes_set_long(h, "typeOfFirstFixedSurface", 106);
codes_set_long(h, "typeOfSecondFixedSurface", 106);
codes_set_long(h, "scaledValueOfFirstFixedSurface", 3);
codes_set_long(h, "scaleFactorOfFirstFixedSurface", 2);
codes_set_long(h, "scaledValueOfSecondFixedSurface", 5);
codes_set_long(h, "scaleFactorOfSecondFixedSurface", 2);




  • No labels