Changeset 2500 in lmdz_wrf for trunk


Ignore:
Timestamp:
May 2, 2019, 4:45:06 PM (6 years ago)
Author:
lfita
Message:

Adding right calendar value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2499 r2500  
    25942594                    cal = 'gregorian'
    25952595                else:
    2596                     cal = tunitsinf.calendar
     2596                    if not gen.searchInlist(attvar, 'calendar'):
     2597                      cal = times.getncattr('calendar')
     2598                    else:
     2599                      cal = times.getncattr('calendar_type')
     2600
    25972601                    atimes = times.ncattrs()
    25982602 
Note: See TracChangeset for help on using the changeset viewer.