I've been using your python script to do this for two years now and it has always worked great. Until today when I tried it on a 32 bit signed integer raster I can't get passed this error:
Traceback (most recent call last): File "C:\Python27\ArcGIS10.3\Scripts\percentilesTrinityWY16_bymask.py", line 140, in <module> main() File "C:\Python27\ArcGIS10.3\Scripts\percentilesTrinityWY16_bymask.py", line 79, in main dct = {row[0]:row[1] for row in arcpy.da.SearchCursor(outname, flds_ras)} RuntimeError: cannot open 'ras1'
Failed to execute (TrinityPercentilesbyMask).
It seems as though this is being caused by the temporary 'ras1' not having an attribute table.