agrometeo-geopy

Pythonic interface to access Agrometeo data.


License
GPL-3.0-only
Install
pip install agrometeo-geopy==0.2.0

Documentation

PyPI version fury.io Documentation Status CI/CD pre-commit.ci status codecov GitHub license Binder

agrometeo-geopy

Pythonic interface to access agrometeo.ch data.

Installation

The agrometeo-geopy library requires geopandas, which can be installed using conda/mamba as in:

conda install -c conda-forge geopandas

Then, agrometeo-geopy can be installed using pip:

pip install agrometeo-geopy

Overview

import agrometeo as agm

start_date = "2021-08-13"
end_date = "2021-08-16"

agm_ds = agm.AgrometeoDataset(region="Canton de Genève")
ts_df = agm_ds.get_ts_df(start_date=start_date, end_date=end_date)
ts_df
name DARDAGNY LA-PLAINE SATIGNY PEISSY ANIERES LULLY LULLIER BERNEX TROINEX MEINIER
time
2021-08-13 00:00:00 19.3 17.8 18.5 17.9 20.6 18.4 20.3 18.6 19.4 25.8
2021-08-13 00:10:00 19.6 17.9 18.4 17.7 20.0 18.3 19.6 18.7 19.1 28.6
2021-08-13 00:20:00 19.0 17.7 18.2 17.6 19.4 18.4 19.1 18.7 19.2 24.1
2021-08-13 00:30:00 18.3 18.0 18.1 17.4 19.1 18.3 19.1 18.6 18.9 22.5
2021-08-13 00:40:00 18.7 18.0 18.1 17.6 19.1 18.0 19.0 18.7 18.5 21.5
... ... ... ... ... ... ... ... ... ... ...
2021-08-16 23:10:00 17.5 17.8 17.3 16.9 17.9 17.6 17.3 17.2 17.9 22.2
2021-08-16 23:20:00 17.4 17.9 17.4 17.1 17.9 17.6 17.3 17.2 18.0 22.0
2021-08-16 23:30:00 17.2 17.9 17.5 17.3 17.8 17.6 17.3 17.3 18.0 21.7
2021-08-16 23:40:00 17.2 17.9 17.7 17.1 17.7 17.4 17.2 17.1 18.1 21.9
2021-08-16 23:50:00 17.1 17.8 17.5 17.1 17.7 17.3 17.1 17.1 18.1 22.0

576 rows × 10 columns

See the user guide for more details.

Acknowledgements