BESS-JPL 1.9.0__py3-none-any.whl → 1.9.2__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/BESS_JPL.py CHANGED
@@ -166,19 +166,34 @@ def BESS_JPL(
166
166
 
167
167
  # Check for None values and size mismatches
168
168
  reference_size = None
169
+ missing_radiative_transfer_variables = []
170
+ need_radiative_transfer = False
171
+
169
172
  for name, var in variables_to_check.items():
173
+ if var is None:
174
+ logger.info(f"{name}: None")
175
+ else:
176
+ logger.info(f"{name}: {var.shape}")
177
+
170
178
  if var is None:
171
179
  logger.warning(f"Variable '{name}' is None.")
180
+ missing_radiative_transfer_variables = missing_radiative_transfer_variables.append(name)
172
181
  else:
173
182
  # Get the size of the variable if it's a numpy array
174
183
  size = var.shape if isinstance(var, np.ndarray) else None
184
+
175
185
  if reference_size is None:
176
186
  reference_size = size # Set the first non-None size as the reference
177
187
  elif size != reference_size:
178
188
  logger.warning(f"Variable '{name}' has a different size: {size} (expected: {reference_size}).")
189
+ missing_radiative_transfer_variables = missing_radiative_transfer_variables.append(name)
190
+
191
+ if len(missing_radiative_transfer_variables) > 0:
192
+ need_radiative_transfer = True
179
193
 
180
194
  # check if any of the FLiES outputs are not given
181
- if None in (Rg, VISdiff, VISdir, NIRdiff, NIRdir, UV, albedo_visible, albedo_NIR):
195
+ if need_radiative_transfer:
196
+ logger.info(f"running FLiES for missing variables: {', '.join(missing_radiative_transfer_variables)}")
182
197
  # load cloud optical thickness if not provided
183
198
  if COT is None:
184
199
  COT = GEOS5FP_connection.COT(time_UTC=time_UTC, geometry=geometry, resampling=resampling)
BESS_JPL/version.txt CHANGED
@@ -1 +1 @@
1
- 1.9.0
1
+ 1.9.2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: BESS-JPL
3
- Version: 1.9.0
3
+ Version: 1.9.2
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,4 +1,4 @@
1
- BESS_JPL/BESS_JPL.py,sha256=jF3Gb7IexnXlaj-Y0Obi0_ftGpnKv1IcitYxyvoMDBo,22311
1
+ BESS_JPL/BESS_JPL.py,sha256=XZr-Y-pOs0aJXccb5VpgaDLKaKiFYshITs_6YZihsLM,22879
2
2
  BESS_JPL/C3_photosynthesis.py,sha256=-ormDycaWttCOoYJdOoOV_zlM6n0nxkgXxj7fyH_mIs,2760
3
3
  BESS_JPL/C4_fraction.jpeg,sha256=ECaEYWA8MnNd5z0Yq3beeUCR93KtTDxM8MrH-YYon3Y,2746
4
4
  BESS_JPL/C4_fraction.tif,sha256=DFS-J08JCjnf0hi_T_dFridAegVTiU3FGyMBjS9yc1w,25446
@@ -43,9 +43,9 @@ BESS_JPL/peakVCmax_C3.tif,sha256=ax6wCOPc_ovgJJl9YRjPWNY13OCGlzs2djXqwob_U7A,158
43
43
  BESS_JPL/peakVCmax_C4.jpeg,sha256=s7dhpcD573KW9Se4mejDeSzbSHqPtQY2EL6KJKt7ZIo,961497
44
44
  BESS_JPL/peakVCmax_C4.tif,sha256=EST4_yy-HHYmazIv--RePL_bhLejMWql6hoV9EE38ok,1556928
45
45
  BESS_JPL/soil_energy_balance.py,sha256=5TKDVkKYJ8jhjuiwbRva_03fi_0gTM0IAKbSm4WhWnY,944
46
- BESS_JPL/version.txt,sha256=dxfL-Qxjo7CWAIdjoCBmI5kW-pkW-YJU0ao7JHCDD80,5
47
- bess_jpl-1.9.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
48
- bess_jpl-1.9.0.dist-info/METADATA,sha256=Ohmaq90iop6JHFhbzkdOJGHO-xM2u-Eg-d4piwmKOio,6339
49
- bess_jpl-1.9.0.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
50
- bess_jpl-1.9.0.dist-info/top_level.txt,sha256=GaKnzt-BBktYn1o-w4Qzh_jHxse4Y3ACOxZQrB2ufhc,9
51
- bess_jpl-1.9.0.dist-info/RECORD,,
46
+ BESS_JPL/version.txt,sha256=GF32WMesk-gMhlClaks8mbr0tl98nGPhAE7jrhiSBPo,5
47
+ bess_jpl-1.9.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
48
+ bess_jpl-1.9.2.dist-info/METADATA,sha256=4z5GFhb7pdeL9z9JBNwKeBLu2mieeAkL2l1h5kYqaN0,6339
49
+ bess_jpl-1.9.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
50
+ bess_jpl-1.9.2.dist-info/top_level.txt,sha256=GaKnzt-BBktYn1o-w4Qzh_jHxse4Y3ACOxZQrB2ufhc,9
51
+ bess_jpl-1.9.2.dist-info/RECORD,,