# # moonpos-1.2 # 2022 March 9 # Paul Ray # # Install CSPICE on your machine: http://naif.jpl.nasa.gov/naif/toolkit_C.html # Mac users can use MacPorts (port install cspice) # Put the following files in your data directory: # pck00010.tpc # naif0012.tls # de421.bsp # You get these from here: # http://naif.jpl.nasa.gov/naif/data_generic.html # Go to the FTP site on that page # The pck file is in the "pck" subdir # The naif0010.tls file is in the "lsk" subdir # The de421.bsp file is in the "spk/planets" subdir # Edit the Makefile to point to the SPICE data directory you created above ### IMPORTANT! Then, modify the fermikernel.tm file to point to the directory where the data files are installed Also, modify FT2.setup to have the correct path name for the leapseconds file # Get an FT2 file that you want to process # Create FT2.in file python parseFT2.py .fits # Make Fermi-FT2.spk file from the FT2.in file # On some platforms the command is "CSmkspk" instead mkspk -setup FT2.setup # You can now delete FT2.in if you want. Only the Fermi-FT2.spk file is needed to run the code # Update FT2 file with MOON columns ./moonpos .fits # Now, you can use the .fits file just like your origninal FT2 file, but it has 2 extra columns