Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diapotb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luc Hermitte
diapotb
Commits
85ed7b94
Commit
85ed7b94
authored
4 years ago
by
Gaëlle USSEGLIO
Browse files
Options
Downloads
Patches
Plain Diff
STYLE : Add comments for new python scripts
parent
79a7e1be
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python_src/utils/generateConfigFile.py
+16
-0
16 additions, 0 deletions
python_src/utils/generateConfigFile.py
python_src/utils/getEOFFromESA.py
+8
-0
8 additions, 0 deletions
python_src/utils/getEOFFromESA.py
with
24 additions
and
0 deletions
python_src/utils/generateConfigFile.py
+
16
−
0
View file @
85ed7b94
...
@@ -19,6 +19,9 @@ import func_utils
...
@@ -19,6 +19,9 @@ import func_utils
# Util fct for autocompletion
# Util fct for autocompletion
def
complete
(
text
,
state
):
def
complete
(
text
,
state
):
"""
Function for autocompletion
"""
return
(
glob
.
glob
(
text
+
'
*
'
)
+
[
None
])[
state
]
return
(
glob
.
glob
(
text
+
'
*
'
)
+
[
None
])[
state
]
# Print with colors
# Print with colors
...
@@ -33,6 +36,9 @@ def prBlack(skk): print("\033[98m {}\033[00m" .format(skk))
...
@@ -33,6 +36,9 @@ def prBlack(skk): print("\033[98m {}\033[00m" .format(skk))
# Input with colors
# Input with colors
def
genericInput
(
skk
,
color
)
:
def
genericInput
(
skk
,
color
)
:
"""
Override input function for colors and exceptions
"""
try
:
try
:
return
input
(
color
.
format
(
skk
))
return
input
(
color
.
format
(
skk
))
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
...
@@ -54,6 +60,11 @@ def inBlack(skk): return genericInput(skk, "\033[98m {}\033[00m")
...
@@ -54,6 +60,11 @@ def inBlack(skk): return genericInput(skk, "\033[98m {}\033[00m")
# Questions to user for SAR_MultiSlc* chains
# Questions to user for SAR_MultiSlc* chains
def
askForMultiSlc
(
dataConfig
)
:
def
askForMultiSlc
(
dataConfig
)
:
"""
Q&A for SAR_MultiSlc* chains
Modify the dataConfig following user
'
s awnsers
"""
# Select sensor if SAR_MultiSlc
# Select sensor if SAR_MultiSlc
sensor
=
"
S1IW
"
sensor
=
"
S1IW
"
if
(
response
==
"
SAR_MultiSlc
"
)
:
if
(
response
==
"
SAR_MultiSlc
"
)
:
...
@@ -188,6 +199,11 @@ def askForMultiSlc(dataConfig) :
...
@@ -188,6 +199,11 @@ def askForMultiSlc(dataConfig) :
# Questions to user for diapOTB* chains
# Questions to user for diapOTB* chains
def
askForDiapOTB
(
dataConfig
)
:
def
askForDiapOTB
(
dataConfig
)
:
"""
Q&A for diapOTB* chains
Modify the dataConfig following user
'
s awnsers
"""
# Select sensor if diapOTB
# Select sensor if diapOTB
sensor
=
"
S1IW
"
sensor
=
"
S1IW
"
if
(
response
==
"
diapOTB
"
)
:
if
(
response
==
"
diapOTB
"
)
:
...
...
This diff is collapsed.
Click to expand it.
python_src/utils/getEOFFromESA.py
+
8
−
0
View file @
85ed7b94
#!/usr/bin/env python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
getEOFFromESA.py
================
Python script to retrieve from ESA website, the EOF files
"""
import
re
import
re
import
os
import
os
import
time
import
time
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment