Skip to content

Conversation

@frazane
Copy link
Contributor

@frazane frazane commented Feb 2, 2026

When indexing GRIB files using the anemoi-datasets grib-index, it might occur that the program fails due to duplicated messages even though they are not really duplicates. This occurs for instance with soil variables, where by default values for level are interpreted as integers which leads to values such as 0.01, 0.004, etc. to all be decoded as "0".

To solve this, one needs to use the key:type syntax to decode a key in a specific type, e.g. level:d. However, this leads to another error because SQLite does not support column names that contain colons.

As a simple fix, the proposed solution is to replace colons with underscores.


By opening this pull request, I affirm that all authors agree to the Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: To be triaged

Development

Successfully merging this pull request may close these issues.

2 participants