Skip to content

Commit

Permalink
Fixed heading issue with insolation notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
vonw committed Apr 25, 2023
1 parent 935fb07 commit 4fb71d6
Show file tree
Hide file tree
Showing 12 changed files with 97 additions and 20 deletions.
Binary file modified _build/.doctrees/chapter4/Insolation.doctree
Binary file not shown.
Binary file modified _build/.doctrees/environment.pickle
Binary file not shown.
Binary file added _build/html/_images/Insolation_17_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _build/html/_images/Insolation_20_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions _build/html/_sources/chapter4/Insolation.ipynb
Expand Up @@ -152,6 +152,29 @@
" return Q\n"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Declination = -0.12600714770976626\n",
"Earth distance = 148981817.36070523\n",
"Q = 300.456485702979\n"
]
}
],
"source": [
"lat = 46.7\n",
"day = 31+28+22\n",
"print('Declination = ', declination(day))\n",
"print('Earth distance = ', earth_sun_distance(day))\n",
"print('Q =', Qday_avg(lat, day))"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
26 changes: 22 additions & 4 deletions _build/html/chapter4/Insolation.html
Expand Up @@ -624,6 +624,24 @@ <h3>Solar flux per unit area at TOA (Equations from Hartmann, <i>Global Physical
</div>
</div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">lat</span> <span class="o">=</span> <span class="mf">46.7</span>
<span class="n">day</span> <span class="o">=</span> <span class="mi">31</span><span class="o">+</span><span class="mi">28</span><span class="o">+</span><span class="mi">22</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Declination = &#39;</span><span class="p">,</span> <span class="n">declination</span><span class="p">(</span><span class="n">day</span><span class="p">))</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Earth distance = &#39;</span><span class="p">,</span> <span class="n">earth_sun_distance</span><span class="p">(</span><span class="n">day</span><span class="p">))</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Q =&#39;</span><span class="p">,</span> <span class="n">Qday_avg</span><span class="p">(</span><span class="n">lat</span><span class="p">,</span> <span class="n">day</span><span class="p">))</span>
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Declination = -0.12600714770976626
Earth distance = 148981817.36070523
Q = 300.456485702979
</pre></div>
</div>
</div>
</div>
</section>
</section>
<section id="geographic-distribution-of-insolation-solar-radition-at-toa">
Expand Down Expand Up @@ -651,7 +669,7 @@ <h2>Geographic distribution of insolation (solar radition) at TOA<a class="heade
</div>
</div>
<div class="cell_output docutils container">
<img alt="../_images/Insolation_16_0.png" src="../_images/Insolation_16_0.png" />
<img alt="../_images/Insolation_17_0.png" src="../_images/Insolation_17_0.png" />
</div>
</div>
<div class="cell docutils container">
Expand All @@ -675,10 +693,10 @@ <h2>Geographic distribution of insolation (solar radition) at TOA<a class="heade
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x11d27a4a0&gt;
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x12789b790&gt;
</pre></div>
</div>
<img alt="../_images/Insolation_17_1.png" src="../_images/Insolation_17_1.png" />
<img alt="../_images/Insolation_18_1.png" src="../_images/Insolation_18_1.png" />
</div>
</div>
</section>
Expand Down Expand Up @@ -707,7 +725,7 @@ <h2>Daily Average Insolation over Pullman, WA<a class="headerlink" href="#daily-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Text(0.5, 1.0, &#39;TOA Insolation over Pullman, WA&#39;)
</pre></div>
</div>
<img alt="../_images/Insolation_19_1.png" src="../_images/Insolation_19_1.png" />
<img alt="../_images/Insolation_20_1.png" src="../_images/Insolation_20_1.png" />
</div>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion _build/html/searchindex.js

Large diffs are not rendered by default.

41 changes: 32 additions & 9 deletions _build/jupyter_execute/chapter4/Insolation.ipynb
Expand Up @@ -152,6 +152,29 @@
" return Q\n"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Declination = -0.12600714770976626\n",
"Earth distance = 148981817.36070523\n",
"Q = 300.456485702979\n"
]
}
],
"source": [
"lat = 46.7\n",
"day = 31+28+22\n",
"print('Declination = ', declination(day))\n",
"print('Earth distance = ', earth_sun_distance(day))\n",
"print('Q =', Qday_avg(lat, day))"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -161,7 +184,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand All @@ -173,7 +196,7 @@
},
"metadata": {
"filenames": {
"image/png": "/Users/vonw/work/courses/2022-2023/spring/CE401/jupyterbook/CE401/_build/jupyter_execute/chapter4/Insolation_16_0.png"
"image/png": "/Users/vonw/work/courses/2022-2023/spring/CE401/jupyterbook/CE401/_build/jupyter_execute/chapter4/Insolation_17_0.png"
},
"needs_background": "light"
},
Expand Down Expand Up @@ -202,16 +225,16 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x11d27a4a0>"
"<matplotlib.legend.Legend at 0x12789b790>"
]
},
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
},
Expand All @@ -224,7 +247,7 @@
},
"metadata": {
"filenames": {
"image/png": "/Users/vonw/work/courses/2022-2023/spring/CE401/jupyterbook/CE401/_build/jupyter_execute/chapter4/Insolation_17_1.png"
"image/png": "/Users/vonw/work/courses/2022-2023/spring/CE401/jupyterbook/CE401/_build/jupyter_execute/chapter4/Insolation_18_1.png"
},
"needs_background": "light"
},
Expand Down Expand Up @@ -259,7 +282,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand All @@ -268,7 +291,7 @@
"Text(0.5, 1.0, 'TOA Insolation over Pullman, WA')"
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
},
Expand All @@ -281,7 +304,7 @@
},
"metadata": {
"filenames": {
"image/png": "/Users/vonw/work/courses/2022-2023/spring/CE401/jupyterbook/CE401/_build/jupyter_execute/chapter4/Insolation_19_1.png"
"image/png": "/Users/vonw/work/courses/2022-2023/spring/CE401/jupyterbook/CE401/_build/jupyter_execute/chapter4/Insolation_20_1.png"
},
"needs_background": "light"
},
Expand Down
16 changes: 13 additions & 3 deletions _build/jupyter_execute/chapter4/Insolation.py
Expand Up @@ -87,9 +87,19 @@ def Qday_avg(latitude,day):
return Q


