-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
time-varying bins #67
Comments
This would only be necessary if you want to change the tracer bins with time, I think. To just count the area within e.g. |
I see there is a PR #59 by @TomNicholas. Is this able to solve this? |
Hi there @miniufo , glad you are finding this package useful.
@jbusecke is right that changes of the data with time don't necessarily mean you need time-varying bins, but for actual time-varying bins then yes #59 was intended to solve that. However, as per this comment I will probably wait until after integration into xarray to implement it, so it might be a little while.
xarray has a |
Thanks for your gus @jbusecke @TomNicholas. My tracer extrema vary with time. I would like to ensure the max (min) value corresponds to total (zero) area of the domain. If the bin is fixed, I may get non-monotonic tracer-area relation (which I need to reverse later). Normalization between max and min is a workaround. But I chose to loop over time for time-varying bins and then concat then along Oooops, didn't realize the xarray's |
Thanks to you guys for this handy package.
I had to use time-varying bins when I tried to calculate the area enclosed by tracer contours, as the tracer changes with time. However, the
bins
kwarg neither supportxarray
nor support a mulidimendionalnumpy
array for hist along contour space.I also need to convert PDF of
xhist
to CDF for area. It seems thatxhist
does not directly support this. A way to do this is to usenumpy.cumsum
. Is it possible to integrate this functionality intoxhist
?The text was updated successfully, but these errors were encountered: