astropy

Analyze astronomical data with Astropy for units, coordinates, and FITS files.

74|5|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/dralkh/seerai --skill astropy-dralkh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astropy
Source: https://github.com/dralkh/seerai/tree/main/skills/astropy
Command: npx skills add https://github.com/dralkh/seerai --skill astropy-dralkh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps researchers work with astronomy data correctly and efficiently by handling units, coordinates, time, FITS files, tables, and cosmology without manual conversion errors.

Core Features & Use Cases

  • Unit-safe calculations: Convert and combine physical quantities without losing dimensional consistency.
  • Celestial coordinate workflows: Transform between frames, measure separations, and match catalog sources.
  • Astronomy data I/O: Read, write, and inspect FITS images, tables, and metadata.
  • Time, cosmology, and WCS: Work with precise observation times, distance calculations, and pixel-to-sky transformations.
  • Example: Use it to turn raw FITS observations into calibrated tables, sky positions, and cosmological measurements for a literature review or analysis pipeline.

Quick Start

Use the astropy skill to compute the luminosity distance for a redshift of 1.5 and return the result in megaparsecs.

Frequently Asked Questions about astropy

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

FAQPage Schema
How do I convert pixel coordinates to sky coordinates in FITS images?

To convert pixel coordinates to sky coordinates in FITS images, apply WCS transformations. This pixel-to-world mapping translates image pixels into celestial coordinates for accurate astronomical positioning.

How do I transform celestial coordinates between different reference frames?

Transform celestial coordinates between reference frames by utilizing SkyCoord APIs. This converts sky positions across different celestial systems and measures angular separations accurately.

How do I read and inspect FITS tables and image metadata?

Read and inspect FITS tables and image metadata using astronomy data I/O procedures. This handles reading, writing, and inspecting FITS files to extract observation metadata for analysis pipelines.

How do I calculate luminosity distance for a specific redshift value?

Calculate luminosity distance for a specific redshift value by applying cosmology models. This computes distance measurements in megaparsecs based on defined cosmological parameters for observation workflows.

How do I perform unit-safe calculations with physical quantities in astronomy?

Perform unit-safe calculations with physical quantities by applying Astropy quantity APIs. This converts and combines physical dimensions without losing dimensional consistency or causing manual conversion errors.

How do I handle precise observation times across different time systems?

Handle precise observation times across different time systems by utilizing Time APIs. This manages exact time conversions for observation workflows, ensuring accurate temporal synchronization for astronomy data.