# Install cdi with Homebrew

C and Fortran Interface to access Climate and NWP model Data. Version 2.6.3 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:cdi
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cdi
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:cdi
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cdi>
- **Version:** 2.6.3
- **Source summary:** C and Fortran Interface to access Climate and NWP model Data
- **Homepage:** <https://code.mpimet.mpg.de/projects/cdi>
- **Upstream docs:** <https://code.mpimet.mpg.de/projects/cdi/embedded/index.html>
- **License:** BSD-3-Clause
- **Source archive:** <https://code.mpimet.mpg.de/attachments/download/30225/cdi-2.6.3.tar.gz>
- **Last updated:** 2026-06-22T14:02:59-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cdi (cli)
- cdi (alias)

## Dependencies

- eccodes
- libaec
- netcdf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.6.3
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://code.mpimet.mpg.de/projects/cdi
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

CDI, the Climate Data Interface, is a C and Fortran library for accessing climate and numerical weather prediction model data in formats such as GRIB, netCDF, SERVICE, EXTRA, and IEG.

### Project history

The official MPI-M Redmine overview and wiki describe CDI as a C and Fortran interface to access Climate and NWP model data. The embedded C manual identifies Uwe Schulzweida of the Max Planck Institute for Meteorology as the author and documents CDI C manual version 1.9.9 from October 2020.

The project news on the official overview shows recent release cadence: version 2.0.0 in 2021, 2.1.0 in 2022, 2.2.0 and 2.3.0 in 2023, and 2.4.0 in 2024.

### Adoption history

CDI appears as a specialized scientific package rather than a general CLI utility. Its official wiki lists software that uses CDI, including Climate Data Operators, ECHAM, MPIOM, ICON, afterburner, and MATLAB-CDI. Homebrew packaging gives macOS and Linux package-manager users access to the cdi executable and library.

### How it is used

CDI is used by climate and meteorology software to read, write, and transform model-data streams across GRIB, netCDF, SERVICE, EXTRA, and IEG formats. The manuals cover C and Fortran bindings, file formats, stream APIs, and compiling/linking with the CDI library.

### Why package nerds care

CDI is interesting in package-manager terms because it packages domain infrastructure from climate modeling: a format abstraction layer used by larger tools such as CDO and model workflows, not a standalone consumer application. Its value is in making scientific data formats available through distro and Homebrew dependency graphs.

### Timeline

- 2020-10: Embedded C manual version 1.9.9 published.
- 2021-10-11: Version 2.0.0 release news posted.
- 2022-10-07: Version 2.1.0 release news posted.
- 2023-07-13: Version 2.2.0 release news posted.
- 2023-10-20: Version 2.3.0 release news posted.
- 2024-02-21: Version 2.4.0 release news posted.

### Related projects

- The official wiki lists CDO, ECHAM, MPIOM, ICON, afterburner, and MATLAB-CDI as software using CDI.

### Sources

- <https://code.mpimet.mpg.de/projects/cdi>
- <https://code.mpimet.mpg.de/projects/cdi/embedded/index.html>
- <https://code.mpimet.mpg.de/projects/cdi/wiki>
- <https://formulae.brew.sh/api/formula/cdi.json>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cdi
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [eccodes](https://www.automicvault.com/pkg/brew/eccodes/) - Runtime dependency declared by Homebrew.
- [netcdf](https://www.automicvault.com/pkg/brew/netcdf/) - Runtime dependency declared by Homebrew.
- [metview](https://www.automicvault.com/pkg/brew/metview/) - Shares av.db curated category or tags: cli, grib, meteorology, netcdf, science.
- [nco](https://www.automicvault.com/pkg/brew/nco/) - Shares av.db curated category or tags: cli, climate, netcdf, science.
- [calceph](https://www.automicvault.com/pkg/brew/calceph/) - Shares av.db curated category or tags: c-library, cli, fortran, science.
- [cfitsio](https://www.automicvault.com/pkg/brew/cfitsio/) - Shares av.db curated category or tags: c-library, cli, fortran, science.
- [abpoa](https://www.automicvault.com/pkg/brew/abpoa/) - Shares av.db curated category or tags: c-library, cli, science.
- [cddlib](https://www.automicvault.com/pkg/brew/cddlib/) - Shares av.db curated category or tags: c-library, cli, science.
- [fftw](https://www.automicvault.com/pkg/brew/fftw/) - Shares av.db curated category or tags: c-library, cli, science.
- [freesasa](https://www.automicvault.com/pkg/brew/freesasa/) - Shares av.db curated category or tags: c-library, cli, science.
- [cdo](https://www.automicvault.com/pkg/brew/cdo/) - Local package facts share a topical domain. Shared terms: cli, climate, climate-data, data, eccodes.

## Combined YAML source

View the package source record on GitHub. [combined/cdi.yml](https://github.com/automic-vault/db/blob/main/combined/cdi.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
