Aviary icon indicating copy to clipboard operation
Aviary copied to clipboard

Small Mission.Design.RANGE Unit Suggestion

Open OscarEspinosaBarcenas opened this issue 8 months ago • 1 comments

Hi everyone,

Just noticed a tiny inconsistency: Mission.Design.RANGE uses "NM" (nautical miles), while other units are typically lowercase. To make Aviary a bit more user-friendly, maybe we could allow both "NM" and "nm"?

Current Behavior

Inputting Mission.Design.RANGE with "nm" leads to incorrect interpretation.

Proposed Behavior

Aviary accepts both "NM" and "nm" for Mission.Design.RANGE.

Thanks for considering! Oscar

OscarEspinosaBarcenas avatar Apr 03 '25 13:04 OscarEspinosaBarcenas

Hey, Oscar. Thanks for your issue submission. Aviary relies on OpenMDAO's units library for their definitions, and in that system, "nm" is already used for nanometers.

Kenneth-T-Moore avatar Apr 03 '25 17:04 Kenneth-T-Moore

This is the full units list that openmdao uses: https://openmdao.org/newdocs/versions/latest/features/units.html "NM" and "nmi" should work for nautical miles. Because Aviary uses openmdao to do all unit conversions we unfortunately can't make any custom changes to unit definitions on our end

jkirk5 avatar Aug 25 '25 18:08 jkirk5