Skip to content

Commit

Permalink
Deploying to gh-pages from @ c24bffa 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
lstanish-usgs committed Feb 2, 2024
1 parent d4df111 commit 179828f
Show file tree
Hide file tree
Showing 62 changed files with 641 additions and 351 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 1c5c321560f32c4bf1c7842919feccc2
config: 88a10a460d98f859e061ed7dc4beba59
tags: 645f666f9bcd5a90fca523b33c5a78b7
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _downloads/b49052630b2006dab0653b45ed145794/index-2.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _downloads/fc45bf934e3811753fe600c3a66c6841/index-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/flow_duration_curve_examples-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/hyswap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/index-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/streamflow_duration_hydrograph_examples-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/streamflow_duration_hydrograph_examples-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/streamflow_duration_hydrograph_examples-3.png
Binary file modified _images/streamflow_duration_hydrograph_examples-5.png
Binary file modified _images/streamflow_duration_hydrograph_examples-6.png
Binary file modified _images/streamflow_duration_hydrograph_examples-7.png
Diff not rendered.
Binary file modified _images/streamflow_duration_hydrograph_examples-9.png
8 changes: 4 additions & 4 deletions _modules/hyswap/cumulative.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hyswap.cumulative &#8212; hyswap 0.1.dev1+g2cb07e2 documentation</title>
<title>hyswap.cumulative &#8212; hyswap 0.1.dev1+gc24bffa documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../_static/bizstyle.css?v=f15d3b81" />
<link rel="stylesheet" type="text/css" href="../../_static/plot_directive.css" />

<script src="../../_static/documentation_options.js?v=5a72505b"></script>
<script src="../../_static/documentation_options.js?v=b6d95723"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/bizstyle.js"></script>
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">hyswap 0.1.dev1+g2cb07e2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">hyswap 0.1.dev1+gc24bffa documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" accesskey="U">Module code</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">hyswap.cumulative</a></li>
</ul>
Expand Down Expand Up @@ -229,7 +229,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">hyswap 0.1.dev1+g2cb07e2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">hyswap 0.1.dev1+gc24bffa documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module code</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">hyswap.cumulative</a></li>
</ul>
Expand Down
35 changes: 20 additions & 15 deletions _modules/hyswap/exceedance.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hyswap.exceedance &#8212; hyswap 0.1.dev1+g2cb07e2 documentation</title>
<title>hyswap.exceedance &#8212; hyswap 0.1.dev1+gc24bffa documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../_static/bizstyle.css?v=f15d3b81" />
<link rel="stylesheet" type="text/css" href="../../_static/plot_directive.css" />

<script src="../../_static/documentation_options.js?v=5a72505b"></script>
<script src="../../_static/documentation_options.js?v=b6d95723"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/bizstyle.js"></script>
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">hyswap 0.1.dev1+g2cb07e2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">hyswap 0.1.dev1+gc24bffa documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" accesskey="U">Module code</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">hyswap.exceedance</a></li>
</ul>
Expand Down Expand Up @@ -151,7 +151,10 @@ <h1>Source code for hyswap.exceedance</h1><div class="highlight"><pre>

