Skip to content
Back to skills

Time Coordinates

ASecurity

"Use Astropy Time and coordinates for timescales, formats, frames,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolsangulargitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill time-coordinates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Time Coordinates?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Time Coordinates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-time-coordinates/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-time-coordinates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: time-coordinates
description: "Use Astropy Time and coordinates for timescales, formats, frames,
  transformations, separations, matching, observatory geometry, and solar-system
  helpers."
metadata:
  disco-role: operating
disable-model-invocation: true
license: BSD 3-Clause
---

# Time and Coordinates Router

Use this sub-skill when a task asks for time scales/formats or astronomy
coordinate objects and transformations.

## Load This When

- The task mentions `Time`, `TimeDelta`, UTC/TAI/TT/TDB, Julian dates, ISO
  formats, precision, leap seconds, or observatory location on a time object.
- The task uses `SkyCoord`, `Angle`, `Longitude`, `Latitude`, `EarthLocation`,
  ICRS/FK5/Galactic/AltAz/Galactocentric, or `transform_to`.
- The user needs angular separation, catalog matching, proper motion, radial
  velocity, or space-motion propagation.
- Observation planning requires AltAz transforms, local sidereal time, Sun/Moon
  positions, or no-network handling for IERS data.

## Route Away When

- Pixel/world transformations from FITS WCS are central; use
  `../wcs-nddata/SKILL.md`.
- Unit conversion itself is the obstacle; use `../units-constants/SKILL.md`.
- Remote-data cache/config policy is the main question; use
  `../cli-config-data/SKILL.md`.
- Table serialization of coordinates is central; use `../tables-io/SKILL.md`.

## First Actions

1. Identify input types: strings, numbers, arrays, `Quantity`, `Time`,
   `SkyCoord`, frame object, or table columns.
2. Make time scale and format explicit: `Time(value, format=..., scale=...)`.
3. Attach location when needed for local or Earth-rotation dependent results.
4. Construct `SkyCoord` with units and a frame; do not assume degrees for raw
   numbers unless the user says so.
5. For transforms, use `coord.transform_to(target_frame_or_name)` and validate
   representative outputs.
6. For matching, keep returned index, separation, and 3D distance together.
7. For offline/reproducible tasks, set IERS/network policy before transforms
   that need Earth orientation data.

## References

- [references/api-reference.md](references/api-reference.md) lists constructors,
  methods, frame and matching APIs.
- [references/workflows.md](references/workflows.md) covers time conversion,
  coordinate transforms, matching, AltAz observation planning, proper motion,
  and offline-safe settings.
- [references/troubleshooting.md](references/troubleshooting.md) covers units,
  frame attributes, IERS warnings, name-resolution/network traps, and array
  shape issues.

## Safety and Validation

- Always state angle units and time scale.
- Avoid name resolution in unattended tasks unless network access is explicit;
  prefer literal coordinates.
- Validate transforms with sanity checks: finite angles, expected frames,
  round-trip where appropriate, and separations in angular units.
- Do not treat WCS pixel coordinates as `SkyCoord` without a verified WCS
  transformation.

## Native-Backed Validation Ideas

- Convert a UTC `Time` to JD and assert the known result for J2000-like inputs.
- Build an ICRS `SkyCoord`, transform to Galactic, and assert finite longitude
  and latitude.
- Match a two-object catalog and assert the returned index and separation units.

Files in this skill

  • SKILL.md3.2 KB
  • references/api-reference.md2 KB
  • references/troubleshooting.md1.7 KB
  • references/workflows.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…