noelex / GeographicLib.NET

A native .NET implementation of GeographicLib written in pure C#.
https://geographiclib.sourceforge.io/
MIT License
32 stars 3 forks source link

Construct MagneticModel from byte array(s) #30

Closed bjornaadland closed 8 months ago

bjornaadland commented 8 months ago

GeographicLib.NET already supports constructing Geoid from byte array: https://github.com/noelex/GeographicLib.NET/pull/23

Is it possible to add similar functionality to MagneticModel constructor, with one byte[] for the WMM data, and another byte[] for the coefficients?

This is very convenient if the data file(s) are embedded in a DLL as resources.

Thanks!

noelex commented 8 months ago

This is now supported in v2.3.1-preview.1. Please try out.

bjornaadland commented 8 months ago

I just tested the MagneticModel constructor using byte[] in v2.3.1-preview1, it is working great. Thanks for the quick response.