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
hru-delin-dev
hru-delin
Commits
232ac43f
Commit
232ac43f
authored
Jun 04, 2021
by
Rabotin Michael
Browse files
Corrected error in file closing
parent
6239144d
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/hrudelin_parms_J2000.py
View file @
232ac43f
...
...
@@ -662,7 +662,7 @@ def main(parms_file, nbProc, generator=False):
p
.
wait
()
pReclass
.
stdin
.
close
()
pReclass
.
wait
()
p
.
close
()
grass_run_command
(
'r.statistics'
,
flags
=
'c'
,
base
=
hrus
,
cover
=
slope_labeled
,
method
=
'average'
,
output
=
slope_avg
,
overwrite
=
'True'
)
grass_run_command
(
'r.mapcalc'
,
expression
=
'slope_avg_cval=int(@slope_avg*1000)/1000.0'
,
overwrite
=
'True'
)
...
...
@@ -845,7 +845,7 @@ def main(parms_file, nbProc, generator=False):
for
l
in
vals
:
p
.
write
(
l
)
p
.
write
(
footer
)
par
.
close
()
save_config
=
os
.
path
.
join
(
directory_out
,
'hrudelin_config_save.cfg'
)
#os.system('cp "%s" "%s" ' % (parms_file, save_config))
...
...
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