astropy

Transform celestial coordinates and calculate cosmological distances with Astropy.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires astropy, numpy, scipy, and includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of processing astronomical data by providing a unified, high-performance interface for coordinate transformations, unit-aware calculations, and FITS file manipulation.

Core Features & Use Cases

  • Coordinate Systems: Seamlessly transform between celestial frames like ICRS, Galactic, and AltAz with observer-specific corrections.
  • Data Handling: Efficiently read, write, and analyze FITS images and tables while maintaining physical units and metadata.
  • Cosmology: Perform complex cosmological calculations, such as luminosity distance and lookback time, using standard models like Planck18.

Quick Start

Use the astropy skill to convert the celestial coordinates in my catalog file from ICRS to Galactic frame and calculate the luminosity distance for the objects at redshift 1.5.

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 from ICRS to the Galactic frame?

To convert celestial coordinates from ICRS to the Galactic frame, you apply coordinate transformations that map right ascension and declination to Galactic latitude and longitude. This process supports observer-specific corrections for high-precision astronomical data analysis.

Can I read and analyze FITS files while preserving physical units and metadata?

Yes, you can efficiently read, write, and analyze FITS images and tables while maintaining physical units and metadata. This ensures standard-compliant astronomical data processing without losing critical scientific context during file manipulation.

How do I calculate luminosity distance and lookback time using Planck18 cosmological models?

To calculate luminosity distance and lookback time, you perform cosmological calculations using standard models like Planck18. This allows you to compute distances and time scales for objects at specific redshifts, such as redshift 1.5, for astrophysical analysis.

Do I need numpy and scipy to perform high-precision astronomical calculations?

Yes, numpy and scipy are required dependencies for performing high-precision astronomical calculations. These libraries provide the foundational numerical and scientific computing infrastructure needed for complex workflows in astrophysics and cosmological modeling.

What is the best way to handle time-scale conversions and catalog cross-matching in astrophysics?

The best way to handle time-scale conversions and catalog cross-matching is using a unified interface that supports high-precision scientific computation. This approach ensures standard-compliant astronomical data processing across complex astrophysical workflows.

When should I use unit-aware calculations for astronomical data processing?

You should use unit-aware calculations whenever processing astronomical data to prevent errors in coordinate transformations and physical measurements. This mechanism maintains metadata integrity during complex scientific computations and FITS file operations.