Skip to content

Commit

Permalink
Merge 4d24213 into 60fed0f
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Sep 18, 2022
2 parents 60fed0f + 4d24213 commit 1c7ed1e
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 23 deletions.
3 changes: 2 additions & 1 deletion dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ dependencies:
- pytest
- pytest-xdist
- sphinx
- sphinx_rtd_theme
- myst-parser
- numpydoc
- sphinxcontrib-programoutput
- flake8
- sphinx-autodoc-typehints
- sphinx-gallery

- pip:
- sphinx-book-theme
- git+https://github.com/GlacioHack/geoutils.git

3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sphinx
numpydoc
sphinx_rtd_theme
sphinx-book-theme
myst-parser
sphinx_autodoc_typehints
sphinxcontrib-programoutput
numpy
Expand Down
74 changes: 74 additions & 0 deletions docs/source/about_xdem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
(about-xdem)=

# About xDEM


xDEM is a [Python](https://www.python.org/) package for the analysis of DEMs, with name standing for _cross-DEM analysis_[^sn1]
and echoing its dependency on [xarray](https://docs.xarray.dev/en/stable/). It is designed for all Earth and planetary
observation science, although our group currently has a strong focus on glaciological applications.

[^sn1]: The core features of xDEM rely on cross-analysis of surface elevation, for example for DEM alignment or error analysis.


```{epigraph}
The core mission of xDEM is to be **easy-of-use**, **modular**, **robust**, **reproducible** and **fully open**.
Additionally, xDEM aims to be **efficient**, **scalable** and **state-of-the-art**.
```

```{important}
:class: margin
xDEM is in early stages of development and its features might evolve rapidly. Note the version you are working on for
**reproducibility**!
We are working on making features fully consistent for the first long-term release ``v0.1`` (likely sometime in 2023).
```

In details, those mean:

- **Ease-of-use:** all DEM basic operations or methods from published works should only require a few lines of code to be performed;

- **Modularity:** all DEM methods should be fully customizable, to allow both flexibility and inter-comparison;

- **Robustness:** all DEM methods should be tested within our continuous integration test-suite, to enforce that they always perform as expected;

- **Reproducibility:** all code should be version-controlled and release-based, to ensure consistency of dependant packages and works;

- **Open-source:** all code should be accessible and re-usable to anyone in the community, for transparency and open governance.

```{note}
:class: margin
Additional mission points, in particular **scalability**, are partly developed but not a priority until our first long-term release ``v0.1`` is reached. Those will be further developed specifically in a subsequent version ``v0.2``.
```

And, additionally:

- **Efficiency**: all methods should be optimized at the lower-level, to function with the highest performance offered by Python packages;

- **Scalability**: all methods should support both lazy processing and distributed parallelized processing, to work with high-resolution data on local machines as well as on HPCs;

- **State-of-the-art**: all methods should be at the cutting edge of remote sensing science, to provide users with the most reliable and up-to-date tools.


# The people behind xDEM

```{margin}
<sup>2</sup>More on our GlacioHack founder at [adehecq.github.io](https://adehecq.github.io/)!
```

xDEM was created during the [GlacioHack](https://github.com/GlacioHack) hackaton event, that was initiated by
Amaury Dehecq<sup>2</sup> and took place online on November 8, 2020.

```{margin}
<sup>3</sup>Check-out [glaciology.ch](https://glaciology.ch) on our founding group of VAW glaciology!
```

The initial core development of xDEM was performed by members of the Glaciology group of the Laboratory of Hydraulics, Hydrology and
Glaciology (VAW) at ETH Zürich<sup>3</sup>, with contributions by members of the University of Oslo, the University of Washington, and University
Grenobles Alpes.

We are not software developers but geoscientists, and we try our best to offer tools that can be useful to a larger group,
documented, reliable and maintained. All development 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).


17 changes: 0 additions & 17 deletions docs/source/about_xdem.rst

This file was deleted.

12 changes: 11 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"sphinxcontrib.programoutput",
"sphinx_gallery.gen_gallery", # Examples gallery
"sphinx.ext.intersphinx",
"myst_parser" # Form of Markdown that works with sphinx, used a lot by the Sphinx Book Theme
]

#autosummary_generate = True
Expand Down Expand Up @@ -86,7 +87,16 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = 'sphinx_book_theme'

html_theme_options = {"use_sidenotes": True,
"repository_url": "https://github.com/GlacioHack/xdem",
"use_repository_button": True,
}

# html_logo = "path/to/myimage.png"
html_title = "xDEM's documentation"


# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
11 changes: 8 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
xDEM: Analysis of digital elevation models for geosciences
==========================================================
xDEM aims at simplifying the analysis of digital elevation models (DEMs). This module provides typical post-processing steps such as coregistration, elevation/volume change measurements and error statistics.
xDEM: Analysis of digital elevation models
==========================================
xDEM aims at simplifying the analysis of digital elevation models (DEMs), including vertical referencing,
terrain attributes, co-registration, bias corrections, error statistics, and more.

.. important:: xDEM is in early stages of development and its features might evolve rapidly. Note the version you are
working on for reproducibility!
We are working on making features fully consistent for the first long-term release ``v0.1`` (likely sometime in 2023).

.. toctree::
:maxdepth: 2
Expand Down

0 comments on commit 1c7ed1e

Please sign in to comment.