astropy
Comprehensive Python library for astronomy and astrophysics.
Skill by mugpeng
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mugpeng-astropy
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
astropy- Description
- Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.
- License
- MPL-2.0
- Metadata
- skill-author: K-Dense Inc.
- Instructions
- 323 lines in SKILL.md · view on GitHub
Files (8)
- SKILL.md
- coordinates.md · references/
- cosmology.md · references/
- fits.md · references/
- tables.md · references/
- time.md · references/
- units.md · references/
- wcs_and_other_modules.md · references/
SKILL.md (first lines)
# 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
```python
import astropy.units as u
from astropy.coordinates import SkyCoord
from astropy.time import Time
from astropy.io import fits
from astropy.table import Table
from astropy.cosmology import Planck18
# Units and quantities
distance = 100 * u.pc
distance_km = distance.to(u.km)
# Coordinates
coord = SkyCoord(ra=10.5*u.degree, dec=41.2*u.degree, frame='icrs')
coord_galactic = coord.galactic
# Time
t = Time('2023-01-15 12:30:00')
jd = t.jd # Julian Date
# FITS files
data = fits.getdata('image.fits')
header = fits.getheader('image.fits')
# Tables
table = Table.read('catalog.fits')
# Cosmology
d_L = Planck18.luminosity_distance(z=1.0)
```
## 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.
**Key operations:**
- Create coordinates with `SkyCoord` in any frame (ICRS, Galactic, FK5, AltAz, etc.)
- Transform between coordinate systems
- Calculate angular separations and position angles
- Match coordinates to catalogs
- Include distance for 3D coordinate operations
- Handle proper motions and radial velocities
- Query named objects from online databases
**See:** `references/coordinates.md` for detailed coordinate frame descriptions, transformations, observer-dependent frames (AltAz), catalog matching, and performance tips.
### 3. Cosmological Calculations (`astropy.cosmology`)
Perform cosmological calculations using standard cosmological models.
**Key operations:**
- Use built-in cosmologies (Planck18, WMAP9, etc.)
- Create custom cosmological models
- Calculate distances (luminosity, comoving, angular diameter)
- Compute ages and lookback times
- Determine Hubble parameter at any redshift
- Calculate density parameters and volumes
- Perform inverse calculations (find z for given distance)
**See:** `references/cosmology.md` for available models, distance calculations, time calculations, density parameters, and neutrino effects.
### 4. FITS File Handling (`astropy.io.fits`)
Read, write, and manipulate FITS (Flexible Image Transport System) files.
**Key operations:**
- Open FITS files with context managers
- Access HDUs (Header Data Units) by index or name
- Read and modify headers (keywords, comments, history)
- Work with image data (NumPy arrays)
- Handle table data (binary and ASCII tables)
- Create new FITS files (single or multi-extension)
- Use memory mapping for large files
- Access remote FITS files (S3, HTTP)
**See:** `references/fits.md` for comprehensive file operations, header manipulation, image and table handling, multi-extension files, and performance considerations.
### 5. Table Operations (`astropy.table`)
Work with tabular data with support for units, metadata, and various file formats.
**Key operations:**
- Create tables from arrays, lists, or dictionaries
- Read/write tables in multiple formats (FITS, CSV, HDF5, VOTable)From mugpeng/oh-my-skills, MPL-2.0.
More from mugpeng/oh-my-skills
- 0.448score
academic-search
mugpeng
学术论文搜索、引用分析与元数据提取专用 Skill。 【自动触发条件——出现以下任一信号时立即加载本 Skill,无需用户显式说明】 意图信号(中文): - 搜论文 / 找论文 / 查论文 / 调研论文 / 检索文献 / 文献综述 / 综述 - 顶会 / 顶刊 / CCF / NeurIPS / ICML /…
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
aminer-data-search
mugpeng
使用 AMiner 开放平台 API 进行学术数据查询与分析。当用户需要查询学者信息、论文详情、机构数据、期刊内容或专利信息时使用此 skill。 触发场景:提到 AMiner、学术数据查询、查论文/学者/机构/期刊/专利、学术问答搜索、引用分析、科研机构分析、学者画像、论文引用链、期刊投稿分析等。 支持 6…
SkillDFreshness: D★ 2Claude Code +9 - 0.441score
self-reflection
mugpeng
Periodic self-reflection on recent sessions.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
autoglm-open-link
mugpeng
使用 AutoGLM Open Link 接口打开指定网页并提取页面正文内容。当用户需要读取某个网页详情、提取文章全文、抓取页面正文做摘要或分析时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-websearch
mugpeng
使用 AutoGLM Web Search 接口进行网络信息搜索。当用户需要联网搜索、查询最新资讯、检索网页内容或获取实时信息时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-deepresearch
mugpeng
对用户提出的课题进行深度研究和调研,输出结构化的深度报告。当用户需要深入了解某个话题、做行业调研、专题研究、竞品分析等场景时使用此 skill。 与普通搜索不同,deepresearch 会先做少量定向搜索,再对少量关键页面进行深度阅读,过程中优先展示中间发现,最后再做总结,避免因调用次数过多导致响应过慢。…
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-generate-image
mugpeng
使用 AutoGLM 文生图接口,根据用户输入的文字描述生成图片。当用户需要生成图片、文字转图片、AI绘图等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-search-image
mugpeng
使用 AutoGLM 搜图接口,根据用户输入的关键词搜索相关图片。当用户需要搜索图片、查找图片素材等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.430score
autoglm-browser-agent
mugpeng
智能浏览器自动化代理,可执行任何需要浏览器的任务。 包括但不限于:打开网页、搜索信息(百度/谷歌/必应)、浏览社交媒体(微博/小红书/知乎/抖音/B站)、 点赞/评论/转发/收藏、发帖/发消息、登录网站、填写表单、截图、采集网页内容、 在线购物比价、查看新闻资讯、操作在线文档(飞书文档/腾讯文档等)。…
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 13, 2026 (6 months ago)
- Last release
- Apr 13, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MPL-2.0
- Repository
- github.com/mugpeng/oh-my-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.652score
astropy
foryourhealth111-pixel
Comprehensive Python library for astronomy and astrophysics.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.334score
astropy
LUNARTECH-X
Comprehensive Python library for astronomy and astrophysics.
SkillCFreshness: C★ 17Claude Code +9 - 0.320score
astropy
shushuzn
Comprehensive Python library for astronomy and astrophysics.
SkillCFreshness: C★ 5Claude Code +9 - 0.312score
astropy
mkurman
Comprehensive Python library for astronomy and astrophysics.
SkillAFreshness: A★ 325Claude Code +9 - 0.306score
astropy
ovachiever
Comprehensive Python library for astronomy and astrophysics.
SkillDFreshness: D★ 55Claude Code +9 - 0.302score
astropy
Zaoqu-Liu
Comprehensive Python library for astronomy and astrophysics.
SkillDFreshness: D★ 60Claude Code +9 - 0.269score
astropy
lamm-mit
Comprehensive Python library for astronomy and astrophysics.
SkillCFreshness: C★ 250Claude Code +9 - 0.259score
astropy
Vaishnav14220
Comprehensive Python library for astronomy and astrophysics.
SkillDFreshness: D★ 1Claude Code +9 - 0.259score
astropy
yf8578
Comprehensive Python library for astronomy and astrophysics.
SkillDFreshness: D★ 1Claude Code +9 - 0.246score
astropy
ShawnXiha
Comprehensive Python library for astronomy and astrophysics.
SkillDFreshness: DClaude Code +9 - 0.236score
astropy
agent-skills-hub
Comprehensive Python library for astronomy and astrophysics.
SkillDFreshness: D★ 123Claude Code +9
More from mugpeng
- 0.448score
academic-search
mugpeng
学术论文搜索、引用分析与元数据提取专用 Skill。 【自动触发条件——出现以下任一信号时立即加载本 Skill,无需用户显式说明】 意图信号(中文): - 搜论文 / 找论文 / 查论文 / 调研论文 / 检索文献 / 文献综述 / 综述 - 顶会 / 顶刊 / CCF / NeurIPS / ICML /…
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
aminer-data-search
mugpeng
使用 AMiner 开放平台 API 进行学术数据查询与分析。当用户需要查询学者信息、论文详情、机构数据、期刊内容或专利信息时使用此 skill。 触发场景:提到 AMiner、学术数据查询、查论文/学者/机构/期刊/专利、学术问答搜索、引用分析、科研机构分析、学者画像、论文引用链、期刊投稿分析等。 支持 6…
SkillDFreshness: D★ 2Claude Code +9 - 0.441score
self-reflection
mugpeng
Periodic self-reflection on recent sessions.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
autoglm-open-link
mugpeng
使用 AutoGLM Open Link 接口打开指定网页并提取页面正文内容。当用户需要读取某个网页详情、提取文章全文、抓取页面正文做摘要或分析时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-websearch
mugpeng
使用 AutoGLM Web Search 接口进行网络信息搜索。当用户需要联网搜索、查询最新资讯、检索网页内容或获取实时信息时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-deepresearch
mugpeng
对用户提出的课题进行深度研究和调研,输出结构化的深度报告。当用户需要深入了解某个话题、做行业调研、专题研究、竞品分析等场景时使用此 skill。 与普通搜索不同,deepresearch 会先做少量定向搜索,再对少量关键页面进行深度阅读,过程中优先展示中间发现,最后再做总结,避免因调用次数过多导致响应过慢。…
SkillDFreshness: D★ 2Claude Code +9
Cite this page
astropy skill. Agent Mart. https://agentmart.dev/skills/mugpeng-astropy (last updated 2026-10-24)