mardi 26 juillet 2016

Find specific values inside array

I'm trying to insert conditioned values in an array into an empty array in exact position.

empty_array = np.zeros([40,100])
for x in range (1,24):
    array[x,:,:] #which is also sized 40x100
    if the_values_in_the_array < 0.25:
         the_values_in_the_array = 0
    empty_array = empty_array + array [x,:,:]

Which syntax should I use for this logic? And how should I scan the_values_in_the_array to find the conditioned values?

Aucun commentaire:

Enregistrer un commentaire