Astropy

From VectorSpaceLab/AREX-Skill · View interactive version

Astropy is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use Astropy core for astronomy units, coordinates, times, tables, FITS/WCS files, modeling, statistics, visualization, cosmology, configuration, and public CLIs.

How to use this skill

Skill file

Astropy Repo Skill

Use this skill when a task needs the Astropy core Python package for astronomy

or astrophysics analysis. Astropy is a CPU scientific-Python library; selected

workflows do not require GPU or accelerator backends. Use an installed Astropy

package and the bundled references/scripts here rather than reopening the

source repository.

Fast Start

import astropy
from astropy import units as u
print(astropy.__version__)
print((42 * u.km / u.s).to(u.m / u.s))

If plotting, fitting, convolution FFT paths, or common dataframe bridges are

needed, prefer installing the common optional set:

python -m pip install "astropy[recommended]"

Use astropy[all] only for broad optional integrations such as HDF5, Parquet,

S3/fsspec, Jupyter, or additional astronomy packages.

Route by Task

read sub-skills/units-constants/SKILL.md.

separations, matching, and observation geometry, read

sub-skills/time-coordinates/SKILL.md.

notes, pandas/dataframe bridges, and table/FITS CLIs, read

sub-skills/tables-io/SKILL.md.

masks, uncertainties, and image metadata containers, read

sub-skills/wcs-nddata/SKILL.md.

fits2bitmap, kernels, direct convolution, and FFT convolution, read

sub-skills/visualization-convolution/SKILL.md.

histograms, time series, periodograms, and uncertainty distributions, read

sub-skills/modeling-stats-timeseries/SKILL.md.

cosmology units, and serialization, read

sub-skills/cosmology/SKILL.md.

logging/warnings, SAMP, and the general CLI catalog, read

sub-skills/cli-config-data/SKILL.md.

Shared References and Scripts

module map, install extras, and general workflow pattern.

cross-cutting install/import, optional dependency, remote-data, units, and

FITS/WCS safety guidance.

the source commit and evidence baseline before refreshing this skill.

references/repo-routing-metadata.json.

installed-package API surface across the main sub-skill routes.

public Astropy console commands with safe help and optional temporary

fixtures.

Operating Rules

  1. Keep units attached until a non-Astropy API requires raw arrays; then use

.to_value(unit) and record the unit.

  1. Be explicit about format=, scale=, frame=, unit=, origin=, and

format names for I/O to avoid silent guessing.

  1. Use temporary files for smoke checks and never mutate user FITS/table files

unless the user explicitly requested that exact operation.

  1. For offline or reproducible tasks, disable or control remote downloads before

coordinate/time/IERS/name-resolution operations.

  1. Validate scientific transformations numerically: unit round-trips,

pixel/world round-trips, table read/write round-trips, fit residuals, or

cosmology unit checks.

  1. Route optional dependency errors to the nearest sub-skill first, then to the

root troubleshooting reference for install-level decisions.

Do Not Use This Skill For

units, times, or coordinates.

build workflows.

user workflow.

explicit user approval and bounded temporary-file safeguards.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.