Changeset 3726 for palm/trunk/SCRIPTS/palm_csd_files
- Timestamp:
- Feb 7, 2019 6:22:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palm_csd_files/palm_csd_tools.py
r3668 r3726 25 25 # ----------------- 26 26 # $Id$ 27 # Index bound bugfix 28 # 29 # 3668 2019-01-14 12:49:24Z maronga 27 30 # Minor changes 28 31 # … … 90 93 for l in range(0,len(x)): 91 94 for m in range(0,len(y)): 92 for k in range( 0,len(k_tmp+1)):95 for k in range(1,len(k_tmp+1)): 93 96 if k_tmp[k] > array[m,l]: 94 array[m,l] = k_tmp[k ]-0.5*dz97 array[m,l] = k_tmp[k-1] 95 98 break 96 99 … … 105 108 array_3d = np.ones((len(k_tmp),len(y),len(x))) 106 109 107 for l in range(0,len(x) -1):108 for m in range(0,len(y) -1):109 for k in range(0,len(k_tmp) -1):110 for l in range(0,len(x)): 111 for m in range(0,len(y)): 112 for k in range(0,len(k_tmp)): 110 113 if k_tmp[k] > array_2d[m,l]: 111 114 array_3d[k,m,l] = 0
Note: See TracChangeset
for help on using the changeset viewer.