Skip to content

Commit

Permalink
AddDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmac994 authored and cmac994 committed Jan 11, 2021
1 parent 66d9aec commit 6c5e77d
Show file tree
Hide file tree
Showing 9 changed files with 254 additions and 64 deletions.
Binary file modified docs/_build/doctrees/api.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
101 changes: 80 additions & 21 deletions docs/_build/html/_sources/api.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ Ambient Conditions

Returns (double): air temperature (K)

.. function:: climate_api.density(latitude, longitude, altitude, ut)

Parameters

* latitude (double) - decimal degrees
* longitude (double) - decimal degrees
* altitude (double) - meters above sea level
* ut (double) - universal time in seconds (time since game began)

Returns (double): air density (kg/m^3)

.. function:: climate_api.relative_humidity(latitude, longitude, altitude, ut)

Parameters
Expand Down Expand Up @@ -184,6 +173,46 @@ Surface Conditions

Returns (double): skin surface temperature (K). On land = land surface temperature. On water = sea surface temperature (SST).


Derivatives
###########

.. function:: climate_api.density(pressure, temperature)

Parameters

* pressure (double) - air pressure (Pa)
* temperature (double) - air temperature (K)

Returns (double): air density (kg/m^3)

.. function:: climate_api.wspd(uwind, vwind, zwind)

Parameters

* uwind (double) - zonal wind component (m/s)
* vwind (double) - meridional wind component (m/s)
* zwind (double) - vertical wind component (m/s)

Returns (double): wind speed (m/s)

.. function:: climate_api.wdir_degrees(uwind, vwind)

Parameters

* uwind (double) - zonal wind component (m/s)
* vwind (double) - meridional wind component (m/s)

Returns (double): wind direction (degrees). Direction in which the wind is coming from (e.g. 45 or 225).

.. function:: climate_api.wdir_cardinal(wdir_degrees)

Parameters

* wdir_degrees (double) - wind direction (degrees)

Returns (string): cardinal wind direction. Direction in which the wind is coming from (e.g. NE or SW)

Weather API
-----------

Expand Down Expand Up @@ -278,16 +307,7 @@ Ambient Conditions
* ut (double) - universal time in seconds (time since game began)

Returns (double): air temperature (K)

.. function:: weather_api.density(altitude, ut)

Parameters

* altitude (double) - meters above sea level
* ut (double) - universal time in seconds (time since game began)

Returns (double): air density (kg/m^3)


.. function:: weather_api.relative_humidity(altitude, ut)

Parameters
Expand Down Expand Up @@ -365,5 +385,44 @@ Surface Conditions
* ut(double) - universal time in seconds (time since game began)

Returns (double): skin surface temperature (K). On land = land surface temperature. On water = sea surface temperature (SST).

Derivatives
###########

.. function:: weather_api.density(pressure, temperature)

Parameters

* pressure (double) - air pressure (Pa)
* temperature (double) - air temperature (K)

Returns (double): air density (kg/m^3)

.. function:: weather_api.wspd(uwind, vwind, zwind)

Parameters

* uwind (double) - zonal wind component (m/s)
* vwind (double) - meridional wind component (m/s)
* zwind (double) - vertical wind component (m/s)

Returns (double): wind speed (m/s)

.. function:: weather_api.wdir_degrees(uwind, vwind)

Parameters

* uwind (double) - zonal wind component (m/s)
* vwind (double) - meridional wind component (m/s)

Returns (double): wind direction (degrees). Direction in which the wind is coming from (e.g. 45 or 225).

.. function:: weather_api.wdir_cardinal(wdir_degrees)

Parameters

* wdir_degrees (double) - wind direction (degrees)

Returns (string): cardinal wind direction. Direction in which the wind is coming from (e.g. NE or SW)


140 changes: 112 additions & 28 deletions docs/_build/html/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,6 @@ <h3>Ambient Conditions<a class="headerlink" href="#ambient-conditions" title="Pe
<p>Returns (double): air temperature (K)</p>
</dd></dl>

<dl class="py function">
<dt id="climate_api.density">
<code class="sig-prename descclassname">climate_api.</code><code class="sig-name descname">density</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">latitude</span></em>, <em class="sig-param"><span class="n">longitude</span></em>, <em class="sig-param"><span class="n">altitude</span></em>, <em class="sig-param"><span class="n">ut</span></em><span class="sig-paren">)</span><a class="headerlink" href="#climate_api.density" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>latitude (double) - decimal degrees</p></li>
<li><p>longitude (double) - decimal degrees</p></li>
<li><p>altitude (double) - meters above sea level</p></li>
<li><p>ut (double) - universal time in seconds (time since game began)</p></li>
</ul>
</div></blockquote>
<p>Returns (double): air density (kg/m^3)</p>
</dd></dl>

