Open beth182 opened 2 months ago
double occurrence of:
high_vals = xr.where(ds > threshold, 1, 0) # set all temps over threshold = 1; others to 0
summed_vals = high_vals.sum(dim='time')
# replace any 0 values with nan
summed_vals = summed_vals.where(summed_vals > 0)
ie plotting funs etc