def firstPercentile(array): #remove no data values, in this case zeroes, returning a flattened array print 'removing no data values and flattening array.....' flatArray = array[array != 0.0] print 'sorting array....' flatArray = np.sort(flatArray) #report some summary stats print 'min = ', np.min(flatArray) print 'median = ', flatArray[int(np.size(flatArray) * 0.50)] print 'max = ', np.max(flatArray) firstPercentile = flatArray[int(np.size(flatArray) * 0.01)] print '1st percentile = ', firstPercentile
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.