-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalgorithm_lidar.py
51 lines (39 loc) · 1.74 KB
/
algorithm_lidar.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"""Plot-level Lidar algorithm
"""
# Importing modules. Please add any additional import statements below
import numpy as np
# Definitions
# Please replace these definition's values with the correct ones
VERSION = '1.0'
# Information on the creator of this algorithm
ALGORITHM_AUTHOR = ''
ALGORITHM_AUTHOR_EMAIL = ''
ALGORITHM_NAME = ''
ALGORITHM_DESCRIPTION = 'This algorithm calculates something useful from lidar data'
# Citation information for publication (more information in HOW_TO.md)
CITATION_AUTHOR = ''
CITATION_TITLE = ''
CITATION_YEAR = ''
# The name of one or more variables returned by the algorithm, separated by commas (more information in HOW_TO.md)
# If only one name is specified, no comma's are used.
# Note that variable names cannot have comma's in them: use a different separator instead. Also,
# all white space is kept intact; don't add any extra whitespace since it may cause name comparisons
# to fail.
VARIABLE_NAMES = ''
# Optional override for the generation of a BETYdb compatible csv file
# Set to False to suppress the creation of a compatible file
WRITE_BETYDB_CSV = True
# Optional override for the generation of a TERRA REF Geostreams compatible csv file
# Set to False to suppress the creation of a compatible file
WRITE_GEOSTREAMS_CSV = True
# Entry point for plot-level lidar algorithm
def calculate(pxarray: np.ndarray):
"""Calculates one or more values from plot-level Lidar data
Arguments:
pxarray: Array of Lidar data for a single plot
Return:
Returns one or more calculated values
"""
# ALGORITHM: fill in the following lines with your algorithm
# RETURN: replace the following return with your calculated values. Be sure to order them as defined in VARIABLE_NAMES above
return