Skip to content

Add units to simulation results files #629

Description

@lassoan

Problem

I'm working on adding simulation result visualization to 3D Slicer and what I am missing is a way to reliably determine the unit system (cgs, mm-g-s, mm-kg-s, ...), units of each quantity (e.g., speed: cm/s or length/time), and other metadata (such as anatomical coordinate system convention - LPS or RAS). Units are not only for labeling but for data transformation: we need to convert mesh point coordinates and all quantities to mm based unit system, as mm is used for all clinical imaging.

Currently, we need to manually specify coordinate system and unit system and use some heuristics based on array names to figure out how to scale them, but it is quite fragile. Could you add field data arrays to specify these information?

Solution

Save unit system, units for each point/cell array, and additional metadata (such as anatomical coordinate system) in the output mesh.

Additional context

It would be nice if this could become a commonly used standard across different solvers.

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions