Skip to content

Commit

Permalink
Temporary fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Dec 6, 2024
1 parent e53912d commit 0a86664
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions doc/source/biascorr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ uncertainty
:maxdepth: 2
guides
zheatsheet
cheatsheet
ecosystem
```

Expand Down

0 comments on commit 0a86664

Please sign in to comment.