vmax_prob_110 = np.empty((49,100,301)) vmax_prob_90 = np.empty((49,100,301)) vmax_prob_75 = np.empty((49,100,301)) vmax_prob_65 = np.empty((49,100,301)) z = 110 v = 90 w = 75 n = 65 # for i in range(0,49): # for j in range (0,100): # for k in range(0,301): # vmax_prob_110[i,j,k] = (sum(h > z for h in vmax.data[:,i,j,k]*3.6)/20)*100 for i in range(0,49): for j in range (0,100): for k in range(0,301): vmax_prob_65[i,j,k] = (sum(h > n for h in vmax.data[:,i,j,k]*3.6))print(vmax_prob_65) density, _, _ = np.histogram2d(lat_f, lon_f, [lat_bins, lon_bins])