From 8ff7ceb8fca13e23c4a954ccf0ab4e137cc5ff8f Mon Sep 17 00:00:00 2001
From: Narayanarao Bhogapurapu <narayanarao.bhogapurapu@gmail.com>
Date: Tue, 12 Nov 2024 19:20:22 +0000
Subject: [PATCH] Update args_in.py

---
 src/ich/args_in.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ich/args_in.py b/src/ich/args_in.py
index ced3f94..7c2989d 100644
--- a/src/ich/args_in.py
+++ b/src/ich/args_in.py
@@ -75,7 +75,7 @@ def rvog_inverse(args):
 
 
         lidar_ht[lidar_ht==0] = np.nan
-        if args.htl==None and args.htg==None:
+        if args.htg==0 or (args.htl==None and args.htg==None):
             """ 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 """
             args.htl=0
-- 
GitLab