Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sensormapgeo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EnMAP
sensormapgeo
Commits
2f18e7fc
Commit
2f18e7fc
authored
5 years ago
by
Daniel Scheffler
Browse files
Options
Downloads
Patches
Plain Diff
Replaced workaround for warning with warnings.catch_warning.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
eaa763d2
No related branches found
No related tags found
No related merge requests found
Pipeline
#8657
passed
5 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
HISTORY.rst
+6
-0
6 additions, 0 deletions
HISTORY.rst
sensormapgeo/transformer_2d.py
+7
-1
7 additions, 1 deletion
sensormapgeo/transformer_2d.py
sensormapgeo/version.py
+2
-2
2 additions, 2 deletions
sensormapgeo/version.py
with
15 additions
and
3 deletions
HISTORY.rst
+
6
−
0
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)
------------------
...
...
This diff is collapsed.
Click to expand it.
sensormapgeo/transformer_2d.py
+
7
−
1
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
...
...
This diff is collapsed.
Click to expand it.
sensormapgeo/version.py
+
2
−
2
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
'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment