Changeset 30f7911 in flex_extract.git for Documentation/html/Documentation/Api/api_python.html
- Timestamp:
- Aug 20, 2019, 12:49:39 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 2255082
- Parents:
- 0690a6c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Documentation/html/Documentation/Api/api_python.html
rba99230 r30f7911 2216 2216 <em class="property">class </em><code class="descclassname">GribUtil.</code><code class="descname">GribUtil</code><span class="sig-paren">(</span><em>filenames</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil" title="Permalink to this definition">¶</a></dt> 2217 2217 <dd><p>Class for GRIB utilities (new methods) based on GRIB API</p> 2218 <p>The GRIB API provides all necessary tools to work directly with the 2219 grib files. Nevertheless, the GRIB API tools are very basic and are in 2220 direct connection with the grib files. This class provides some higher 2221 functions which apply a set of GRIB API tools together in the respective 2222 context. So, the class initially contains a list of grib files (their 2223 names) and the using program then applies the methods directly on the 2224 class objects without having to think about how the actual GRIB API 2225 tools have to be arranged.</p> 2218 2226 <dl class="method"> 2219 2227 <dt id="GribUtil.GribUtil.copy_dummy_msg"> 2220 <code class="descname">copy_dummy_msg</code><span class="sig-paren">(</span><em>filename_in</em>, <em>selectWhere=True</em>, <em>keynames=[]</em>, <em>keyvalues=[]</em>, <em>filemode='w '</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil.copy_dummy_msg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil.copy_dummy_msg" title="Permalink to this definition">¶</a></dt>2228 <code class="descname">copy_dummy_msg</code><span class="sig-paren">(</span><em>filename_in</em>, <em>selectWhere=True</em>, <em>keynames=[]</em>, <em>keyvalues=[]</em>, <em>filemode='wb'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil.copy_dummy_msg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil.copy_dummy_msg" title="Permalink to this definition">¶</a></dt> 2221 2229 <dd><p>Add the content of another input grib file to the objects file but 2222 2230 only messages corresponding to keys/values passed to the function. … … 2234 2242 <li><strong>keynames</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">list</span></code> of <code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – List of keynames. Default is an empty list.</li> 2235 2243 <li><strong>keyvalues</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">list</span></code> of <code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – List of keyvalues. Default is an empty list.</li> 2236 <li><strong>filemode</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – Sets the mode for the output file. Default is “w ”.</li>2244 <li><strong>filemode</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – Sets the mode for the output file. Default is “wb”.</li> 2237 2245 </ul> 2238 2246 </td> … … 2298 2306 <dl class="method"> 2299 2307 <dt id="GribUtil.GribUtil.set_keys"> 2300 <code class="descname">set_keys</code><span class="sig-paren">(</span><em>fromfile</em>, <em>keynames</em>, <em>keyvalues</em>, <em>wherekeynames=[]</em>, <em>wherekeyvalues=[]</em>, <em>strict=False</em>, <em>filemode='w '</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil.set_keys"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil.set_keys" title="Permalink to this definition">¶</a></dt>2308 <code class="descname">set_keys</code><span class="sig-paren">(</span><em>fromfile</em>, <em>keynames</em>, <em>keyvalues</em>, <em>wherekeynames=[]</em>, <em>wherekeyvalues=[]</em>, <em>strict=False</em>, <em>filemode='wb'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil.set_keys"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil.set_keys" title="Permalink to this definition">¶</a></dt> 2301 2309 <dd><p>Opens the file to read the grib messages and then write 2302 2310 the selected messages (with wherekeys) to a new output file. … … 2319 2327 is written out the grib file (False) or only those 2320 2328 meeting the where statement (True). Default is False.</li> 2321 <li><strong>filemode</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – Sets the mode for the output file. Default is “w ”.</li>2329 <li><strong>filemode</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – Sets the mode for the output file. Default is “wb”.</li> 2322 2330 </ul> 2323 2331 </td>
Note: See TracChangeset
for help on using the changeset viewer.