Implementation of the NN2 algorithm
We here provide a Python implementation of the NN2 method described in Barris et al. (2005, AJ, v130, n5) .
The file immediately below is a tarball with the "nn2.py" routine, a sample lightcurve file, and the corresponding sample output file.
Please see the README file included in the tarball for pointers on getting started with "nn2.py".
Below we also provide two C routines--"antivec.c" and "invert_c.c"--that implement the main aspects of the NN2 technique. These libraries are not needed for the Python version; they are merely included here for the convenience of the interested programmer. If there is sufficient demand, we may write a full version of our code in C.
We welcome the inquiries of anyone who is interested in using the NN2 method and are happy to provide assistance with installation and usage upon request. Please contact Michael Wood-Vasey wmwood-vasey@cfa.harvard.edu with any questions, suggestions, or pleas for help.