Skip to content

Commit

Permalink
Fixed bug where elevation model has very high values over 8000m.
Browse files Browse the repository at this point in the history
  • Loading branch information
petebunting committed Jun 1, 2023
1 parent dddc4d4 commit 7d446d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arcsilib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

ARCSI_VERSION_MAJOR = 4
ARCSI_VERSION_MINOR = 0
ARCSI_VERSION_PATCH = 3
ARCSI_VERSION_PATCH = 4

ARCSI_VERSION = f"{ARCSI_VERSION_MAJOR}.{ARCSI_VERSION_MINOR}.{ARCSI_VERSION_PATCH}"
ARCSI_VERSION_OBJ = LooseVersion(ARCSI_VERSION)
Expand Down
8 changes: 4 additions & 4 deletions arcsilib/arcsiutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def resampleSpectralResponseFunc(wvlens, respFunc, outSamp, sampleMethod):


def findMinimumElev(elev):
elevVal = -500
elevVal = -550
outElev = 0
for i in range(50):
for i in range(100):
if (elev > elevVal) & (elev < (elevVal + 100)):
outElev = elevVal
break
Expand All @@ -111,9 +111,9 @@ def findMinimumElev(elev):


def findMaximumElev(elev):
elevVal = -500
elevVal = -550
outElev = 0
for i in range(90):
for i in range(105):
if (elev > elevVal) & (elev < (elevVal + 100)):
outElev = elevVal + 100
break
Expand Down

0 comments on commit 7d446d4

Please sign in to comment.