BESS-JPL 1.15.1__py3-none-any.whl → 1.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of BESS-JPL might be problematic. Click here for more details.
- BESS_JPL/LAI_from_NDVI.py +0 -1
- BESS_JPL/carbon_water_fluxes.py +0 -19
- BESS_JPL/load_C4_fraction.py +6 -1
- BESS_JPL/load_NDVI_maximum.py +3 -1
- BESS_JPL/load_NDVI_minimum.py +3 -1
- BESS_JPL/load_ball_berry_slope_C3.py +1 -1
- BESS_JPL/load_ball_berry_slope_C4.py +1 -1
- BESS_JPL/load_kn.py +1 -1
- BESS_JPL/load_peakVCmax_C3.py +3 -1
- BESS_JPL/load_peakVCmax_C4.py +3 -1
- BESS_JPL/model.py +6 -1
- {bess_jpl-1.15.1.dist-info → bess_jpl-1.17.0.dist-info}/METADATA +1 -1
- {bess_jpl-1.15.1.dist-info → bess_jpl-1.17.0.dist-info}/RECORD +16 -16
- {bess_jpl-1.15.1.dist-info → bess_jpl-1.17.0.dist-info}/WHEEL +0 -0
- {bess_jpl-1.15.1.dist-info → bess_jpl-1.17.0.dist-info}/licenses/LICENSE +0 -0
- {bess_jpl-1.15.1.dist-info → bess_jpl-1.17.0.dist-info}/top_level.txt +0 -0
BESS_JPL/LAI_from_NDVI.py
CHANGED
BESS_JPL/carbon_water_fluxes.py
CHANGED
|
@@ -12,25 +12,6 @@ from .soil_energy_balance import soil_energy_balance
|
|
|
12
12
|
|
|
13
13
|
PASSES = 1
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
def load_ball_berry_intercept_C3(self, geometry: RasterGeometry) -> Raster:
|
|
17
|
-
filename = join(abspath(dirname(__file__)), "ball_berry_intercept_C3.tif")
|
|
18
|
-
image = rt.Raster.open(filename, geometry=geometry, resampling=self.resampling)
|
|
19
|
-
|
|
20
|
-
return image
|
|
21
|
-
|
|
22
|
-
def load_ball_berry_slope_C3(self, geometry: RasterGeometry) -> Raster:
|
|
23
|
-
filename = join(abspath(dirname(__file__)), "ball_berry_slope_C3.tif")
|
|
24
|
-
image = rt.Raster.open(filename, geometry=geometry, resampling=self.resampling)
|
|
25
|
-
|
|
26
|
-
return image
|
|
27
|
-
|
|
28
|
-
def load_ball_berry_slope_C4(self, geometry: RasterGeometry) -> Raster:
|
|
29
|
-
filename = join(abspath(dirname(__file__)), "ball_berry_slope_C4.tif")
|
|
30
|
-
image = rt.Raster.open(filename, geometry=geometry, resampling=self.resampling)
|
|
31
|
-
|
|
32
|
-
return image
|
|
33
|
-
|
|
34
15
|
def carbon_water_fluxes(
|
|
35
16
|
canopy_temperature_K: np.ndarray, # canopy temperature in Kelvin
|
|
36
17
|
soil_temperature_K: np.ndarray, # soil temperature in Kelvin
|
BESS_JPL/load_C4_fraction.py
CHANGED
|
@@ -3,8 +3,13 @@ from os.path import join, abspath, dirname
|
|
|
3
3
|
import rasters as rt
|
|
4
4
|
from rasters import Raster, RasterGeometry
|
|
5
5
|
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
6
8
|
def load_C4_fraction(geometry: RasterGeometry = None, resampling: str = "nearest") -> Raster:
|
|
7
9
|
filename = join(abspath(dirname(__file__)), "C4_fraction.tif")
|
|
8
|
-
image = Raster.open(filename, geometry=geometry, resampling=resampling)
|
|
10
|
+
image = Raster.open(filename, geometry=geometry, resampling=resampling, nodata=np.nan)
|
|
11
|
+
image = rt.clip(image, 0, 100)
|
|
12
|
+
# Scale image to be between 0 and 1
|
|
13
|
+
image /= 100.0
|
|
9
14
|
|
|
10
15
|
return image
|
BESS_JPL/load_NDVI_maximum.py
CHANGED
|
@@ -3,8 +3,10 @@ from os.path import join, abspath, dirname
|
|
|
3
3
|
import rasters as rt
|
|
4
4
|
from rasters import Raster, RasterGeometry
|
|
5
5
|
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
6
8
|
def load_NDVI_maximum(geometry: RasterGeometry = None, resampling: str = "nearest") -> Raster:
|
|
7
9
|
filename = join(abspath(dirname(__file__)), "NDVI_maximum.tif")
|
|
8
|
-
image = Raster.open(filename, geometry=geometry, resampling=resampling)
|
|
10
|
+
image = Raster.open(filename, geometry=geometry, resampling=resampling, nodata=np.nan)
|
|
9
11
|
|
|
10
12
|
return image
|
BESS_JPL/load_NDVI_minimum.py
CHANGED
|
@@ -3,8 +3,10 @@ from os.path import join, abspath, dirname
|
|
|
3
3
|
import rasters as rt
|
|
4
4
|
from rasters import Raster, RasterGeometry
|
|
5
5
|
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
6
8
|
def load_NDVI_minimum(geometry: RasterGeometry = None, resampling: str = "nearest") -> Raster:
|
|
7
9
|
filename = join(abspath(dirname(__file__)), "NDVI_minimum.tif")
|
|
8
|
-
image = Raster.open(filename, geometry=geometry, resampling=resampling)
|
|
10
|
+
image = Raster.open(filename, geometry=geometry, resampling=resampling, nodata=np.nan)
|
|
9
11
|
|
|
10
12
|
return image
|
|
@@ -5,6 +5,6 @@ from rasters import Raster, RasterGeometry
|
|
|
5
5
|
|
|
6
6
|
def load_ball_berry_slope_C3(geometry: RasterGeometry = None, resampling: str = "nearest") -> Raster:
|
|
7
7
|
filename = join(abspath(dirname(__file__)), "ball_berry_slope_C3.tif")
|
|
8
|
-
image = Raster.open(filename, geometry=geometry, resampling=
|
|
8
|
+
image = Raster.open(filename, geometry=geometry, resampling=resampling)
|
|
9
9
|
|
|
10
10
|
return image
|
|
@@ -5,6 +5,6 @@ from rasters import Raster, RasterGeometry
|
|
|
5
5
|
|
|
6
6
|
def load_ball_berry_slope_C4(geometry: RasterGeometry = None, resampling: str = "nearest") -> Raster:
|
|
7
7
|
filename = join(abspath(dirname(__file__)), "ball_berry_slope_C4.tif")
|
|
8
|
-
image = Raster.open(filename, geometry=geometry, resampling=
|
|
8
|
+
image = Raster.open(filename, geometry=geometry, resampling=resampling)
|
|
9
9
|
|
|
10
10
|
return image
|
BESS_JPL/load_kn.py
CHANGED
|
@@ -5,6 +5,6 @@ from rasters import Raster, RasterGeometry
|
|
|
5
5
|
|
|
6
6
|
def load_kn(geometry: RasterGeometry = None, resampling: str = "nearest") -> Raster:
|
|
7
7
|
filename = join(abspath(dirname(__file__)), "kn.tif")
|
|
8
|
-
image = Raster.open(filename, geometry=geometry, resampling=
|
|
8
|
+
image = Raster.open(filename, geometry=geometry, resampling=resampling)
|
|
9
9
|
|
|
10
10
|
return image
|
BESS_JPL/load_peakVCmax_C3.py
CHANGED
|
@@ -3,8 +3,10 @@ from os.path import join, abspath, dirname
|
|
|
3
3
|
import rasters as rt
|
|
4
4
|
from rasters import Raster, RasterGeometry
|
|
5
5
|
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
6
8
|
def load_peakVCmax_C3(geometry: RasterGeometry = None, resampling: str = "nearest") -> Raster:
|
|
7
9
|
filename = join(abspath(dirname(__file__)), "peakVCmax_C3.tif")
|
|
8
|
-
image = Raster.open(filename, geometry=geometry, resampling=
|
|
10
|
+
image = Raster.open(filename, geometry=geometry, resampling=resampling, nodata=np.nan)
|
|
9
11
|
|
|
10
12
|
return image
|
BESS_JPL/load_peakVCmax_C4.py
CHANGED
|
@@ -3,8 +3,10 @@ from os.path import join, abspath, dirname
|
|
|
3
3
|
import rasters as rt
|
|
4
4
|
from rasters import Raster, RasterGeometry
|
|
5
5
|
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
6
8
|
def load_peakVCmax_C4(geometry: RasterGeometry = None, resampling: str = "nearest") -> Raster:
|
|
7
9
|
filename = join(abspath(dirname(__file__)), "peakVCmax_C4.tif")
|
|
8
|
-
image = Raster.open(filename, geometry=geometry, resampling=
|
|
10
|
+
image = Raster.open(filename, geometry=geometry, resampling=resampling, nodata=np.nan)
|
|
9
11
|
|
|
10
12
|
return image
|
BESS_JPL/model.py
CHANGED
|
@@ -185,7 +185,12 @@ def BESS_JPL(
|
|
|
185
185
|
logger.warning(f"Variable '{name}' has a different size: {size} (expected: {reference_size}).")
|
|
186
186
|
|
|
187
187
|
# check if any of the FLiES outputs are not given
|
|
188
|
-
|
|
188
|
+
flies_variables = [Rg, VISdiff, VISdir, NIRdiff, NIRdir, UV, albedo_visible, albedo_NIR]
|
|
189
|
+
flies_variables_missing = False
|
|
190
|
+
for variable in flies_variables:
|
|
191
|
+
if variable is None:
|
|
192
|
+
flies_variables_missing = True
|
|
193
|
+
if flies_variables_missing:
|
|
189
194
|
# load cloud optical thickness if not provided
|
|
190
195
|
if COT is None:
|
|
191
196
|
COT = GEOS5FP_connection.COT(time_UTC=time_UTC, geometry=geometry, resampling=resampling)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: BESS-JPL
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.17.0
|
|
4
4
|
Summary: Breathing Earth System Simulator (BESS) Gross Primary Production (GPP) and Evapotranspiration (ET) Model Python
|
|
5
5
|
Author-email: Gregory Halverson <gregory.h.halverson@jpl.nasa.gov>
|
|
6
6
|
Project-URL: Homepage, https://github.com/JPL-Evapotranspiration-Algorithms/BESS-JPL
|
|
@@ -4,7 +4,7 @@ BESS_JPL/C4_fraction.jpeg,sha256=ECaEYWA8MnNd5z0Yq3beeUCR93KtTDxM8MrH-YYon3Y,274
|
|
|
4
4
|
BESS_JPL/C4_fraction.tif,sha256=DFS-J08JCjnf0hi_T_dFridAegVTiU3FGyMBjS9yc1w,25446
|
|
5
5
|
BESS_JPL/C4_photosynthesis.py,sha256=kITtT2kW1JkYY5v8wpMUhmxfBaJMr_uGk6go5P6w0ag,2029
|
|
6
6
|
BESS_JPL/FVC_from_NDVI.py,sha256=LYI1ESsrO8UxlPOr_dxJYDeUsrwjVAwrV_OhL-tcAWc,567
|
|
7
|
-
BESS_JPL/LAI_from_NDVI.py,sha256=
|
|
7
|
+
BESS_JPL/LAI_from_NDVI.py,sha256=uwV1voc2q45hmsSHzIhehA3ZHLivzSeoST-ht9ecSIE,783
|
|
8
8
|
BESS_JPL/NDVI_maximum.jpeg,sha256=6kc0-eE_WOU31bUztdjoWsZ3ZmqHAG-ZwS7lMiZyBGA,763946
|
|
9
9
|
BESS_JPL/NDVI_maximum.tif,sha256=yRgdpB-xoVNMveIUapCrnGAwHX7WkH6pVXu4HECuFfc,19664541
|
|
10
10
|
BESS_JPL/NDVI_minimum.jpeg,sha256=AfpRU8PikwExBJ2IdcFKewg6aTcp3gx3y3EQMzeA7vg,644871
|
|
@@ -22,23 +22,23 @@ BESS_JPL/canopy_longwave_radiation.py,sha256=TH5YaxyVgVP58moZ0aDGkMukJfcPQQgiYbu
|
|
|
22
22
|
BESS_JPL/canopy_shortwave_radiation.py,sha256=TzDGFFBVHcZ3s5v-R9pQYeW9PPvYDQ168VdoqtCXh4U,9767
|
|
23
23
|
BESS_JPL/carbon_uptake_efficiency.jpeg,sha256=wz2cLk_4-DRdF71xR2c-cx1MsE0CH-EDWjs2pDJcRF0,704540
|
|
24
24
|
BESS_JPL/carbon_uptake_efficiency.tif,sha256=Nnc8h2ImU6_sip0WzDh3q0BRoBe-CfCbwzDtYo5BSog,819269
|
|
25
|
-
BESS_JPL/carbon_water_fluxes.py,sha256=
|
|
25
|
+
BESS_JPL/carbon_water_fluxes.py,sha256=T1E1AHne3lYvkEoasqlM4oLxoSWLWmeJxy1BzrVdPUw,12987
|
|
26
26
|
BESS_JPL/constants.py,sha256=tOYubq17dnLVKhtTI0CJUQAEeROE4KeSBpOVBqZprUU,131
|
|
27
27
|
BESS_JPL/interpolate_C3_C4.py,sha256=adIyk03Yt6SJ_jFCUm6ivK9QpZYw10C3wJKpx1O56Pk,394
|
|
28
28
|
BESS_JPL/kn.jpeg,sha256=wsI40jabT9_iPpQmOxd3GZzfAN7oZ2DubiARmULFUS0,854097
|
|
29
29
|
BESS_JPL/kn.tif,sha256=nZAIAms7LRDVsadxa4z8yRqOudWu3AjJSm6l1T3ywuY,819988
|
|
30
|
-
BESS_JPL/load_C4_fraction.py,sha256=
|
|
31
|
-
BESS_JPL/load_NDVI_maximum.py,sha256=
|
|
32
|
-
BESS_JPL/load_NDVI_minimum.py,sha256=
|
|
30
|
+
BESS_JPL/load_C4_fraction.py,sha256=g1NpACWIKhq9TtABqHLGvxxSFwMZ9vb27nanVE8Sf1A,493
|
|
31
|
+
BESS_JPL/load_NDVI_maximum.py,sha256=CADnbDULc5qW0oR7UgNN9pM0oplz7QMf8Ki09_fbj-o,401
|
|
32
|
+
BESS_JPL/load_NDVI_minimum.py,sha256=RZaLXKxJe2ViEvj76_l-YSLIMyjo54nP4oAe-NEvACs,401
|
|
33
33
|
BESS_JPL/load_ball_berry_intercept_C3.py,sha256=6auXZHej127rhUCFXe7vdEg9C4CosFSHLTcdqKs06Ls,388
|
|
34
|
-
BESS_JPL/load_ball_berry_slope_C3.py,sha256=
|
|
35
|
-
BESS_JPL/load_ball_berry_slope_C4.py,sha256=
|
|
34
|
+
BESS_JPL/load_ball_berry_slope_C3.py,sha256=9nmbdkGnJ7UWXwktpkE8rL1LGA1vi71YZdzpme04P84,380
|
|
35
|
+
BESS_JPL/load_ball_berry_slope_C4.py,sha256=lsKwrkbChEm3sspUgAXjm86Q4VBirwFOZStiO9NuGx8,380
|
|
36
36
|
BESS_JPL/load_carbon_uptake_efficiency.py,sha256=RbWxLbqHnxiHw7XHyFBuWRToc8hDjUR6EUUntiJfe0M,390
|
|
37
|
-
BESS_JPL/load_kn.py,sha256=
|
|
38
|
-
BESS_JPL/load_peakVCmax_C3.py,sha256=
|
|
39
|
-
BESS_JPL/load_peakVCmax_C4.py,sha256=
|
|
37
|
+
BESS_JPL/load_kn.py,sha256=39RkQkkdmey0IPInziJI0kSiI8alRk5Hz42pzm-qihU,346
|
|
38
|
+
BESS_JPL/load_peakVCmax_C3.py,sha256=A-Wg4PjPgogfpRsAMo6ZNEXM7G3KbnF7ZRV3k_jTtEA,401
|
|
39
|
+
BESS_JPL/load_peakVCmax_C4.py,sha256=iVmJTitkMkB4AjfjanAi3yv1lWO4sSF6J7cjuRmaCwU,401
|
|
40
40
|
BESS_JPL/meteorology.py,sha256=xIPQnIk9wGJPy8esJyxn35d6c_7UyiNuWTJXDnuSwf8,6995
|
|
41
|
-
BESS_JPL/model.py,sha256=
|
|
41
|
+
BESS_JPL/model.py,sha256=clIpapmr_i-oZAvc-4TdUDIHumoehsaYJWZNmVhBBuw,22993
|
|
42
42
|
BESS_JPL/peakVCmax_C3.jpeg,sha256=nVvwLx8JyRhtm5lWRW93HLz0mInshEdOCJ1tAdcFqa8,1006133
|
|
43
43
|
BESS_JPL/peakVCmax_C3.tif,sha256=ax6wCOPc_ovgJJl9YRjPWNY13OCGlzs2djXqwob_U7A,1583598
|
|
44
44
|
BESS_JPL/peakVCmax_C4.jpeg,sha256=s7dhpcD573KW9Se4mejDeSzbSHqPtQY2EL6KJKt7ZIo,961497
|
|
@@ -46,8 +46,8 @@ BESS_JPL/peakVCmax_C4.tif,sha256=EST4_yy-HHYmazIv--RePL_bhLejMWql6hoV9EE38ok,155
|
|
|
46
46
|
BESS_JPL/process_BESS_table.py,sha256=TYsDEZNELGdUc0xkB1MRQIDkVonNL5d49q7Zl1iaJvo,1472
|
|
47
47
|
BESS_JPL/soil_energy_balance.py,sha256=5TKDVkKYJ8jhjuiwbRva_03fi_0gTM0IAKbSm4WhWnY,944
|
|
48
48
|
BESS_JPL/version.txt,sha256=-Q2F9kDoBjnO1g1dZcNwbI4pu99GLJDvdHkxmPdU4JU,6
|
|
49
|
-
bess_jpl-1.
|
|
50
|
-
bess_jpl-1.
|
|
51
|
-
bess_jpl-1.
|
|
52
|
-
bess_jpl-1.
|
|
53
|
-
bess_jpl-1.
|
|
49
|
+
bess_jpl-1.17.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
50
|
+
bess_jpl-1.17.0.dist-info/METADATA,sha256=3906m_oz7FCNHjyaq8IKvdIFLw1oBZQdz-5Zrc6R6MQ,6347
|
|
51
|
+
bess_jpl-1.17.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
52
|
+
bess_jpl-1.17.0.dist-info/top_level.txt,sha256=GaKnzt-BBktYn1o-w4Qzh_jHxse4Y3ACOxZQrB2ufhc,9
|
|
53
|
+
bess_jpl-1.17.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|