From 0a8666430c7305eb0458c50a616c816fd8adea44 Mon Sep 17 00:00:00 2001 From: Romain Hugonnet Date: Thu, 5 Dec 2024 23:25:15 -0900 Subject: [PATCH] Temporary fix? --- doc/source/biascorr.md | 18 ++++++++++++++++++ doc/source/{zheatsheet.md => cheatsheet.md} | 0 doc/source/index.md | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) rename doc/source/{zheatsheet.md => cheatsheet.md} (100%) diff --git a/doc/source/biascorr.md b/doc/source/biascorr.md index d2c6380b..446ee36f 100644 --- a/doc/source/biascorr.md +++ b/doc/source/biascorr.md @@ -26,6 +26,24 @@ passed any external variables (e.g., land cover type, processing metric) to atte Still, many methods rely either on coordinates (e.g., deramping, along-track corrections) or terrain (e.g., curvature- or elevation-dependant corrections), derived solely from the elevation data. +```{code-cell} ipython3 +:tags: [remove-cell] + +################################################################################# +# This a temporary trick to allow vertical referencing to work in other notebooks +################################################################################# +# Somehow, only on Readthedocs (locally works fine), the first notebook to run (in alphabetical order) fails +# to download from PROJ... while all other notebook render normally. +# The first alphabetical notebook is "biascorr", so adding this trick here + +import xdem +ref_dem = xdem.DEM(xdem.examples.get_path("longyearbyen_ref_dem")) +# Set current vertical CRS +ref_dem.set_vcrs("EGM96") +# Transform to a local reference system from https://cdn.proj.org/ +trans_dem = ref_dem.to_vcrs("no_kv_arcgp-2006-sk.tif") +``` + ## Quick use Bias-correction methods are **used the same way as coregistrations**: diff --git a/doc/source/zheatsheet.md b/doc/source/cheatsheet.md similarity index 100% rename from doc/source/zheatsheet.md rename to doc/source/cheatsheet.md diff --git a/doc/source/index.md b/doc/source/index.md index a8c38136..dafb338a 100644 --- a/doc/source/index.md +++ b/doc/source/index.md @@ -122,7 +122,7 @@ uncertainty :maxdepth: 2 guides -zheatsheet +cheatsheet ecosystem ```