BESS-JPL 1.12.0__tar.gz → 1.14.0__tar.gz

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.

Files changed (73) hide show
  1. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/.github/workflows/ci.yml +1 -1
  2. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/model.py +14 -5
  3. bess_jpl-1.14.0/BESS_JPL/version.txt +1 -0
  4. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL.egg-info/PKG-INFO +1 -1
  5. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/PKG-INFO +1 -1
  6. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/pyproject.toml +1 -1
  7. bess_jpl-1.12.0/BESS_JPL/version.txt +0 -1
  8. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/.github/workflows/python-publish.yml +0 -0
  9. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/.gitignore +0 -0
  10. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS Sensitivity.ipynb +0 -0
  11. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/BESS_JPL.py +0 -0
  12. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/C3_photosynthesis.py +0 -0
  13. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/C4_fraction.jpeg +0 -0
  14. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/C4_fraction.tif +0 -0
  15. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/C4_photosynthesis.py +0 -0
  16. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/FVC_from_NDVI.py +0 -0
  17. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/LAI_from_NDVI.py +0 -0
  18. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/NDVI_maximum.jpeg +0 -0
  19. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/NDVI_maximum.tif +0 -0
  20. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/NDVI_minimum.jpeg +0 -0
  21. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/NDVI_minimum.tif +0 -0
  22. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/__init__.py +0 -0
  23. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/ball_berry_intercept_C3.jpeg +0 -0
  24. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/ball_berry_intercept_C3.tif +0 -0
  25. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/ball_berry_slope_C3.jpeg +0 -0
  26. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/ball_berry_slope_C3.tif +0 -0
  27. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/ball_berry_slope_C4.jpeg +0 -0
  28. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/ball_berry_slope_C4.tif +0 -0
  29. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/calculate_VCmax.py +0 -0
  30. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/canopy_energy_balance.py +0 -0
  31. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/canopy_longwave_radiation.py +0 -0
  32. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/canopy_shortwave_radiation.py +0 -0
  33. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/carbon_uptake_efficiency.jpeg +0 -0
  34. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/carbon_uptake_efficiency.tif +0 -0
  35. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/carbon_water_fluxes.py +0 -0
  36. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/constants.py +0 -0
  37. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/interpolate_C3_C4.py +0 -0
  38. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/kn.jpeg +0 -0
  39. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/kn.tif +0 -0
  40. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_C4_fraction.py +0 -0
  41. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_NDVI_maximum.py +0 -0
  42. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_NDVI_minimum.py +0 -0
  43. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_ball_berry_intercept_C3.py +0 -0
  44. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_ball_berry_slope_C3.py +0 -0
  45. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_ball_berry_slope_C4.py +0 -0
  46. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_carbon_uptake_efficiency.py +0 -0
  47. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_kn.py +0 -0
  48. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_peakVCmax_C3.py +0 -0
  49. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/load_peakVCmax_C4.py +0 -0
  50. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/meteorology.py +0 -0
  51. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/peakVCmax_C3.jpeg +0 -0
  52. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/peakVCmax_C3.tif +0 -0
  53. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/peakVCmax_C4.jpeg +0 -0
  54. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/peakVCmax_C4.tif +0 -0
  55. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/process_BESS_table.py +0 -0
  56. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL/soil_energy_balance.py +0 -0
  57. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL.egg-info/SOURCES.txt +0 -0
  58. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL.egg-info/dependency_links.txt +0 -0
  59. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL.egg-info/requires.txt +0 -0
  60. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/BESS_JPL.egg-info/top_level.txt +0 -0
  61. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/C4 Fraction.ipynb +0 -0
  62. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/Dockerfile +0 -0
  63. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/LICENSE +0 -0
  64. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/Li_2023_RSE.pdf +0 -0
  65. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/MANIFEST.in +0 -0
  66. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/Processing BESS with rasters with default parameters.ipynb +0 -0
  67. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/Processing BESS with rasters.ipynb +0 -0
  68. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/README.md +0 -0
  69. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/makefile +0 -0
  70. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/processing_BESS_with_rasters_and_default_parameters.py +0 -0
  71. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/setup.cfg +0 -0
  72. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/tests/test_import_BESS_JPL.py +0 -0
  73. {bess_jpl-1.12.0 → bess_jpl-1.14.0}/tests/test_import_dependencies.py +0 -0
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  strategy:
15
15
  matrix:
16
- python-version: ["3.10", "3.11"]
16
+ python-version: ["3.10", "3.11", "3.12"]
17
17
 
18
18
  steps:
19
19
  - name: Checkout repository
@@ -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)
@@ -0,0 +1 @@
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
@@ -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
@@ -3,7 +3,7 @@ requires = ["setuptools>=60", "setuptools-scm>=8.0", "wheel"]
3
3
 
4
4
  [project]
5
5
  name = "BESS-JPL"
6
- version = "1.12.0"
6
+ version = "1.14.0"
7
7
  description = "Breathing Earth System Simulator (BESS) Gross Primary Production (GPP) and Evapotranspiration (ET) Model Python"
8
8
  readme = "README.md"
9
9
  authors = [
@@ -1 +0,0 @@
1
- 1.12.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes