Skip to main content

master Maturity Level Licence Latest Release

InstallationUsageDocumentation

[!IMPORTANT] This software is Emerging and subject to ECMWF's guidelines on Software Maturity.

Support level: None. The project is made available as-is, with no guarantee of support. However, bug reports and community contributions are encouraged and appreciated.

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:

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.

grib-check 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.

Release files for grib-check 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grib-check 0.1.2
File Size Uploaded
grib_check-0.1.2.tar.gz 54.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grib-check 0.1.2
File Interpreter ABI Platform
grib_check-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 122.5 kB

Release files / grib_check-0.1.2.tar.gz

Download URL grib_check-0.1.2.tar.gz
Size 54.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1ee91ba4204ce6fb79d3d1faf1aaa3aa3f6e7d4e340679b3f065f05fe6ad0299
BLAKE2b-256 checksum
How to use checksums
163432d3330a8de116021184151b1c3e3c3ccbba2ed2f03a585174fa49798f5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / grib_check-0.1.2-py3-none-any.whl

Download URL grib_check-0.1.2-py3-none-any.whl
Size 67.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90aa06a0c65269988eaa57ee0f016be8da9097011d12d0d3e6c3768ed52c97de
BLAKE2b-256 checksum
How to use checksums
c3602a8d73228833f9c32f52abbe5a6ffef49efc74e7ae1b2aa135974f6da833
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page