Skip to content

Commit

Permalink
Use pdbufr to read DWD radar data in bufr format
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed May 1, 2022
1 parent 6fb0578 commit c9900cb
Show file tree
Hide file tree
Showing 17 changed files with 368 additions and 143 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "Installing package and requirements for ${flavor}"

if [[ "${flavor}" = "testing" ]]; then
poetry run pip install wradlib --no-deps
poetry install --no-interaction --extras=sql --extras=export --extras=restapi --extras=explorer
poetry install --no-interaction --extras=sql --extras=export --extras=restapi --extras=explorer --extras=bufr

elif [[ "${flavor}" = "docs" ]]; then
poetry install --no-interaction --extras=docs
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ jobs:
path: .venv
key: poetry-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}-${{ env.CACHE_NUMBER }}

- name: Install eccodes (Mac only)
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install eccodes && export WD_ECCODES_DIR=$(brew --prefix eccodes)
fi
shell: bash

- name: Install dependencies
run: .github/workflows/install.sh testing
if: steps.poetry-cache-flag.outputs.cache-hit != 'true'
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
Development
***********

- Radar: read bufr data into pandas.DataFrame when eccodes library is provided

0.32.0 (24.04.2022)
*******************

Expand Down Expand Up @@ -111,6 +113,7 @@ Features

- Enable selecting a parameter precisely from a dataset by passing a tuple like [("precipitation_height", "kl")] or
[("precipitation_height", "precipitation_more")], or for cli/restapi use "precipitation_height/kl"
- Allow parsing DWD radar data in bufr format to a pandas DataFrame

- Rename wetterdienst show to wetterdienst info, make version accessible via cli with
wetterdienst version
Expand Down
16 changes: 8 additions & 8 deletions THIRD_PARTY_NOTICES
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Jinja2
3.1.1
3.1.2
BSD License
Armin Ronacher
https://palletsprojects.com/p/jinja/
Expand Down Expand Up @@ -1635,7 +1635,7 @@ DAMAGE.


PyPDF2
1.27.9
1.27.10
BSD License
Mathieu Fenniak
https://pypdf2.readthedocs.io/en/latest/
Expand Down Expand Up @@ -3198,7 +3198,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

click
8.1.2
8.1.3
BSD License
Armin Ronacher
https://palletsprojects.com/p/click/
Expand Down Expand Up @@ -5846,7 +5846,7 @@ THE SOFTWARE.


flake8-eradicate
1.2.0
1.2.1
MIT License
Nikita Sobolev
https://github.com/wemake-services/flake8-eradicate
Expand Down Expand Up @@ -6255,7 +6255,7 @@ https://gitlab.com/pycqa/flake8-polyfill
UNKNOWN

flake8-print
4.0.0
4.0.1
MIT License
Joseph Kahn
https://github.com/jbkahn/flake8-print
Expand Down Expand Up @@ -7323,7 +7323,7 @@ THE SOFTWARE.


jupyter-client
7.2.2
7.3.0
BSD License
Jupyter Development Team
https://jupyter.org
Expand Down Expand Up @@ -7458,10 +7458,10 @@ to indicate the copyright and license terms:


jupyter-server
1.16.0
1.17.0
BSD License
Jupyter Development Team
https://jupyter.org
https://jupyter-server.readthedocs.io
# Licensing terms

This project is licensed under the terms of the Modified BSD License
Expand Down
8 changes: 8 additions & 0 deletions docs/usage/python-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ and to set it back to standard
from wetterdienst import Settings
Settings.reset()
The environmental settings recognized by our settings are

.. ipython:: python
import json
from wetterdienst import Settings
print(json.dumps(Settings.env.dump(), indent=4))
Also if for whatever reason you have concurrent code running and want it all to have thread-safe settings use it like

.. ipython:: python
Expand Down
Loading

0 comments on commit c9900cb

Please sign in to comment.