Changeset 950 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 24, 2016, 5:30:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r949 r950 7972 7972 mmdec = newmm - int(newmm)*1. 7973 7973 newmm = np.int(newmm) 7974 daysnextmon = days_month(yr,newmm+1) 7974 if newmm + 1 > 12: 7975 daysnextmon = 31 7976 else: 7977 daysnextmon = days_month(yr,newmm+1) 7975 7978 newdd = daysnextmon*mmdec 7976 7979 dddec = newdd - int(newdd)*1. … … 7988 7991 else: 7989 7992 newmm = np.int(newmm) 7990 newdd = np.int( newdd)7991 newhh = np.int( newhh)7992 newmi = np.int( newmi)7993 newss = np.int( newss)7993 newdd = np.int(dd) 7994 newhh = np.int(hh) 7995 newmi = np.int(mi) 7996 newss = np.int(ss) 7994 7997 7995 7998 idate = dt.datetime(yr, newmm, newdd, newhh, newmi, newss)
Note: See TracChangeset
for help on using the changeset viewer.