astropy-fundamentals

Process astronomical data with Astropy core modules for units, coordinates, time, and FITS I/O.

25|10|Updated Nov 6, 2025
One-click install
npx skills add https://github.com/uw-ssec/rse-plugins --skill astropy-fundamentals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astropy-fundamentals
Source: https://github.com/uw-ssec/rse-plugins/tree/main/plugins/scientific-domain-applications/skills/astropy-fundamentals
Command: npx skills add https://github.com/uw-ssec/rse-plugins --skill astropy-fundamentals

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables astronomers and data scientists to work with astronomical data using Astropy's core modules, covering units, coordinates, time, FITS I/O, WCS, photometry, and spectroscopy.

Core Features & Use Cases

  • Units & quantities: attach physical units to values, convert between units, and use spectral/equivalencies.
  • FITS I/O & tables: read/write FITS files and manipulate Astropy Tables and QTables with metadata.
  • Coordinates & WCS: perform precise sky coordinate transformations and map between pixel and world coordinates.
  • Time handling: work with multiple time scales and formats for high-precision astronomy timelines.
  • Photometry & spectroscopy: basic workflows using photutils and specutils for source measurements and spectral analysis.
  • Catalogs & cross-matching: build and query catalogs with robust coordinate matching.
  • Wider ecosystem: integration with core Astropy subpackages for seamless scientific workflows.

Quick Start

Load a FITS header and transform coordinates to a different frame.

Frequently Asked Questions about astropy-fundamentals

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

FAQPage Schema
How do I transform FITS image coordinates to a different sky frame using WCS?

You handle FITS I/O by reading the file header to extract WCS information, then map between pixel and world coordinates. This allows precise sky coordinate transformations across different frames for multi-wavelength data analysis workflows.

What is the best way to attach and convert physical units in astronomical data?

The best way to attach physical units is using Astropy's units and quantities modules. You can attach physical units to values, convert between different unit systems, and utilize spectral equivalencies for high-precision astronomical calculations.

How do I perform source measurements and spectral analysis with Astropy?

You perform source measurements and spectral analysis by integrating Astropy with photutils and specutils. This combination provides basic workflows for photometry and spectroscopy, enabling accurate source extraction and spectral data evaluation.

Can I build and query astronomical catalogs with robust coordinate matching?

Yes, you can build and query astronomical catalogs with robust coordinate matching. Astropy's coordinate transformation capabilities allow precise cross-matching of sky coordinates across different catalogs and multi-wavelength datasets.

How do I work with multiple time scales for high-precision astronomy timelines?

You work with multiple time scales using Astropy's time handling modules. These modules support various time scales and formats, enabling accurate management of high-precision astronomy timelines and temporal data conversions.