Added installation functionality and renamed the package

This commit is contained in:
Joost van den Born committed 2020-05-19 12:07:29 +02:00
1 parent 9e0b09787c
commit f66d26c649
16 files changed
+40 -1700

No files matched your search

+19 -2
View File
@@ -13077,8 +13077,25 @@ div#notebook {
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h1 id="Example:-Calculating-atmospheric-dispersion-for-H-band">Example: Calculating atmospheric dispersion for H-band<a class="anchor-link" href="#Example:-Calculating-atmospheric-dispersion-for-H-band">&#182;</a></h1><p>Using atmosphericModel.py is made as simple as importing the python file and calling its functions. Several parameters are needed, such as location, temperature, pressure and relative humidity. Then the dispersion model object is initiated, allowing us to calculate the index of refraction for any set of TPH and CO2 content values.</p>
<h1 id="Example:-Calculating-atmospheric-dispersion-for-H-band">Example: Calculating atmospheric dispersion for H-band<a class="anchor-link" href="#Example:-Calculating-atmospheric-dispersion-for-H-band">&#182;</a></h1><p>Using atmosphericModel.py is made as simple as importing the python package and calling its functions. Several parameters are needed, such as location, temperature, pressure and relative humidity. Then the dispersion model object is initiated, allowing us to calculate the index of refraction for any set of TPH and CO2 content values.</p>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h3 id="Installation">Installation<a class="anchor-link" href="#Installation">&#182;</a></h3><p>We install the package using the <code>setup.py</code> file and running the following command:
<code>python setup.py install</code></p>
<p>Now the package can be imported using <code>import AstroAtmosphere</code> in Python.</p>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h3 id="How-it-works">How it works<a class="anchor-link" href="#How-it-works">&#182;</a></h3>
</div>
</div>
</div>
@@ -13090,7 +13107,7 @@ div#notebook {
<div class=" highlight hl-ipython3"><pre><span></span><span class="ch">#!/usr/bin/env Python</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
<span class="kn">from</span> <span class="nn">atmosphericModel</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">AstroAtmosphere</span> <span class="k">import</span> <span class="o">*</span>
<span class="c1"># Parameters at Cerro Armazones</span>