-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert some attributes and methods to private. Some glacier attributes like current_state and model_state are never interacted with by the user. The same is true for the method state(). To indicate this we make them "private". This also cleans up the documentation. * Docs update. This adds a api reference of the new classes to the documentation. It differs somewhat from the e.g. oggm.GlacierDir in that it also has a full documentation of class methods. To achieve this an additional template for classes is needed. Property setters are however not documented yet. * Edits and new build structure Co-authored-by: Fabien Maussion <fabien.maussion@uibk.ac.at>
- Loading branch information
1 parent
3b4ba13
commit dca6eec
Showing
10 changed files
with
368 additions
and
100 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 |
---|---|---|
|
@@ -30,6 +30,7 @@ eggs | |
*.lock | ||
*.mo | ||
docs/_build | ||
docs/_autosummary | ||
docs/_build_html | ||
docs/generated | ||
docs/_sources | ||
|
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,9 @@ | ||
version: 2 | ||
build: | ||
os: "ubuntu-20.04" | ||
tools: | ||
python: "mambaforge-4.10" | ||
conda: | ||
environment: docs/environment.yml | ||
sphinx: | ||
configuration: docs/conf.py |
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,133 @@ | ||
####################### | ||
oggm-edu python package | ||
####################### | ||
|
||
.. currentmodule:: oggm_edu | ||
|
||
This page lists all classes, their methods and attributes available in the | ||
``oggm-edu`` python package. | ||
|
||
.. important:: | ||
|
||
This programming interface is relatively new (2022). It replaces a | ||
much simpler previous interface which is now accessible via | ||
``from oggm_edu import legacy``. | ||
|
||
Don't hesitate to `let us know <https://github.com/OGGM/oggm-edu/issues>`_ | ||
if you find any mistakes!. | ||
|
||
Glacier bed | ||
----------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
GlacierBed | ||
GlacierBed.plot | ||
|
||
MassBalance | ||
----------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
MassBalance | ||
MassBalance.reset | ||
MassBalance.get_monthly_mb | ||
MassBalance.get_annual_mb | ||
MassBalance.gradient | ||
MassBalance.ela | ||
MassBalance.temp_bias | ||
|
||
Glacier | ||
------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
Glacier | ||
|
||
Glacier methods | ||
~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
Glacier.reset | ||
Glacier.copy | ||
Glacier.progress_to_year | ||
Glacier.progress_to_equilibrium | ||
Glacier.plot | ||
Glacier.plot_mass_balance | ||
Glacier.plot_history | ||
Glacier.plot_state_history | ||
Glacier.add_temperature_bias | ||
|
||
Glacier attributes | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
Glacier.ela | ||
Glacier.mb_gradient | ||
Glacier.mass_balance | ||
Glacier.annual_mass_balance | ||
Glacier.specific_mass_balance | ||
Glacier.age | ||
Glacier.history | ||
Glacier.state_history | ||
Glacier.creep | ||
Glacier.basal_sliding | ||
Glacier.eq_states | ||
Glacier.response_time | ||
|
||
SurgingGlacier | ||
-------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
SurgingGlacier | ||
SurgingGlacier.reset | ||
SurgingGlacier.progress_to_year | ||
SurgingGlacier.plot_history | ||
SurgingGlacier.normal_years | ||
SurgingGlacier.surging_years | ||
SurgingGlacier.basal_sliding_surge | ||
|
||
|
||
GlacierCollection | ||
----------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
GlacierCollection | ||
|
||
GlacierCollection methods | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
GlacierCollection.reset | ||
GlacierCollection.fill | ||
GlacierCollection.add | ||
GlacierCollection.change_attributes | ||
GlacierCollection.progress_to_year | ||
GlacierCollection.progress_to_equilibrium | ||
GlacierCollection.plot | ||
GlacierCollection.plot_history | ||
GlacierCollection.plot_mass_balance | ||
|
||
GlacierCollection attributes | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
GlacierCollection.glaciers | ||
GlacierCollection.annual_mass_balance | ||
|
||
|
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 |
---|---|---|
@@ -1,11 +1,41 @@ | ||
name: edudocs | ||
name: oggm_edu_docs | ||
channels: | ||
- conda-forge | ||
- oggm | ||
dependencies: | ||
- python | ||
- numpydoc | ||
- ipython | ||
- jupyter | ||
- jupyterlab | ||
- numpy | ||
- scipy | ||
- pandas | ||
- shapely | ||
- matplotlib | ||
- Pillow | ||
- netcdf4 | ||
- scikit-image | ||
- scikit-learn | ||
- configobj | ||
- xarray | ||
- pytest | ||
- dask | ||
- bottleneck | ||
- pyproj | ||
- cartopy | ||
- geopandas | ||
- rasterio<1.2.10 | ||
- rioxarray | ||
- seaborn | ||
- pytables | ||
- salem | ||
- motionless | ||
- sphinx | ||
- pip | ||
- sphinx-book-theme | ||
- ipython | ||
- numpydoc | ||
- seaborn | ||
- sphinx-intl | ||
- pip: | ||
- sphinx-book-theme | ||
- joblib | ||
- progressbar2 | ||
- git+https://github.com/OGGM/pytest-mpl | ||
- oggm |
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
Oops, something went wrong.