May-14-2018, 03:55 PM
(This post was last modified: May-14-2018, 04:24 PM by Lightning1800.)
In addition to the above posting, I receive the following error when I run that code:
"The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"
What could I be doing wrong?
Any help would be greatly appreciated.
To be clearer, the variable "Quantity" is a 3D matrix that is composed of latitude and longitude (both make up latitude and longitude grid cells) and time (expressed in days).
What I would like to do is compute all maximum values by looping all latitudes, all longitudes, and then loop all days in the period, so that I could compute all maximum values over every grid cell (i.e. composed of latitude and longitude) for every day available, beginning with day 0.
My question is how should I construct a loop to do this?
Please ignore the "counts" in my code two posts above since they are not relevant in this case.
Once again, I would immensely appreciate any assistance.
"The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"
What could I be doing wrong?
Any help would be greatly appreciated.
To be clearer, the variable "Quantity" is a 3D matrix that is composed of latitude and longitude (both make up latitude and longitude grid cells) and time (expressed in days).
What I would like to do is compute all maximum values by looping all latitudes, all longitudes, and then loop all days in the period, so that I could compute all maximum values over every grid cell (i.e. composed of latitude and longitude) for every day available, beginning with day 0.
My question is how should I construct a loop to do this?
Please ignore the "counts" in my code two posts above since they are not relevant in this case.
Once again, I would immensely appreciate any assistance.