Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#######################################################################################
# A default configuration that will be loaded for all jupyter books
# See the documentation for help and more options:
# See the documentation for help and more options:
# https://jupyterbook.org/customize/config.html

#######################################################################################
Expand All @@ -11,7 +11,7 @@ copyright: "2014-2024" # Copyright year to be placed in the footer
logo: img/logo.png # A path to the book logo
repository:
url: https://github.com/OGGM/tutorials
path_to_book: .
path_to_book: .
branch: stable
launch_buttons:
notebook_interface: "jupyterlab"
Expand All @@ -25,7 +25,7 @@ html:
use_edit_page_button: true
announcement: |
<p class="announcement">
🚧 <strong>Scheduled maintenance:</strong> the OGGM cluster will be offline <strong>April 27 (evening CEST) – April 30 (morning CEST)</strong>.
🚧 <strong>Scheduled maintenance:</strong> the OGGM cluster will be offline <strong>April 27 (evening CEST) – April 30 (morning CEST) 2025</strong>.
<a href="https://oggm.org/2025/04/15/service-maintenance/">Learn more</a>.
</p>
extra_footer: |
Expand Down
8 changes: 4 additions & 4 deletions _static/custom.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
html {
--pst-font-size-h1: 2.2em; /* Default: 2.625 */
--pst-font-size-h2: 1.6em; /* Default: 2.125 */
--pst-font-size-h3: 1.2em; /* Default: 1.75 */
--pst-font-size-h1: 2.2em; /* Default: 2.625 */
--pst-font-size-h2: 1.7em; /* Default: 2.125 */
--pst-font-size-h3: 1.3em; /* Default: 1.75 */
--pst-font-size-h4: 1.0em; /* Default: ? */
}

.announcement {
background-color: orange !important; /* You can use a hex or tailwind-inspired shade if preferred */
color: white !important;
padding: 0.5em 1em;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion notebooks/10minutes/machine_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@
"outputs": [],
"source": [
"# Back to 2d and in xarray\n",
"var = ds[vn].data * np.NaN\n",
"var = ds[vn].data * np.nan\n",
"var[ds.glacier_mask == 1] = pred_data['thick']\n",
"ds['linear_model_thick'] = (('y', 'x'), var)\n",
"ds['linear_model_thick'].attrs['description'] = 'Predicted thickness'\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/inversion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
" vn = 'distributed_thickness'\n",
" thick = nc.variables[vn][:]\n",
" mask = nc.variables['glacier_mask'][:]\n",
" thick = np.where(mask, thick, np.NaN)\n",
" thick = np.where(mask, thick, np.nan)\n",
" # The \"overplot=True\" is key here\n",
" # this needs a recent version of salem to run properly\n",
" smap.set_data(thick, crs=gdir.grid.center_grid, overplot=True)"
Expand Down Expand Up @@ -634,7 +634,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.12.4"
},
"metadata": {
"interpreter": {
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/oggm_shop.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
" demfile = os.path.join(gdir.dir, src) + '/dem.tif'\n",
" with rioxr.open_rasterio(demfile) as ds:\n",
" data = ds.sel(band=1).load() * 1.\n",
" ods[src] = data.where(data > -100, np.NaN)\n",
" ods[src] = data.where(data > -100, np.nan)\n",
"\n",
" sy, sx = np.gradient(ods[src], gdir.grid.dx, gdir.grid.dx)\n",
" ods[src + '_slope'] = ('y', 'x'), np.arctan(np.sqrt(sy**2 + sx**2))\n",
Expand Down Expand Up @@ -852,7 +852,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.12.4"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/rgitopo_rgi6.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
" demfile = os.path.join(gdir.dir, src) + '/dem.tif'\n",
" with rioxr.open_rasterio(demfile) as ds:\n",
" data = ds.sel(band=1).load() * 1.\n",
" ods[src] = data.where(data > -100, np.NaN)\n",
" ods[src] = data.where(data > -100, np.nan)\n",
" \n",
" sy, sx = np.gradient(ods[src], gdir.grid.dx, gdir.grid.dx)\n",
" ods[src + '_slope'] = ('y', 'x'), np.arctan(np.sqrt(sy**2 + sx**2))\n",
Expand Down Expand Up @@ -706,7 +706,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.12.4"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/rgitopo_rgi7.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
" demfile = os.path.join(gdir.dir, src) + '/dem.tif'\n",
" with rioxr.open_rasterio(demfile) as ds:\n",
" data = ds.sel(band=1).load() * 1.\n",
" ods[src] = data.where(data > -100, np.NaN)\n",
" ods[src] = data.where(data > -100, np.nan)\n",
" \n",
" sy, sx = np.gradient(ods[src], gdir.grid.dx, gdir.grid.dx)\n",
" ods[src + '_slope'] = ('y', 'x'), np.arctan(np.sqrt(sy**2 + sx**2))\n",
Expand Down Expand Up @@ -718,7 +718,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.12.4"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
Loading