# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 wcslib

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

## 安装

```sh
sudo av install brew:wcslib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wcslib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wcslib
```

  证据: MacPorts ports tree: science/wcslib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add wcslib
```

  证据: Alpine Linux edge package indexes: wcslib from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install wcslib
```

  证据: Fedora Rawhide package metadata: wcslib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#wcslib
```

  证据: nixpkgs package indexes: pkgs/by-name/wc/wcslib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S wcslib
```

  证据: Arch Linux sync databases: wcslib from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libpgsbox8
```

  证据: Debian stable package indexes: libpgsbox8 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libwcs8
```

  证据: openSUSE Tumbleweed package metadata: libwcs8 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:wcslib
- **软件包管理器:** Homebrew
- **版本:** 8.9
- **来源摘要:** Library and utilities for the FITS World Coordinate System
- **主页:** <https://www.atnf.csiro.au/computing/software/wcs/>
- **最后更新:** 2026-06-25T13:38:12+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- HPXcvt (别名)
- fitshdr (别名)
- sundazel (别名)
- tofits (别名)
- wcsware (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

WCSLIB is Mark Calabretta's C implementation of the FITS World Coordinate System standards, with Fortran wrappers and command-line utilities. It is one of the quiet infrastructure libraries behind astronomical FITS image, cube, and spectral coordinate handling.

### 项目历史

The WCSLIB manual identifies it as an implementation of the FITS WCS standard and carries copyright dates beginning in 1995. The surrounding FITSWCS site ties the library to the formal WCS papers by Greisen, Calabretta, and collaborators that standardized how FITS headers describe pixel-to-world transformations.

The FITSWCS literature page records the first two core WCS papers in Astronomy & Astrophysics in 2002: Paper I on world coordinates in FITS and Paper II on celestial coordinates. Later papers extended the standard to spectral coordinates in 2006, HEALPix/HPX in 2007, the XPH butterfly projection in 2013, and time coordinates in 2015.

WCSLIB grew alongside those standards as a reference-quality implementation for projection math, coordinate transformations, test data, Fortran bindings, and utilities. The upstream site notes that, as of release 8.5, RCS version files are included in the distribution to document changes since v1.0.

### 采用历史

WCSLIB adoption is strongest in astronomy software stacks that read, validate, transform, or display FITS WCS headers. NASA's FITS WCS page lists WCSLIB among the software libraries available for the WCS conventions, and Astropy's `astropy.wcs` documentation says its low-level core WCS support is based on Mark Calabretta's wcslib.

The batch package metadata shows WCSLIB packaged across Homebrew, Alpine, Debian/Ubuntu, Fedora, MacPorts, Nix, Arch, and openSUSE. That broad distro presence reflects its role as a shared scientific dependency rather than an end-user application.

### 使用方式

Developers use WCSLIB from C or Fortran to parse FITS headers, initialize WCS data structures, and convert between pixel coordinates and celestial, spectral, time, or other world coordinates. Command-line utilities such as `fitshdr`, `wcsware`, `HPXcvt`, `sundazel`, and `tofits` expose parts of that functionality for inspection, conversion, and testing.

In the wider Python ecosystem, many users meet WCSLIB indirectly through Astropy, where FITS WCS transformations are presented through high-level and low-level APIs. The same underlying package matters to observatory pipelines, map projection tools, FITS validators, and visualization programs that need consistent coordinate behavior.

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

WCSLIB is package-nerd significant because it packages a domain standard's math, edge cases, and historical compatibility into a reusable native library. Scientific package managers care about it for the same reason they care about CFITSIO: a small C library becomes the coordination point between decades of file-format convention and modern language bindings.

Its utilities also make it useful outside library linking. A maintainer debugging a FITS header can install the package and inspect WCS interpretation from the shell, which is often faster than writing a short scientific Python script just to discover whether a header is malformed.

### 时间线

- 1995: WCSLIB copyright history begins in the upstream manual.
- 2002: FITS WCS Papers I and II are published in Astronomy & Astrophysics.
- 2006: Paper III on spectral coordinates is published.
- 2007: HEALPix/HPX projection paper is published.
- 2013: XPH butterfly projection paper is published.
- 2015: FITS time coordinate paper is published.
- 2025: Upstream site notes WCSLIB 8.5 and inclusion of RCS version files documenting changes since v1.0.

### Related projects

- Related projects include FITS, CFITSIO, Astropy `astropy.wcs`, WCSTools, Starlink AST, PGPLOT/PGSBOX, HEALPix, NASA HEASARC FITS resources, and the IAU FITS Working Group standards process.

### 来源

- <https://docs.astropy.org/en/latest/wcs/index.html>
- <https://fits.gsfc.nasa.gov/fits_wcs.html>
- <https://www.atnf.csiro.au/computing/software/wcs/>
- <https://www.atnf.csiro.au/computing/software/wcs/wcslib/index.html>
- input source_facts.package-manager


## 安全说明

没有找到 wcslib 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- Debian apt - libpgsbox8 - 8.4+ds-1: normalized package name match | Debian stable package indexes: libpgsbox8 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Draw and label curvilinear coordinate grids with pgplot | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Debian apt - libwcs8 - 8.4+ds-1: normalized package name match | Debian stable package indexes: libwcs8 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Implementation of the FITS WCS standard | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Debian apt - wcslib-dev - 8.4+ds-1: normalized package name match | Debian stable package indexes: wcslib-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Header files and static library for wcslib and pgsbox | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Debian apt - wcslib-doc - 8.4+ds-1: normalized package name match | Debian stable package indexes: wcslib-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | API documentation for wcslib | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Debian apt - wcslib-tools - 8.4+ds-1: normalized package name match | Debian stable package indexes: wcslib-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line tools utilizing wcslib | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Nix - wcslib: normalized package name match | nixpkgs package indexes: pkgs/by-name/wc/wcslib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libpgsbox8 - 8.2.2+ds-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libpgsbox8 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Draw and label curvilinear coordinate grids with pgplot | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Ubuntu apt - libwcs8 - 8.2.2+ds-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libwcs8 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Implementation of the FITS WCS standard | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Ubuntu apt - wcslib-dev - 8.2.2+ds-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: wcslib-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Header files and static library for wcslib and pgsbox | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Ubuntu apt - wcslib-doc - 8.2.2+ds-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: wcslib-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | API documentation for wcslib | https://www.atnf.csiro.au/people/mcalabre/WCS/
- Ubuntu apt - wcslib-tools - 8.2.2+ds-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: wcslib-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command line tools utilizing wcslib | https://www.atnf.csiro.au/people/mcalabre/WCS/
- apk - wcslib - 8.4-r2: normalized package name match | Alpine Linux edge package indexes: wcslib from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | implementation of the FITS WCS standard | https://www.atnf.csiro.au/people/mcalabre/WCS/wcslib/
- apk - wcslib-dev - 8.4-r2: normalized package name match | Alpine Linux edge package indexes: wcslib-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | implementation of the FITS WCS standard (development files) | https://www.atnf.csiro.au/people/mcalabre/WCS/wcslib/
- apk - wcslib-doc - 8.4-r2: normalized package name match | Alpine Linux edge package indexes: wcslib-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | implementation of the FITS WCS standard (documentation) | https://www.atnf.csiro.au/people/mcalabre/WCS/wcslib/
- dnf - wcslib - 8.9-2.fc45: normalized package name match | Fedora Rawhide package metadata: wcslib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | An implementation of the FITS World Coordinate System standard | https://www.atnf.csiro.au/computing/software/wcs/
- dnf - wcslib-devel - 8.9-2.fc45: normalized package name match | Fedora Rawhide package metadata: wcslib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Libraries, includes, etc. used to develop an application with wcslib | https://www.atnf.csiro.au/computing/software/wcs/


## Combined YAML source

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


## 来源

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