Changeset 535 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 29, 2015, 5:59:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r534 r535 3024 3024 # Checking calendar! 3025 3025 ## 3026 360daycal = ['earth_360d', '360d', '360days'] 3026 y360 = False 3027 daycal360 = ['earth_360d', '360d', '360days'] 3027 3028 if searchInlist(attvar, 'calendar'): 3028 3029 calendar = times.getncattr('calendar') 3029 if searchInlist( 360daycal,calendar):3030 if searchInlist(daycal360,calendar): 3030 3031 print warnmsg 3031 3032 print ' ' + fname + ': calendar of 12 months of 30 days !!' 3032 360daycal= True3033 y360 = True 3033 3034 3034 3035 ## Not in timedelta … … 3041 3042 # realdate = refdate + dt.timedelta(months=float(times[it])) 3042 3043 # realdates[it] = int(realdate.year) 3043 if 360daycal:3044 if y360: 3044 3045 if tunits == 'weeks': 3045 3046 for it in range(dimt):
Note: See TracChangeset
for help on using the changeset viewer.