astropy

Convert astronomical coordinates, units, FITS files, and times with astropy.

Updated May 24, 2026
One-click install
npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill astropy-estrella-231
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astropy
Source: https://github.com/Estrella-231/Mathematical_modeling_tongmeng/tree/main/.agents/skills/astropy
Command: npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill astropy-estrella-231

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Astronomers and data scientists often struggle to reliably convert coordinates, handle physical units, and process FITS files without manual, error-prone steps.

Core Features & Use Cases

  • Coordinate transformations: Convert sky positions across common celestial frames (e.g., ICRS to Galactic, FK5, AltAz) and compute separations and matches for catalog cross-referencing.
  • Unit-aware calculations: Attach physical units to values to prevent dimensional mistakes and perform safe conversions (including domain-specific equivalencies like spectral and Doppler).
  • FITS and table workflows: Read and manipulate FITS images/tables, operate on unit-aware tabular datasets, and handle precise time representations needed for observation metadata.

Quick Start

Use astropy to convert a set of right-ascension/declination pairs in ICRS into Galactic coordinates while preserving units and returning angular separations for each match.

Frequently Asked Questions about astropy

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

FAQPage Schema
How do I convert astronomical coordinates between ICRS and Galactic frames?

Astronomical coordinate transformations convert sky positions across common celestial frames like ICRS, Galactic, FK5, and AltAz. You can transform right-ascension and declination pairs while preserving physical units and computing angular separations for catalog cross-referencing.

What is the best way to process FITS images and tables for astronomical research?

FITS and table workflows read and manipulate FITS images and tables for astronomical research. You can operate on unit-aware tabular datasets and handle precise time representations needed for observation metadata within your data processing pipeline.

How does WCS pixel-to-world mapping work for sky catalog cross-matching?

WCS transformations map pixel coordinates to world coordinates for sky catalog cross-matching. This process applies frame conversions and computes separations between celestial objects, enabling accurate cross-referencing of astronomical catalogs across different frames.

Can I use astropy for cosmological distance and observation time calculations?

Cosmological distance and time calculations compute precise cosmological metrics, while time-scale and format conversions handle observation metadata. These features support frame conversions, unit consistency, and precise observation time handling for research workflows.