USGS-R / drb-estuary-salinity-ml

Creative Commons Zero v1.0 Universal
0 stars 4 forks source link

Update sf calc #99

Closed amsnyder closed 2 years ago

amsnyder commented 2 years ago

@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.