jacobwilliams / Fortran-Astrodynamics-Toolkit

A Modern Fortran Library for Astrodynamics 🚀
Other
175 stars 50 forks source link

Issue Re get_third_party.sh and RPi3 Stretch #10

Closed CumuloEpsilon closed 6 years ago

CumuloEpsilon commented 6 years ago

Thank you for the excellent project Jacob. I am installing FAT on the Raspberry Pi 3, debian STRETCH (current Raspbian Nov 2017). Several issues arise, one with making the .405 and .421 ephemeris file via your script get_third_party.sh as noted here. I mention that for Raspbian the gfortran must be installed via 'sudo apt-get install gfortran' and gives gfortran v6.3.0-18+rpi1. Raspbian python 2 and 3 are both installed.

ISSUE: The script get_thirdparty.sh works beautifully except for the sed command which fails (sed: -e expression #1, char 1:unknown command: ''), and by consequence this does not uncomment the NRECL=4 line in asc2eph.f file, and by consequence the cat commands for producing the binary .405 and . 421 ephemeris files fails, and so on failure for these files. I am not skilled enough suggest a revision to the sed command, but leave that to your perview. {I ran the script, noted the error, manually fixed the asc2eph.f file and manually ran the commands from gfortran ...to the last... mv . }

COMMENT: I think it would also be helpful to us linux newbies, and seems correct to me, that we make clear in instruction that (for Raspbian) the python-matplotlib (sudo apt-get install python-matplotlib -note this is for python 2) must be installed, then fobis and ford installed (sudo pip install ford FoBiS -note again for python 2), THEN the pyplot-fortran module downloaded and built using its ./build command (and these resulting files may need to also be moved ?), THEN the get_third_party.sh script should be run BEFORE FINALLY building FAT using the fat ./build.sh command. Whew, lots of prerequisites. But worth doing, because you've done a brilliant job with this project Thank you for your work.

CumuloEpsilon commented 6 years ago

RESULTS OF TOOLKIT UNIT TESTS The Raspberry Pi 3 is a neat bit of kit, a credit card size <10 Watt quad core 1.0 GHz ARM Cortex-A53 CPU with 1 GB RAM and running a version of debian linux called Raspbian. I'm guessing, but I figure it is much more powerful than the on-board computer our astronauts had on Apollo missions. At less than $50 US, what's not to like. But don't take my word for it, try it yourself!

And when you do, and crank up the Fortran Astrodynamics Toolkit software, here are the results you can expect from the unit tests. (Attached tests.txt). Enjoy. tests.txt

-CumuloEpsilon