# 使用 Homebrew, apt, dnf, MacPorts 安装 wcstools

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

## 安装

```sh
sudo av install brew:wcstools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wcstools
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wcstools
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install iraf-wcstools
```

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

- dnf (92%):

```sh
sudo dnf install wcstools
```

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

## 软件包事实

- **软件包键:** brew:wcstools
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/wcstools>
- **版本:** 3.9.7
- **来源摘要:** Tools for using World Coordinate Systems (WCS) in astronomical images
- **主页:** <http://tdc-www.harvard.edu/wcstools/>
- **上游文档:** <http://tdc-www.harvard.edu/wcstools>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://distfiles.macports.org/wcstools/wcstools-3.9.7.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- addpix (cli)
- bincat (cli)
- char2sp (cli)
- conpix (cli)
- cphead (cli)
- crlf (cli)
- delhead (cli)
- delwcs (cli)
- edhead (cli)
- filename (cli)
- fileroot (cli)
- filext (cli)
- fixpix (cli)
- getcol (cli)
- getdate (cli)
- getfits (cli)
- gethead (cli)
- getpix (cli)
- gettab (cli)
- htmlsp (cli)
- i2f (cli)
- imcat (cli)
- imextract (cli)
- imfill (cli)
- imhead (cli)
- immatch (cli)
- imresize (cli)
- imrot (cli)
- imsize (cli)
- imsmooth (cli)
- imstack (cli)
- imstar (cli)
- imwcs (cli)
- isfile (cli)
- isfits (cli)
- isnum (cli)
- isrange (cli)
- keyhead (cli)
- newfits (cli)
- remap (cli)
- scat (cli)
- sethead (cli)
- setpix (cli)
- simpos (cli)
- sky2xy (cli)
- skycoor (cli)
- sp2char (cli)
- subpix (cli)
- sumpix (cli)
- wcshead (cli)
- wcstools (cli)
- xy2sky (cli)
- addpix (别名)
- bincat (别名)
- char2sp (别名)
- conpix (别名)
- cphead (别名)
- crlf (别名)
- delhead (别名)
- delwcs (别名)
- edhead (别名)
- filename (别名)
- fileroot (别名)
- filext (别名)
- fixpix (别名)
- getcol (别名)
- getdate (别名)
- getfits (别名)
- gethead (别名)
- getpix (别名)
- gettab (别名)
- htmlsp (别名)
- i2f (别名)
- imcat (别名)
- imextract (别名)
- imfill (别名)
- imhead (别名)
- immatch (别名)
- imresize (别名)
- imrot (别名)
- imsize (别名)
- imsmooth (别名)
- imstack (别名)
- imstar (别名)
- imwcs (别名)
- isfile (别名)
- isfits (别名)
- isnum (别名)
- isrange (别名)
- keyhead (别名)
- newfits (别名)
- remap (别名)
- scat (别名)
- sethead (别名)
- setpix (别名)
- simpos (别名)
- sky2xy (别名)
- skycoor (别名)
- sp2char (别名)
- subpix (别名)
- sumpix (别名)
- wcshead (别名)
- wcstools (别名)
- xy2sky (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.9.7
- 本地数据: OK
- 上游仓库: http://tdc-www.harvard.edu/wcstools/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

WCSTools is a long-running Smithsonian Astrophysical Observatory package of C command-line programs and subroutines for astronomical world coordinate systems. Its core job is to create, read, manipulate, and use WCS metadata in FITS and IRAF images so pixels can be related to positions on the sky.

The package sits in the practical astronomy niche where image headers, catalog matching, and shell pipelines meet. Tools such as imwcs, sky2xy, xy2sky, scat, gethead, sethead, and imcat make astrometry and FITS-header work scriptable without requiring users to embed a full astronomical data system in their workflow.

### 项目历史

The published lineage begins in the mid-1990s. Douglas J. Mink's 1996 ADASS paper explains that after WCS support was added to SAOimage and then to SAOtng and SkyCat, astronomers still lacked WCS headers for much ground-based optical data. Mink adapted Elwood Downey's University of Iowa SETWCS approach into IMWCS and, as the software was generalized for more image types and reference catalogs, a wider suite of portable WCS utilities and subroutines emerged.

By the 1998 ADASS paper, WCSTools had become an image astrometry toolkit rather than a single fitting program. The package provided both modular subroutines and simple programs, read and wrote FITS and IRAF .imh images, supported many map projections used in FITS WCS work, and was explicitly designed to be easy to call from scripts.

The 2001 ADASS paper on WCSTools 3.0 described five years of use in image astrometry and noted that the package had grown alongside new reference catalogs such as GSC-ACT, 2MASS, and GSC II. The current upstream README identifies version 3.9.7, released April 26, 2022, as a mature continuation of the same SAO codebase maintained by Jessica Mink with contributions and algorithms from astronomy software specialists at institutions including CSIRO, NRAO, STScI, IPAC, NOAO, and others.

### 采用历史

WCSTools became important partly because its subroutines were adopted by astronomical image browsers. The 1998 paper says SAOtng, its successor, and SkyCat used WCSTools subroutines, while the ASP abstract also lists SAOimage, SkyCat, and SAOtng as users of the library for displaying sky coordinates while browsing images.

Its adoption pattern is classic scientific Unix software: not a broad consumer tool, but a durable utility layer for observatories, archives, and astronomers who need repeatable FITS/IRAF header manipulation, catalog searches, and coordinate conversion inside scripts.

### 使用方式

Typical usage starts with existing FITS or IRAF images. imwcs can match image stars against reference catalogs and fit a WCS into the image header; xy2sky and sky2xy translate between pixel coordinates and sky coordinates; scat and imcat query source catalogs; gethead, sethead, edhead, and related tools inspect or edit FITS and IRAF metadata.

The toolkit is especially useful when older or ground-based images lack complete WCS headers. In that context, WCSTools can extract image stars, compare them to reference catalogs or Digitized Sky Survey fields, write WCS keywords, and then let downstream programs treat image positions as sky positions.

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

WCSTools is significant because it preserves a Unix-style astronomy workflow around FITS WCS: small executables, text-friendly output, and direct interoperability with shell scripts. For package maintainers, it is a good example of scientific software whose value comes from decades of domain compatibility rather than a modern repository or dependency graph.

It also documents the pre-Astropy, pre-service era of astronomical tooling, where command-line C utilities, IRAF compatibility, SAOimage-family viewers, and catalog CD-ROMs or web services were stitched together into practical astrometry pipelines.

### 时间线

- 1996: Mink presents the IMWCS-focused WCSTools work at ADASS VI, describing the adaptation from SETWCS and the development of portable WCS utilities.
- 1998: Mink presents WCSTools as a broader image astrometry toolkit at ADASS VIII, emphasizing subroutines, command-line programs, scriptability, FITS/IRAF support, and image-browser integration.
- 2001-2002: The WCSTools 3.0 paper describes five years of image astrometry use and catalog-search expansion, including support for newer large catalogs.
- 2022-04-26: The upstream README lists WCSTools 3.9.7 and a detailed set of recent fixes and new utility behavior.

### Related projects

- WCSTools is historically connected to SAOimage, SAOtng, SkyCat, FITS, IRAF, the Digitized Sky Survey, HST Guide Star Catalog, USNO catalogs, 2MASS, WCSLIB, Astropy WCS tooling, and other astrometry packages such as SExtractor, SCAMP, and Astrometry.net.

### 来源

- <http://tdc-www.harvard.edu/software/wcstools/publications/wcstools.adass96.html>
- <http://tdc-www.harvard.edu/software/wcstools/publications/wcstools.adass98.html>
- <http://tdc-www.harvard.edu/software/wcstools/wcstools.readme.html>
- <https://ui.adsabs.harvard.edu/abs/2011ascl.soft09015M/abstract>
- <https://www.aspbooks.org/a/volumes/article_details/?paper_id=17573>
- <https://www.atnf.csiro.au/computing/software/wcs/wcslib/software.html>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** wcstools
- **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

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

- Debian apt - iraf-wcstools - 3.9.7-1.1: normalized package name match | Debian stable package indexes: iraf-wcstools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Handle the WCS of a FITS image (IRAF package) | http://tdc-www.harvard.edu/software/wcstools/
- Debian apt - libwcstools-dev - 3.9.7-1.1+b1: normalized package name match | Debian stable package indexes: libwcstools-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Handle the WCS of a FITS image (development files) | http://tdc-www.harvard.edu/software/wcstools/
- Debian apt - libwcstools1t64 - 3.9.7-1.1+b1: normalized package name match | Debian stable package indexes: libwcstools1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Handle the WCS of a FITS image (shared library) | http://tdc-www.harvard.edu/software/wcstools/
- Debian apt - wcstools - 3.9.7-1.1+b1: normalized package name match | Debian stable package indexes: wcstools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Handle the WCS of a FITS image | http://tdc-www.harvard.edu/software/wcstools/
- Ubuntu apt - iraf-wcstools - 3.9.7-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: iraf-wcstools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Handle the WCS of a FITS image (IRAF package) | http://tdc-www.harvard.edu/software/wcstools/
- Ubuntu apt - libwcstools-dev - 3.9.7-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libwcstools-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Handle the WCS of a FITS image (development files) | http://tdc-www.harvard.edu/software/wcstools/
- Ubuntu apt - libwcstools1t64 - 3.9.7-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libwcstools1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Handle the WCS of a FITS image (shared library) | http://tdc-www.harvard.edu/software/wcstools/
- Ubuntu apt - wcstools - 3.9.7-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: wcstools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Handle the WCS of a FITS image | http://tdc-www.harvard.edu/software/wcstools/
- dnf - wcstools - 3.9.7-13.fc44: normalized package name match | Fedora Rawhide package metadata: wcstools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Software utilities to display and manipulate the WCS of a FITS image | http://tdc-www.harvard.edu/wcstools
- dnf - wcstools-devel - 3.9.7-13.fc44: normalized package name match | Fedora Rawhide package metadata: wcstools-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Libraries, includes, etc. used to develop an application with wcstools | http://tdc-www.harvard.edu/wcstools
- dnf - wcstools-libs - 3.9.7-13.fc44: normalized package name match | Fedora Rawhide package metadata: wcstools-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Wcstools shared library | http://tdc-www.harvard.edu/wcstools
- MacPorts - wcstools: normalized package name match | MacPorts ports tree: science/wcstools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [montage](https://www.automicvault.com/zh-hans/pkg/brew/montage/) - Shares av.db curated category or tags: astronomy, cli, fits, image-processing, science.
- [wcslib](https://www.automicvault.com/zh-hans/pkg/brew/wcslib/) - Shares av.db curated category or tags: astronomy, cli, fits, science, wcs.
- [ccfits](https://www.automicvault.com/zh-hans/pkg/brew/ccfits/) - Shares av.db curated category or tags: astronomy, cli, fits, science.
- [cfitsio](https://www.automicvault.com/zh-hans/pkg/brew/cfitsio/) - Shares av.db curated category or tags: astronomy, cli, fits, science.
- [gnuastro](https://www.automicvault.com/zh-hans/pkg/brew/gnuastro/) - Shares av.db curated category or tags: astronomy, cli, fits, science.
- [siril](https://www.automicvault.com/zh-hans/pkg/brew/siril/) - Shares av.db curated category or tags: astronomy, cli, image-processing, science.
- [calceph](https://www.automicvault.com/zh-hans/pkg/brew/calceph/) - Shares av.db curated category or tags: astronomy, cli, science.
- [cdsclient](https://www.automicvault.com/zh-hans/pkg/brew/cdsclient/) - Shares av.db curated category or tags: astronomy, cli, science.

## Combined YAML source

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


## 来源

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