# In[6]:


lat = 46.7
day = 31+28+22
print('Declination = ', declination(day))
print('Earth distance = ', earth_sun_distance(day))
print('Q =', Qday_avg(lat, day))


# ### Geographic distribution of insolation (solar radition) at TOA

# In[6]:
# In[7]:


lats = np.arange(-90.,91.)
Expand All @@ -111,7 +121,7 @@ def Qday_avg(latitude,day):
plt.title('TOA Insolation as a function of Day of Year and Latitude');


# In[7]:
# In[8]:


mar20 = 31+28+20
Expand All @@ -133,7 +143,7 @@ def Qday_avg(latitude,day):

# ## Daily Average Insolation over Pullman, WA

# In[8]:
# In[9]:


days = np.arange(1.,366.)
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions chapter4/Insolation.ipynb
Expand Up @@ -25,17 +25,19 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"### Calculates the insolation at the top of the atmosphere (TOA) as a function of time and location."
"## Calculates the insolation at the top of the atmosphere (TOA) as a function of time and location."
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Solar flux per unit area at TOA (Equations from Hartmann, <i>Global Physical Climatology</i>)"
"### Solar flux per unit area at TOA (Equations from Hartmann, <i>Global Physical Climatology</i>)"
]
},
{
Expand Down Expand Up @@ -176,10 +178,11 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"### Geographic distribution of insolation (solar radition) at TOA"
"## Geographic distribution of insolation (solar radition) at TOA"
]
},
{
Expand Down

0 comments on commit 4fb71d6

Please sign in to comment.