Skip to content

Commit

Permalink
Add bbox and station name filter functions for stations
Browse files Browse the repository at this point in the history
Add units for distance filter
  • Loading branch information
gutzbenj committed Apr 5, 2021
1 parent 9ec696e commit 8d7afd2
Show file tree
Hide file tree
Showing 39 changed files with 4,982 additions and 8,090 deletions.
8 changes: 6 additions & 2 deletions .github/release/full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ FROM python:3.8.8-slim as build-step
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux

# Install GDAL.
RUN apt-get update
RUN apt-get --yes install build-essential libgdal-dev libmariadbclient-dev

# Install compiler tools
RUN apt-get --yes install python-dev build-essential gcc

# Install GDAL.
RUN apt-get libgdal-dev libmariadbclient-dev

# Make sure you have numpy installed before you attempt to install the GDAL Python bindings.
# https://gis.stackexchange.com/a/274328
Expand Down
5 changes: 5 additions & 0 deletions .github/release/standard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ FROM python:3.8.8-slim
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux

RUN apt-get update

# Install compiler tools
RUN apt-get --yes install python-dev build-essential gcc

# Use "poetry build --format=wheel" to build wheel packages.
COPY dist/wetterdienst-*.whl /tmp/

Expand Down
66 changes: 0 additions & 66 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Development
- Add capability to export data to Zarr format
- Add Wetterdienst UI. Thanks, @meteoDaniel!
- Add MAC ARM64 supoort with dependency restrictions
- Add support for stations filtering via bbox and name
- Add support for units in distance filtering
- Rename station_name to name
- Rename filter methods to .filter_by_station_id and .filter_by_name

0.16.1 (31.03.2021)
*******************
Expand Down
5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Overview
.. 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
:target: https://pepy.tech/project/wetterdienst
.. image:: https://img.shields.io/github/license/earthobservations/wetterdienst
:target: https://github.com/earthobservations/wetterdienst/blob/main/LICENSE
.. image:: https://zenodo.org/badge/160953150.svg
Expand Down Expand Up @@ -224,7 +224,7 @@ Acquisition of historical data for specific stations using ``wetterdienst`` as l
... end_date="2020-01-01", # Timezone: UTC
... tidy=True, # default, tidy data
... humanize=True, # default, humanized parameters
... ).filter(station_id=(1048, 4411))
... ).filter_by_station_id(station_id=(1048, 4411))
>>> stations = request.df # station list
>>> values = request.values.all().df # values
Expand Down Expand Up @@ -378,7 +378,6 @@ Further additional libraries are affected and have to be installed in a similar
.. code-block:: bash
# SQL related
pip install duckdb --no-use-pep517
brew install postgresql
brew link openssl (and export ENVS as given)
pip install psycopg2-binary --no-use-pep517
Expand Down

0 comments on commit 8d7afd2

Please sign in to comment.