-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Time Querying in EDR Provider (#1247)
* update time handling for edr provider * add logging for time parsing * fix time handling errors Convert times to np.datetime64 to allow greater than/less than comparison. If slicing over time, separate xarray sel into temporal and spatial component (cannot use method='nearest' for time slices). * fix temporal query dictionary * fix time error handling * fix list handling for single timestep * single timestep handling * spatial-only query amendment * code clean-up * convert datetime * move code to methods for reuse between position and cube. #1239 * formatting fixes #1239 * time query test #1239 * clean-up * move time querying tests to api testing * Update test_api.py * update time key * modify test values * updates for desired query behavior #1239 * Update xarray_edr.py * sanitize datetime_ parameter with Z OpenAPI document provides RFC 3339 compliant examples (exclusively specify UTC as the timezone with a trailing Z; want to avoid confusion between allowed datetime query and the documentation. #1239 * requested changes from @webb-ben and @tomkralidis #1247
- Loading branch information
Showing
2 changed files
with
138 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters