Skip to content
GitLab
Menu
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
10cb1b0c
Commit
10cb1b0c
authored
May 07, 2020
by
Daniel Scheffler
Browse files
Added some input validation.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
2865b5c9
Pipeline
#8616
failed with stage
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
sensormapgeo/transformer_3d.py
View file @
10cb1b0c
...
@@ -192,6 +192,9 @@ class SensorMapGeometryTransformer3D(object):
...
@@ -192,6 +192,9 @@ class SensorMapGeometryTransformer3D(object):
raise
ValueError
(
data
.
shape
,
'Expected a sensor geometry data array with %d rows, %d columns and %d bands.'
raise
ValueError
(
data
.
shape
,
'Expected a sensor geometry data array with %d rows, %d columns and %d bands.'
%
self
.
lons
.
shape
)
%
self
.
lons
.
shape
)
if
not
tgt_prj
and
not
area_definition
:
raise
ValueError
(
tgt_prj
,
'Target projection must be given if area_definition is not given.'
)
if
tgt_coordgrid
:
if
tgt_coordgrid
:
tgt_res
=
_get_validated_tgt_res
(
tgt_coordgrid
,
tgt_res
)
tgt_res
=
_get_validated_tgt_res
(
tgt_coordgrid
,
tgt_res
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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