Skip to content

Commit

Permalink
Copy/paste README.rst into welcome.rst in order to fix Sphinx PDF bui…
Browse files Browse the repository at this point in the history
…ld (earthobservations#162)

Sorry for that.

Also, adjust some other bits and pieces within the documentation.
  • Loading branch information
amotl committed Sep 15, 2020
1 parent c6d9b94 commit ecf5b9a
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 33 deletions.
46 changes: 22 additions & 24 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,28 @@
Wetterdienst - Open weather data for humans
###########################################

.. only:: html

.. image:: https://github.com/earthobservations/wetterdienst/workflows/Tests/badge.svg
:target: https://github.com/earthobservations/wetterdienst/actions?workflow=Tests
.. image:: https://codecov.io/gh/earthobservations/wetterdienst/branch/master/graph/badge.svg
:target: https://codecov.io/gh/earthobservations/wetterdienst
.. image:: https://readthedocs.org/projects/wetterdienst/badge/?version=latest
:target: https://wetterdienst.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/badge/code\\%20style-black-000000.svg
:target: https://github.com/psf/black

.. image:: https://img.shields.io/pypi/pyversions/wetterdienst.svg
:target: https://pypi.python.org/pypi/wetterdienst/
.. image:: https://img.shields.io/pypi/v/wetterdienst.svg
:target: https://pypi.org/project/wetterdienst/
.. image:: https://img.shields.io/pypi/status/wetterdienst.svg
:target: https://pypi.python.org/pypi/wetterdienst/
.. image:: https://pepy.tech/badge/wetterdienst/month
:target: https://pepy.tech/project/wetterdienst/month
.. image:: https://img.shields.io/github/license/earthobservations/wetterdienst
:target: https://github.com/earthobservations/wetterdienst/blob/master/LICENSE.rst
.. image:: https://zenodo.org/badge/160953150.svg
:target: https://zenodo.org/badge/latestdoi/160953150
.. image:: https://github.com/earthobservations/wetterdienst/workflows/Tests/badge.svg
:target: https://github.com/earthobservations/wetterdienst/actions?workflow=Tests
.. image:: https://codecov.io/gh/earthobservations/wetterdienst/branch/master/graph/badge.svg
:target: https://codecov.io/gh/earthobservations/wetterdienst
.. image:: https://readthedocs.org/projects/wetterdienst/badge/?version=latest
:target: https://wetterdienst.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black

.. image:: https://img.shields.io/pypi/pyversions/wetterdienst.svg
:target: https://pypi.python.org/pypi/wetterdienst/
.. image:: https://img.shields.io/pypi/v/wetterdienst.svg
:target: https://pypi.org/project/wetterdienst/
.. image:: https://img.shields.io/pypi/status/wetterdienst.svg
:target: https://pypi.python.org/pypi/wetterdienst/
.. image:: https://pepy.tech/badge/wetterdienst/month
:target: https://pepy.tech/project/wetterdienst/month
.. image:: https://img.shields.io/github/license/earthobservations/wetterdienst
:target: https://github.com/earthobservations/wetterdienst/blob/master/LICENSE.rst
.. image:: https://zenodo.org/badge/160953150.svg
:target: https://zenodo.org/badge/latestdoi/160953150


Introduction
Expand Down
15 changes: 12 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,26 @@ About
Introduction <pages/welcome>
pages/installation
pages/data_coverage
pages/license_and_citation


*****
Usage
*****
.. toctree::
:maxdepth: 1

API overview <pages/api>
pages/cli
pages/license_and_citation
pages/library/index
pages/behind_the_scenes


********
Plumbing
********
.. toctree::
:maxdepth: 1

pages/library/index
pages/behind_the_scenes
pages/development
pages/changelog
4 changes: 2 additions & 2 deletions docs/pages/behind_the_scenes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Behind the scenes
#################

Details
-------
.. note:: This is some text extracted from ``api.rst``. It might fit better elsewhere.

- The ``DWDStationRequest`` class can combine multiple periods/date ranges
for any number of stations and parameters of one time resolution.
- It wraps ``collect_climate_observations_data``, which in turn combines
Expand Down
4 changes: 1 addition & 3 deletions docs/pages/library/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ Module library
* :ref:`modindex`


**********
Subsystems
**********
.. toctree::
:maxdepth: 1
:caption: Subsystems

api
machinery
Expand Down
115 changes: 114 additions & 1 deletion docs/pages/welcome.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,115 @@
###########################################
Wetterdienst - Open weather data for humans
###########################################

.. include:: ../../README.rst

Introduction
************
Welcome to Wetterdienst, your friendly weather service library for Python.

We are a group of like-minded people trying to make access to weather data in
Python feel like a warm summer breeze, similar to other projects like
rdwd_ for the R language, which originally drew our interest in this project.

While our long-term goal is to provide access to multiple weather services,
we are still stuck with the German Weather Service (DWD). Contributions are
always welcome!

This program and its repository tries to use modern Python technologies
all over the place. The library is based on Pandas across the board,
uses Poetry for package administration and GitHub actions for
all things CI.


Features
********

Coverage
========
The library currently covers

- historical weather data from ground stations
- RADOLAN fitted radar data for areal precipitation
- MOSMIX statistical optimized scalar forecasts extracted from weather models

To get better insight on which data we have currently made available, with this library
take a look at `data coverage`_.


Details
=======
- Get metadata for a set of Parameter, PeriodType and TimeResolution.
- Get station(s) nearby a selected location for a given set.
- Store/recover collected data.
- Docker image to run the library dockerized.
- Client to run the library from command line.


Setup
*****
Run the following to make ``wetterdienst`` available in your current environment:

.. code-block:: bash
pip install wetterdienst
Synopsis
********
Get historical data for specific stations, using Python:

.. code-block:: python
from wetterdienst import DWDStationRequest, Parameter, PeriodType, TimeResolution
request = DWDStationRequest(
station_ids=[1048,4411],
parameter=[Parameter.CLIMATE_SUMMARY, Parameter.SOLAR],
time_resolution=TimeResolution.DAILY,
start_date="1990-01-01",
end_date="2020-01-01",
tidy_data=True,
humanize_column_names=True,
write_file=True,
prefer_local=True
)
for df in request.collect_data():
# analyse the station here
Get data for specific stations from the command line:

.. code-block:: bash
# Get list of all stations for daily climate summary data in JSON format
wetterdienst stations --parameter=kl --resolution=daily --period=recent
# Get daily climate summary data for specific stations
wetterdienst readings --station=1048,4411 --parameter=kl --resolution=daily --period=recent
Documentation
*************
We strongly recommend reading the full documentation, which will be updated continuously
as we make progress with this library:

- https://wetterdienst.readthedocs.io/

For the whole functionality, check out the `Wetterdienst API`_ section of our
documentation, which will be constantly updated. To stay up to date with the
development, take a look at the changelog_. Also, don't miss out our examples_.


Data license
************
Although the data is specified as being open, the DWD asks you to reference them as
copyright owner. Please take a look at the `Open Data Strategy at the DWD`_ and the
`Official Copyright`_ statements before using the data.


.. _rdwd: https://github.com/brry/rdwd
.. _Wetterdienst API: https://wetterdienst.readthedocs.io/en/latest/pages/api.html
.. _data coverage: https://wetterdienst.readthedocs.io/en/latest/pages/data_coverage.html
.. _changelog: https://wetterdienst.readthedocs.io/en/latest/pages/api.html
.. _examples: https://github.com/earthobservations/wetterdienst/tree/master/example
.. _Open Data Strategy at the DWD: https://www.dwd.de/EN/ourservices/opendata/opendata.html
.. _Official Copyright: https://www.dwd.de/EN/service/copyright/copyright_artikel.html?nn=495490&lsbId=627548

0 comments on commit ecf5b9a

Please sign in to comment.