Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
oeigner
LINK - Forschungsprojekt Repo
Commits
4804d672
Commit
4804d672
authored
Jul 05, 2021
by
Fabian Kovac
Browse files
[i] updated source code comments
parent
6a343afa
Changes
1
Show whitespace changes
Inline
Side-by-side
FHSTP/prep.py
View file @
4804d672
...
...
@@ -51,11 +51,10 @@ def parse_arguments() -> argparse.Namespace:
def
_log
(
msg
:
str
)
->
None
:
"""Logs message
s if verbose flag is set to True
"""Logs message
Parameters:
msg (str): Message to log to console
verbose (bool): Outputs message if set to True
"""
# add marker to log message
...
...
@@ -70,7 +69,7 @@ def _log(msg: str) -> None:
def
load_inca_file
(
file_inca
:
pathlib
.
Path
)
->
np
.
array
:
"""Loads
loads
gzipped INCA data
t
o a given file
"""Loads gzipped INCA data o
f
a given file
Parameters:
file_inca (pathlib.Path): Path to INCA file
...
...
@@ -89,7 +88,7 @@ def load_inca_file(file_inca: pathlib.Path) -> np.array:
def
load_inca_data
(
dir_inca
:
pathlib
.
Path
)
->
np
.
array
:
"""Loads inca files
t
o a given inca dir
"""Loads inca files o
f
a given inca dir
Parameters:
dir_inca (pathlib.Path): Directory for INCA files
...
...
@@ -239,7 +238,7 @@ def utm_to_lambert(lon: np.array, lat: np.array) -> tuple:
def
lambert_to_inca_idx
(
x
:
np
.
array
,
y
:
np
.
array
)
->
tuple
:
"""Convert x and y of Lambert Conic Conformal Projection to INCA index
"""Convert x and y of Lambert Conic Conformal Projection to
an
INCA index
Parameters:
x (np.array): Vector containing x values in meter of Lambert Conformal Conic Projection
...
...
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