Skip to content

Commit b19861a

Browse files
deploy: 5d228d9
1 parent 4f6a24c commit b19861a

File tree

189 files changed

+19403
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+19403
-0
lines changed

_preview/35/.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: af4109afea28d3188def59fc8c546001
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
.. _applications:
2+
3+
.. grid:: 4
4+
:gutter: 2
5+
6+
.. grid-item::
7+
8+
.. grid:: 1
9+
:gutter: 1
10+
11+
.. card:: `Plot Types <applications/plot_types/plot_types.rst>`_
12+
13+
- `Contour <applications/plot_types/contour.ipynb>`_
14+
- Plot type 2
15+
- Plot type 3
16+
17+
18+
.. grid-item::
19+
20+
.. grid:: 1
21+
:gutter: 1
22+
23+
.. card:: `Data Analysis <applications/data_analysis/data_analysis.rst>`_
24+
25+
- `Data Analysis 1 <applications/data_analysis/sample.ipynb>`_
26+
27+
.. grid-item::
28+
29+
.. grid:: 1
30+
:gutter: 1
31+
32+
.. card:: `File I/O <applications/file_io/file_io.rst>`_
33+
34+
- `File I/O 1 <applications/file_io/sample.ipynb>`_
35+
36+
.. card:: Date Time Routines
37+
38+
39+
.. grid-item::
40+
41+
.. grid:: 1
42+
:gutter: 1
43+
44+
.. card:: Regridding
45+
46+
.. card:: Interpolation
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. currentmodule:: geocat.applications
2+
3+
.. _applications_data_analysis:
4+
5+
Data Analysis
6+
=============
7+
8+
.. toctree::
9+
:maxdepth: 1
10+
:hidden:
11+
12+
sample.ipynb
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Sample Data Analysis Routine\n",
8+
"\n",
9+
"You can also create content with Jupyter Notebooks. This means that you can include\n",
10+
"code blocks and their outputs in your book.\n",
11+
"\n",
12+
"## Markdown + notebooks\n",
13+
"\n",
14+
"As it is markdown, you can embed images, HTML, etc into your posts!\n",
15+
"\n",
16+
"![](https://myst-parser.readthedocs.io/en/latest/_static/logo-wide.svg)\n",
17+
"\n",
18+
"You can also $add_{math}$ and\n",
19+
"\n",
20+
"$$\n",
21+
"math^{blocks}\n",
22+
"$$\n",
23+
"\n",
24+
"or\n",
25+
"\n",
26+
"$$\n",
27+
"\\begin{aligned}\n",
28+
"\\mbox{mean} la_{tex} \\\\ \\\\\n",
29+
"math blocks\n",
30+
"\\end{aligned}\n",
31+
"$$\n",
32+
"\n",
33+
"But make sure you \\$Escape \\$your \\$dollar signs \\$you want to keep!\n",
34+
"\n",
35+
"## MyST markdown\n",
36+
"\n",
37+
"MyST markdown works in Jupyter Notebooks as well. For more information about MyST markdown, check\n",
38+
"out [the MyST guide in Jupyter Book](https://jupyterbook.org/content/myst.html),\n",
39+
"or see [the MyST markdown documentation](https://myst-parser.readthedocs.io/en/latest/).\n",
40+
"\n",
41+
"## Code blocks and outputs\n",
42+
"\n",
43+
"Jupyter Book will also embed your code blocks and output in your book.\n",
44+
"For example, here's some sample Matplotlib code:"
45+
]
46+
},
47+
{
48+
"cell_type": "code",
49+
"execution_count": null,
50+
"metadata": {},
51+
"outputs": [],
52+
"source": [
53+
"from matplotlib import rcParams, cycler\n",
54+
"import matplotlib.pyplot as plt\n",
55+
"import numpy as np\n",
56+
"\n",
57+
"plt.ion()"
58+
]
59+
},
60+
{
61+
"cell_type": "code",
62+
"execution_count": null,
63+
"metadata": {},
64+
"outputs": [],
65+
"source": [
66+
"# Fixing random state for reproducibility\n",
67+
"np.random.seed(19680801)\n",
68+
"\n",
69+
"N = 10\n",
70+
"data = [np.logspace(0, 1, 100) + np.random.randn(100) + ii for ii in range(N)]\n",
71+
"data = np.array(data).T\n",
72+
"cmap = plt.cm.coolwarm\n",
73+
"rcParams['axes.prop_cycle'] = cycler(color=cmap(np.linspace(0, 1, N)))\n",
74+
"\n",
75+
"\n",
76+
"from matplotlib.lines import Line2D\n",
77+
"\n",
78+
"custom_lines = [\n",
79+
" Line2D([0], [0], color=cmap(0.0), lw=4),\n",
80+
" Line2D([0], [0], color=cmap(0.5), lw=4),\n",
81+
" Line2D([0], [0], color=cmap(1.0), lw=4),\n",
82+
"]\n",
83+
"\n",
84+
"fig, ax = plt.subplots(figsize=(10, 5))\n",
85+
"lines = ax.plot(data)\n",
86+
"ax.legend(custom_lines, ['Cold', 'Medium', 'Hot']);"
87+
]
88+
},
89+
{
90+
"cell_type": "markdown",
91+
"metadata": {},
92+
"source": [
93+
"There is a lot more that you can do with outputs (such as including interactive outputs)\n",
94+
"with your book. For more information about this, see [the Jupyter Book documentation](https://jupyterbook.org)"
95+
]
96+
}
97+
],
98+
"metadata": {
99+
"kernelspec": {
100+
"display_name": "Python 3",
101+
"language": "python",
102+
"name": "python3"
103+
},
104+
"language_info": {
105+
"codemirror_mode": {
106+
"name": "ipython",
107+
"version": 3
108+
},
109+
"file_extension": ".py",
110+
"mimetype": "text/x-python",
111+
"name": "python",
112+
"nbconvert_exporter": "python",
113+
"pygments_lexer": "ipython3",
114+
"version": "3.8.0"
115+
},
116+
"widgets": {
117+
"application/vnd.jupyter.widget-state+json": {
118+
"state": {},
119+
"version_major": 2,
120+
"version_minor": 0
121+
}
122+
}
123+
},
124+
"nbformat": 4,
125+
"nbformat_minor": 4
126+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. currentmodule:: geocat.applications
2+
3+
.. _applications_file_io:
4+
5+
File I/O
6+
========
7+
8+
.. toctree::
9+
:maxdepth: 1
10+
:hidden:
11+
12+
sample.ipynb
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Sample File I/O Routine\n",
8+
"\n",
9+
"You can also create content with Jupyter Notebooks. This means that you can include\n",
10+
"code blocks and their outputs in your book.\n",
11+
"\n",
12+
"## Markdown + notebooks\n",
13+
"\n",
14+
"As it is markdown, you can embed images, HTML, etc into your posts!\n",
15+
"\n",
16+
"![](https://myst-parser.readthedocs.io/en/latest/_static/logo-wide.svg)\n",
17+
"\n",
18+
"You can also $add_{math}$ and\n",
19+
"\n",
20+
"$$\n",
21+
"math^{blocks}\n",
22+
"$$\n",
23+
"\n",
24+
"or\n",
25+
"\n",
26+
"$$\n",
27+
"\\begin{aligned}\n",
28+
"\\mbox{mean} la_{tex} \\\\ \\\\\n",
29+
"math blocks\n",
30+
"\\end{aligned}\n",
31+
"$$\n",
32+
"\n",
33+
"But make sure you \\$Escape \\$your \\$dollar signs \\$you want to keep!\n",
34+
"\n",
35+
"## MyST markdown\n",
36+
"\n",
37+
"MyST markdown works in Jupyter Notebooks as well. For more information about MyST markdown, check\n",
38+
"out [the MyST guide in Jupyter Book](https://jupyterbook.org/content/myst.html),\n",
39+
"or see [the MyST markdown documentation](https://myst-parser.readthedocs.io/en/latest/).\n",
40+
"\n",
41+
"## Code blocks and outputs\n",
42+
"\n",
43+
"Jupyter Book will also embed your code blocks and output in your book.\n",
44+
"For example, here's some sample Matplotlib code:"
45+
]
46+
},
47+
{
48+
"cell_type": "code",
49+
"execution_count": null,
50+
"metadata": {},
51+
"outputs": [],
52+
"source": [
53+
"from matplotlib import rcParams, cycler\n",
54+
"import matplotlib.pyplot as plt\n",
55+
"import numpy as np\n",
56+
"\n",
57+
"plt.ion()"
58+
]
59+
},
60+
{
61+
"cell_type": "code",
62+
"execution_count": null,
63+
"metadata": {},
64+
"outputs": [],
65+
"source": [
66+
"# Fixing random state for reproducibility\n",
67+
"np.random.seed(19680801)\n",
68+
"\n",
69+
"N = 10\n",
70+
"data = [np.logspace(0, 1, 100) + np.random.randn(100) + ii for ii in range(N)]\n",
71+
"data = np.array(data).T\n",
72+
"cmap = plt.cm.coolwarm\n",
73+
"rcParams['axes.prop_cycle'] = cycler(color=cmap(np.linspace(0, 1, N)))\n",
74+
"\n",
75+
"\n",
76+
"from matplotlib.lines import Line2D\n",
77+
"\n",
78+
"custom_lines = [\n",
79+
" Line2D([0], [0], color=cmap(0.0), lw=4),\n",
80+
" Line2D([0], [0], color=cmap(0.5), lw=4),\n",
81+
" Line2D([0], [0], color=cmap(1.0), lw=4),\n",
82+
"]\n",
83+
"\n",
84+
"fig, ax = plt.subplots(figsize=(10, 5))\n",
85+
"lines = ax.plot(data)\n",
86+
"ax.legend(custom_lines, ['Cold', 'Medium', 'Hot']);"
87+
]
88+
},
89+
{
90+
"cell_type": "markdown",
91+
"metadata": {},
92+
"source": [
93+
"There is a lot more that you can do with outputs (such as including interactive outputs)\n",
94+
"with your book. For more information about this, see [the Jupyter Book documentation](https://jupyterbook.org)"
95+
]
96+
}
97+
],
98+
"metadata": {
99+
"kernelspec": {
100+
"display_name": "Python 3",
101+
"language": "python",
102+
"name": "python3"
103+
},
104+
"language_info": {
105+
"codemirror_mode": {
106+
"name": "ipython",
107+
"version": 3
108+
},
109+
"file_extension": ".py",
110+
"mimetype": "text/x-python",
111+
"name": "python",
112+
"nbconvert_exporter": "python",
113+
"pygments_lexer": "ipython3",
114+
"version": "3.8.0"
115+
},
116+
"widgets": {
117+
"application/vnd.jupyter.widget-state+json": {
118+
"state": {},
119+
"version_major": 2,
120+
"version_minor": 0
121+
}
122+
}
123+
},
124+
"nbformat": 4,
125+
"nbformat_minor": 4
126+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _ncl_applications:
2+
3+
NCL Applications
4+
================

0 commit comments

Comments
 (0)