Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gaetano Raffaele
moringa
Commits
c53d8d76
Commit
c53d8d76
authored
Apr 15, 2020
by
Gaetano Raffaele
Browse files
Merge remote-tracking branch 'origin/develop' into develop
parents
4467df00
ca7d4396
Changes
1
Hide whitespace changes
Inline
Side-by-side
prepareS2THEIA.py
View file @
c53d8d76
...
...
@@ -136,7 +136,8 @@ def prepare(argv):
out_fn
=
od
+
'/'
+
os
.
path
.
splitext
(
os
.
path
.
basename
(
fn
))[
0
]
+
'_'
+
ext
+
'.tif'
subprocess
.
call
(
clip_cmd
+
'
\"
'
+
fn
+
'
\"
\"
'
+
out_fn
+
'
\"
'
,
shell
=
True
)
clip_cmd
=
'gdalwarp -q -of GTiff -ot UInt16 -dstnodata 0 -srcnodata 0 -cutline
\"
'
+
clip_shp_val
+
'
\"
-crop_to_cutline '
# clip_cmd = 'gdalwarp -q -of GTiff -ot UInt16 -dstnodata 0 -srcnodata 0 -cutline \"' + clip_shp_val + '\" -crop_to_cutline '
clip_cmd
=
'gdalwarp -q -of GTiff -ot UInt16 -cutline
\"
'
+
clip_shp_val
+
'
\"
-crop_to_cutline '
if
srs
!=
None
:
clip_cmd
+=
'-t_srs {} '
.
format
(
srs
)
fns
=
[
'CLM_R1'
,
'CLM_R2'
]
...
...
Write
Preview
Markdown
is supported
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