Astropy fits image summary starter
Skill ma-compbio-lab/SkillFoundry/skills/physics-and-astronomy/astropy-fits-image-summary-starter
A framework for discovering, compiling, and validating reusable skills for scientific agents.From the repository description
npx -y skills add ma-compbio-lab/SkillFoundry --skill astropy-fits-image-summary-starterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.1 KB, 271 tokens by cl100k_base, as published. Nobody here has run it
Astropy FITS Image Summary Starter
Use this skill to generate or load a tiny FITS image with astropy.io.fits and summarize the core image and header metadata.
What it does
- Builds a deterministic toy 2D FITS image when no input file is supplied.
- Writes the FITS file to disk when requested and reloads it through Astropy.
- Reports image shape, mean, standard deviation, and a few astronomy-style header fields.
When to use it
- You need a runnable starter for
Telescope image preprocessing. - You want a verified FITS I/O example before scaling to real sky-survey or instrument data.
Example
slurm/envs/astronomy/bin/python skills/physics-and-astronomy/astropy-fits-image-summary-starter/scripts/run_astropy_fits_image_summary.py \
--fits-out scratch/astronomy/toy_image.fits \
--out scratch/astronomy/toy_image_summary.json
Verification
- Skill-local tests:
python3 -m unittest discover -s skills/physics-and-astronomy/astropy-fits-image-summary-starter/tests -p 'test_*.py' - Repository smoke:
python3 -m unittest tests.smoke.test_phase30_empty_domain_seed_skills -v
What ships with it: 7 files
6.4 KB alongside SKILL.md, 2 of them executable
assets/
- README.md83 B
- toy_image_summary.json314 B
examples/
- README.md99 B
scripts/
- run_astropy_fits_image_summary.pyruns2.6 KB
tests/
- test_run_astropy_fits_image_summary.pyruns1.9 KB
- metadata.yaml1.3 KB
- refs.md181 B