FitsLibrary

FitsLibrary is a high-performance .fits file reader and writer written in C#. The .fits format is a very old format used to store n-dimensional datasets. It is still the most widely used standard to store astronomical datasets, such as photos (which are 2 dimensional (monochrome) or 3 dimensional (RGB color) datasets) or radio astronomy data. Most specialized cameras for astrophotography output photos directly in the .fits file format.

After some searching I found that there are no libraries that can read / write .fits files in C# / .Net. There was one library however, which was written with .Net Framework 2.0 (extremely old) and was extremely slow. Hence my idea and need to create a own library to read and write .fits files.

To achieve maximum performance I used the new Span<T> class, which allows lightning fast, low-level memory access and handling of large datasets. Further, the INumber interface is used to handle generic numeric data in an easy way (new feature in .Net 7.0).

The library is published as a nuget package on the nuget.org store

The source code can be found here: https://github.com/RononDex/FitsLibrary