Skip to content
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

Add multiyear mean to temporal_state #116

Open
EvanRosenliebNREL opened this issue Nov 16, 2021 · 1 comment
Open

Add multiyear mean to temporal_state #116

EvanRosenliebNREL opened this issue Nov 16, 2021 · 1 comment
Labels
feature New feature or request

Comments

@EvanRosenliebNREL
Copy link

Why this feature is necessary:
Necessary is a bit strong -- I can definitely compute multiyear means from the annual means rex outputs easy enough. At the same time I end up doing it a lot and it would be handy!

A possible solution is:
Basically, be able to point temporal_stats to a bunch of h5's and tell it to take the mean across all files for a certain dataset.

I have considered the following alternatives:
What I do now, which again works, is compute the annual means and then postprocess the multiyear manually.

Charge code
None for now, i'll update if I think I can find something

Urgency / Timeframe
Not urgent at all, just a whishlist feature.

@EvanRosenliebNREL EvanRosenliebNREL added the feature New feature or request label Nov 16, 2021
@grantbuster
Copy link
Member

Have you thought about using the rex multi year mean handler (see usage examples in link below)? This will auto stack timeseries data for a glob-like h5 pattern request. Then you would just run a .mean(axis=0). The only major inconvenience i see is storing all years for all sites in memory could be a big hog.... But you could iterate on row slices pretty easily or just get a bigmem node.

https://nrel.github.io/rex/_autosummary/rex.multi_year_resource.MultiYearResource.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants