astropy

Transform celestial coordinates, units, FITS data, and WCS mappings with Astropy.

21|2|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/silverstein/claude-scientific-skills-desktop --skill astropy-silverstein
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astropy
Source: https://github.com/silverstein/claude-scientific-skills-desktop/tree/main/corpus/astropy
Command: npx skills add https://github.com/silverstein/claude-scientific-skills-desktop --skill astropy-silverstein

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps you perform accurate astronomy and astrophysics computations without manually juggling units, coordinate frames, time scales, FITS files, or WCS transformations.

Core Features & Use Cases

  • Astronomical coordinate transformations: Convert sky positions between frames (e.g., ICRS, Galactic, AltAz) and compute separations and position angles.
  • Unit-aware physics: Convert and combine quantities safely using astropy.units, including astronomy-specific equivalencies.
  • End-to-end data workflows: Read and manipulate FITS files and tables, perform cosmological distance/time calculations, and apply WCS for pixel-to-world mapping.

Quick Start

Use the attached dataset or values to ask your AI to show you how to transform your coordinates, read the FITS header/data, and compute the relevant distance or time using astropy.

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 between ICRS and Galactic frames use SkyCoord to handle frame-aware conversions, computing sky positions and separations accurately without manual coordinate math.

Can I read and manipulate FITS files with WCS pixel-to-world mapping?

FITS files and WCS pixel-to-world mapping are handled via astropy.io.fits for reading header data, while WCS transformations map pixel coordinates to sky coordinates for accurate observational data analysis pipelines.

How do I perform unit-aware physics calculations with astronomy-specific equivalencies?

Unit-aware physics calculations use Quantity objects from astropy.units to safely convert and combine physical quantities, applying astronomy-specific equivalencies to maintain dimensional consistency across computations.

What is the best way to compute cosmological distances and time-scale conversions?

Cosmological distance and time-scale computations are performed via astropy.cosmology and astropy.time, enabling accurate distance calculations and time-scale handling for observational and simulated astronomy research.

Does astropy work for end-to-end astronomy data workflows or just isolated coordinate tasks?

Astropy supports end-to-end astronomy data workflows including coordinate transformations, unit conversions, FITS table I/O, WCS pixel-world mapping, and cosmology calculations, satisfying dimensional consistency requirements across research pipelines.