<dl class="py function">
<dt id="climate_api.relative_humidity">
<code class="sig-prename descclassname">climate_api.</code><code class="sig-name descname">relative_humidity</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">latitude</span></em>, <em class="sig-param"><span class="n">longitude</span></em>, <em class="sig-param"><span class="n">altitude</span></em>, <em class="sig-param"><span class="n">ut</span></em><span class="sig-paren">)</span><a class="headerlink" href="#climate_api.relative_humidity" title="Permalink to this definition"></a></dt>
Expand Down Expand Up @@ -287,6 +272,61 @@ <h3>Surface Conditions<a class="headerlink" href="#surface-conditions" title="Pe
<p>Returns (double): skin surface temperature (K). On land = land surface temperature. On water = sea surface temperature (SST).</p>
</dd></dl>

</div>
<div class="section" id="derivatives">
<h3>Derivatives<a class="headerlink" href="#derivatives" title="Permalink to this headline"></a></h3>
<dl class="py function">
<dt id="climate_api.density">
<code class="sig-prename descclassname">climate_api.</code><code class="sig-name descname">density</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">pressure</span></em>, <em class="sig-param"><span class="n">temperature</span></em><span class="sig-paren">)</span><a class="headerlink" href="#climate_api.density" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>pressure (double) - air pressure (Pa)</p></li>
<li><p>temperature (double) - air temperature (K)</p></li>
</ul>
</div></blockquote>
<p>Returns (double): air density (kg/m^3)</p>
</dd></dl>

<dl class="py function">
<dt id="climate_api.wspd">
<code class="sig-prename descclassname">climate_api.</code><code class="sig-name descname">wspd</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">uwind</span></em>, <em class="sig-param"><span class="n">vwind</span></em>, <em class="sig-param"><span class="n">zwind</span></em><span class="sig-paren">)</span><a class="headerlink" href="#climate_api.wspd" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>uwind (double) - zonal wind component (m/s)</p></li>
<li><p>vwind (double) - meridional wind component (m/s)</p></li>
<li><p>zwind (double) - vertical wind component (m/s)</p></li>
</ul>
</div></blockquote>
<p>Returns (double): wind speed (m/s)</p>
</dd></dl>

<dl class="py function">
<dt id="climate_api.wdir_degrees">
<code class="sig-prename descclassname">climate_api.</code><code class="sig-name descname">wdir_degrees</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">uwind</span></em>, <em class="sig-param"><span class="n">vwind</span></em><span class="sig-paren">)</span><a class="headerlink" href="#climate_api.wdir_degrees" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>uwind (double) - zonal wind component (m/s)</p></li>
<li><p>vwind (double) - meridional wind component (m/s)</p></li>
</ul>
</div></blockquote>
<p>Returns (double): wind direction (degrees). Direction in which the wind is coming from (e.g. 45 or 225).</p>
</dd></dl>

<dl class="py function">
<dt id="climate_api.wdir_cardinal">
<code class="sig-prename descclassname">climate_api.</code><code class="sig-name descname">wdir_cardinal</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">wdir_degrees</span></em><span class="sig-paren">)</span><a class="headerlink" href="#climate_api.wdir_cardinal" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>wdir_degrees (double) - wind direction (degrees)</p></li>
</ul>
</div></blockquote>
<p>Returns (string): cardinal wind direction. Direction in which the wind is coming from (e.g. NE or SW)</p>
</dd></dl>

</div>
</div>
<div class="section" id="weather-api">
Expand Down Expand Up @@ -422,19 +462,6 @@ <h3>Ambient Conditions<a class="headerlink" href="#id3" title="Permalink to this
<p>Returns (double): air temperature (K)</p>
</dd></dl>

<dl class="py function">
<dt id="weather_api.density">
<code class="sig-prename descclassname">weather_api.</code><code class="sig-name descname">density</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">altitude</span></em>, <em class="sig-param"><span class="n">ut</span></em><span class="sig-paren">)</span><a class="headerlink" href="#weather_api.density" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>altitude (double) - meters above sea level</p></li>
<li><p>ut (double) - universal time in seconds (time since game began)</p></li>
</ul>
</div></blockquote>
<p>Returns (double): air density (kg/m^3)</p>
</dd></dl>

