Astrophysics Data GuideSAFE
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
Overview
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
e1ba289846fdOBSERVED · 2026-10-08Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| openclaw | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
---
name: astrophysics-data-guide
description: "Astronomical data processing with Astropy, FITS files, and sky surveys"
metadata:
openclaw:
emoji: "🔭"
category: "domains"
subcategory: "physics"
keywords: ["astrophysics", "astronomy", "astropy", "fits", "photometry", "spectroscopy", "sky-survey"]
source: "wentor"
---
# Astrophysics Data Guide
A skill for processing and analyzing astronomical data using standard astrophysics tools. Covers FITS file handling, coordinate transformations, photometric analysis, spectral analysis, catalog cross-matching, and accessing major sky survey archives.
## Astronomical Data Formats
### FITS Files
FITS (Flexible Image Transport System) is the standard data format in astronomy:
```python
from astropy.io import fits
import numpy as np
def inspect_fits(filepath: str) -> dict:
"""
Inspect the structure of a FITS file.
Returns information about each HDU (Header/Data Unit).
"""
with fits.open(filepath) as hdul:
info = []
for i, hdu in enumerate(hdul):
entry = {
"index": i,
"name": hdu.name,
"type": type(hdu).__name__,
}
if hdu.data is not None:
entry["shape"] = hdu.data.shape
entry["dtype"] = str(hdu.data.dtype)
if hasattr(hdu, "columns") and hdu.columns is not None:
entry["columns"] = [c.name for c in hdu.columns]
info.append(entry)
return {"filename": filepath, "n_hdus": len(hdul), "hdus": info}
def read_fits_image(filepath: str, hdu_index: int = 0) -> tuple:
"""Read a FITS image and its WCS (World Coordinate System)."""
from astropy.wcs import WCS
with fits.open(filepath) as hdul:
data = hdul[hdu_index].data
header = hdul[hdu_index].header
wcs = WCS(header)
return data, wcs, header
```
### Working with FITS Tables
```python
from astropy.table import Table
def read_fits_catalog(filepath: str, hdu: int = 1) -> Table:
"""Read a FITS binary table extension as an Astropy Table."""
catalog = Table.read(filepath, hdu=hdu)
print(f"Catalog: {len(catalog)} objects, {len(catalog.columns)} columns")
print(f"Columns: {catalog.colnames}")
return catalog
```
## Coordinate Systems
### Astronomical Coordinate Transformations
```python
from astropy.coordinates import SkyCoord, EarthLocation, AltAz
from astropy.time import Time
import astropy.units as u
def coordinate_transforms(ra_deg: float, dec_deg: float) -> dict:
"""
Transform between astronomical coordinate systems.
ra_deg, dec_deg: right ascension and declination in degrees (ICRS/J2000)
"""
coord = SkyCoord(ra=ra_deg * u.degree, dec=dec_deg * u.degree, frame="icrs")
return {
"icrs": {
"ra": coord.ra.to_string(unit=u.hourangle, precision=2),
"dec": coord.dec.to_string(unit=u.degree, precision=2),
},
"galactic": {
"l": round(coord.galactic.l.degree, 4),
"b": round(coord.galactic.b.degree, 4),
},
"ecliptic": {
"lon": round(coord.geocentricmeanecliptic.lon.degree, 4),
"lat": round(coord.geocentricmeanecliptic.lat.degree, 4),
},
}
def compute_altaz(ra_deg: float, dec_deg: float,
obs_time: str, location: tuple) -> dict:
"""
Compute altitude and azimuth for a target from a given location and time.
location: (latitude_deg, longitude_deg, elevation_m)
"""
target = SkyCoord(ra=ra_deg * u.degree, dec=dec_deg * u.degree)
time = Time(obs_time)
loc = EarthLocation(
lat=location[0] * u.degree,
lon=location[1] * u.degree,
height=location[2] * u.m,
)
altaz_frame = AltAz(obstime=time, location=loc)
altaz = target.transform_to(altaz_frame)
return {
"altitude_deg": round(altaz.alt.degree, 2),
"azimuth_deg": round(altaz.az.degree, 2),
"airmass": round(altaz.secz.value, 3) if altaz.alt.degree > 0 else None,
"is_observable": altaz.alt.degree > 10,
}
```
## Photometric Analysis
### Aperture Photometry
```python
from photutils.aperture import CircularAperture, CircularAnnulus
from photutils.aperture import aperture_photometry
def perform_aperture_photometry(image: np.ndarray,
positions: list[tuple],
aperture_radius: float = 5.0,
annulus_inner: float = 10.0,
annulus_outer: float = 15.0) -> list[dict]:
"""
Perform aperture photometry with local background subtraction.
image: 2D numpy array (flux/counts)
positions: list of (x, y) pixel coordinates of sources
"""
apertures = CircularAperture(positions, r=aperture_radius)
annuli = CircularAnnulus(positions, r_in=annulus_inner, r_out=annulus_outer)
# Measure flux in aperture and annulus
phot_table = aperture_photometry(image, [apertures, annuli])
results = []
for row in phot_table:
# Background per pixel from annulus
annulus_area = np.pi * (annulus_outer**2 - annulus_inner**2)
bkg_per_pixel = row["aperture_sum_1"] / annulus_area
# Background-subtracted flux
aperture_area = np.pi * aperture_radius**2
net_flux = row["aperture_sum_0"] - bkg_per_pixel * aperture_area
# Instrumental magnitude
if net_flux > 0:
inst_mag = -2.5 * np.log10(net_flux)
else:
inst_mag = float("nan")
results.append({
"x": float(row["xcenter"]),
"y": float(row["ycenter"]),
"raw_flux": float(row["aperture_sum_0"]),
"net_flux": round(float(net_flux), 2),
"bkg_per_pixel": round(float(bkg_per_pixel), 2),
"inst_mag": round(inst_mag, 4),
})
return results
```
### Source Detection
```python
from photutiTrust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
e1ba289846fdfull audit observations/trust-audit/skill/brycewang-stanford__astrophysics-data-guide.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | e1ba289846fd | SAFE | B | 89 | first audit |
Questions
What does the Astrophysics Data Guide skill do?
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
Is Astrophysics Data Guide safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Astrophysics Data Guide access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Astrophysics Data Guide work with?
Its documentation mentions openclaw. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (e1ba289846fd), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.