last_below: Identify the last time step when a value is below a threshold This will do the comparison with either a number, a Dataset or a netCDF file.
x (int, float, DataSet or netCDF file) – An int, float, single file dataset or netCDF file to use for the threshold(s). If comparing with a dataset or single file there must only be a single variable in it. The grids must be the same.
If you wanted to calculate the last time step where the value in a grid cell is below 10, you would do the following
If you wanted to calculate the last time step where the value in a grid cell is above that in another dataset, the following will work. Note that both datasets must have the same grid, and can only have single variables. The second dataset can, of course, only have one timestep.