astropy

Perform astronomical calculations and FITS file I/O with Python.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/felixboehm/biochem-allergy --skill astropy-felixboehm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astropy
Source: https://github.com/felixboehm/biochem-allergy/tree/main/.claude/skills/astropy
Command: npx skills add https://github.com/felixboehm/biochem-allergy --skill astropy-felixboehm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies complex astronomical calculations and data manipulation, making advanced astrophysics accessible through Python.

Core Features & Use Cases

  • Coordinate Transformations: Convert celestial coordinates between different systems (e.g., ICRS, Galactic, AltAz).
  • Unit Handling: Perform calculations with physical units, ensuring dimensional consistency.
  • Cosmological Calculations: Compute distances, ages, and other cosmological parameters.
  • FITS File I/O: Read, write, and manipulate astronomical data files.
  • Use Case: Analyze telescope data by transforming pixel coordinates to sky coordinates, calculating the physical size of an object at a given redshift, and saving the results in a FITS table.

Quick Start

Use the astropy skill to convert the celestial coordinate 10h 30m 0s +40d 0m 0s from ICRS to Galactic frame.

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 ICRS and Galactic frames in Python?

To convert celestial coordinates between ICRS and Galactic frames in Python, this Skill applies coordinate transformation logic to parse input sky coordinates and calculate their mapped position in the target astronomical reference frame.

What is the best way to read and write FITS files for astronomical data analysis?

Reading and writing FITS files for astronomical data analysis involves parsing the binary FITS format to extract image arrays or tabular data, manipulating the contents, and serializing the updated structure back into a standard FITS file.

How do I calculate cosmological distances and ages at a specific redshift?

Calculating cosmological distances and ages at a specific redshift involves applying cosmological parameters to compute the line-of-sight comoving distance, luminosity distance, and the age of the universe at that given epoch.

Can I perform physical unit conversions and ensure dimensional consistency for astrophysics calculations?

Performing physical unit conversions and ensuring dimensional consistency for astrophysics calculations is supported by attaching physical units to numerical values, automatically tracking dimensions, and validating operations to prevent unit mismatch errors.

Does this approach handle World Coordinate System (WCS) transformations for telescope data?

Handling World Coordinate System (WCS) transformations for telescope data is supported by parsing WCS metadata from FITS headers to map pixel coordinates to celestial sky coordinates and accurately project imaging data.