astropy

Handle astronomical units, coordinates, FITS files, and time in Python.

19|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/tondevrel/scientific-agent-skills --skill astropy-tondevrel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astropy
Source: https://github.com/tondevrel/scientific-agent-skills/tree/main/skills/astropy
Command: npx skills add https://github.com/tondevrel/scientific-agent-skills --skill astropy-tondevrel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill simplifies complex astronomical calculations and data handling by providing standardized units, coordinate systems, and file formats, preventing common errors in scientific research.

Core Features & Use Cases

  • Units and Physical Quantities: Ensures calculations are physically consistent by attaching units to numbers.
  • Celestial Coordinates: Manages transformations between different sky coordinate systems (e.g., ICRS, Galactic).
  • FITS File I/O: Reads and writes astronomical data files in the standard FITS format.
  • Astronomical Time: Handles precise timekeeping and conversions for astronomical observations.
  • Use Case: When analyzing telescope data, use this Skill to convert pixel coordinates to sky positions, apply unit conversions, and store results in a standardized table format.

Quick Start

Use the astropy skill to convert 500 nanometers to Terahertz using spectral equivalencies.

Frequently Asked Questions about astropy

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

FAQPage Schema
How do I convert celestial coordinates between different sky coordinate systems like ICRS and Galactic?

To convert celestial coordinates between sky coordinate systems, you apply frame transformations to your astronomical data. This functionality ensures accurate mapping of sky positions across different reference frames for observational analysis.

How do I read and write astronomical data files in the standard FITS format?

Reading and writing astronomical data files in the standard FITS format is handled through dedicated file I/O operations. This process standardizes data storage for telescope observations and ensures compatibility with astronomical data analysis pipelines.

How do I ensure physical consistency when applying unit conversions to astronomical calculations?

To ensure physical consistency in astronomical calculations, you attach standardized units to numerical values. This prevents common scientific research errors by maintaining physically consistent quantities across observational and theoretical computations.

What is the best way to convert pixel coordinates from telescope data to sky positions?

The best way to convert pixel coordinates to sky positions is by applying celestial coordinate transformations to telescope data. This allows you to accurately map instrument pixels to standardized astronomical reference frames.

Can I manage precise timekeeping and conversions for astronomical observations?

You can manage precise timekeeping and conversions for astronomical observations using specialized astronomical time functions. This handles exact time data required for synchronizing and standardizing observational datasets.

How do I convert wavelengths like nanometers to Terahertz using spectral equivalencies?

To convert wavelengths like nanometers to Terahertz, you apply spectral equivalencies to your physical quantities. This uses built-in unit conversion mechanisms to accurately transform spectral measurements for astrophysics research.