FITS Image Library for Swift.
This library provides a simple interface to read and write FITS files in Swift, based on the FITS 4.0 standard.
This project uses submodules.
To clone it, use the following command:
git clone --recursive https://github.com/macmade/SwiftFITS.git
import Foundation
import SwiftFITS
do
{
let file = try FITSFile( url: URL( fileURLWithPath: "/path/to/file.fits" ) )
if let header = file.header
{
print( header.properties )
}
}
catch // SwiftFITS.FITSError
{
print( error )
}
Project is released under the terms of the MIT License.
Owner: Jean-David Gadina - XS-Labs
Web: www.xs-labs.com
Blog: www.noxeos.com
Twitter: @macmade
GitHub: github.com/macmade
LinkedIn: ch.linkedin.com/in/macmade/
StackOverflow: stackoverflow.com/users/182676/macmade