# 使用 Homebrew 安装 cdi

查看 cdi 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cdi
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cdi
- **软件包管理器:** Homebrew
- **版本:** 2.6.3
- **来源摘要:** C and Fortran Interface to access Climate and NWP model Data
- **主页:** <https://code.mpimet.mpg.de/projects/cdi>
- **最后更新:** 2026-06-22T14:02:59-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cdi (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.6.3
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

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

### 来源

- <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>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/cdi.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cdi.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
