astropy-astronomy

Extract photometry and convert pixel coordinates to sky coordinates from FITS observations.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill astropy-astronomy-xjtulyc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astropy-astronomy
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/01-physics/astropy-astronomy
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill astropy-astronomy-xjtulyc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill solves the problem of turning raw astronomical FITS data into science-ready results by handling WCS coordinate transforms, catalog queries, photometry, and HEALPix-based CMB analysis.

Core Features & Use Cases

  • FITS I/O & inspection: Read and write FITS images and tables (HDUs), manage metadata, and prepare data for downstream analysis.
  • WCS transformations: Convert between pixel coordinates and sky coordinates (RA/Dec, Galactic/Ecliptic), place apertures on known targets, and compute pixel scale.
  • Catalog cross-matching: Query public archives and services (e.g., Vizier and SIMBAD) to identify objects and enrich source lists.
  • Aperture photometry: Subtract background and measure fluxes with circular apertures and sky annuli, producing instrumental magnitudes.
  • HEALPix CMB power spectra: Generate and analyze spherical maps, compute angular power spectra (pseudo workflow), and visualize results.

Quick Start

Use the astropy-astronomy skill to read a FITS image, solve its WCS, detect sources, run aperture photometry, and return a table of measured fluxes and instrumental magnitudes.

Frequently Asked Questions about astropy-astronomy

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

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

To convert pixel coordinates to sky coordinates in a FITS image, this Skill applies WCS transformations using astropy, translating pixel arrays into physical RA/Dec or Galactic/Ecliptic sky coordinates and computing the pixel scale.

How do I perform aperture photometry on FITS imaging data?

To perform aperture photometry on FITS imaging data, this Skill subtracts the background using sky annuli and measures source fluxes through circular apertures, producing a table of instrumental magnitudes.

Can I query and cross-match astronomical catalogs like Vizier and SIMBAD?

Yes, you can cross-match astronomical catalogs like Vizier and SIMBAD. This Skill utilizes astroquery to access public archives, identify objects, and enrich your source lists with matched catalog data.

How do I compute the angular power spectrum of a CMB HEALPix map?

To compute the angular power spectrum of a CMB HEALPix map, this Skill generates and analyzes spherical maps via healpy, estimating C_l values through a pseudo workflow and visualizing the recovered power spectrum.

What Python packages do I need for FITS I/O and HEALPix CMB analysis?

For FITS I/O and HEALPix CMB analysis, you need astropy for WCS and FITS handling, astroquery for catalog access, healpy for spherical maps and C_l estimation, plus numpy and matplotlib for numerical support and plotting.

Does astropy work for reading and writing FITS tables and image HDUs?

Yes, astropy works for reading and writing FITS tables and image HDUs. This Skill manages HDU metadata and prepares raw astronomical FITS data for downstream photometry and coordinate transformation analysis.