-
Notifications
You must be signed in to change notification settings - Fork 9
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
Find more efficient resampler #405
Comments
Looks like |
It's a simple |
Looks like it might need a compiler on Linux? Anyway - in general, resampling in
We aren't currently doing anything fancy with filters or smoothing and the like. I think in the build data example I was using something with a clean API, rather than a load of numpy shenanigans that would probably be far faster. |
|
It probably is, yes. I think we are always likely to be working with subdaily data at regular intervals that map neatly onto whole days (SubdailyPModel insists on this). So the reshaping and sampling there ought to be a generally useful and efficient tool? |
I created issue #406 for tackling this. |
For the second case, that just using |
Working on #348, there is resampling necessary between half-hourly, hourly, a daily data. As @davidorme notes here: https://github.com/ImperialCollegeLondon/pyrealm/blob/88ed9a14b18f0e4ddf3302baa88ec7164c479a86/pyrealm_build_data/LAI_in_pyrealm/fapar_limitation_example.py#L157C1-L160C52 , the standard resampler is very slow.
An overview of alternatives can be found here: http://signalsprocessed.blogspot.com/2016/08/audio-resampling-in-python.html , and https://pypi.org/project/samplerate/ seems to be a good candidate.
The text was updated successfully, but these errors were encountered: