Add Copernicus Marine backend (GLORYS12, DUACS, WAVERYS for now)#4
Draft
willirath wants to merge 2 commits intoCliDyn:mainfrom
Draft
Add Copernicus Marine backend (GLORYS12, DUACS, WAVERYS for now)#4willirath wants to merge 2 commits intoCliDyn:mainfrom
willirath wants to merge 2 commits intoCliDyn:mainfrom
Conversation
Replaces the Arraylake/ERA5 retrieval tool with a Copernicus Marine backend for the MVP. ERA5 files are retained but unwired. - src/eurus/copernicus.py: core retrieval using copernicusmarine toolbox; 16-variable hard-coded catalog (GLORYS12 physics reanalysis, DUACS altimetry, WAVERYS waves); local Zarr cache; auto-selects arco-time-series vs arco-geo-series based on query shape - src/eurus/tools/copernicus.py: LangChain StructuredTool wrapper with depth_m support for 3-D variables - tools/__init__.py: swap era5_tool → copernicus_tool - config.py: update AGENT_SYSTEM_PROMPT with Copernicus variable table and depth semantics - logging_config.py: restore original external-library log levels - main.py: drop ARRAYLAKE_API_KEY startup check - pyproject.toml: add copernicus optional dep + pixi environments - plans/: add copernicus-backend planning docs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previously, omitting depth_m silently defaulted to 0.5 m (surface), making it impossible to request full water column data. Now depth_m=None passes no depth bounds to the CMEMS API, returning all depth levels. Use depth_m=0.5 explicitly to get the surface layer. Also updates the _surf filename tag to _fullcolumn to match the new semantics. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For a quick and dirty MVP, this adds a retrieval tool with a Copernicus Marine backend and unwires ERA5 files. Performance is good and CMEMS provides arco geo and time series datasets. So this may be a good addition. Also, for local testing, I used a pixi env.