Changeset 3465 for trunk


Ignore:
Timestamp:
Oct 21, 2024, 12:28:45 PM (2 months ago)
Author:
jbclement
Message:

Mars PCM:

  • Small update in "analyse_netcdf.py".
  • Putting the 1D launching scripts back to the "deftank" folder.

JBC

Location:
trunk/LMDZ.MARS
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3464 r3465  
    47174717- turn chemthermos, euvheat, hrtherm, jthermcalc, jthermcalc_e107,
    47184718  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  
    3737   
    3838    # 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
    4247   
    4348    # Check if there are any NaN values
Note: See TracChangeset for help on using the changeset viewer.