Skip to content

peterjdolan/EGM96.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EGM96 in Julia

This is a direct port of the EGM96 model as defined by the NGIS. More information can be found at http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html.

Mac + Linux Build Status Windows Build status codecov

EGM96 EGM96

Licensing

EGM96.jl wraps a C-translation of a Fortran program that was provided by the U.S. government, implementing the EGM96 data model, which was produced and published by the U.S. government. The relevant licenses are as follows:

Implementation

This Julia module depends directly and indirectly on the base Fortran implementation of EGM96 as provided by the NGIS. A Fortran implementation of EGM96 was provided at http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html

This implementation depends on an automatic translation of that Fortran code to C, which was downloaded from https://sourceforge.net/projects/egm96-f477-c/ on September 29, 2016.

This automatic translation was modified only by removing the main method, which was then reimplemented in Julia so that the functionality can be made available programmatically (the library as originally implemented depended on an INPUT file being provided, the binary executed, and a resulting OUTPUT file being then consumed).

Development

Because this library depends on a C library, testing relies on having built and installed the shared object. After that is done, testing of the Julia code can be done more directly.

First, install the package locally. This will only install the latest code that's committed to your local git repository, and will not pick up any uncommitted changes.

git commit -a -m "working"
make clean install

Then, testing can be done easily (and using uncommitted changes to the Julia code) with:

julia test/runtests.jl

About

The official 1996 NASA GSFC and NIMA Earth Gravitational Model

Resources

License

Stars

Watchers

Forks

Packages

No packages published