Skip to main content

Tools for checking GRIB files

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grib_check-0.0.3.tar.gz (49.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grib_check-0.0.3-py3-none-any.whl (63.0 kB view details)

Uploaded Python 3

File details

Details for the file grib_check-0.0.3.tar.gz.

File metadata

  • Download URL: grib_check-0.0.3.tar.gz
  • Upload date:
  • Size: 49.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for grib_check-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f14c493a85252fca1464ad94e8b1a23d46756468c9465c7017a2b7b667f8509c
MD5 70dffbd5b11cf3088930e665745b073d
BLAKE2b-256 45a3a91f742b865c0159f77c97de86566eb7a25cdf06c17f1ea3b5bd31176b6f

See more details on using hashes here.

File details

Details for the file grib_check-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: grib_check-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 63.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for grib_check-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e5e25a68113a7e4cc1ff706f18e3c811c785a2036a8e1dd3b9bd2de1cd58cad1
MD5 f9bbdd4711dada2e44e459c388ede60b
BLAKE2b-256 395ca29173f9d0416c1a71a5fbb8a0b1783103d5137c6d24cb5c2734005013b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page