mirror of https://github.com/ecmwf/eccodes.git
68 lines
3.4 KiB
HTML
68 lines
3.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>grib_api: grib_get_data</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.3 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<h1><a class="anchor" name="grib_get_data">grib_get_data</a></h1><h2><a class="anchor" name="DESCRIPTION">
|
|
DESCRIPTION</a></h2>
|
|
Print a latitude, longitude, data values list<h2><a class="anchor" name="USAGE">
|
|
USAGE</a></h2>
|
|
grib_get_data [options] grib_file grib_file ...<h2><a class="anchor" name="OPTIONS">
|
|
OPTIONS</a></h2>
|
|
-M <br>
|
|
Multi-grib support off. Turn off support for multiple fields in single grib message <br>
|
|
<br>
|
|
-m missingValue <br>
|
|
The missing value is given through this option. Any string is allowed and it is printed in place of the missing values. Default is to skip the missing values. <br>
|
|
<br>
|
|
-p key[:{s/d/l}],key[:{s/d/l}],... <br>
|
|
Declaration of keys to print. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be requested. Default type is string. <br>
|
|
<br>
|
|
-R key1=relative_error1,key2=relative_error2,... <br>
|
|
Compare floating point values using the relative error as tolerance. key1=relative_error will compare key1 using relative_error1. all=relative_error will compare all the floating point keys using relative_error. Default all=0. <br>
|
|
<br>
|
|
-F format <br>
|
|
C style format for values. Default is "%.10e" <br>
|
|
<br>
|
|
-w key[:{s/d/l}]{=/!=}value,key[:{s/d/l}]{=/!=}value,... <br>
|
|
Where clause. Grib messages are processed only if they match all the key/value constraints. A valid constraint is of type key=value or key!=value. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be specified. Default type is string. <br>
|
|
<br>
|
|
-f <br>
|
|
Force. Force the execution not to fail on error. <br>
|
|
<br>
|
|
-G <br>
|
|
GRIBEX compatibility mode. <br>
|
|
<br>
|
|
-7 <br>
|
|
Does not fail when the message has wrong length <br>
|
|
<br>
|
|
-V <br>
|
|
Version. <br>
|
|
<br>
|
|
<h2><a class="anchor" name="grib_get_data_examples">
|
|
grib_get_data examples</a></h2>
|
|
<ol type=1>
|
|
<li>To get a latitude, longitude, value list, skipping the missing values(=9999) <div class="fragment"><pre class="fragment">
|
|
>grib_get_data ../data/reduced_gaussian_model_level.grib2
|
|
</pre></div></li><li>If you want to define your missing value=1111 and to print the string missing in place of it <div class="fragment"><pre class="fragment">
|
|
>grib_get_data -m 1111:missing ../data/reduced_gaussian_model_level.grib2
|
|
</pre></div></li><li>If you want to print the value of other keys with the data value list <div class="fragment"><pre class="fragment">
|
|
>grib_get_data -p centre,level,step ../data/reduced_gaussian_model_level.grib2
|
|
</pre></div> </li></ol>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 22 15:18:22 2009 for grib_api by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
|
|
</body>
|
|
</html>
|