Hi,
I'm trying to calculate percentiles out of a floating point raster.
It works BUT it includes the NoData in the calculation so I don't get what I need.
Is there a way to exclude the NoData from this calculation?
Many thanks
env.workspace = r"D:\PROGRAMMES\LFP_Source_Rocks\ArcGIS\00_LFP_GLOBAL\00_UPWELLING\OUTPUT_Test.gdb"
raster = env.workspace + "\\" + "percentile"
array = arcpy.RasterToNumPyArray(raster)
array = scipy.sort(array)
per = 10
a = scipy.percentile(array,per)
print a