AnsweredAssumed Answered

"ExecuteError: Failed because no statistics are available"...  Is there any posibility to ask python first, if there is a statistic available, or if there are values unequal to NoData?

Question asked by Rebecca.Ri on Dec 9, 2017
Latest reply on Dec 9, 2017 by Dan_Patterson

Hey Folks,

 

(I work with ArgGIS Pro and Python)

 

I need help with a Problem. I have Crop-Raster-Data (relatet to different clima szenaries) and a Köppen-Geiger-Raster. I want to use the Köppen-Geiger-Raster as a mask to get the the crop-informations per climate class. But now there is my problem. I dont know where my crop exactely is and how it moves. I tryed to mask with every climate class and get its statistics. But when I have no crop in a climate class, my whole raster layer is a NoData Layer and my script dosn't work "ExecuteError: Failed because no statistics are available". So I wanted to know, if there is any posibility to ask python first, if there is a statistic available, or if there are values unequal to NoData.
Thank YOU!

Outcomes