Changeset 3465 for trunk/LMDZ.MARS/util
- Timestamp:
- Oct 21, 2024, 12:28:45 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/util/analyse_netcdf.py
r3459 r3465 37 37 38 38 # Calculate min, max and mean 39 data_min = np.nanmin(data) # Min value ignoring NaN 40 data_max = np.nanmax(data) # Max value ignoring NaN 41 data_mean = np.nanmean(data) # Mean value ignoring NaN 39 if np.isnan(data).all(): 40 min_val = np.nan 41 max_val = np.nan 42 mean_val = np.nan 43 else: 44 data_min = np.nanmin(data) # Min value ignoring NaN 45 data_max = np.nanmax(data) # Max value ignoring NaN 46 data_mean = np.nanmean(data) # Mean value ignoring NaN 42 47 43 48 # Check if there are any NaN values
Note: See TracChangeset
for help on using the changeset viewer.