Commit 10cb1b0c authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added some input validation.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 2865b5c9
Pipeline #8616 failed with stage
in 1 minute and 5 seconds
...@@ -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)
......
Supports Markdown
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