Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EnMAP
sensormapgeo
Commits
2f18e7fc
Commit
2f18e7fc
authored
May 09, 2020
by
Daniel Scheffler
Browse files
Replaced workaround for warning with warnings.catch_warning.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
eaa763d2
Pipeline
#8657
passed with stages
in 1 minute and 54 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
HISTORY.rst
View file @
2f18e7fc
...
...
@@ -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)
------------------
...
...
sensormapgeo/transformer_2d.py
View file @
2f18e7fc
...
...
@@ -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
...
...
sensormapgeo/version.py
View file @
2f18e7fc
...
...
@@ -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.0
3
'
__version__
=
'0.3.
3
'
__versionalias__
=
'20200508.0
4
'
__author__
=
'Daniel Scheffler'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment