-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure documentation and add or streamline beginner-friendly exa…
…mples (#265) * fix deramp residual and optimizer * Restructure documentation sections and headers * Capitalize xDEM * Update what_is_xdem.rst * Update install_xdem.rst * Update what_is_xdem.rst * Update index.rst * Update first_steps.rst * Point Quickstart to minigallery example * Update docs/source/first_steps.rst * Update plot_dem_subtraction.py example * Update docs/source/first_steps.rst * Renamed first steps into quick start * Update plot_dem_subtraction.py text * Update coregistration.py example to follow latest dev * Small update on previous commit * Update .rst according to previous commits * Minor update to comparison.py example and associated rst * Update plot_nuth_kaab example * Showcase how to plot outlines * Update plot_nuth_kaab example * Update plot_terrain_attributes example * Update ICP example * Update blockwise coreg example * Update norm regional hypso example * Easy fixes following review comments * Modify section 'About xdem' and rename sections * Fix plot failure due to inconsistent Raster or array object * Fix FutureWarning on array indexing * Add temp file of saving example to gitignore * Homogenize usage of xDEM and existing TODOs * Change objective to modularity to match term of OGGM, PyTorch, etc * Get geoutils in development * Fix to get geoutils directly from git Co-authored-by: Amaury Dehecq <[email protected]> Co-authored-by: adehecq <[email protected]>
- Loading branch information
1 parent
beeaf86
commit c809245
Showing
23 changed files
with
312 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,3 +143,4 @@ examples/*/data/ | |
auto_examples/ | ||
gen_modules/ | ||
examples/*/processed | ||
examples/temp.tif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. _about_xdem: | ||
|
||
About xDEM | ||
========== | ||
|
||
xDEM is a set of open-source Python tools to facilitate the postprocessing of DEMs, and more general with georeferenced rasters. It is designed by geoscientists for geoscientists, although currently our group has a strong focus on glaciological applications. | ||
|
||
We are not software developers, but we try our best to offer tools that can be useful to a larger group, are well documented and are reliable and maintained. All develpment and maintenance is made on a voluntary basis and we welcome any new contributors. See some information on how to contribute in the dedicated page of our `GitHub repository <https://github.com/GlacioHack/xdem/blob/main/CONTRIBUTING.md>`_. | ||
|
||
The core concepts behind *xdem* are: | ||
|
||
**Ease of use**: Most operations require only a few lines of code. The module was developed with a focus on remote sensing and geoscience applications. | ||
|
||
**Modularity**: We offer a set of options, rather than favoring a single method. Everyone should be able to contribute to xdem and add to its functionalities. | ||
|
||
**Reproducibility**: Version-controlled, releases saved with DOI and test-based development ensure our code always performs as expected. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
Filtering | ||
========= | ||
|
||
In construction | ||
TODO: In construction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.. _how_to_install: | ||
|
||
How to install | ||
============ | ||
|
||
Installing with conda (recommended) | ||
------------------------ | ||
.. code-block:: bash | ||
conda install -c conda-forge --strict-channel-priority xdem | ||
**Notes** | ||
|
||
- The ``--strict-channel-priority`` flag seems essential for Windows installs to function correctly, and is recommended for UNIX-based systems as well. | ||
|
||
- Solving dependencies can take a long time with ``conda``. To speed up this, consider installing ``mamba``: | ||
|
||
.. code-block:: bash | ||
conda install mamba -n base -c conda-forge | ||
Once installed, the same commands can be run by simply replacing ``conda`` by ``mamba``. More details available through the `mamba project <https://github.com/mamba-org/mamba>`_. | ||
|
||
- If running into the ``sklearn`` error ``ImportError: dlopen: cannot load any more object with static TLS``, your system | ||
needs to update its ``glibc`` (see details `here <https://github.com/scikit-learn/scikit-learn/issues/14485#issuecomment-822678559>`_). | ||
If you have no administrator right on the system, you might be able to circumvent this issue by installing a working | ||
environment with specific downgraded versions of ``scikit-learn`` and ``numpy``: | ||
|
||
.. code-block:: bash | ||
conda create -n xdem-env -c conda-forge xdem scikit-learn==0.20.3 numpy==1.19.* | ||
On very old systems, if the above install results in segmentation faults, try setting more specifically | ||
``numpy==1.19.2=py37h54aff64_0`` (worked with Debian 8.11, GLIBC 2.19). | ||
|
||
Installing with pip | ||
------------------- | ||
|
||
.. code-block:: bash | ||
pip install xdem | ||
**NOTE**: Setting up GDAL and PROJ may need some extra steps, depending on your operating system and configuration. | ||
|
||
|
||
Installing for contributors | ||
--------------------------- | ||
Recommended: Use conda for dependency solving. | ||
|
||
.. code-block:: shell | ||
git clone https://github.com/GlacioHack/xdem.git | ||
cd ./xdem | ||
conda env create -f dev-environment.yml | ||
conda activate xdem | ||
pip install -e . | ||
After installing, we recommend to check that everything is working by running the tests: | ||
|
||
``pytest -rA`` |
Oops, something went wrong.