NSInterpolate is a geophysical gridding program based on NSInterp (Naprstek & Smith, 2019).
This is a Julia version based on the original C# version 1.8 which is available on github at:
https://github.com/TomasNaprstek/Naprstek-Smith-Interpolation
and published in:
T. Naprstek & R. S. Smith. (2019). A new method for interpolating linear
features in aeromagnetic data. Geophysics, 84(3), JM15-JM24.
https://library.seg.org/doi/10.1190/geo2018-0156.1
Thank you to Tomas Naprstek and Richard Smith for all their excellent work!
The only changes, other than those resulting from language translation, are at input and output.
Currently NSInterpolate.jl accepts a number of parameters to control the code. These may be passed directly to NSinterp, or may be stored in a JSON file in which case, the name of the JSON file should be passed to NSinterp.
Input located data is readable from a Geosoft XYZ text file.
The output grid is written to a netCDF4 file.
This is the first release of the Julia code and will likely contain bugs. In particular, the code makes some complex use of array indexing and the change from C#, with 0-indexing, to Julia, with 1-indexing, may have introduced some errors.
NSInterpolate is not a registered package. It may be installed (this is tested under Pluto) by
using Pkg
Pkg.add(url="https://github.com/bamburgh/NSInterpolate.jl")NSInterpolate runs (Jan 2026) under Julia 1.12 on macOS 15.7.2 using the latest Pluto.