Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 364e1da

Browse files
committed
MNT: update for wradlib v1.12.0
1 parent 9330e1f commit 364e1da

File tree

7 files changed

+86
-51
lines changed

7 files changed

+86
-51
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2011-2020 wradlib developers
3+
Copyright (c) 2011-2021 wradlib developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

readthedocs_environment.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,4 @@ dependencies:
1313
- git
1414
- nbsphinx
1515
- semver
16-
# - scipy
17-
# - matplotlib
18-
# - h5py
19-
# - netCDF4
20-
# - gdal
21-
- xmltodict
2216
- xarray

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ sphinx_rtd_theme
55
sphinxcontrib-bibtex
66
deprecation
77
nbsphinx
8-
xmltodict
98
semver
109
xarray

source/conf.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,20 @@ def __getattr__(cls, name):
132132
'scipy.interpolate', 'scipy.ndimage',
133133
'scipy.ndimage.interpolation',
134134
'scipy.ndimage.filters', 'scipy.signal',
135-
'matplotlib', 'matplotlib.path', 'matplotlib.patches',
136-
'matplotlib.pyplot', 'matplotlib.projections',
137-
'matplotlib.transforms',
138-
'matplotlib.ticker',
139-
'matplotlib.dates',
140-
'matplotlib.collections',
141-
'mpl_toolkits',
142-
'mpl_toolkits.axisartist',
143-
'mpl_toolkits.axisartist.grid_finder',
144-
'mpl_toolkits.axisartist.angle_helper',
145-
'h5py', 'h5netcdf',
146-
'netCDF4', 'osgeo',
147-
'cartopy']
135+
# 'matplotlib', 'matplotlib.path', 'matplotlib.patches',
136+
# 'matplotlib.pyplot', 'matplotlib.projections',
137+
# 'matplotlib.transforms',
138+
# 'matplotlib.ticker',
139+
# 'matplotlib.dates',
140+
# 'matplotlib.collections',
141+
# 'mpl_toolkits',
142+
# 'mpl_toolkits.axisartist',
143+
# 'mpl_toolkits.axisartist.grid_finder',
144+
# 'mpl_toolkits.axisartist.angle_helper',
145+
# 'h5py', 'h5netcdf',
146+
# 'netCDF4', 'osgeo',
147+
# 'cartopy',
148+
]
148149
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
149150

150151
# get wradlib version

source/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
wradlib: An Open Source Library for Weather Radar Data Processing
77
=================================================================
88

9-
:Release: {release}
9+
:Release: `1.12.1 <https://github.com/wradlib/wradlib/tree/844edc381d6e46112b2db81c77956d8cbe6286a0>`_
1010
:Date: |today|
11-
:notebooks: {notebooks}
12-
:docs: {docs}
11+
:notebooks: Missing
12+
:docs: `a95490b <https://github.com/wradlib/wradlib-docs/tree/a95490bf80641fa8fc5d4b1d7fa7f73636abd828>`_
1313

1414
The :math:`\omega radlib` project has been initiated in order facilitate the use of weather radar data as well as to provide a common platform for research on new algorithms. :math:`\omega radlib` is an open source library which is well documented and easy to use. It is written in the free programming language `Python <https://www.python.org>`_. As of version 1.3 :math:`\omega radlib` is Python 3 only.
1515

source/installation.rst

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Bleeding edge code
6969

7070
`Download <https://codeload.github.com/wradlib/wradlib/zip/main>`_ the source, unzip, and run::
7171

72-
$ python setup.py install
72+
$ python -m pip install .
7373

7474
Alternatively, you can add the :math:`\omega radlib` directory to your environment variable ``PYTHONPATH``.
7575

@@ -81,7 +81,7 @@ Although we recommend using the Anaconda Python Environment you can install :mat
8181

8282
Open a terminal and run::
8383

84-
$ pip install wradlib
84+
$ python -m pip install wradlib
8585

