-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assistance in operation and setup #18
Comments
Which language are you wanting to use IRI2016 from ultimately? From Python or Matlab? |
@scivision , I want to use IRI in Python. That is, in the end it must be a command or a function in the code, which, at certain coordinates and time, gives the value of the electron concentration of the F2 layer to a variable. |
This example shows the many variables you can get, and plots Electron number density vs time and altitude. If you don't have Jupyter Notebook, you can just copy and paste the code into a .py file and run from Python as a script. https://github.com/space-physics/iri2016/blob/master/Examples/Plasma%20Variables.ipynb |
I did as you said: for the sake of example, I decided to insert a code snippet into a .py file and it gives an error of the following kind (in debug mode):
If you run the code without debugging, the error code is as follows: `Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): What could cause this? the Fortran compiler is installed in accordance with the instructions from README.md, all files are updated and it is also registered in the PATH path. |
it appears like CMake might not be installed on your computer. I updated the code to give a clearer error message when this is so. |
You were right, CMake was missing. I installed it, added it to PATH. As I understood now, it cannot find the Fortran compiler. `Traceback (most recent call last):
|
It appears that CMake is unable to find Ninja or GNU Make. python -m pip install ninja then try running IRI2016 again. |
I followed your advice and you were absolutely right. Sorry, a new bug has appeared. `Configure project Tell CMake where to find the compiler by setting either the environment -- Configuring incomplete, errors occurred! Tell CMake where to find the compiler by setting either the environment -- Configuring incomplete, errors occurred! As I understand it, it cannot find the path to Fortran. Fortran is added to PATH, how can it get around it then? Could there be an error in the path registers? |
I would delete your "build/" directory just to be sure. Secondly, I would set environment variable FC=gfortran as follows depending on what shell you use:
you should be able to just type |
I don't have access to my work computer right now. Tomorrow I will return to him and try to follow your advice. I would like to thank you in advance for your help. There are few people who guide newcomers like this and give them valuable advice. |
Thanks for reporting these issues. Yes the ones developing tend to forgot the little techniques that users may not be aware of. |
I have verified that GFortran was installed correctly as you said, verified that the gfortran --version cmd command responds correctly. But for some reason now everything has returned to the old error, which indicates that SMake is not installed on the computer. |
Hello. I would not pose this question unless absolutely necessary. I am writing my thesis and it is based on your ionospheric model. Unfortunately, I am just starting my path in program design and still cannot figure out how to work with it correctly and what list of commands is available. Searching with Google and looking at almost all files in the repository did not give any answers (the README.tht file was the first one read).
I will say in advance that the library itself is installed on the PC, the Fortran compiler is also installed and configured to work. What needs to be done so that I can receive data on the state of ionization of the ionosphere based on time, certain coordinates and altitude?
Please help in using this library. Thank you very much in advance.
The text was updated successfully, but these errors were encountered: