Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 15, 2024
1 parent 0f9364a commit e85da5e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 2 deletions.
7 changes: 7 additions & 0 deletions _modules/pysurfex/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ <h1>Source code for pysurfex.cli</h1><div class="highlight"><pre>
<span class="n">fileformat</span> <span class="o">=</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;sd_format&quot;</span><span class="p">]</span>
<span class="k">if</span> <span class="s2">&quot;sd_converter&quot;</span> <span class="ow">in</span> <span class="n">kwargs</span> <span class="ow">and</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;sd_converter&quot;</span><span class="p">]</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">converter</span> <span class="o">=</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;sd_converter&quot;</span><span class="p">]</span>
<span class="k">elif</span> <span class="n">var</span> <span class="o">==</span> <span class="s2">&quot;sea_ice_thickness&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="s2">&quot;icetk_file&quot;</span> <span class="ow">in</span> <span class="n">kwargs</span> <span class="ow">and</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;icetk_file&quot;</span><span class="p">]</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">inputfile</span> <span class="o">=</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;icetk_file&quot;</span><span class="p">]</span>
<span class="k">if</span> <span class="s2">&quot;icetk_format&quot;</span> <span class="ow">in</span> <span class="n">kwargs</span> <span class="ow">and</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;icetk_format&quot;</span><span class="p">]</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">fileformat</span> <span class="o">=</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;icetk_format&quot;</span><span class="p">]</span>
<span class="k">if</span> <span class="s2">&quot;icetk_converter&quot;</span> <span class="ow">in</span> <span class="n">kwargs</span> <span class="ow">and</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;icetk_converter&quot;</span><span class="p">]</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">converter</span> <span class="o">=</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;icetk_converter&quot;</span><span class="p">]</span>
<span class="k">elif</span> <span class="n">var</span> <span class="o">==</span> <span class="s2">&quot;cloud_base&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="s2">&quot;cb_file&quot;</span> <span class="ow">in</span> <span class="n">kwargs</span> <span class="ow">and</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;cb_file&quot;</span><span class="p">]</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">inputfile</span> <span class="o">=</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;cb_file&quot;</span><span class="p">]</span>
Expand Down
20 changes: 20 additions & 0 deletions _modules/pysurfex/cmd_parsing.html
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,25 @@ <h1>Source code for pysurfex.cmd_parsing</h1><div class="highlight"><pre>
<span class="n">choices</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;none&quot;</span><span class="p">,</span> <span class="s2">&quot;sweclim&quot;</span><span class="p">,</span> <span class="s2">&quot;swe2sd&quot;</span><span class="p">,</span> <span class="s2">&quot;sdp&quot;</span><span class="p">],</span>
<span class="p">)</span>

<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span>
<span class="s2">&quot;-icetk_file&quot;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="nb">str</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s2">&quot;Ice thickness file&quot;</span><span class="p">,</span> <span class="n">nargs</span><span class="o">=</span><span class="s2">&quot;?&quot;</span>
<span class="p">)</span>
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span>
<span class="s2">&quot;-icetk_format&quot;</span><span class="p">,</span>
<span class="nb">type</span><span class="o">=</span><span class="nb">str</span><span class="p">,</span>
<span class="n">default</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;Ice thickness file format&quot;</span><span class="p">,</span>
<span class="n">nargs</span><span class="o">=</span><span class="s2">&quot;?&quot;</span><span class="p">,</span>
<span class="n">choices</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;grib1&quot;</span><span class="p">,</span> <span class="s2">&quot;grib2&quot;</span><span class="p">,</span> <span class="s2">&quot;netcdf&quot;</span><span class="p">,</span> <span class="s2">&quot;surfex&quot;</span><span class="p">,</span> <span class="s2">&quot;fa&quot;</span><span class="p">],</span>
<span class="p">)</span>
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span>
<span class="s2">&quot;--icetk_converter&quot;</span><span class="p">,</span>
<span class="nb">type</span><span class="o">=</span><span class="nb">str</span><span class="p">,</span>
<span class="n">default</span><span class="o">=</span><span class="s2">&quot;none&quot;</span><span class="p">,</span>
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="p">,</span>
<span class="n">nargs</span><span class="o">=</span><span class="s2">&quot;?&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span>
<span class="s2">&quot;-cb_file&quot;</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="nb">str</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s2">&quot;Cloud base file&quot;</span><span class="p">,</span> <span class="n">nargs</span><span class="o">=</span><span class="s2">&quot;?&quot;</span>
<span class="p">)</span>
Expand Down Expand Up @@ -757,6 +776,7 @@ <h1>Source code for pysurfex.cmd_parsing</h1><div class="highlight"><pre>
<span class="s2">&quot;air_temperature_2m&quot;</span><span class="p">,</span>
<span class="s2">&quot;relative_humidity_2m&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_snow_thickness&quot;</span><span class="p">,</span>
<span class="s2">&quot;sea_ice_thickness&quot;</span><span class="p">,</span>
<span class="s2">&quot;cloud_base&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_soil_moisture&quot;</span><span class="p">,</span>
<span class="p">],</span>
Expand Down
4 changes: 4 additions & 0 deletions _modules/pysurfex/netcdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ <h1>Source code for pysurfex.netcdf</h1><div class="highlight"><pre>
<span class="s2">&quot;relative_humidity_2m&quot;</span><span class="p">:</span> <span class="s2">&quot;relative_humidity&quot;</span><span class="p">,</span>
<span class="s2">&quot;altitude&quot;</span><span class="p">:</span> <span class="s2">&quot;altitude&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_snow_thickness&quot;</span><span class="p">:</span> <span class="s2">&quot;surface_snow_thickness&quot;</span><span class="p">,</span>
<span class="s2">&quot;sea_ice_thickness&quot;</span><span class="p">:</span> <span class="s2">&quot;sea_ice_thickness&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_soil_moisture&quot;</span><span class="p">:</span> <span class="s2">&quot;surface_soil_moisture&quot;</span><span class="p">,</span>
<span class="s2">&quot;cloud_base&quot;</span><span class="p">:</span> <span class="s2">&quot;cloud_base&quot;</span><span class="p">,</span>
<span class="s2">&quot;land_area_fraction&quot;</span><span class="p">:</span> <span class="s2">&quot;land_area_fraction&quot;</span><span class="p">,</span>
Expand All @@ -688,6 +689,7 @@ <h1>Source code for pysurfex.netcdf</h1><div class="highlight"><pre>
<span class="s2">&quot;relative_humidity_2m&quot;</span><span class="p">:</span> <span class="s2">&quot;Screen level relative humidity (RH2M)&quot;</span><span class="p">,</span>
<span class="s2">&quot;altitude&quot;</span><span class="p">:</span> <span class="s2">&quot;Altitude&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_snow_thickness&quot;</span><span class="p">:</span> <span class="s2">&quot;Surface snow thickness&quot;</span><span class="p">,</span>
<span class="s2">&quot;sea_ice_thickness&quot;</span><span class="p">:</span> <span class="s2">&quot;Sea ice thickness&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_soil_moisture&quot;</span><span class="p">:</span> <span class="s2">&quot;Surface soil moisture&quot;</span><span class="p">,</span>
<span class="s2">&quot;cloud_base&quot;</span><span class="p">:</span> <span class="s2">&quot;Cloud base&quot;</span><span class="p">,</span>
<span class="s2">&quot;land_area_fraction&quot;</span><span class="p">:</span> <span class="s2">&quot;Land Area Fraction&quot;</span><span class="p">,</span>
Expand All @@ -697,6 +699,7 @@ <h1>Source code for pysurfex.netcdf</h1><div class="highlight"><pre>
<span class="s2">&quot;relative_humidity_2m&quot;</span><span class="p">:</span> <span class="s2">&quot;1&quot;</span><span class="p">,</span>
<span class="s2">&quot;altitude&quot;</span><span class="p">:</span> <span class="s2">&quot;m&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_snow_thickness&quot;</span><span class="p">:</span> <span class="s2">&quot;m&quot;</span><span class="p">,</span>
<span class="s2">&quot;sea_ice_thickness&quot;</span><span class="p">:</span> <span class="s2">&quot;m&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_soil_moisture&quot;</span><span class="p">:</span> <span class="s2">&quot;m3/m3&quot;</span><span class="p">,</span>
<span class="s2">&quot;cloud_base&quot;</span><span class="p">:</span> <span class="s2">&quot;m&quot;</span><span class="p">,</span>
<span class="s2">&quot;land_area_fraction&quot;</span><span class="p">:</span> <span class="s2">&quot;1&quot;</span><span class="p">,</span>
Expand All @@ -706,6 +709,7 @@ <h1>Source code for pysurfex.netcdf</h1><div class="highlight"><pre>
<span class="s2">&quot;relative_humidity_2m&quot;</span><span class="p">:</span> <span class="s2">&quot;9.96921e+36&quot;</span><span class="p">,</span>
<span class="s2">&quot;altitude&quot;</span><span class="p">:</span> <span class="s2">&quot;9.96921e+36&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_snow_thickness&quot;</span><span class="p">:</span> <span class="s2">&quot;9.96921e+36&quot;</span><span class="p">,</span>
<span class="s2">&quot;sea_ice_thickness&quot;</span><span class="p">:</span> <span class="s2">&quot;9.96921e+36&quot;</span><span class="p">,</span>
<span class="s2">&quot;surface_soil_moisture&quot;</span><span class="p">:</span> <span class="s2">&quot;9.96921e+36&quot;</span><span class="p">,</span>
<span class="s2">&quot;cloud_base&quot;</span><span class="p">:</span> <span class="s2">&quot;9.96921e+36&quot;</span><span class="p">,</span>
<span class="s2">&quot;land_area_fraction&quot;</span><span class="p">:</span> <span class="s2">&quot;9.96921e+36&quot;</span><span class="p">,</span>
Expand Down
2 changes: 1 addition & 1 deletion _sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. SURFEX Python API documentation master file, created by
auto_sphinx.py on Wed Dec 20 08:51:35 2023
auto_sphinx.py on Mon Jan 15 15:14:19 2024
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Expand Down
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit e85da5e

Please sign in to comment.