Skip to content

Commit

Permalink
Add back all the JupyterBook stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
vonw committed Jan 19, 2024
1 parent c08eb0c commit 6f289e4
Show file tree
Hide file tree
Showing 375 changed files with 77,803 additions and 0 deletions.
Binary file added _build/.doctrees/PlancksLaw.doctree
Binary file not shown.
Binary file added _build/.doctrees/Q.doctree
Binary file not shown.
Binary file added _build/.doctrees/chapter1.doctree
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/chapter10.doctree
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/chapter2.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/chapter3.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/chapter3/PlancksLaw.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/chapter4.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/chapter4/Insolation.doctree
Binary file not shown.
Binary file added _build/.doctrees/chapter4/Q.doctree
Binary file not shown.
Binary file added _build/.doctrees/chapter4/Solar Constant.doctree
Binary file not shown.
Binary file added _build/.doctrees/chapter4/SolarConstant.doctree
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/environment.pickle
Binary file not shown.
1 change: 1 addition & 0 deletions _build/.doctrees/glue_cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Binary file added _build/.doctrees/homework.doctree
Binary file not shown.
Binary file added _build/.doctrees/homework/hw2.doctree
Binary file not shown.
Binary file added _build/.doctrees/intro.doctree
Binary file not shown.
Binary file added _build/.doctrees/markdown.doctree
Binary file not shown.
Binary file added _build/.doctrees/notebooks.doctree
Binary file not shown.
Binary file added _build/.doctrees/plotBerkeleyEarth.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions _build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +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: a174a151aa28075e065449de21ad8ede
tags: 645f666f9bcd5a90fca523b33c5a78b7
511 changes: 511 additions & 0 deletions _build/html/PlancksLaw.html

Large diffs are not rendered by default.

412 changes: 412 additions & 0 deletions _build/html/Q.html

Large diffs are not rendered by default.

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/ASHRAE_Irradiance_17_1.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/ASHRAE_Irradiance_18_1.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/ASHRAE_Irradiance_8_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/FairbanksTemperatures_5_0.png
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.
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.
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.
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.
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.
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.
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.
Binary file added _build/html/_images/Insolation_14_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_15_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_15_1.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_16_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_16_1.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_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_17_1.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_18_1.png
Binary file added _build/html/_images/Insolation_19_1.png
Binary file added _build/html/_images/Insolation_20_1.png
Binary file added _build/html/_images/PlancksLaw_10_0.png
Binary file added _build/html/_images/PlancksLaw_11_0.png
Binary file added _build/html/_images/PlancksLaw_15_0.png
Binary file added _build/html/_images/PlancksLaw_16_0.png
Binary file added _build/html/_images/PlancksLaw_5_0.png
Binary file added _build/html/_images/notebooks_2_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_10_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_11_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_12_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_13_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_14_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_15_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_6_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_6_1.png
Binary file added _build/html/_images/plotBerkeleyEarth_7_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_7_1.png
Binary file added _build/html/_images/plotBerkeleyEarth_8_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_8_1.png
Binary file added _build/html/_images/plotBerkeleyEarth_9_0.png
Binary file added _build/html/_images/plotBerkeleyEarth_9_1.png

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:root {
--tabs-color-label-active: hsla(231, 99%, 66%, 1);
--tabs-color-label-inactive: rgba(178, 206, 245, 0.62);
--tabs-color-overline: rgb(207, 236, 238);
--tabs-color-underline: rgb(207, 236, 238);
--tabs-size-label: 1rem;
}
299 changes: 299 additions & 0 deletions _build/html/_sources/PlancksLaw.ipynb

Large diffs are not rendered by default.

181 changes: 181 additions & 0 deletions _build/html/_sources/Q.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Populating the interactive namespace from numpy and matplotlib\n"
]
}
],
"source": [
"%pylab inline"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1370.009062700824 W m-2\n"
]
}
],
"source": [
"Tsun = 5779. # Kelvin\n",
"Rsun = 696300. # km\n",
"Res = 149.6e6 # km (mean distance between the earth and sun)\n",
"Rearth = 6370. # km\n",
"\n",
"So = (5.67e-8 * Tsun**4) * (4*pi*Rsun**2) / (4*pi*Res**2)\n",
"print(So,' W m-2')"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"def earth_sun_distance(day):\n",
" a = 149.6e6 # km\n",
" e = 0.017\n",
" theta = day * ((2*pi) / 365.25) # This is only an approximation.\n",
" r = a*(1-e*e)/(1+e * cos(theta))\n",
" return r"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"def declination(day):\n",
" d = -23.44 * cos( (2.*pi) / 365.25 * (day + 10) ) # Approximate\n",
" return d"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"def solar_zenith_angle(latitude,declinationAngle,hour):\n",
" # All angles must be in radians !!\n",
" latitude = latitude * (pi/180.)\n",
" declinationAngle = declinationAngle * (pi/180.)\n",
" h = 15. * (12. - hour) * (pi/180.)\n",
" sza = arccos(sin(latitude)*sin(declinationAngle) + cos(latitude)*cos(declinationAngle)*cos(h))\n",
" return sza"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"day = 31 + 28 + 31 + 30 + 31 + 21"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"172"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"day"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"23.43864523879915"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"declination(day)"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1258.361618003149"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"So * cos(solar_zenith_angle(46.73, declination(day), 12.))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
4 changes: 4 additions & 0 deletions _build/html/_sources/chapter1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# An Introduction to the Climate Problem

Chapter 1 includes the following computational notebooks:
- Comparing two temperature distributions for Fairbanks, Alaska
119 changes: 119 additions & 0 deletions _build/html/_sources/chapter1/FairbanksTemperatures.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions _build/html/_sources/chapter10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Exponential Growth

Chapter 10 includes the following computational notebooks:
- Exponential growth

0 comments on commit 6f289e4

Please sign in to comment.