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.
供给资产档案
数据、BI 与分析
CSV, SQL, notebooks, dashboards, data pipelines, BI, ETL, and spreadsheet analysis.
场景
数据分析
I need my agent to analyze CSV data, produce insights, and explain trends.
适配 Agent
Claude Code + CLI + Codex
适用于 Codex、Claude Code、Cursor、CLI 或自定义 Agent。
安装
就绪
npx skills add K-Dense-AI/scientific-agent-skills --skill astropy
维护状态
新鲜
距上次推送 2 天
风险
需审查
Dependency or permission surface needs review
GitHub 质量
34K
92/100 质量 · 81/100 信任
覆盖标签
审查说明
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent 采用评分卡
一眼查看信任、审计与安装准备度
这些分数综合公开仓库元数据、OpenAgentSkill 审查信号、维护新鲜度与安装准备度。它用于候选筛选,不替代人工审查。
质量
优秀高置信候选,具有较强的采用度与健康维护信号。
信任
仅限沙盒有用但信任信号不足或混杂的候选项。在结果闭环证明任务匹配前,请保持在隔离工作区内使用。
审计
需审查对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。
OpenAgentSkill 信任评分 v5
安装前需人工审查
仅在沙盒中运行,并在用于真实工作前比较接近的替代方案。
Stars
34K 个 GitHub Stars
仓库活跃度
34K 个 Star,3.3K 个 Fork
维护状态
距上次推送 2 天
许可证
BSD-3-Clause license
安装
npx skills add K-Dense-AI/scientific-agent-skills --skill astropy
安装安全性
标准软件包或运行时安装路径
权限范围
shell or command execution, filesystem or document access
Agent 结果
暂未有 Agent 结果数据
文档
README/SKILL.md 上下文充分
风险摘要
生产前审查
- Permission surface needs review: shell or command execution, filesystem or document access
- Dependency/runtime risk: command execution surface, external package install surface
- Permission surface: shell or command execution, filesystem or document access
安装准备度
安装路径可用
- 安装路径可用
- 仓库证据可用
- 已声明许可证
- 暂无 Agent 验证结果证据
Agent 可读元数据
这个 Skill 的机器可读决策数据。
使用此区块或内嵌 JSON 判断 Agent 是否应安装该 Skill、选择替代方案,或先请求人工审查。
适用任务
- 工作流自动化 工作流
- Claude Code 团队
- 重视 GitHub 采用信号的团队
- Move data between tools
适用 Agent
安装决策
- 命令
- npx skills add K-Dense-AI/scientific-agent-skills --skill astropy
- 策略
- 审查
- 人工审查
- 是
信任与风险
- 信任
- 73/100
- 审计
- 87/100
- 风险级别
- 需审查
结果闭环
- 端点
- /api/agent/outcome
- 事件 ID
- resolve
- 结果
- 5
不适用场景
- 需要厂商支持 SLA 的团队
- 没有内部安全审查的高合规环境
- 当前元数据中未发现重大风险信号
- 高风险权限提示:Shell 或命令执行
- Dependency or permission surface needs review
Agent 安全 v2
55/100 · 安装前审查
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
高
Shell 或命令执行
Skill 元数据引用了终端、CLI、Shell、子进程或命令执行工作流。
中
网络访问
Skill 可能访问远程页面、API、仓库或外部服务。
中
文件系统访问
Skill 可能读取或写入项目文件、文档、生成产物或本地工作区状态。
中
数据库访问
Skill 可能检查 Schema、查询数据库或处理持久化存储。
- 高风险权限提示:Shell 或命令执行
- Dependency or permission surface needs review
安装目标
在你的 Agent 工作流中安装此 Skill
通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。
OpenAgentSkill CLI
Resolve policy, run the source installer safely, and report a verified install receipt.
$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install k-dense-ai-astropyAgent 解析计划
让 Agent 在安装前验证匹配度。
Resolve API 返回首选 Skill、替代方案、安全策略、审计说明、安装目标和可直接执行的提示词,无需抓取此页面。
打开 JSON
/api/agent/resolve?task=Use%20astropy%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve 文本
/api/agent/resolve?task=Use%20astropy%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
安装交接
/api/skills/k-dense-ai-astropy/install
Agent 应检查
- 从 Resolve API 检查任务匹配与替代方案。
- 检查审计评分、信任评分和安全策略警告。
- 检查 Codex、Claude Code、Cursor 或 CLI 的安装目标兼容性。
复制提示词
Task: Use astropy in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20astropy%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/k-dense-ai-astropy/install
Install command: npx skills add K-Dense-AI/scientific-agent-skills --skill astropy
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent 交接
把安装路径交给 Agent,而不是再给一个目录页。
通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。
安装交接
/api/skills/k-dense-ai-astropy/install
LLM 文本格式
/api/skills/k-dense-ai-astropy/install?format=text
寻找替代方案
/api/skills/search?q=astropy&limit=3
Agent 提示词
Use astropy for this task. Review https://www.openagentskill.com/api/skills/k-dense-ai-astropy/install, then install with: npx skills add K-Dense-AI/scientific-agent-skills --skill astropyRegistry 元数据
用于自动选择 Skill 的 Agent 可读档案。
本页通过 Registry API 提供相同的决策、信任、审计、场景和安装信号,让 Agent 无需抓取界面即可排序。
Agent 决策面板
适合 工作流自动化 的首选
将其作为优先候选,再在你的 Agent 环境中验证 README 与安装路径。
栈中角色
首选
主要匹配
工作流自动化
信任标签
可用于生产
安装路径
命令已就绪
适用场景
- 工作流自动化 工作流
- Claude Code 团队
- 重视 GitHub 采用信号的团队
证据
- 33,974 个 GitHub Stars
- 仓库近期活跃
- 已提供安装命令或 GitHub 仓库
- 92/100 质量档案
- 19 个 OpenAgentSkill 交互事件
先审查
- 当前元数据中未发现重大风险信号
实施路径
- 1在沙盒 Agent 中安装它,并端到端完成一次工作流自动化任务。
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
信任档案
仅限沙盒
有用但信任信号不足或混杂的候选项。在结果闭环证明任务匹配前,请保持在隔离工作区内使用。
GitHub 采用度
通过34K 个 GitHub Stars
Star/Fork 活跃度
通过34K 个 Star,3.3K 个 Fork; 当前元数据中没有议题活跃度信息
近期维护
通过距上次推送 2 天
许可证清晰度
通过BSD-3-Clause license
积极信号
- AI 审查已通过
- 安装路径可用
- 仓库证据可用
- 近期维护的仓库
- Large GitHub adoption signal
- 安装命令未发现明显高风险模式
- 结果闭环已就绪,但需要首次真实 Agent 运行
安装前审查
- Permission surface needs review: shell or command execution, filesystem or document access
- Dependency/runtime risk: command execution surface, external package install surface
- Permission surface: shell or command execution, filesystem or document access
- 暂未有真实 Agent 结果报告
- 无人值守安装前需要人工审查
建议操作
仅在沙盒中运行,并在用于真实工作前比较接近的替代方案。
质量档案
优秀 适用于 Agent 工作流的候选
高置信候选,具有较强的采用度与健康维护信号。
工作流匹配
在这些场景使用此 Skill
Automate repeated work
Workflow automation
I need my agent to automate a repeated workflow across tools and files.
Analyze datasets
Data analysis
I need my agent to analyze CSV data, produce insights, and explain trends.
Build and ship code
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
工作流匹配
加入完整工作流
Inspect, patch, and verify code
Coding review agent
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Find, compare, and synthesize
Research report agent
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
Content growth agent
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
替代方案短名单
安装前对比
可能适合该任务的相近 Skill。
D3
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Echarts
Apache ECharts is a powerful, interactive charting and data visualization library for browser
Data Science For Beginners
10 Weeks, 20 Lessons, Data Science for All!
Sequelize
Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB, DB2 and DB2 for IBM i.
概览
--- name: astropy description: 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. license: BSD-3-Clause license compatibility: Requires Python 3.11+ with astropy installed (uv for package installation). Some features (object name resolution, site lookups, remote FITS reads, IERS updates) need network access. metadata: version: "1.2" skill-author: K-Dense Inc. ---
# 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) - Access and modify columns and rows - Sort, filter, and index tables - Perform database-style operations (join, group, aggregate) - Stack and concatenate tables - Work with unit-aware columns (QTable) - Handle missing data with masking
**See:** `references/tables.md` for table creation, I/O operations, data manipulation, sorting, filtering, joins, grouping, and performance tips.
### 6. Time Handling (`astropy.time`)
Precise time representation and conversion between time scales and formats.
**Key operations:** - Create Time objects in various formats (ISO, JD, MJD, Unix, etc.) - Convert between time scales (UTC, TAI, TT, TDB, etc.) - Perform time arithmetic with TimeDelta - Calculate sidereal time for observers - Compute light travel time corrections (barycentric, heliocentric) - Work with time arrays efficiently - Handle masked (missing) times
**See:** `references/time.md` for time formats, time scales, conversions, arithmetic, observing features, and precision handling.
### 7. World Coordinate System (`astropy.wcs`)
Transform between pixel coordinates in images and world coordinates.
**Key operations:** - Read WCS from FITS headers - Convert pixel coordinates to world coordinates (and vice versa) - Calculate image footprints - Access WCS parameters (reference pixel, projection, scale) - Create custom WCS objects
**See:** `references/wcs_and_other_modules.md` for WCS operations and transformations.
## Additional Capabilities
The `references/wcs_and_other_modules.md` file also covers:
### NDData and CCDData Containers for n-dimensional datasets with metadata, uncertainty, masking, and WCS information.
### Modeling Framework for creating and fitting mathematical models to astronomical data.
### Visualization Tools for astronomical image display with appropriate stretching and scaling.
### Constants Physical and astronomical constants with proper units (speed of light, solar mass, Planck constant, etc.).
### Convolution Image processing kernels for smoothing and filtering.
### Statistics Robust statistical functions including sigma clipping and outlier rejection.
## Installation
```bash # Reproducible install against the current stable release uv pip install "astropy==7.2.0"
# Recommended optional dependencies for plotting and common workflows uv pip install "astropy[recommended]==7.2.0"
# Full optional dependency set for broad astronomy workflows uv pip install "astropy[all]==7.2.0" ```
Astropy 7.2.0 requires Python 3.11+ and depends on NumPy, PyERFA, PyYAML, and packaging. Use an isolated virtual environment; do not install Astropy with elevated privileges.
Note that the `[recommended]` and `[all]` extras pull in transitive dependencies (matplotlib, scipy, etc.) at unpinned versions. For reproducible production environments, pin the full dependency tree with a lockfile (`uv lock` in a project, or `uv pip compile` for requirements files) and review the resolved versions before deploying.
## Common Workflows
### Converting Coordinates Between Systems
```python from astropy.coordinates import SkyCoord import astropy.units as u
# Create coordinate c = SkyCoord(ra='05h23m34.5s', dec='-69d45m22s', frame='icrs')
# Transform to galactic c_gal = c.galactic print(f"l={c_gal.l.deg}, b={c_gal.b.deg}")
# Transform to alt-az (requires time and location) from astropy.time import Time from astropy.coordinates import EarthLocation, AltAz
observing_time = Time('2023-06-15 23:00:00') observing_location = EarthLocation(lat=40*u.deg, lon=-120*u.deg) aa_frame = AltAz(obstime=observing_time, location=observing_location) c_altaz = c.transform_to(aa_frame) print(f"Alt={c_altaz.alt.deg}, Az={c_altaz.az.deg}") ```
### Reading and Analyzing FITS Files
```python from astropy.io import fits import numpy as np
# Open FITS file with fits.open('observation.fits') as hdul: # Display structure hdul.info()
# Get image data and header data = hdul[1].data header = hdul[1].header
# Access header values exptime = header['EXPTIME'] filter_name = header['FILTER']
# Analyze data mean = np.mean(data) median = np.median(data) print(f"Mean: {mean}, Median: {median}") ```
### Cosmological Distance Calculations
```python from astropy.cosmology import Planck18 import astropy.units as u import numpy as np
# Calculate distances at z=1.5 z = 1.5 d_L = Planck18.luminosity_distance(z) d_A = Planck18.angular_diameter_distance(z)
print(f"Luminosity distance: {d_L}") print(f"Angular diameter distance: {d_A}")
# Age of universe at that redshift age = Planck18.age(z) print(f"Age at z={z}: {age.to(u.Gyr)}")
# Lookback time t_lookback = Planck18.lookback_time(z) print(f"Lookback time: {t_lookback.to(u.Gyr)}") ```
### Cross-Matching Catalogs
```python from astropy.table import Table from astropy.coordinates import SkyCoord, match_coordinates_sky import astropy.units as u
# Read catalogs cat1 = Table.read('catalog1.fits') cat2 = Table.read('catalog2.fits')
# Create coordinate objects coords1 = SkyCoord(ra=cat1['RA']*u.degree, dec=cat1['DEC']*u.degree) coords2 = SkyCoord(ra=cat2['RA']*u.degree, dec=cat2['DEC']*u.degree)
# Find matches idx, sep, _ = coords1.match_to_catalog_sky(coords2)
# Filter by separation threshold max_sep = 1 * u.arcsec matches = sep < max_sep
# Create matched catalogs cat1_matched = cat1[matches] cat2_matched = cat2[idx[matches]] print(f"Found {len(cat1_matched)} matches") ```
## Best Practices
1. **Always use units**: Attach units to quantities to avoid errors and ensure dimensional consistency 2. **Use context managers for FITS files**: Ensures proper file closing 3. **Prefer arrays over loops**: Process multiple coordinates/times as arrays for better performance 4. **Check coordinate frames**: Verify the frame before transformations 5. **Use appropriate cosmology**: Choose the right cosmological model for your analysis 6. **Handle missing data**: Use masked columns for tables with missing values 7. **Specify time scales**: Be explicit about time scales (UTC, TT, TDB) for precise timing 8. **Use QTable for unit-aware tables**: When table columns have units 9. **Check WCS validity**: Verify WCS before using transformations 10. **Cache frequently used values**: Expensive calculations (e.g., cosmological distances) can be cached 11. **Be explicit about network access**: `SkyCoord.from_name()`, `EarthLocation.of_site(refresh_cache=True)`, `EarthLocation.of_address()`, `download_file()`, remote FITS reads, and some IERS time/coordinate transforms can contact external services or update local caches. Avoid sending sensitive target names, addresses, URLs, or proprietary file locations to third-party services. When working with potentially sensitive targets or data locations, confirm with the user before making these network calls. 12. **Pin for reproducibility**: Use pinned versions such
技术详情
- 版本
- 1.0.0
- 许可证
- BSD-3-Clause license
- 最近更新
- 2026年8月20日
- 发布时间
- 2026年8月20日
决策摘要
首选
33,974 个 GitHub Stars
Agent 验证证据
Agent 验证证据
来自解析、审查、安装和一次小范围运行后的结果报告。
- 成功率
- —
- 近期失败
- —
- 结果
- 0
- 输出质量
- —
- 失败
- 0
- 不相关
- 0
- 安装次数
- 0
- 风险拦截
- 0
- 需要配置
- 0
- 生产环境
- 0
暂时没有 Agent 结果数据。首次 Agent 执行可以通过 /api/agent/outcome 报告成功、需要设置、风险拦截、失败或不相关。
增长闭环
分享工具包
为 astropy 准备的场景化草稿,可手动发布到 X。
A practical pick for market research: astropy: Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinate... 34.0K stars https://www.openagentskill.com/skills/k-dense-ai-astropy?ref=x
可选:带安装命令的回复
Listing + install path for astropy: https://www.openagentskill.com/skills/k-dense-ai-astropy?ref=x Install: npx skills add K-Dense-AI/scientific-agent-skills --skill astropy
收录来源
Registry 收录
此列表来自公开来源,维护者认领获批前不会标记为官方。
- 创作者
- K-Dense-AI
- 收录方
- OpenAgentSkill 社区索引
归属链接指向公开仓库或创作者主页。创作者可认领列表以更新所有权信号。
认领此 Skill所有者认领
认领此 Skill 页面
这条 Registry 收录 列表归属于 K-Dense-AI,但尚未标记为官方。认领后可增加已验证所有者信号,使后续发布、安装和审计更新更值得信赖。
创作者外链工具包
将证据徽章加入你的 README
在开发者评估仓库的位置展示规范页面、当前信任与审计信号,以及真实的 Agent 验证证据。
[](https://www.openagentskill.com/skills/k-dense-ai-astropy)
[](https://www.openagentskill.com/skills/k-dense-ai-astropy)
[](https://www.openagentskill.com/skills/k-dense-ai-astropy/audit)
[](https://www.openagentskill.com/skills/k-dense-ai-astropy)作者
K-Dense-AI
@k-dense-ai
平台适配
健康信号
- GitHub Stars
- 34.0K
- 质量评分
- 55/100
- 最近 GitHub 推送
- 2026年8月20日
- 框架提示
- 未知
- OpenAgentSkill 浏览量
- 17
- 复制安装命令
- 0
- 跳转点击
- 0
社区信号
告诉我们这个 Skill 是否对你的 Agent 工作流有帮助。汇总反馈会持续改善排序。
信任与安全
仅限沙盒
- GitHub 采用度34K 个 GitHub Stars通过
- Star/Fork 活跃度34K 个 Star,3.3K 个 Fork; 当前元数据中没有议题活跃度信息通过
- 近期维护距上次推送 2 天通过
- 许可证清晰度BSD-3-Clause license通过
- README/SKILL.md 完整度元数据包含足够的用法与工作流上下文通过
- 依赖与运行时风险command execution surface, external package install surface检查
相关 Skill
D3
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
113.1K StarsEcharts
Apache ECharts is a powerful, interactive charting and data visualization library for browser
66.6K StarsData Science For Beginners
10 Weeks, 20 Lessons, Data Science for All!
35.6K StarsSequelize
Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB, DB2 and DB2 for IBM i.
30.4K Stars