<trclass="memdesc:a15e9f187ba45e4a334f270884c59651e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the integer value of a key from a message. <ahref="#a15e9f187ba45e4a334f270884c59651e">More...</a><br/></td></tr>
<trclass="memdesc:ad85e9d6d052fdcbfade2d201357e391d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the integer value of a key from a message. <ahref="#ad85e9d6d052fdcbfade2d201357e391d">More...</a><br/></td></tr>
<trclass="memdesc:ab6c505dfdf5a75f51c07683abed39b68"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the real(4) value of a key from a message. <ahref="#ab6c505dfdf5a75f51c07683abed39b68">More...</a><br/></td></tr>
<trclass="memdesc:a2ca22327e21aca686d29f8953e235839"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the real(8) value of a key from a message. <ahref="#a2ca22327e21aca686d29f8953e235839">More...</a><br/></td></tr>
<trclass="memdesc:a9b71df8830b162b7773cf4d1446b4303"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the character value of a key from a message. <ahref="#a9b71df8830b162b7773cf4d1446b4303">More...</a><br/></td></tr>
<trclass="memdesc:adee61373d840f0f6a73be5d574a47a1e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the array of bytes (character) for a key from a message. <ahref="#adee61373d840f0f6a73be5d574a47a1e">More...</a><br/></td></tr>
<trclass="memdesc:a620d907f796a466b9b849be12e96a274"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the integer array of values for a key from a message. <ahref="#a620d907f796a466b9b849be12e96a274">More...</a><br/></td></tr>
<trclass="memdesc:ae1df5b7389172122fe2c84c4156f18d0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the real(4) array of values for a key from a message. <ahref="#ae1df5b7389172122fe2c84c4156f18d0">More...</a><br/></td></tr>
<trclass="memdesc:a4b28e570e54dad5a779e0452d3ed66d4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the real(8) array of values for a key from a message. <ahref="#a4b28e570e54dad5a779e0452d3ed66d4">More...</a><br/></td></tr>
<divclass="textblock"><p>Get the value for a key from a grib message. </p>
<p>Given a <em>gribid</em> and <em>key</em> as input a <em>value</em> for the <em>key</em> is returned. In some cases the <em>value</em> 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 <em>value</em> array must be allocated by the caller and their required dimension can be obtained with <aclass="el"href="interfaceeccodes_1_1codes__get__size.html">codes_get_size</a>. <br/>
The <em>value</em> can be integer(4), real(4), real(8), character. Although each key has its own native type, a key of type integer can be retrieved (with <aclass="el"href="interfaceeccodes_1_1codes__get.html">codes_get</a>) as real(4), real(8) or character. Analogous conversions are always provided when possible. Illegal conversions are real to integer and character to any other type.</p>
<p>The <em>gribid</em> references to a grib message loaded in memory.</p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.</p>
<dlclass="section see"><dt>See Also</dt><dd><aclass="el"href="classeccodes.html#a5533c6fb8bd7d8f622c89484b7bbdfb6"title="Load in memory a message from a file. ">codes_new_from_file</a>, <aclass="el"href="classeccodes.html#a1c0ab28b0ae33f04d267d794a8bdd4b7"title="Free the memory for the message referred as msgid. ">codes_release</a>, <aclass="el"href="interfaceeccodes_1_1codes__set.html"title="Set the value for a key in a grib message. ">codes_set</a></dd></dl>
<p>Get the array of bytes (character) for a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>
<tr><tdclass="paramname">value</td><td>character(len=1) array of byte values </td></tr>
<tr><tdclass="paramname">length</td><td>(optional) output: number of values retrieved </td></tr>
<tr><tdclass="paramname">status</td><td>(optional) CODES_SUCCESS if OK, integer value on error </td></tr>
<p>Get the integer value of a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>
<tr><tdclass="paramname">value</td><td>the integer(4) value </td></tr>
<tr><tdclass="paramname">status</td><td>CODES_SUCCESS if OK, integer value on error </td></tr>
<p>Get the integer array of values for a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.<br/>
Note: This function supports the <b>allocatable</b> array attribute</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>
<tr><tdclass="paramname">value</td><td>integer(4) array value </td></tr>
<tr><tdclass="paramname">status</td><td>CODES_SUCCESS if OK, integer value on error </td></tr>
<p>Get the integer value of a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>
<tr><tdclass="paramname">value</td><td>the integer(4) value </td></tr>
<tr><tdclass="paramname">status</td><td>CODES_SUCCESS if OK, integer value on error </td></tr>
<p>Get the real(4) value of a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>
<tr><tdclass="paramname">value</td><td>the real(4) value </td></tr>
<tr><tdclass="paramname">status</td><td>CODES_SUCCESS if OK, integer value on error </td></tr>
<p>Get the real(4) array of values for a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.<br/>
Note: This function supports the <b>allocatable</b> array attribute</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>
<tr><tdclass="paramname">value</td><td>real(4) array value </td></tr>
<tr><tdclass="paramname">status</td><td>CODES_SUCCESS if OK, integer value on error </td></tr>
<p>Get the real(8) value of a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>
<tr><tdclass="paramname">value</td><td>the real(8) value </td></tr>
<tr><tdclass="paramname">status</td><td>CODES_SUCCESS if OK, integer value on error </td></tr>
<p>Get the real(8) array of values for a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.<br/>
Note: This function supports the <b>allocatable</b> array attribute</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>
<tr><tdclass="paramname">value</td><td>real(8) array value </td></tr>
<tr><tdclass="paramname">status</td><td>CODES_SUCCESS if OK, integer value on error </td></tr>
<p>Get the character value of a key from a message. </p>
<p>In case of error, if the status parameter (optional) is not given, the program will exit with an error message.<br/>
Otherwise the error message can be gathered with <aclass="el"href="classeccodes.html#a835de867b8ad79cc43f127e7048712f3">codes_get_error_string</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msgid</td><td>id of the message loaded in memory </td></tr>
<tr><tdclass="paramname">key</td><td>key name </td></tr>