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

Extend timeseries data when up-sampling it to a higher frequency #155

Open
Batch21 opened this issue Mar 27, 2024 · 0 comments
Open

Extend timeseries data when up-sampling it to a higher frequency #155

Batch21 opened this issue Mar 27, 2024 · 0 comments

Comments

@Batch21
Copy link
Contributor

Batch21 commented Mar 27, 2024

As the up-sampling uses a forward-fill strategy, this should occur when the model end date is later than the last data entry but still within the duration of that entry.

For example, if the model has a daily timestep and an end date of 10-01-2020 and the the timeseries data has a weekly frequency and a final entry for 09-01-2020, then the resample should produce a value for 10-01-2020 as it is within a week of 09-01-2020.

Currently it does not as the polars resampling is truncated by the bounds of the input data. A solution would be to extend the input timeseries by with another entry. Because forward-fill is used the values for the entry could probably be NaNs.

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

No branches or pull requests

1 participant