BESS-JPL 1.16.0__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 CHANGED
@@ -23,7 +23,6 @@ def LAI_from_NDVI(
23
23
  Union[Raster, np.ndarray]: Converted LAI data.
24
24
  """
25
25
  fIPAR = rt.clip(NDVI - 0.05, min_fIPAR, max_fIPAR)
26
- fIPAR = np.where(fIPAR == 0, np.nan, fIPAR)
27
26
  LAI = rt.clip(-np.log(1 - fIPAR) * (1 / KPAR), min_LAI, max_LAI)
28
27
 
29
28
  return LAI
@@ -9,6 +9,7 @@ def load_C4_fraction(geometry: RasterGeometry = None, resampling: str = "nearest
9
9
  filename = join(abspath(dirname(__file__)), "C4_fraction.tif")
10
10
  image = Raster.open(filename, geometry=geometry, resampling=resampling, nodata=np.nan)
11
11
  image = rt.clip(image, 0, 100)
12
- # TODO: scale C4_fraction to be within 0 and 1?
12
+ # Scale image to be between 0 and 1
13
+ image /= 100.0
13
14
 
14
15
  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
- if None in (Rg, VISdiff, VISdir, NIRdiff, NIRdir, UV, albedo_visible, albedo_NIR):
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.16.0
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=amEQ9J2Yd_p1R57H9_-UhIvmZMpR0ZYPOhRRRIXpxPc,831
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
@@ -27,7 +27,7 @@ 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=Fn8CKMzpvRCenlaVe8or9NnGmNZ-L5l_vdUpbjwcNSw,486
30
+ BESS_JPL/load_C4_fraction.py,sha256=g1NpACWIKhq9TtABqHLGvxxSFwMZ9vb27nanVE8Sf1A,493
31
31
  BESS_JPL/load_NDVI_maximum.py,sha256=CADnbDULc5qW0oR7UgNN9pM0oplz7QMf8Ki09_fbj-o,401
32
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
@@ -38,7 +38,7 @@ BESS_JPL/load_kn.py,sha256=39RkQkkdmey0IPInziJI0kSiI8alRk5Hz42pzm-qihU,346
38
38
  BESS_JPL/load_peakVCmax_C3.py,sha256=A-Wg4PjPgogfpRsAMo6ZNEXM7G3KbnF7ZRV3k_jTtEA,401
39
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=0JNCOeflASxA6iy70ppFuCkATPDnBDza2cQrJtHLtRY,22810
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.16.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
50
- bess_jpl-1.16.0.dist-info/METADATA,sha256=q1qsKhcEH3_yB_Xo3AHDQORDQyuXM0Y6tpqNPqNsivU,6347
51
- bess_jpl-1.16.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
52
- bess_jpl-1.16.0.dist-info/top_level.txt,sha256=GaKnzt-BBktYn1o-w4Qzh_jHxse4Y3ACOxZQrB2ufhc,9
53
- bess_jpl-1.16.0.dist-info/RECORD,,
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,,