Repository navigation
feat: add nautical unit conversions - #39
Merged
Merged
Conversation
ScottishTapWater
added this pull request to stack #41
October 25, 2026 10:11
ScottishTapWater
added a commit
that referenced
this pull request
Oct 25, 2026
## Summary Adds the opt-in `DimensionalQuantities.Extensions.CgsEmag` package on top of #39. It provides named conversions for practical CGS mechanical units (dyne, erg, barye, gal), CGS electromagnetic EMU electrical units (`ab` units and biot), and magnetic units (maxwell, gauss, oersted). The provider generates no SI-prefixed helpers. Core gains package-neutral `Acceleration`, `ElectricCharge`, and `Capacitance` quantity names. The README documents the package and clarifies that these are SI conversions, not a separate CGS dimension algebra. ## Verification - Release solution build: 0 warnings, 0 errors. - Full suite: 1,013 tests passed, including five CgsEmag tests and twelve packaged integration tests. - `dotnet pack` produced all runtime and symbol packages; package layout check passed. - `dotnet format --verify-no-changes --no-restore` passed for changed C# files. - Independent production and test reviews found no actionable issues. Factors follow [NIST SP 811 Appendix B.9](https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b9) and [NIST's magnetic-property unit table](https://www.nist.gov/document/magneticunitspdf). NIST distinguishes CGS EMU, ESU, and Gaussian systems; this package covers EMU electrical units and named magnetic conversions, not ESU electrical units.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the opt-in
DimensionalQuantities.Extensions.Nauticalpackage on top of #38. It provides conversions for the international nautical mile, fathom, square nautical mile, and knot. Ambiguous regional cable definitions are left out. The provider generates no SI-prefixed helpers.The README includes a short usage example. Packaged-consumer and symbol-package integration tests cover the new package.
Verification
dotnet packand package layout check passed for all solution packages and symbols.dotnet format --verify-no-changes --no-restorepassed for changed C# files.Definitions follow NOAA's nautical mile and knot reference and NOAA's charting distance conversions.