<dl class="py function">
<dt id="weather_api.relative_humidity">
<code class="sig-prename descclassname">weather_api.</code><code class="sig-name descname">relative_humidity</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">altitude</span></em>, <em class="sig-param"><span class="n">ut</span></em><span class="sig-paren">)</span><a class="headerlink" href="#weather_api.relative_humidity" title="Permalink to this definition"></a></dt>
Expand Down Expand Up @@ -549,6 +576,61 @@ <h3>Surface Conditions<a class="headerlink" href="#id4" title="Permalink to this
<p>Returns (double): skin surface temperature (K). On land = land surface temperature. On water = sea surface temperature (SST).</p>
</dd></dl>

</div>
<div class="section" id="id5">
<h3>Derivatives<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h3>
<dl class="py function">
<dt id="weather_api.density">
<code class="sig-prename descclassname">weather_api.</code><code class="sig-name descname">density</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">pressure</span></em>, <em class="sig-param"><span class="n">temperature</span></em><span class="sig-paren">)</span><a class="headerlink" href="#weather_api.density" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>pressure (double) - air pressure (Pa)</p></li>
<li><p>temperature (double) - air temperature (K)</p></li>
</ul>
</div></blockquote>
<p>Returns (double): air density (kg/m^3)</p>
</dd></dl>

<dl class="py function">
<dt id="weather_api.wspd">
<code class="sig-prename descclassname">weather_api.</code><code class="sig-name descname">wspd</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">uwind</span></em>, <em class="sig-param"><span class="n">vwind</span></em>, <em class="sig-param"><span class="n">zwind</span></em><span class="sig-paren">)</span><a class="headerlink" href="#weather_api.wspd" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>uwind (double) - zonal wind component (m/s)</p></li>
<li><p>vwind (double) - meridional wind component (m/s)</p></li>
<li><p>zwind (double) - vertical wind component (m/s)</p></li>
</ul>
</div></blockquote>
<p>Returns (double): wind speed (m/s)</p>
</dd></dl>

<dl class="py function">
<dt id="weather_api.wdir_degrees">
<code class="sig-prename descclassname">weather_api.</code><code class="sig-name descname">wdir_degrees</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">uwind</span></em>, <em class="sig-param"><span class="n">vwind</span></em><span class="sig-paren">)</span><a class="headerlink" href="#weather_api.wdir_degrees" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>uwind (double) - zonal wind component (m/s)</p></li>
<li><p>vwind (double) - meridional wind component (m/s)</p></li>
</ul>
</div></blockquote>
<p>Returns (double): wind direction (degrees). Direction in which the wind is coming from (e.g. 45 or 225).</p>
</dd></dl>

<dl class="py function">
<dt id="weather_api.wdir_cardinal">
<code class="sig-prename descclassname">weather_api.</code><code class="sig-name descname">wdir_cardinal</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">wdir_degrees</span></em><span class="sig-paren">)</span><a class="headerlink" href="#weather_api.wdir_cardinal" title="Permalink to this definition"></a></dt>
<dd><p>Parameters</p>
<blockquote>
<div><ul class="simple">
<li><p>wdir_degrees (double) - wind direction (degrees)</p></li>
</ul>
</div></blockquote>
<p>Returns (string): cardinal wind direction. Direction in which the wind is coming from (e.g. NE or SW)</p>
</dd></dl>

</div>
</div>
</div>
Expand All @@ -568,13 +650,15 @@ <h3><a href="index.html">Table of Contents</a></h3>
<li><a class="reference internal" href="#wind">Wind</a></li>
<li><a class="reference internal" href="#ambient-conditions">Ambient Conditions</a></li>
<li><a class="reference internal" href="#surface-conditions">Surface Conditions</a></li>
<li><a class="reference internal" href="#derivatives">Derivatives</a></li>
</ul>
</li>
<li><a class="reference internal" href="#weather-api">Weather API</a><ul>
<li><a class="reference internal" href="#id1">Utility</a></li>
<li><a class="reference internal" href="#id2">Wind</a></li>
<li><a class="reference internal" href="#id3">Ambient Conditions</a></li>
<li><a class="reference internal" href="#id4">Surface Conditions</a></li>
<li><a class="reference internal" href="#id5">Derivatives</a></li>
</ul>
</li>
</ul>
Expand Down
Loading

0 comments on commit 6c5e77d

Please sign in to comment.