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
Lozac'h Loic
AgriSoilMoisture
Commits
2dc51c52
Commit
2dc51c52
authored
Feb 07, 2020
by
Lozac'h Loic
Browse files
ADD: output dir
parent
0f26fb31
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/SoilMoistureRenameFiles.py
View file @
2dc51c52
...
...
@@ -35,14 +35,15 @@ if __name__ == "__main__":
Rename MV and NDVI
"""
)
parser
.
add_argument
(
'-proddir'
,
action
=
'store'
,
required
=
True
,
help
=
'Directory containing Soil Moisture files (MV + NDVI) for a production site'
)
parser
.
add_argument
(
'-movedir'
,
action
=
'store'
,
required
=
True
,
help
=
'Directory containing Soil Moisture files (MV + NDVI) to be renamed and moved'
)
parser
.
add_argument
(
'-proddir'
,
action
=
'store'
,
required
=
True
,
help
=
'Destination directory'
)
parser
.
add_argument
(
'-prodsite'
,
action
=
'store'
,
required
=
True
,
help
=
'Production site name to be added in file naming'
)
args
=
parser
.
parse_args
()
ndvis
=
search_files
(
args
.
prod
dir
)
ndvis
=
search_files
(
args
.
move
dir
)
moists
=
search_files
(
args
.
prod
dir
,
resolution
=
'mv'
)
moists
=
search_files
(
args
.
move
dir
,
resolution
=
'mv'
)
ndvidir
=
os
.
path
.
join
(
args
.
proddir
,
"NDVI"
)
s1adir
=
os
.
path
.
join
(
args
.
proddir
,
"S1A"
)
...
...
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