May-11-2018, 08:25 PM
(This post was last modified: May-11-2018, 08:29 PM by Lightning1800.)
Thank you very much for your reply.
Yes, something like that, except that I am trying to find maximum values over every cell (or grid) within the matrix (called variable "Quantity") for every year for 40 years. This is what I have so far:
Quantity=Q
Count=0
for i in Quantity:
Count=Count+1
print(max(Quantity))
I receive an error when running that, stating: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all(). I guess my code is erroneous?
Yes, something like that, except that I am trying to find maximum values over every cell (or grid) within the matrix (called variable "Quantity") for every year for 40 years. This is what I have so far:
Quantity=Q
Count=0
for i in Quantity:
Count=Count+1
print(max(Quantity))
I receive an error when running that, stating: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all(). I guess my code is erroneous?