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.datthis file contains intermediate products straight from OmniWeb. Missing values are indicated by value 999.9 in the case of the intensity ofyandzcomponents of the interplanetary field, 99.99 in the case ofpdyn, and 99999 in the case ofDstindex. This file contains the following columns:yearspecifying the year;monthspecifying the month;dayspecifying the day;hourspecifying the hour;doyspecifying the Day of Year;Byintensity ofycomponent of the interplanetary field;Bzintensity ofzcomponent of the interplanetary field;pdyndynamic pressure of solar wind (innPa) at a given date and time;Dstindex (innT).
-
parmod_new_interp.datthis 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.datwith an additional column that contains anASCIIencoded 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 ofBywas missing and the current value in the appropriate column was computed by linear interpolation;0000 1000(8) - the value ofBzwas missing and the current value in the appropriate column was computed by linear interpolation;0000 0010(2) - the value ofpdynwas missing and the current value in the appropriate column was computed by linear interpolation;0001 0000(16) - the value ofDstwas missing and the current value in the appropriate column was computed by linear interpolation.