Skip to content
Snippets Groups Projects
Commit 28b9fafd authored by Narayanarao Bhogapurapu's avatar Narayanarao Bhogapurapu
Browse files

minor update in htl and htg defaults

parent 8a559060
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,8 @@ parser = argparse.ArgumentParser(description="Generate canopy height map from In ...@@ -39,8 +39,8 @@ parser = argparse.ArgumentParser(description="Generate canopy height map from In
parser.add_argument("-c", "--correlationFile", dest="corFile", help="Correlation file [0,1]") parser.add_argument("-c", "--correlationFile", dest="corFile", help="Correlation file [0,1]")
parser.add_argument("-l", "--cal_ht", dest="lidarFile", help="Calibration height file (e.g., LiDAR heights in meters)") parser.add_argument("-l", "--cal_ht", dest="lidarFile", help="Calibration height file (e.g., LiDAR heights in meters)")
parser.add_argument("-ll", "--lower_limit", dest="htl", default=None, help="Lower limit of canopy height (m)", type=int) parser.add_argument("-ll", "--lower_limit", dest="htl", default=0, help="Lower limit of canopy height (m)", type=int)
parser.add_argument("-ul", "--upper_limit", dest="htg", default=None, help="Upper limit of canopy height (m)", type=int) parser.add_argument("-ul", "--upper_limit", dest="htg", default=0, help="Upper limit of canopy height (m)", type=int)
parser.add_argument("-w", "--window", dest="window_size", default=10, help="Window size", type=int) parser.add_argument("-w", "--window", dest="window_size", default=10, help="Window size", type=int)
parser.add_argument("-val", "--validation", dest="validation", default=0, help="Fraction to split for cross-validation", type=float) parser.add_argument("-val", "--validation", dest="validation", default=0, help="Fraction to split for cross-validation", type=float)
......
...@@ -77,7 +77,7 @@ def rvog_inverse(args): ...@@ -77,7 +77,7 @@ def rvog_inverse(args):
# Apply masks to filter out invalid or extreme values # Apply masks to filter out invalid or extreme values
lidar_ht[lidar_ht == 0] = np.nan lidar_ht[lidar_ht == 0] = np.nan
if args.htl==None and args.htg==None: if args.htl==0 and args.htg==0:
""" Calculating the upper limit of the heights to be estimated from the LiDAR data """ Calculating the upper limit of the heights to be estimated from the LiDAR data
Ceiling the upper limit to the closest multiple of 5 for the height at 99.9 percentile """ Ceiling the upper limit to the closest multiple of 5 for the height at 99.9 percentile """
args.htl=0 args.htl=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment