astropy

Perform unit-aware astronomical data analysis in Python with Astropy.

321|26|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/mkurman/tamux --skill astropy-mkurman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astropy
Source: https://github.com/mkurman/tamux/tree/main/skills/scientific-skills/astropy
Command: npx skills add https://github.com/mkurman/tamux --skill astropy-mkurman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Astropy provides a comprehensive, modular toolkit for robust, unit-aware astronomical data analysis in Python, unifying scientific workflows across data input, processing, and interpretation.

Core Features & Use Cases

  • Units and Quantities: attach physical units to data and perform conversions safely.

  • Coordinates, Time, and WCS: transform celestial frames, handle different time scales, and convert pixel to world coordinates.

  • FITS I/O, Tables, and Cosmology: read/write FITS files, manipulate tables, and compute cosmological distances.

  • End-to-end workflows: model fitting, arithmetic with uncertainties, and data visualization integration.

  • Use cases include converting catalogs from FITS to CSV, cross-matching sky surveys, and computing lookback times and luminosity distances.

Quick Start

Import necessary Astropy modules and perform a simple coordinate transformation and distance calculation.

Frequently Asked Questions about astropy

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

FAQPage Schema
How do I convert FITS files to CSV for astronomical data analysis?

Astropy provides dedicated FITS I/O and table manipulation modules to read FITS files into structured tables and export them as CSV outputs for astronomical data analysis workflows.

How do I transform celestial coordinates and handle different time scales in Python?

Celestial coordinate transformations and time scale handling are executed through dedicated modules that convert between astronomical frames and manage time scale conversions natively. Astropy provides array-friendly operations for these exact coordinate and time transformations.

Can I compute cosmological distances and lookback times for astronomical datasets?

Computing cosmological distances and lookback times is supported through built-in cosmology modules. Astropy calculates luminosity distances and lookback times natively for astronomical datasets using unit-aware operations.

Does astropy support unit-aware arithmetic and model fitting for reproducible scientific workflows?

Unit-aware arithmetic and model fitting are supported for reproducible scientific workflows. Astropy attaches physical units to data for safe conversions and provides extensible interfaces for robust model fitting across astronomical datasets.

What is the best way to cross-match sky surveys and convert pixel to world coordinates?

Cross-matching sky surveys and converting pixel to world coordinates requires WCS transformations and coordinate frame handling. Astropy unifies these operations with well-documented modules supporting end-to-end astronomical data workflows.

Do I need any specific dependencies to perform astronomical data analysis with astropy?

No external dependencies are required to perform astronomical data analysis. Astropy operates as a standalone modular toolkit with no listed dependencies, providing comprehensive coordinate, time, FITS, and cosmology functionalities natively.