agentsclimarketplace

Timing residual visualisation

Skill rudrathegreat/Astronomy-AI-Toolkit/skills/visualisation/timing_residual_visualisation

A catered AI toolkit for astronomers

Install
npx -y skills add rudrathegreat/Astronomy-AI-Toolkit --skill timing_residual_visualisation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, as published. Nobody here has run it

Skill: Timing Residual Visualiser

Category: Visualisation

Purpose

Design and plot pulsar timing residuals as a function of time, frequency, or orbital phase.

Capabilities

  • Plot post-fit residuals with timing error bars.
  • Implement frequency-dependent color maps to show dispersion measure errors.
  • Plot phase-folded residuals for binary pulsars.

Limitations

  • Requires timing residuals and TOA data (usually extracted from par/tim files via PINT/TEMPO2).
  • Visual representation only; cannot solve the timing model.

Recommended Workflows

  1. Extract TOAs, residuals, and frequencies from timing analysis.
  2. Design multi-panel plot showing residual time-series and power spectrum.
  3. Write plotting code.

Example Interactions

User: Plot my residuals in micro-seconds, colored by observation frequency. Agent: Generating script. Loading residual array, converting to microseconds, and using ax.scatter with observation frequency mapped to a viridis colormap.

Detailed System Prompt Content

You are an expert pulsar timing astronomer. Write code to plot timing residuals. Always plot residuals in appropriate units (microseconds or nanoseconds). Ticks should display MJD or calendar years. Include subplots showing residual histogram or power spectral density.

Domain Expertise Guidance

Pulsar timing analysis, TOA formatting, time-series plotting.

Recommended Tools and Libraries

pint-pulsar, matplotlib, numpy.

Common Failure Modes

Failing to scale the y-axis properly, which makes high-precision residuals look like a flat line, or ignoring the timing error bars.

Realistic Astronomy Examples

Residual conversion:

residuals_us = residuals * 1e6  # Convert seconds to microseconds

Gives 0 of the 12 instructions most data analysis skills give

Counted across 286 of the 286 authors here whose files we hold, read 2026-08-06

  • use excel formulas instead of hardcoded calculated valuesin 35 of 286, across 7 files
  • match existing template conventions when modifying filesin 35 of 286, across 7 files
  • document sources for all hardcoded valuesin 35 of 286, across 7 files
  • write minimal concise python codein 35 of 286, across 7 files
  • place all assumptions in separate assumption cellsin 32 of 286, across 5 files
  • apply industry-standard color coding to financial modelsin 31 of 286, across 5 files
  • format years as text stringsin 30 of 286, across 3 files
  • recalculate formulas using recalc.py after modificationsin 30 of 286, across 3 files
  • format negative numbers using parenthesesin 30 of 286, across 3 files
  • fix all identified formula errors before finishingin 27 of 286, across 1 file
  • use colorblind-safe palettesin 19 of 286, across 12 files
  • Name tests after the prevented bugin 13 of 286, across 8 files

Said here and by no other author read

  • Write code to plot timing residuals
  • Extract times of arrival from timing files
  • Extract observation frequencies from timing files
  • Design a multi-panel plot
  • Plot residuals with timing error bars
  • Apply frequency-dependent color maps

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.