You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by rk...@apache.org on 2024/07/10 22:53:09 UTC

(sdap-nexus) 13/46: Use actual extent in extent param

This is an automated email from the ASF dual-hosted git repository.

rkk pushed a commit to branch tmp-stv
in repository https://gitbox.apache.org/repos/asf/sdap-nexus.git

commit 9dd273b93fd6afca16c6bfe7da43a0017136abfd
Author: rileykk <ri...@jpl.nasa.gov>
AuthorDate: Thu Nov 16 10:43:58 2023 -0800

    Use actual extent in extent param
---
 analysis/webservice/algorithms/Tomogram.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/analysis/webservice/algorithms/Tomogram.py b/analysis/webservice/algorithms/Tomogram.py
index 266e5a9..cad685b 100644
--- a/analysis/webservice/algorithms/Tomogram.py
+++ b/analysis/webservice/algorithms/Tomogram.py
@@ -408,7 +408,7 @@ class LongitudeTomogramImpl(TomogramBaseClass):
         return ProfileTomoResults(
             results=rows,
             s={'longitude': longitude},
-            extent=[lats[0], lats[-1], min_elevation, max_elevation],
+            extent=[lats[0], lats[-1], ds.elevation.min(), ds.elevation.max()],
             meta=dict(dataset=dataset)
         )
 
@@ -537,7 +537,7 @@ class LatitudeTomogramImpl(TomogramBaseClass):
         return ProfileTomoResults(
             results=rows,
             s={'latitude': latitude},
-            extent=[lons[0], lons[-1], min_elevation, max_elevation],
+            extent=[lons[0], lons[-1], ds.elevation.min(), ds.elevation.max()],
             meta=dict(dataset=dataset)
         )