diff --git a/_config.yml b/_config.yml index 6df42abc..0c9100b9 100644 --- a/_config.yml +++ b/_config.yml @@ -29,3 +29,12 @@ repository: html: use_issues_button: true use_repository_button: true + extra_footer: | + + This material is based upon work supported by the National + Science Foundation under Grant Nos. ?????. Any + opinions, findings, and conclusions or recommendations expressed + in this material are those of the author(s) and do not necessarily + reflect the views of the National Science Foundation.

+ All code in GeoCAT-Applications is licensed under Apache 2.0. All other non-code content is licensed + under Creative Commons BY 4.0 (CC BY 4.0). diff --git a/_static/custom.css b/_static/custom.css index e69de29b..56358cde 100644 --- a/_static/custom.css +++ b/_static/custom.css @@ -0,0 +1,3 @@ +footer { + color: white; +} \ No newline at end of file diff --git a/_static/logos/NCAR-contemp-logo-blue.svg b/_static/logos/NCAR-contemp-logo-blue.svg new file mode 100644 index 00000000..3bcda635 --- /dev/null +++ b/_static/logos/NCAR-contemp-logo-blue.svg @@ -0,0 +1 @@ +NCAR-contemp-logo-blue.a diff --git a/_static/logos/footer-logo-nsf.png b/_static/logos/footer-logo-nsf.png new file mode 100644 index 00000000..11c788f2 Binary files /dev/null and b/_static/logos/footer-logo-nsf.png differ diff --git a/_toc.yml b/_toc.yml index 51fec2e1..37f75953 100644 --- a/_toc.yml +++ b/_toc.yml @@ -4,15 +4,15 @@ format: jb-book root: landing-page parts: - - caption: File I/O + - caption: Applications chapters: - - file: notebooks/file_io/open_data_sample - - caption: Data Analysis - chapters: - - file: notebooks/data_analysis/open_data_sample - - caption: Models - chapters: - - file: notebooks/models/open_data_sample - - caption: Plot Types - chapters: - - file: notebooks/plot_types/open_data_sample + - file: file_io/file_io + sections: + - file: file_io/sample + - file: data_analysis/data_analysis + sections: + - file: data_analysis/sample + - file: plot_types/plot_types + sections: + - file: plot_types/contour + diff --git a/data_analysis/data_analysis.md b/data_analysis/data_analysis.md new file mode 100644 index 00000000..b0957fc3 --- /dev/null +++ b/data_analysis/data_analysis.md @@ -0,0 +1 @@ +# Data Analysis diff --git a/notebooks/models/open_data_sample.ipynb b/data_analysis/sample.ipynb similarity index 98% rename from notebooks/models/open_data_sample.ipynb rename to data_analysis/sample.ipynb index fdb7176c..c89ef688 100644 --- a/notebooks/models/open_data_sample.ipynb +++ b/data_analysis/sample.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Content with notebooks\n", + "# Sample Data Analysis Routine\n", "\n", "You can also create content with Jupyter Notebooks. This means that you can include\n", "code blocks and their outputs in your book.\n", diff --git a/file_io/file_io.md b/file_io/file_io.md new file mode 100644 index 00000000..920e882b --- /dev/null +++ b/file_io/file_io.md @@ -0,0 +1 @@ +# File I/O \ No newline at end of file diff --git a/notebooks/file_io/open_data_sample.ipynb b/file_io/sample.ipynb similarity index 98% rename from notebooks/file_io/open_data_sample.ipynb rename to file_io/sample.ipynb index fdb7176c..8869f07e 100644 --- a/notebooks/file_io/open_data_sample.ipynb +++ b/file_io/sample.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Content with notebooks\n", + "# Sample File I/O Routine\n", "\n", "You can also create content with Jupyter Notebooks. This means that you can include\n", "code blocks and their outputs in your book.\n", diff --git a/landing-page.md b/landing-page.md index f8cdc73c..a211c22a 100644 --- a/landing-page.md +++ b/landing-page.md @@ -7,5 +7,20 @@ It does not go in-depth into any particular topic - check out [the Jupyter Book Check out the content pages bundled with this sample book to see more. -```{tableofcontents} -``` +::::{grid} +:gutter: 3 + +:::{grid-item-card} File I/O +Here's the first card. +::: + +:::{grid-item-card} Data Analysis +Here's the second card. +::: + +:::{grid-item-card} [Plot Types](plot_types/plot_types) +[Contour](plot_types/contour)
+Line +::: + +:::: diff --git a/notebooks/plot_types/open_data_sample.ipynb b/notebooks/plot_types/open_data_sample.ipynb deleted file mode 100644 index fdb7176c..00000000 --- a/notebooks/plot_types/open_data_sample.ipynb +++ /dev/null @@ -1,122 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Content with notebooks\n", - "\n", - "You can also create content with Jupyter Notebooks. This means that you can include\n", - "code blocks and their outputs in your book.\n", - "\n", - "## Markdown + notebooks\n", - "\n", - "As it is markdown, you can embed images, HTML, etc into your posts!\n", - "\n", - "![](https://myst-parser.readthedocs.io/en/latest/_static/logo-wide.svg)\n", - "\n", - "You can also $add_{math}$ and\n", - "\n", - "$$\n", - "math^{blocks}\n", - "$$\n", - "\n", - "or\n", - "\n", - "$$\n", - "\\begin{aligned}\n", - "\\mbox{mean} la_{tex} \\\\ \\\\\n", - "math blocks\n", - "\\end{aligned}\n", - "$$\n", - "\n", - "But make sure you \\$Escape \\$your \\$dollar signs \\$you want to keep!\n", - "\n", - "## MyST markdown\n", - "\n", - "MyST markdown works in Jupyter Notebooks as well. For more information about MyST markdown, check\n", - "out [the MyST guide in Jupyter Book](https://jupyterbook.org/content/myst.html),\n", - "or see [the MyST markdown documentation](https://myst-parser.readthedocs.io/en/latest/).\n", - "\n", - "## Code blocks and outputs\n", - "\n", - "Jupyter Book will also embed your code blocks and output in your book.\n", - "For example, here's some sample Matplotlib code:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from matplotlib import rcParams, cycler\n", - "import matplotlib.pyplot as plt\n", - "import numpy as np\n", - "plt.ion()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Fixing random state for reproducibility\n", - "np.random.seed(19680801)\n", - "\n", - "N = 10\n", - "data = [np.logspace(0, 1, 100) + np.random.randn(100) + ii for ii in range(N)]\n", - "data = np.array(data).T\n", - "cmap = plt.cm.coolwarm\n", - "rcParams['axes.prop_cycle'] = cycler(color=cmap(np.linspace(0, 1, N)))\n", - "\n", - "\n", - "from matplotlib.lines import Line2D\n", - "custom_lines = [Line2D([0], [0], color=cmap(0.), lw=4),\n", - " Line2D([0], [0], color=cmap(.5), lw=4),\n", - " Line2D([0], [0], color=cmap(1.), lw=4)]\n", - "\n", - "fig, ax = plt.subplots(figsize=(10, 5))\n", - "lines = ax.plot(data)\n", - "ax.legend(custom_lines, ['Cold', 'Medium', 'Hot']);" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "There is a lot more that you can do with outputs (such as including interactive outputs)\n", - "with your book. For more information about this, see [the Jupyter Book documentation](https://jupyterbook.org)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "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.8.0" - }, - "widgets": { - "application/vnd.jupyter.widget-state+json": { - "state": {}, - "version_major": 2, - "version_minor": 0 - } - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/notebooks/data_analysis/open_data_sample.ipynb b/plot_types/contour.ipynb similarity index 98% rename from notebooks/data_analysis/open_data_sample.ipynb rename to plot_types/contour.ipynb index fdb7176c..87660a2d 100644 --- a/notebooks/data_analysis/open_data_sample.ipynb +++ b/plot_types/contour.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Content with notebooks\n", + "# Contour\n", "\n", "You can also create content with Jupyter Notebooks. This means that you can include\n", "code blocks and their outputs in your book.\n", diff --git a/plot_types/plot_types.md b/plot_types/plot_types.md new file mode 100644 index 00000000..aabd7a33 --- /dev/null +++ b/plot_types/plot_types.md @@ -0,0 +1 @@ +# Plot Types \ No newline at end of file