- Timestamp:
- Oct 21, 2024, 12:28:45 PM (2 months ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r3464 r3465 4717 4717 - turn chemthermos, euvheat, hrtherm, jthermcalc, jthermcalc_e107, 4718 4718 paramphoto_compact and photochemistry into modules 4719 4720 == 21/10/2024 == JBC 4721 - Small update in "analyse_netcdf.py". 4722 - Putting the 1D launching scripts back to the "deftank" folder. -
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.