Changeset 610 for trunk/UTIL/PYTHON/pp.py
- Timestamp:
- Mar 31, 2012, 7:33:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/pp.py
r578 r610 79 79 zelevel = float(inputnvert[0]) 80 80 ze_interp_levels = [-9999.] 81 elif np.array(inputnvert).size ==2:81 elif np.array(inputnvert).size > 2: 82 82 zelevel = -99. 83 ze_interp_levels = np.linspace(float(inputnvert[0]),float(inputnvert[1]),20) 84 else: 85 zelevel = -99. 86 ze_interp_levels = np.linspace(float(inputnvert[0]),float(inputnvert[1]),float(inputnvert[2])) 83 start = float(inputnvert[0]) 84 stop = float(inputnvert[1]) 85 if np.array(inputnvert).size == 2: numsample = 20 86 else: numsample = float(inputnvert[2]) 87 if stop > start: 88 ## altitude coordinates 89 ze_interp_levels = np.linspace(start,stop,numsample) 90 else: 91 ## pressure coordinates 92 ze_interp_levels = np.logspace(np.log10(start),np.log10(stop),numsample) 87 93 88 94 #########################################################
Note: See TracChangeset
for help on using the changeset viewer.