Skip to content

feat: add parameters to pass datetime through to sel in time series#76

Closed
hrodmn wants to merge 3 commits intodevelopfrom
feat/time-series-sel
Closed

feat: add parameters to pass datetime through to sel in time series#76
hrodmn wants to merge 3 commits intodevelopfrom
feat/time-series-sel

Conversation

@hrodmn
Copy link
Contributor

@hrodmn hrodmn commented Sep 22, 2025

This adds a pair of new parameters to the /timeseries endpoints: use_sel_for_datetime and sel_time_dim. These parameters allow users to have the datetime values get passed to the sel parameter in the lower-level requests like this: sel={sel_time_dim}={datetime}. This unblocks the use-case where granules cover a datetime range and have a time dimension within each file.

I also had to update the test cassettes for reasons that I don't fully understand, but I successfully created a fixture that actually routes the lower-level time series requests to the test app instead of just mocking that response (which was important to test this new complex case).

@github-actions
Copy link

github-actions bot commented Sep 22, 2025

📚 Documentation preview will be available at: https://developmentseed.github.io/titiler-cmr/pr-previews/pr-76/

Status: ✅ Preview is ready!

github-actions bot pushed a commit that referenced this pull request Sep 22, 2025
github-actions bot pushed a commit that referenced this pull request Sep 22, 2025
@hrodmn
Copy link
Contributor Author

hrodmn commented Sep 23, 2025

Closing in favor of #78

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

Successfully merging this pull request may close these issues.

update time series endpoints to accommodate sel=time case

2 participants