-
I have a 3d array, time, depth and longitude (just think a cross section along longitude at one specific latitude). The threshold is: the local potential density (referenced to the surface) does not exceed the potential density at 10 m by more than 0.01 kg/m^3. However, in order to avoid interpolation, I would like to find the first instance where the depth exceeds the potential density at 10m + the threshold (.01 kg/m3). My goal is to find the density/depth where it exceeds the threshold the first time.
But when you do The data itself is not the most reproducible, but it goes along the lines of something like this. Courtesy of this stackoverflow answer: https://stackoverflow.com/questions/64144035/how-can-i-efficiently-calculate-the-first-instance-of-a-value-in-an-axis-in-dask
Thank you so much! Any suggestions or comments would be much appreciated :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I use something like this but
|
Beta Was this translation helpful? Give feedback.
I use something like this but
idxmax
oridxmin
should do the same