Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martibosch/agrometeo-geopy
Pythonic interface to access agrometeo.ch data
https://github.com/martibosch/agrometeo-geopy
Last synced: 4 days ago
JSON representation
Pythonic interface to access agrometeo.ch data
- Host: GitHub
- URL: https://github.com/martibosch/agrometeo-geopy
- Owner: martibosch
- License: gpl-3.0
- Created: 2022-03-11T18:05:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-24T00:04:34.000Z (15 days ago)
- Last Synced: 2024-12-24T01:20:17.587Z (15 days ago)
- Language: Python
- Size: 705 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![PyPI version fury.io](https://badge.fury.io/py/agrometeo-geopy.svg)](https://pypi.python.org/pypi/agrometeo-geopy/)
[![Documentation Status](https://readthedocs.org/projects/agrometeo-geopy/badge/?version=latest)](https://agrometeo-geopy.readthedocs.io/en/latest/?badge=latest)
[![CI/CD](https://github.com/martibosch/agrometeo-geopy/actions/workflows/dev.yml/badge.svg)](https://github.com/martibosch/agrometeo-geopy/blob/main/.github/workflows/dev.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/martibosch/agrometeo-geopy/main.svg)](https://results.pre-commit.ci/latest/github/martibosch/agrometeo-geopy/main)
[![codecov](https://codecov.io/gh/martibosch/agrometeo-geopy/branch/main/graph/badge.svg?token=hKoSSRn58a)](https://codecov.io/gh/martibosch/agrometeo-geopy)
[![GitHub license](https://img.shields.io/github/license/martibosch/agrometeo-geopy.svg)](https://github.com/martibosch/agrometeo-geopy/blob/main/LICENSE)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/martibosch/agrometeo-geopy/HEAD?labpath=docs%2Fusage.ipynb)# agrometeo-geopy
Pythonic interface to access [agrometeo.ch](https://agrometeo.ch) data.
## Installation
The agrometeo-geopy library requires [geopandas](https://geopandas.org/), which can be installed using conda/mamba as in:
```shell
conda install -c conda-forge geopandas
```Then, agrometeo-geopy can be installed using pip:
```shell
pip install agrometeo-geopy
```## Overview
```python
import agrometeo as agmstart_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](https://agrometeo-geopy.readthedocs.io/en/latest/usage.html) for more details.
## Acknowledgements
- This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [zillionare/cookiecutter-pypackage](https://github.com/zillionare/cookiecutter-pypackage) project template.