Installation • Usage • Documentation
GribCheck is a Python tool that validates project-specific conventions of GRIB files. It performs a limited set of checks on GRIB messages to ensure they comply with the project's internal standards and expectations.
Please note that GribCheck is not a general-purpose GRIB validator. For instance, it does not verify whether a file fully complies with the WMO GRIB standard or whether it is a technically valid GRIB file.
Installation
pip install grib-check
Usage
To use GribCheck, you need to specify the GRIB convention you want to check. The library currently supports the following conventions:
- tigge : The International Grand Global Ensemble (TIGGE)
- tigge_cr : The International Grand Global Ensemble (TIGGE) - common resolution version
- lam : TIGGE Limited-Area Model (TIGGE LAM)
- s2s : Subseasonal to Seasonal (S2S)
- s2s_refcst : S2S Reforecasts
- uerra : Uncertainties in Ensembles of Regional ReAnalysis (UERRA)
- crra : Copernicus Regional Reanalysis (CERRA)
- lcgcr : WMO Lead Centre for Global Climate Reanalyses (LC-GCR)
Experimental conventions that are under development include:
You can specify the convention using the -C or --convention command-line argument.
For example, to check a GRIB file of type "tigge", you would run the following command:
grib-check -C tigge /path/to/file.grib2
The output provides the result of each check performed on the GRIB messages in the file. Each check may be annotated with an additional context or information of the check performed which may be useful for diagnostics. Checks typically have the status FAIL or PASS. Sometimes, however, a status cannot be assigned - for example if a test is skipped or message is purely informational - in which case the status "----" is used.
The report follows a hierarchical structure, where checks can contain sub-checks and assertions, forming branches. If an assertion fails, the failure propagates upward, and the entire branch is marked as failed.
The following command demonstrates a check on a file of convention "s2s". For demonstration purposes, we'll change the convention to "uerra" to intentionally trigger check failures and showcase the output.
Documentation
License
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for grib-check 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| grib_check-0.1.3.tar.gz | 56.5 kB | Without provenance | Details for grib_check-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| grib_check-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for grib_check-0.1.3-py3-none-any.whl |
Total release size: 124.3 kB
Release files / grib_check-0.1.3.tar.gz
| Download URL | grib_check-0.1.3.tar.gz |
|---|---|
| Size | 56.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95300e8ba210a9a3d68570a3a0fab5b9dac01aac2675ef289d1665772fbdccbc
|
|
BLAKE2b-256 checksum How to use checksums |
55278264aa573297d4c732119db3e9da7cad80f5934f31051c54118fcca8d7c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / grib_check-0.1.3-py3-none-any.whl
| Download URL | grib_check-0.1.3-py3-none-any.whl |
|---|---|
| Size | 67.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a1bf367005037a3cc57460ce3601aba219a97a9cfd25351451f1e3c8141b127
|
|
BLAKE2b-256 checksum How to use checksums |
db75ebad9afe06a8e6bef894f59d9cf58239f0656d930ad2b98a573461142791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for grib-check 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.