manage_field_metadata

Preserve 4D field structure and unit consistency during gwexpy domain transformations.

1|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/tatsuki-washimi/gwexpy --skill manage-field-metadata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage_field_metadata
Source: https://github.com/tatsuki-washimi/gwexpy/tree/main/.agent/skills/manage_field_metadata
Command: npx skills add https://github.com/tatsuki-washimi/gwexpy --skill manage-field-metadata

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Multi-dimensional field data (such as ScalarField) often loses structural metadata or dimensionality during indexing, slicing, or domain transformations. This Skill provides patterns to maintain a consistent 4D structure and ensure unit consistency across transformations.

Core Features & Use Cases

  • Metadata-Preserving 4D structure: preserves axes so metadata is not lost when reducing or selecting data.
  • Domain conversion and coordinate updates: automatically updates data values, axis coordinates, axis names, and domain state during time/space/frequency/wavenumber transformations.
  • Spectral unit tracking and validation: propagates physical units through transforms and validates readiness for spectral analyses.
  • Use cases include maintaining dimensional integrity in gwexpy field workflows, enabling safe FFT/PSD transitions, and guarding against accidental metadata drift in multi-field pipelines.

Quick Start

Apply the manage_field_metadata workflow to a 4D field to preserve structure and units during domain transforms.

Frequently Asked Questions about manage_field_metadata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve 4D field structure and units during domain transformations?

To preserve 4D field structure and units during domain transformations, apply validation checks and automatic axis naming to maintain metadata and coordinate updates across time, space, frequency, and wavenumber conversions.

Why does multi-dimensional field data lose structural metadata during indexing?

Multi-dimensional field data loses structural metadata during indexing because standard slicing operations drop axis coordinates. Preserving a consistent 4D structure requires applying domain state updates to prevent dimensionality loss.

How do I track spectral units through FFT and PSD transitions?

You track spectral units through FFT and PSD transitions by propagating physical units during domain transformations and applying validation checks to ensure the field is ready for spectral analysis.

Can I use gwexpy field operations for safe time and frequency domain conversions?

Yes, you can use gwexpy field operations for safe time and frequency domain conversions by implementing automatic axis naming and domain state updates to guard against accidental metadata drift.

What is the best way to prevent dimensionality loss in multi-field pipelines?

The best way to prevent dimensionality loss in multi-field pipelines is to maintain a consistent 4D structure with metadata-preserving validation checks during indexing and domain transformations.