Commit 2f18e7fc authored by Daniel Scheffler's avatar Daniel Scheffler

Replaced workaround for warning with warnings.catch_warning.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent eaa763d2
Pipeline #8657 passed with stages
in 1 minute and 54 seconds
......@@ -2,6 +2,12 @@
History
=======
0.3.3 (2020-05-08)
------------------
* Replaced workaround for warning with warnings.catch_warning.
0.3.2 (2020-05-08)
------------------
......
......@@ -318,7 +318,13 @@ class SensorMapGeometryTransformer(object):
float, float, float], str):
gt = area_definition.area_extent[0], area_definition.pixel_size_x, 0, \
area_definition.area_extent[3], 0, -area_definition.pixel_size_y
prj = proj4_to_WKT(area_definition.crs.srs) # .proj_str attribute raises a warning in pyresample 1.15.0
with warnings.catch_warnings():
# suppress a UserWarning coming from pyresample v0.15.0
warnings.filterwarnings('ignore', category=UserWarning,
message='You will likely lose important projection information when converting '
'to a PROJ string from another format.')
proj4_str = area_definition.proj_str
prj = proj4_to_WKT(proj4_str)
return gt, prj
......
......@@ -22,6 +22,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.3.2'
__versionalias__ = '20200508.03'
__version__ = '0.3.3'
__versionalias__ = '20200508.04'
__author__ = 'Daniel Scheffler'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment