BESS-JPL 1.12.0__py3-none-any.whl → 1.14.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/model.py CHANGED
@@ -12,7 +12,7 @@ from sun_angles import calculate_SZA_from_DOY_and_hour
12
12
  from solar_apparent_time import solar_day_of_year_for_area, solar_hour_of_day_for_area
13
13
 
14
14
  from koppengeiger import load_koppen_geiger
15
- from gedi_canopy_height import load_canopy_height
15
+ from gedi_canopy_height import load_canopy_height, GEDI_DOWNLOAD_DIRECTORY
16
16
  from FLiESANN import FLiESANN
17
17
  from GEOS5FP import GEOS5FP
18
18
  from MODISCI import MODISCI
@@ -87,7 +87,9 @@ def BESS_JPL(
87
87
  peakVCmax_C3: np.ndarray = None, # peak maximum carboxylation rate for C3 plants
88
88
  peakVCmax_C4: np.ndarray = None, # peak maximum carboxylation rate for C4 plants
89
89
  CI: Union[Raster, np.ndarray] = None,
90
- resampling: str = RESAMPLING): # clumping index
90
+ MODISCI_connection: MODISCI = None,
91
+ resampling: str = RESAMPLING,
92
+ GEDI_download_directory: str = GEDI_DOWNLOAD_DIRECTORY): # clumping index
91
93
  if geometry is None and isinstance(ST_C, Raster):
92
94
  geometry = ST_C.geometry
93
95
 
@@ -231,9 +233,14 @@ def BESS_JPL(
231
233
  if KG_climate is None:
232
234
  KG_climate = load_koppen_geiger(geometry=geometry)
233
235
 
236
+
234
237
  # load canopy height in meters if not provided
235
238
  if canopy_height_meters is None:
236
- canopy_height_meters = load_canopy_height(geometry=geometry, resampling=resampling)
239
+ canopy_height_meters = load_canopy_height(
240
+ geometry=geometry,
241
+ resampling=resampling,
242
+ source_directory=GEDI_download_directory
243
+ )
237
244
 
238
245
  # load CO2 concentration in ppm if not provided
239
246
  if Ca is None:
@@ -263,9 +270,11 @@ def BESS_JPL(
263
270
  if SZA is None:
264
271
  SZA = calculate_SZA_from_DOY_and_hour(geometry.lat, geometry.lon, day_of_year, hour_of_day)
265
272
 
273
+ if MODISCI_connection is None:
274
+ MODISCI_connection = MODISCI()
275
+
266
276
  if CI is None and geometry is not None:
267
- modisci = MODISCI()
268
- CI = modisci.CI(geometry=geometry, resampling=resampling)
277
+ CI = MODISCI_connection.CI(geometry=geometry, resampling=resampling)
269
278
 
270
279
  # canopy height defaults to zero
271
280
  canopy_height_meters = np.where(np.isnan(canopy_height_meters), 0, canopy_height_meters)
BESS_JPL/version.txt CHANGED
@@ -1 +1 @@
1
- 1.12.0
1
+ 1.14.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: BESS-JPL
3
- Version: 1.12.0
3
+ Version: 1.14.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
@@ -38,16 +38,16 @@ BESS_JPL/load_kn.py,sha256=_IE7w_VfahubfqjvgE6F6HCO0SizcpMu104_7ZXOiaw,345
38
38
  BESS_JPL/load_peakVCmax_C3.py,sha256=ISaCyaN81F3CyYbYwUqvUfQ_vjn4_jCpt1_x_b4fY5o,365
39
39
  BESS_JPL/load_peakVCmax_C4.py,sha256=8vtjEiJKCqSK04DfTs8Zgn-rWwGucmeeLMzblLT1U-Y,365
40
40
  BESS_JPL/meteorology.py,sha256=xIPQnIk9wGJPy8esJyxn35d6c_7UyiNuWTJXDnuSwf8,6995
41
- BESS_JPL/model.py,sha256=5UGo6cgllw0L-yYVKKoG9aHaYl6e2dJJw2AIjasZ990,22311
41
+ BESS_JPL/model.py,sha256=WMUvWfG4ykuDE4wXwt6Tm7dMXWa1x69sCX4VwfumULM,22592
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
45
45
  BESS_JPL/peakVCmax_C4.tif,sha256=EST4_yy-HHYmazIv--RePL_bhLejMWql6hoV9EE38ok,1556928
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
- BESS_JPL/version.txt,sha256=Mxzh5cMxieiKK6Wumg40QSiWjBtcZD5bNkE_sBZZg10,6
49
- bess_jpl-1.12.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
50
- bess_jpl-1.12.0.dist-info/METADATA,sha256=3ymV7ML6GNrH9tcw8NkTdOzXUG_bn2-Tre70JiZRfkk,6340
51
- bess_jpl-1.12.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
52
- bess_jpl-1.12.0.dist-info/top_level.txt,sha256=GaKnzt-BBktYn1o-w4Qzh_jHxse4Y3ACOxZQrB2ufhc,9
53
- bess_jpl-1.12.0.dist-info/RECORD,,
48
+ BESS_JPL/version.txt,sha256=RbLZ3HRjNFvW-intziwQiZdlsdIv7hN9kC7dC9m_LTc,6
49
+ bess_jpl-1.14.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
50
+ bess_jpl-1.14.0.dist-info/METADATA,sha256=1Ufu_DEGzbWHkhGA7skFaG4C2YK-rGoPBqVqiNCGnJo,6340
51
+ bess_jpl-1.14.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
52
+ bess_jpl-1.14.0.dist-info/top_level.txt,sha256=GaKnzt-BBktYn1o-w4Qzh_jHxse4Y3ACOxZQrB2ufhc,9
53
+ bess_jpl-1.14.0.dist-info/RECORD,,