grib2

Interpret GRIB2 messages and map parameter triplets, levels, and time steps using wgrib2 workflows.

4|Updated Jan 16, 2019
One-click install
npx skills add https://github.com/four43/dotfiles --skill grib2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grib2
Source: https://github.com/four43/dotfiles/tree/main/claude/skills/grib2
Command: npx skills add https://github.com/four43/dotfiles --skill grib2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GRIB2 data is dense and structured across multiple sections; this skill helps users understand, map, and access GRIB2 messages by exposing the core identity (parameter triplet), coordinates (level and time), and practical workflows for analysis.

Core Features & Use Cases

  • Explain the GRIB2 file structure and how Section 4 encodes parameter identity
  • Demonstrate mapping GRIB2 messages to a data-model (Variable/Band/Message) and using wgrib2 for indexing, matching, and extraction
  • Provide lookup guidance via Code Tables 4.2 and 4.10, and handle common edge cases (local-use parameters)
  • Offer practical workflows for analysts working with model outputs and observations to extract parameters for analysis, visualization, or archiving

Quick Start

Inspect a sample GRIB2 file and produce a concise mapping of each message to its parameter triplet, level, and time step, then follow with a basic wgrib2 indexing example.

Frequently Asked Questions about grib2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify parameters in a GRIB2 file using the parameter triplet?

GRIB2 parameters are identified using a parameter triplet of discipline, category, and number found in Section 4. This skill maps each GRIB2 message to its parameter triplet, level, and time step for clear data model interpretation.

What is the best way to extract specific variables from model output using wgrib2?

wgrib2 extraction relies on indexing and matching parameter triplets and level types. This skill demonstrates practical workflows to selectively extract meteorological parameters from model outputs for analysis or visualization.

How does GRIB2 Section 4 encode parameter identity and level types?

GRIB2 Section 4 encodes parameter identity via Code Tables 4.2 and 4.10, defining the discipline, category, and number. This skill helps you interpret these code tables to recognize level types and coordinates.

Can I map GRIB2 messages to a data model for meteorological observations?

Yes, GRIB2 messages can be mapped to a data model representing variables, bands, and messages. This skill provides the mapping logic needed to align meteorological observations with your data structure.

How do I handle local-use parameters when parsing GRIB2 data?

Local-use parameters in GRIB2 data require specific lookup guidance to interpret correctly. This skill addresses common edge cases, including local-use parameters, to ensure accurate message-to-data-model mapping.

Do I need wgrib2 to work with GRIB2 model output?

wgrib2 is essential for indexing, matching, and extracting GRIB2 data efficiently. This skill leverages wgrib2 workflows to help analysts and software engineers process meteorological model outputs.