Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed nbspinx link #256

Merged
merged 10 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,34 @@ This package offers python tools for the `CORDEX <https://cordex.org/>`_ communi
Most of the tools leverage the ``xarray`` API to create grid and coordinate informations and data of CORDEX domains in the
form of an ``xarray.Dataset`` directly from the official `CORDEX archive specifications <https://cordex.org/experiment-guidelines/experiment-protocol-rcms/>`_.

Please have a look at the `introduction noteboook <https://py-cordex.readthedocs.io/en/latest/notebooks/introduction.html>`_!

Features
--------

* Tools to manage CORDEX grids as xarray datasets.
* Includes coordinate transformations, bounds and vertices for CORDEX datasets.
* Utitlities for cmorization to make the CORDEX ensembles more consistent.
* Preprocessing for easy access to a homogenized CORDEX ensemble dataset.

For planned features, please have a look at the `issues <https://github.com/euro-cordex/py-cordex/issues>`_, grab one, and `contribute <https://py-cordex.readthedocs.io/en/latest/contributing.html>`_!
You can use this package, e.g., to easily access CORDEX grid definitions:

.. code-block:: python
import cordex as cx

cx.domain("EUR-11")

to create an xarray Dataset:

.. image:: https://raw.githubusercontent.com/euro-cordex/py-cordex/main/docs/eur-11_xarray.png

Meta data
^^^^^^^^^
Access to meta data should be automatic and machine readable to avoid humans to do boring, repetitiv tasks that are error prone.
For that purpose, easy access to meta information should be guaranteed by tables collected `here <https://github.com/euro-cordex/tables>`_.
and make a quick plot using the accessor:

.. code-block:: python
cx.domain("EUR-11").cx.plot()

.. image:: https://raw.githubusercontent.com/euro-cordex/py-cordex/main/docs/eur-11.png

For planned features, please have a look at the `issues <https://github.com/euro-cordex/py-cordex/issues>`_, grab one, and `contribute <https://py-cordex.readthedocs.io/en/latest/contributing.html>`_!

Installation
------------
Expand All @@ -58,7 +72,6 @@ For instructions to install py-cordex from source, please have a look at the
If you want to contribute, please get in contact as early as possible, e.g.,
using `draft pull requests <https://github.blog/2019-02-14-introducing-draft-pull-requests>`_.


Credits
-------

Expand Down
7 changes: 2 additions & 5 deletions ci/requirements/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
- python=3.10
- docutils=0.20 # see https://github.com/euro-cordex/py-cordex/issues/243
- docutils
- pint-xarray
- matplotlib-base
- xarray
Expand All @@ -13,7 +13,6 @@ dependencies:
- pillow
- pip
- nbsphinx
- nbsphinx-link
- ipython
- cftime
- pooch
Expand All @@ -27,6 +26,4 @@ dependencies:
- pydata-sphinx-theme
- sphinx-book-theme>=0.3.3
- sphinx-autosummary-accessors
- pip:
- sphinxcontrib-mockautodoc
- myst_nb
- myst-nb
5 changes: 1 addition & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@
"sphinx.ext.extlinks",
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"sphinxcontrib.mockautodoc",
# "sphinxcontrib.mockautodoc",
"numpydoc",
"sphinx_autosummary_accessors",
"nbsphinx",
"nbsphinx_link",
"IPython.sphinxext.ipython_directive",
"IPython.sphinxext.ipython_console_highlighting",
]
Expand All @@ -55,8 +54,6 @@
"pull": ("https://github.com/euro-cordex/py-cordex/pull/%s", "#%s"),
}

autodoc_mock_imports = ["cartopy", "xesmf", "geopandas", "matplotlib", "regionmask"]

autosummary_generate = True

napoleon_use_param = True
Expand Down
3 changes: 0 additions & 3 deletions docs/domains.nblink

This file was deleted.

Binary file added docs/eur-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/eur-11_xarray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:caption: Tutorial

notebooks/introduction
prudence
notebooks/prudence

.. toctree::
:maxdepth: 2
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2,343 changes: 2,343 additions & 0 deletions docs/notebooks/prudence.ipynb

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions docs/prudence.nblink

This file was deleted.

5 changes: 3 additions & 2 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ New Features
Internal Changes
~~~~~~~~~~~~~~~~

- Pin ``pint!=0.24`` due to breaking changes that affect ``cf_xarray`` (:pull:`249`).
- Changed ``CORDEX_domain`` keyword to ``domain_id`` in :py:meth:`cmor.cmorize_variable`, added deprecation warning (:pull:`252`).
- Removed ``nbspinx_link`` dependency from documentation (:pull:`256`).
- Added :py:meth:`domain` which is equivalent to earlier ``cordex_domain`` (:pull:`254`).
- Changed ``CORDEX_domain`` keyword to ``domain_id`` in :py:meth:`cmor.cmorize_variable`, added deprecation warning (:pull:`252`).
- Pin ``pint!=0.24`` due to breaking changes that affect ``cf_xarray`` (:pull:`249`).

v0.7.1 (4 June 2024)
--------------------
Expand Down
2,319 changes: 0 additions & 2,319 deletions notebooks/prudence.ipynb

This file was deleted.

Loading