<span class="sd"> method : str, optional</span>
<span class="sd"> Method (formulation) of plotting position formula.</span>
<span class="sd"> Default is &#39;weibull&#39; (Type 6).</span>
<span class="sd"> Default is &#39;weibull&#39; (Type 6). Additional available methods are</span>
<span class="sd"> &#39;interpolated_inverted_cdf&#39; (Type 4), &#39;hazen&#39; (Type 5),</span>
<span class="sd"> &#39;linear&#39; (Type 7), &#39;median_unbiased&#39; (Type 8), and &#39;normal_unbiased&#39;</span>
<span class="sd"> (Type 9).</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
Expand Down Expand Up @@ -179,27 +182,26 @@ <h1>Source code for hyswap.exceedance</h1><div class="highlight"><pre>
<span class="sd"> 0.0</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">if</span> <span class="n">method</span> <span class="o">==</span> <span class="s1">&#39;weibull&#39;</span><span class="p">:</span> <span class="c1"># R Type 6</span>
<span class="k">if</span> <span class="n">method</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;weibull&#39;</span><span class="p">,</span> <span class="s1">&#39;Type 6&#39;</span><span class="p">]:</span>
<span class="n">alpha</span> <span class="o">=</span> <span class="mi">0</span>
<span class="n">beta</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">elif</span> <span class="n">method</span> <span class="o">==</span> <span class="s1">&#39;linear&#39;</span><span class="p">:</span> <span class="c1"># R Type 4</span>
<span class="k">elif</span> <span class="n">method</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;interpolated_inverted_cdf&#39;</span><span class="p">,</span> <span class="s1">&#39;Type 4&#39;</span><span class="p">]:</span>
<span class="n">alpha</span> <span class="o">=</span> <span class="mi">0</span>
<span class="n">beta</span> <span class="o">=</span> <span class="mi">1</span>
<span class="k">elif</span> <span class="n">method</span> <span class="o">==</span> <span class="s1">&#39;hazen&#39;</span><span class="p">:</span> <span class="c1"># R Type 5</span>
<span class="k">elif</span> <span class="n">method</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;hazen&#39;</span><span class="p">,</span> <span class="s1">&#39;Type 5&#39;</span><span class="p">]:</span>
<span class="n">alpha</span> <span class="o">=</span> <span class="mf">0.5</span>
<span class="n">beta</span> <span class="o">=</span> <span class="mf">0.5</span>
<span class="k">elif</span> <span class="n">method</span> <span class="o">==</span> <span class="s1">&#39;gumbel&#39;</span><span class="p">:</span> <span class="c1"># R Type 7</span>
<span class="k">elif</span> <span class="n">method</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;linear&#39;</span><span class="p">,</span> <span class="s1">&#39;Type 7&#39;</span><span class="p">]:</span>
<span class="n">alpha</span> <span class="o">=</span> <span class="mi">1</span>
<span class="n">beta</span> <span class="o">=</span> <span class="mi">1</span>
<span class="k">elif</span> <span class="n">method</span> <span class="o">==</span> <span class="s2">&quot;reiss&quot;</span><span class="p">:</span> <span class="c1"># R Type 8</span>
<span class="k">elif</span> <span class="n">method</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;median_unbiased&#39;</span><span class="p">,</span> <span class="s1">&#39;Type 8&#39;</span><span class="p">]:</span>
<span class="n">alpha</span> <span class="o">=</span> <span class="mi">1</span><span class="o">/</span><span class="mi">3</span>
<span class="n">beta</span> <span class="o">=</span> <span class="mi">1</span><span class="o">/</span><span class="mi">3</span>
<span class="k">elif</span> <span class="n">method</span> <span class="o">==</span> <span class="s2">&quot;blom&quot;</span><span class="p">:</span> <span class="c1"># R Type 9</span>
<span class="k">elif</span> <span class="n">method</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;normal_unbiased&#39;</span><span class="p">,</span> <span class="s1">&#39;Type 9&#39;</span><span class="p">]:</span>
<span class="n">alpha</span> <span class="o">=</span> <span class="mi">3</span><span class="o">/</span><span class="mi">8</span>
<span class="n">beta</span> <span class="o">=</span> <span class="mi">3</span><span class="o">/</span><span class="mi">8</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;dist must be one of &#39;weibull&#39;, &#39;linear&#39;,&quot;</span> <span class="o">+</span>
<span class="s2">&quot;&#39;hazen&#39;, &#39;gumbel&#39;, &#39;reiss&#39;, or &#39;blom&#39;.&quot;</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;method type not recognized&quot;</span><span class="p">)</span>

<span class="c1"># some type conversions to get to a numpy array</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">values_to_compare</span><span class="p">,</span> <span class="nb">list</span><span class="p">):</span>
Expand Down Expand Up @@ -293,7 +295,10 @@ <h1>Source code for hyswap.exceedance</h1><div class="highlight"><pre>
<span class="sd"> The values to use to calculate the exceedance probability.</span>
<span class="sd"> method : str, optional</span>
<span class="sd"> Method (formulation) of plotting position formula.</span>
<span class="sd"> Default is &#39;weibull&#39; (Type 6).</span>
<span class="sd"> Default is &#39;weibull&#39; (Type 6). Additional available methods are</span>
<span class="sd"> &#39;interpolated_inverted_cdf&#39; (Type 4), &#39;hazen&#39; (Type 5),</span>
<span class="sd"> &#39;linear&#39; (Type 7), &#39;median_unbiased&#39; (Type 8), and &#39;normal_unbiased&#39;</span>
<span class="sd"> (Type 9).</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
Expand All @@ -308,7 +313,7 @@ <h1>Source code for hyswap.exceedance</h1><div class="highlight"><pre>
<span class="sd"> .. doctest::</span>

<span class="sd"> &gt;&gt;&gt; exceedance.calculate_exceedance_probability_from_values_multiple(</span>
<span class="sd"> ... [1, 1.25, 2.5], [1, 2, 3, 4], method=&#39;linear&#39;)</span>
<span class="sd"> ... [1, 1.25, 2.5], [1, 2, 3, 4], method=&#39;Type 4&#39;)</span>
<span class="sd"> array([1. , 0.75, 0.5 ])</span>

<span class="sd"> Fetch some data from NWIS and calculate the exceedance probability for a</span>
Expand Down Expand Up @@ -360,7 +365,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">hyswap 0.1.dev1+g2cb07e2 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">hyswap 0.1.dev1+gc24bffa documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module code</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">hyswap.exceedance</a></li>
</ul>
Expand Down
Loading

0 comments on commit 179828f

Please sign in to comment.