Skip to content

Script to download and parse W1 to W6 parameters needed for TS05 external geomagnetic field model.

License

Notifications You must be signed in to change notification settings

COR-Cut-off-rigidity/TS05-Parameters-Downloader

Repository files navigation

TS05 Parameters Downloader

This script downloads 5 minute interval data from omni_5min 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.

Requirements

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.

Additional requirements

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.

Run instructions

If you have all the requirements, you just need to run python3 ./pull_w.py

Output file description

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:

  1. year specifying the year;
  2. doy specifying the Day of Year;
  3. hour specifying the hour;
  4. W1 parameter value for a given timestamp
  5. W2 parameter value for a given timestamp
  6. W3 parameter value for a given timestamp
  7. W4 parameter value for a given timestamp
  8. W5 parameter value for a given timestamp
  9. W6 parameter value for a given timestamp

About

Script to download and parse W1 to W6 parameters needed for TS05 external geomagnetic field model.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published