Skip to content

Commit 7da4e01

Browse files
fixing offline mode
1 parent c5b4f05 commit 7da4e01

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

PMJPL/model.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -274,26 +274,6 @@ def PMJPL(
274274
if RH is None:
275275
raise ValueError("relative humidity (RH) not given")
276276

277-
if offline_mode:
278-
missing_vars = []
279-
if Ta_C is None:
280-
missing_vars.append("Ta_C")
281-
if Tmin_C is None:
282-
missing_vars.append("Tmin_C")
283-
if RH is None:
284-
missing_vars.append("RH")
285-
if SWin_Wm2 is None:
286-
missing_vars.append("SWin_Wm2")
287-
if elevation_m is None:
288-
missing_vars.append("elevation_m")
289-
if IGBP is None:
290-
missing_vars.append("IGBP")
291-
292-
if missing_vars:
293-
raise MissingOfflineParameter(
294-
f"The following variables are missing in offline mode: {', '.join(missing_vars)}"
295-
)
296-
297277
if elevation_m is None and geometry is not None:
298278
elevation_m = NASADEM.elevation_m(geometry=geometry)
299279

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]
33

44
[project]
55
name = "PM-JPL"
6-
version = "1.10.0"
6+
version = "1.11.0"
77
description = "JPL implementation of the MOD16 evapotranspiration algorithm for high resolution instantaneous remote sensing imagery"
88
readme = "README.md"
99
authors = [

0 commit comments

Comments
 (0)