Agent skill · research science · k-dense-ai

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

Why this skill is useful

Provides domain-specific knowledge for astronomical data analysis, including FITS I/O and coordinate transformations that the AI wouldn't reliably generate on its own.

What it needs

Requires astropy installed locally. About 8k tokens when loaded. Last updated 2026-08-03. 32,849 stars on the source repository.

What this skill does

Astropy Overview Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis. Use astropy for coordinate transformations, unit and quantity calculations, FITS file operations, cosmological calculations, precise time handling, tabular data manipulation, and astronomical image processing. When to Use This Skill Use astropy when tasks involve: Converting between celestial coordinate systems (ICRS, Galactic, FK5, AltAz, etc.) Working with physical units and quantities (converting Jy to mJy, parsecs to km, etc.) Reading, writing, or manipulating FITS files (images or tables) Cosmological calculations (luminosity distance, lookback time, Hubble parameter) Precise time handling with different time scales (UTC, TAI, TT, TDB) and formats (JD, MJD, ISO) Table operations (reading catalogs, cross-matching, filtering, joining) WCS transformations between pixel and world coordinates Astronomical constants and calculations Quick Start Core Capabilities 1. Units and Quantities (astropy.units) Handle physical quantities with units, perform unit conversions, and ensure dimensional consistency in calculations. Key operations: Create quantities by multiplying values with units Convert between units using .to() method Perform arithmetic with automatic unit handling Use equivalencies for domain-specific conversions (spectral, doppler, parallax) Work with logarithmic units (magnitudes, decibels) See: references/units.md for comprehensive documentation, unit systems, equivalencies, performance optimization, and unit arithmetic. 2. Coordinate Systems (astropy.coordinates) Represent celestial positions and transform between different coordinate frames. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills k-dense-ai/astropy

View the source on GitHub

Browse the @skills marketplace