This script downloads 1 hour interval data from omni2 spacecraft (dataset) from OmniWeb. Data is valid for interval 1.1.1968 untill newest available data.
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
.
If you have all the requirements, you just need to run python3 ./pull_parmod.py
The script creates the following files in the current directory when run:
-
parmod_new_intermediate.dat
this file contains intermediate products straight from OmniWeb. Missing values are indicated by value 999.9 in the case of the intensity ofy
andz
components of the interplanetary field, 99.99 in the case ofpdyn
, and 99999 in the case ofDst
index. This file contains the following columns:year
specifying the year;month
specifying the month;day
specifying the day;hour
specifying the hour;doy
specifying the Day of Year;By
intensity ofy
component of the interplanetary field;Bz
intensity ofz
component of the interplanetary field;pdyn
dynamic pressure of solar wind (innPa
) at a given date and time;Dst
index (innT
).
-
parmod_new_interp.dat
this file contains linearly interpolated intermediate data with an indication of which values were missing. The file format is the same as in theparmod_new_intermediate.dat
with an additional column that contains anASCII
encoded decimal value which is the result of bitwise or (or numerical add) operation of values representing missing columns before interpolation where the following values have the following meaning:0000 0100
(4) - a value ofBy
was missing and the current value in the appropriate column was computed by linear interpolation;0000 1000
(8) - the value ofBz
was missing and the current value in the appropriate column was computed by linear interpolation;0000 0010
(2) - the value ofpdyn
was missing and the current value in the appropriate column was computed by linear interpolation;0001 0000
(16) - the value ofDst
was missing and the current value in the appropriate column was computed by linear interpolation.