8686
Depending on your system you might need to be root (or sudo the above command) for this to work.
8787
``pip`` will then fetch the source distribution from the Python Package Index and run the installation.
@@ -93,36 +93,28 @@ For example the numpy module itself depends on some other libraries, which need
9393

9494
Therefore we recommend trying to satisfy the dependencies using your favorite package management system.
9595

96+
Installing via ``pip`` tries to install all dependencies, but be sure to have all depending non-python libraries installed. Wheels are not available for all dependencies (eg. GDAL).
97+
9698

9799
.. _ref-dependencies:
98100

99101
Dependencies
100102
------------
101103

102-
:math:`\omega radlib` was not designed to be a self-contained library. Besides extensive use of Numpy and Scipy, :math:`\omega radlib` uses additional libraries, which you will need to install before you can use :math:`\omega radlib`.
104+
:math:`\omega radlib` was not designed to be a self-contained library. Besides extensive use of Numpy and Scipy, :math:`\omega radlib` uses additional libraries, which you might need to install before you can use :math:`\omega radlib` depending on your system and installation procedure.
103105

104106
.. tabularcolumns:: |L|L|L|
105107

106108
+------------+-----------+-------------+
107109
| Package | min | recommended |
108110
+============+===========+=============+
109-
| numpy | >= 1.9 | >= 1.19.0 |
110-
+------------+-----------+-------------+
111-
| matplotlib | >= 3 | >= 3.3.0 |
111+
| numpy | >= 1.9 | >= 1.21.0 |
112112
+------------+-----------+-------------+
113-
| scipy | >= 1.0 | >= 1.5.0 |
114-
+------------+-----------+-------------+
115-
| h5py | >= 2.0.1 | >= 3.1.0 |
116-
+------------+-----------+-------------+
117-
| h5netcdf | >= 0.8.0 | >= 0.10.0 |
118-
+------------+-----------+-------------+
119-
| netCDF4 | >= 1.0 | >= 1.5.0 |
113+
| scipy | >= 1.0 | >= 1.7.0 |
120114
+------------+-----------+-------------+
121-
| xarray | >= 0.15 | >= 0.17.0 |
122-
+------------+-----------+-------------+
123-
| xmltodict | >= 0.11 | >= 0.12.0 |
115+
| matplotlib | >= 3 | >= 3.3.0 |
124116
+------------+-----------+-------------+
125-
| gdal | >= 2.4 | >= 3.1.0 |
117+
| xarray | >= 0.17 | >= 0.20.2 |
126118
+------------+-----------+-------------+
127119

128120
You can check whether the required `Dependencies`_ are available on your computer by opening a Python console and enter:
@@ -139,29 +131,51 @@ some version number
139131

140132
The version number should be consistent with the above `Dependencies`_.
141133

142-
The following libraries are used by `netCDF4`, `h5py` and `gdal` packages and should apply to these requirements:
134+
135+
Optional Dependencies
136+
---------------------
137+
138+
Apart from the obligatory `Dependencies`_, some dependencies in :math:`\omega radlib` are optional. This is because the installation of these dependencies can be somewhat tedious while many :math:`\omega radlib` users will not need them anyway. In case users use a :math:`\omega radlib` function that requires an optional dependency, and this dependency is not satisfied in the local environment, :math:`\omega radlib` will raise an exception.
139+
140+
As for now, the following dependencies are defined as optional:
143141

144142
.. tabularcolumns:: |L|L|L|
145143

146144
+------------+-----------+-------------+
147-
| Lbrary | min | recommended |
145+
| Package | min | recommended |
148146
+============+===========+=============+
149-
| geos | >= 3.7.0 | >= 3.8.0 |
147+
| dask | >= 2.20 | >= latest |
150148
+------------+-----------+-------------+
151-
| hdf5 | >= 1.9.0 | >= 1.10.0 |
149+
| gdal | >= 2.4 | >= 3.1.0 |
152150
+------------+-----------+-------------+
153-
| libnetcdf | >= 4.7.3 | >= 4.7.4 |
151+
| h5py | >= 2.0.1 | >= 3.1.0 |
152+
+------------+-----------+-------------+
153+
| h5netcdf | >= 0.8.0 | >= 0.10.0 |
154154
+------------+-----------+-------------+
155-
| proj4/proj | >= 5.2.0 | >= 7.0.0 |
155+
| netCDF4 | >= 1.0 | >= 1.5.0 |
156+
+------------+-----------+-------------+
157+
| requests | >= 2.23.0 | >= 2.26.0 |
158+
+------------+-----------+-------------+
159+
| xmltodict | >= 0.11 | >= 0.12.0 |
156160
+------------+-----------+-------------+
157161

