Draft
Update Zarr metadata refresh to include generated filename variable#368
filename variable#368Conversation
Co-authored-by: thommodin <98626996+thommodin@users.noreply.github.com>
Copilot
AI
changed the title
Fix metadata updates for generated Zarr filename variable
Update Zarr metadata refresh to include generated Sep 3, 2026
filename variable
Copilot created this pull request from a session on behalf of
thommodin
September 3, 2026 05:23
View session
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.
update_metadataskippedfilenamefor Zarr datasets whenfilenamewas auto-generated at write time but absent from configschema/add_variables. This left stale or missing attrs in.zattrsfor that variable.Root cause
full_schema).satellite_austemp_dhd_14day,filenameexists in store but is not represented in config schema, so it is never updated.Behavior change
update_store_varattrs_from_schema, whenfilenameexists in the Zarr store but is missing from the schema input, inject a schema entry before attr reconciliation.schema_transformation.add_variables.filename.schemaschema.filename{type: "object", units: "1", long_name: "Filename of the source file"}Targeted test coverage
filenamefrom config schema/add_variables, creates a store withfilename, runs metadata update, and verifiesfilenameattrs are updated from fallback metadata.