Skip to content

No units were found for the given UnitSystem: Convert non-base units to SI #700

Closed
@SGStino

Description

@SGStino

Is your feature request related to a problem? Please describe.
Converting L/h to SI results in "No units were found for the given UnitSystem"

Describe the solution you'd like
I'd love to see the values as m³/s in the SI case.

The use-case is a .NET tool that collects data from various sources in various units (including some weird ones like hL/min, which causes another problem for the moment) and outputs them on a single channel in SI unit by convention.
This channel is used by multiple tools written in multiple languages, hence the SI convention.

Currently we have to remove the Unit from the value and apply a custom scale factor that we have to set it manually (=little more error prone)

this means:
output = input * 4.41631375E-05
instead of
output = VolumeFlow.FromOilBarrelsPerHour(input).As(UnitSystem.SI)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions