@ted80810 - what do you think about calculating the saltfront like this? It is getting all the values under 0.53, turning it into a dataframe, then getting the max salt value for each hour once it is already in a dataframe. That way there will only be one measurement per hour.
Really I would have liked to do the max piece in xarray, but I couldn't find enough documentation/examples to figure it out. This still takes about 5 mins for me to run, so while it's a little indirect, it gets the job done in the same amount of time.
@ted80810 - what do you think about calculating the saltfront like this? It is getting all the values under 0.53, turning it into a dataframe, then getting the max salt value for each hour once it is already in a dataframe. That way there will only be one measurement per hour.
Really I would have liked to do the max piece in xarray, but I couldn't find enough documentation/examples to figure it out. This still takes about 5 mins for me to run, so while it's a little indirect, it gets the job done in the same amount of time.