Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ESPACE-DEV
pyrasta
Commits
710783d1
Commit
710783d1
authored
Aug 04, 2021
by
benjaminpillot
Browse files
Fix output type argument syntax for raster calculation
parent
75c92804
Changes
1
Show whitespace changes
Inline
Side-by-side
pyrasta/tools/mask.py
View file @
710783d1
...
@@ -36,7 +36,7 @@ def _raster_mask(raster, geodataframe, driver, output_type, no_data, all_touched
...
@@ -36,7 +36,7 @@ def _raster_mask(raster, geodataframe, driver, output_type, no_data, all_touched
return
raster
.
__class__
.
raster_calculation
([
raster
,
mask
],
return
raster
.
__class__
.
raster_calculation
([
raster
,
mask
],
partial
(
_mask
,
no_data
=
no_data
),
partial
(
_mask
,
no_data
=
no_data
),
gdal_driver
=
driver
,
gdal_driver
=
driver
,
data_type
=
output
_type
,
output_type
=
raster
.
data
_type
,
no_data
=
no_data
,
no_data
=
no_data
,
description
=
"Compute mask"
,
description
=
"Compute mask"
,
window_size
=
window_size
,
window_size
=
window_size
,
...
...
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