This script downloads 5 minute interval data from omni_5min_def spacecraft (dataset) from OmniWeb. Data is valid for interval 1.1.1995 until newest available data. Which are then used to evaluate W1..W6 indices needed for TS05 external magnetic field model. This script uses multithreading and so will utilize your CPU as much as possible.
To run the script you need Python and pip installed. This script was developed with Python 3.10.6, but it might work with earlier versions. To install the required packages just run pip3 install -r requirements.txt
.
This script relies on Fortran programs originally developed by Dr. N. A. Tsyganenko available from his website. To compile them you will need a Fortran compiler for example the GNU Fortran compiler. On Ubuntu, you can install it with the command sudo apt install gfortran
. Original versions of these scripts can be found here:
For better interoperability changes were made. These programs can be found in the /fortran/ directory. To compile them run bash compile.sh
and to test them run bash test.sh
.
Besides them, you will also need the Parameters.par file.
If you have all the requirements, you just need to run python3 ./pull_w.py
Data is stored in the output file with the name OMNI_W1_W6.dat
which contains 9 columns. The description of each column is following:
year
specifying the year;doy
specifying the Day of Year;hour
specifying the hour;W1
parameter value for a given timestampW2
parameter value for a given timestampW3
parameter value for a given timestampW4
parameter value for a given timestampW5
parameter value for a given timestampW6
parameter value for a given timestamp