Skip to content

Commit

Permalink
Feature/update readme (#620)
Browse files Browse the repository at this point in the history
* Update readme
  • Loading branch information
sandorkertesz authored Feb 21, 2025
1 parent 1749a36 commit b06f000
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 20 deletions.
59 changes: 45 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,69 @@

<img src="https://github.com/ecmwf/logos/raw/refs/heads/main/logos/earthkit/earthkit-data-light.svg" width="160">

[![PyPI version fury.io](https://badge.fury.io/py/earthkit-data.svg)](https://pypi.python.org/pypi/earthkit-data/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/earthkit-data.svg)](https://pypi.python.org/pypi/earthkit-data/)

**DISCLAIMER**

> This project is in the **BETA** stage of development. Please be aware that interfaces and functionality may change as the project develops. If this software is to be used in operational systems you are **strongly advised to use a released tag in your system configuration**, and you should be willing to accept incoming changes and bug fixes that require adaptations on your part. ECMWF **does use** this software in operations and abides by the same caveats.
<p align="center">
<a href="https://github.com/ecmwf/codex/raw/refs/heads/main/ESEE">
<img src="https://github.com/ecmwf/codex/raw/refs/heads/main/ESEE/foundation_badge.svg" alt="Static Badge">
</a>
<a href="https://github.com/ecmwf/codex/raw/refs/heads/main/Project%20Maturity">
<img src="https://github.com/ecmwf/codex/raw/refs/heads/main/Project%20Maturity/incubating_badge.svg" alt="Static Badge">
</a>

<a href="https://codecov.io/gh/ecmwf/earthkit-data">
<img src="https://codecov.io/gh/ecmwf/earthkit-data/branch/develop/graph/badge.svg" alt="Code Coverage">
</a>

<a href="https://opensource.org/licenses/apache-2-0">
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache 2.0">
</a>

<a href="https://github.com/ecmwf/earthkit-data/releases">
<img src="https://img.shields.io/github/v/release/ecmwf/earthkit-data?color=blue&label=Release&style=flat-square" alt="Latest Release">
</a>
<a href="https://earthkit-data.readthedocs.io/en/latest/?badge=latest">
<img src="https://readthedocs.org/projects/earthkit-data/badge/?version=latest" alt="Documentation Status">
</a>
</p>

<p align="center">
<a href="#quick-start">Quick Start</a> *
<a href="#installation">Installation</a> *
<a href="https://earthkit-data.readthedocs.io/en/latest/">Documentation</a>
</p>

> \[!IMPORTANT\]
> This software is **Incubating** and subject to ECMWF's guidelines on [Software Maturity](https://github.com/ecmwf/codex/raw/refs/heads/main/Project%20Maturity).
A format-agnostic interface for geospatial data with a focus on meteorology and
climate science.

## Documentation
## Quick Start

The documentation can be found at https://earthkit-data.readthedocs.io/.
```python
import earthkit.data as ekd

## Install
data = ekd.from_source("sample", "test.grib")
arr = data.to_numpy()
df = data.to_pandas()
dataset = data.to_xarray()
```

Install via `pip` with:
## Installation

Install from PyPI:

```
$ pip install earthkit-data
python -m pip install earthkit-data
```

More details, such as how to install any necessary binaries, can be found at https://earthkit-data.readthedocs.io/en/latest/install.html.
More details, such as optional dependencies can be found at https://earthkit-data.readthedocs.io/en/latest/install.html.

Alternatively, install via `conda` with:

```
$ conda install earthkit-data -c conda-forge
```

This will bring in some necessary binary dependencies for you.

## License

```
Expand Down
33 changes: 27 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
Welcome to earthkit-data's documentation
======================================================

|Static Badge| |image1| |Code Coverage| |License: Apache 2.0| |Latest
Release|

.. |Static Badge| image:: https://github.com/ecmwf/codex/raw/refs/heads/main/ESEE/foundation_badge.svg
:target: https://github.com/ecmwf/codex/raw/refs/heads/main/ESEE
.. |image1| image:: https://github.com/ecmwf/codex/raw/refs/heads/main/Project%20Maturity/incubating_badge.svg
:target: https://github.com/ecmwf/codex/raw/refs/heads/main/Project%20Maturity
.. |Code Coverage| image:: https://codecov.io/gh/ecmwf/earthkit-data/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/ecmwf/earthkit-data
.. |License: Apache 2.0| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg
:target: https://opensource.org/licenses/apache-2-0
.. |Latest Release| image:: https://img.shields.io/github/v/release/ecmwf/earthkit-data?color=blue&label=Release&style=flat-square
:target: https://github.com/ecmwf/earthkit-data/releases


.. warning::

This project is in the **BETA** stage of development. Please be aware that interfaces and functionality may change as the project develops. If this software is to be used in operational systems you are **strongly advised to use a released tag in your system configuration**, and you should be willing to accept incoming changes and bug fixes that require adaptations on your part. ECMWF **does use** this software in operations and abides by the same caveats.
This software is **Incubating** and subject to ECMWF's guidelines on `Software Maturity <https://github.com/ecmwf/codex/raw/refs/heads/main/Project%20Maturity>`_.


**earthkit-data** is a format-agnostic Python interface for geospatial data with a focus on meteorology and
climate science. It is the data handling component of :xref:`earthkit`.
Expand All @@ -12,18 +28,23 @@ climate science. It is the data handling component of :xref:`earthkit`.
geospatial input types (:ref:`grib`, :ref:`netcdf` and more) and transform them into
familiar scientific Python objects (including numpy arrays, pandas dataframes, xarray datasets).

**earthkit-data** provides additional convenient methods for quickly inspecting certain
features of your input data, such as data dimensionality, axes, coordinate
reference systems and bounding boxes.

Quick start
-----------

.. code-block:: python
data = earthkit.data.from_source("file", "my-data.nc")
import earthkit.data as ekd
data = ekd.from_source("sample", "test.grib")
arr = data.to_numpy()
df = data.to_pandas()
dataset = data.to_xarray()
**earthkit-data** provides additional convenient methods for quickly inspecting certain
features of your input data, such as data dimensionality, axes, coordinate
reference systems and bounding boxes.

.. toctree::
:maxdepth: 1
:caption: Examples
Expand Down

0 comments on commit b06f000

Please sign in to comment.