158162

159-
Optional Dependencies
160-
---------------------
163+
The following libraries are used by `netCDF4`, `h5py`/`h5netcdf` and `gdal` packages and should apply to these requirements:
161164

162-
Apart from the obligatory `Dependencies`_, some dependencies in :math:`\omega radlib` are optional. This is because the installation of these dependencies can be somewhat tedious while many :math:`\omega radlib` users will not need them anyway. In case users use a :math:`\omega radlib` function that requires an optional dependency, and this dependency is not satisfied in the local environment, :math:`\omega radlib` will raise an exception.
165+
.. tabularcolumns:: |L|L|L|L
166+
167+
+------------+-----------+-------------+---------+
168+
| Library | min | recommended | used by |
169+
+============+===========+=============+=========+
170+
| geos | >= 3.7.0 | >= 3.10.0 | gdal |
171+
+------------+-----------+-------------+---------+
172+
| hdf5 | >= 1.9.0 | >= 1.12.1 | h5py |
173+
+------------+-----------+-------------+---------+
174+
| libnetcdf | >= 4.7.3 | >= 4.8.1 | netCDF4 |
175+
+------------+-----------+-------------+---------+
176+
| proj | >= 5.2.0 | >= 8.0.0 | gdal |
177+
+------------+-----------+-------------+---------+
163178

164-
As for now, the following dependencies are defined as optional:
165179

166180
**The speedup module**
167181

source/release_notes.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,33 @@ Please note that :math:`\omega radlib` releases follow `semantic versioning <htt
77

88
You can install the latest :math:`\omega radlib` release from PyPI via ``$ pip install wradlib`` or specific version via ``$ pip install wradlib==x.y.z``. The recommended installation process is described in :doc:`installation`.
99

10+
Version 1.12.0
11+
--------------
12+
13+
**New features**
14+
15+
* add IRIS/Sigmet backend for ``Xarray`` (:issue:`361`) (:pull:`520`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
16+
* add Rainbow backend for ``Xarray`` (:issue:`394`, :issue:`459`) suggested by `@wcwoo <https://github.com/wcwoo>`_ and `@maxok <https://github.com/maxok>`_ (:pull:`522`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
17+
18+
**Maintenance**
19+
20+
* optionalize dependencies (dask, gdal, h5netcdf, h5py, netCDF4, requests, xmltodict) (:pull:`531`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
21+
* utilize pytest-doctestplus (:pull:`530`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
22+
* update deprecated matplotlib functionality (:pull:`530`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
23+
* docstring updates in several functions (:pull:`530`, ) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
24+
* docstring updates in several functions
25+
26+
**Bugfixes**
27+
28+
* use reasonable default values in `io.xarray.to_odim` (gain, offset, nodata, undetect, fillvalue)
29+
* add cf attributes when reading GAMIC files (:pull:`523`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
30+
* fix regression in legacy GAMIC reader (:pull:`523`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
31+
* catch `dt.accessor` TypeError (:pull:`529`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
32+
* fix thread-lock issue, if dask is not installed (:pull:`531`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
33+
* use int instead np.int in radolan header parser (:pull:`531`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
34+
* fix several tests (:pull:`531`) by `@kmuehlbauer <https://github.com/kmuehlbauer>`_
35+
* other minor fixes distributed over several PR's
36+
1037
Version 1.11.0
1138
--------------
1239

0 commit comments

Comments
 (0)