Skip to content

Commit 4ced165

Browse files
committed
Copy from previous repo
0 parents  commit 4ced165

File tree

12 files changed

+668
-0
lines changed

12 files changed

+668
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This file was created automatically with `jupyter-book init --gh-pages` 🪄 💚
2+
# Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**.
3+
4+
name: Jupyter Book (via myst) GitHub Pages Deploy
5+
on:
6+
push:
7+
# Runs on pushes targeting the default branch
8+
branches: [main]
9+
env:
10+
# `BASE_URL` determines, relative to the root of the domain, the URL that your site is served from.
11+
# E.g., if your site lives at `https://mydomain.org/myproject`, set `BASE_URL=/myproject`.
12+
# If, instead, your site lives at the root of the domain, at `https://mydomain.org`, set `BASE_URL=''`.
13+
BASE_URL: ""
14+
15+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
22+
concurrency:
23+
group: "pages"
24+
cancel-in-progress: false
25+
jobs:
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v3
35+
- uses: actions/setup-node@v4
36+
with:
37+
node-version: 18.x
38+
- name: Install Jupyter Book (via myst)
39+
run: npm install -g jupyter-book
40+
- name: Build HTML Assets
41+
run: jupyter-book build --html
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: "./_build/html"
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
3+
# MyST build outputs
4+
_build

LICENSE

Lines changed: 386 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Readme

climate/climate-normals.ipynb

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "d1b64d1d",
6+
"metadata": {},
7+
"source": [
8+
"# Climate normals"
9+
]
10+
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": null,
14+
"id": "ae8d25d1",
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"# https://guidocioni.substack.com/p/warm-in-the-us-cold-over-europe\n",
19+
"# https://earthdatahub.destine.eu/getting-started\n",
20+
"# https://earthdatahub.destine.eu/collections/era5/datasets/era5-land-daily\n",
21+
"# https://earthdatahub.destine.eu/tutorials/tutorial-era5-land-floods-precipitation-anomaly-in-greece\n",
22+
"import xarray as xr"
23+
]
24+
},
25+
{
26+
"cell_type": "code",
27+
"execution_count": null,
28+
"id": "e006f107",
29+
"metadata": {},
30+
"outputs": [],
31+
"source": [
32+
"# url = \"https://data.earthdatahub.destine.eu/era5/era5-land-daily-utc-v1.zarr\" # Not working\n",
33+
"# url = \"https://data.earthdatahub.destine.eu/era5/reanalysis-era5-land-no-antartica-v0.zarr\"\n",
34+
"url = \"https://data.earthdatahub.destine.eu/more-era5/ecv-for-climate-change-1981-2010-anomaly-v0\"\n",
35+
"\n",
36+
"ds = xr.open_dataset(\n",
37+
" url,\n",
38+
" storage_options={\"client_kwargs\":{\"trust_env\":True}},\n",
39+
" chunks={},\n",
40+
" engine=\"zarr\",\n",
41+
")"
42+
]
43+
},
44+
{
45+
"cell_type": "code",
46+
"execution_count": null,
47+
"id": "c0720025",
48+
"metadata": {},
49+
"outputs": [],
50+
"source": [
51+
"# bbox: 4.6494934579,57.981816461,11.9144273221,62.2522454633"
52+
]
53+
},
54+
{
55+
"cell_type": "code",
56+
"execution_count": null,
57+
"id": "f2624d3c",
58+
"metadata": {},
59+
"outputs": [],
60+
"source": []
61+
}
62+
],
63+
"metadata": {
64+
"kernelspec": {
65+
"display_name": "notebooks",
66+
"language": "python",
67+
"name": "python3"
68+
},
69+
"language_info": {
70+
"codemirror_mode": {
71+
"name": "ipython",
72+
"version": 3
73+
},
74+
"file_extension": ".py",
75+
"mimetype": "text/x-python",
76+
"name": "python",
77+
"nbconvert_exporter": "python",
78+
"pygments_lexer": "ipython3",
79+
"version": "3.10.14"
80+
}
81+
},
82+
"nbformat": 4,
83+
"nbformat_minor": 5
84+
}

css/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

images/favicon.svg

Lines changed: 6 additions & 0 deletions
Loading

images/mastermaps-neg.svg

Lines changed: 44 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)