Skip to content

Consider adding a scaling factor to units like astropy.units #43

@matterhorn103

Description

@matterhorn103

Kind of similar to how it is possible to produce a DerivedUnit with a constant in it, it would be cool to be able to express quantities as e.g. 300 (10^6 m), where the scaling factor is part of the unit. This would be mostly useful for use on matplotlib plots or in LaTeX table preparation etc.

ScaledUnit could work almost identically to a PrefixedUnit, where the "prefix" string is just the number, and the "multiplier" is the scaling factor. Units should be allowed both a prefix and a scaling factor though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    considerSomething to think aboutenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions