Skip to content

Add support for URL ancillary variables#71

Draft
DocOtak wants to merge 9 commits into
masterfrom
uri_vars
Draft

Add support for URL ancillary variables#71
DocOtak wants to merge 9 commits into
masterfrom
uri_vars

Conversation

@DocOtak

@DocOtak DocOtak commented Jun 12, 2026

Copy link
Copy Markdown
Member

Adds support for the creation of string type ancillary variables of various shapes that can be attached to primary variables. The intent for now is to link to external data sets and not to, for example, methods papers or documentation.

TODO:

  • Remove URI param
  • editing machinery (won't work with normal fq) maybe add station/cast/[sample] indexing support?
  • sort out attrs, CF might use a standard name or might use something like "cf_role", we cannot wait on this so will probably just do a "cchdo_role" attr
  • exchange export support
  • tests

@coveralls

coveralls commented Jun 12, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 28640812998

Coverage decreased (-0.8%) to 87.638%

Details

  • Coverage decreased (-0.8%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 137 coverage regressions across 4 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

137 previously-covered lines in 4 files lost coverage.

File Lines Losing Coverage Coverage
cchdo/hydro/accessors.py 83 81.3%
cchdo/hydro/core.py 36 82.38%
cchdo/hydro/legacy/woce/init.py 16 83.42%
cchdo/hydro/utils.py 2 97.5%

Coverage Stats

Coverage Status
Relevant Lines: 2710
Covered Lines: 2375
Line Coverage: 87.64%
Coverage Strength: 0.88 hits per line

💛 - Coveralls

DocOtak added 3 commits June 20, 2026 06:47
This is a prety major change, the core merge_fq routine now finds the
point to change in terms of actual dataset coordinates, these include:
* N_PROF
* N_LEVELS
* CDOM_WAVELENGTHS (if it has CDOM)
* Any other new coordinates we might have (urls)

A lot of the merge fq machinery focuses on turing the EXPOCODE, STNNBR,
CASTNO, SAMPNO, etc... into coordinates that xarray understands. This
should allow the changing of anything in the file except
expanding/shrinking variable dims. Even if the variable doesn't have a
WHP Name, it can be addressed by variable name. This should include
expocode, station, cast, sample if they are addressed by variable name.
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.

2 participants