Skip to content

Commit 1912384

Browse files
authored
Merge pull request #1 from helioforecast/master
Merging updates
2 parents 7fafa85 + b0b8482 commit 1912384

48 files changed

Lines changed: 6386 additions & 5973 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
__pycache__
22
results
3+
real
4+
data
5+
build
6+
dist
7+
predstorm.egg*
38
sta_beacon
9+
predstorm/spice/kernels/*
410
*.png
11+
*.pickle
12+
*.log
13+
omni2*.*
14+
.DS*
15+
predstorm_real*

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 IWF-helio
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 35 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,58 @@
11
# PREDSTORM
22

3-
This is a python code for space weather prediction research.
3+
This is Python3 code for space weather prediction research.
44

5-
The package is used for research on predicting the background solar wind,
6-
high speed solar wind streams and solar storm magnetic flux ropes,
7-
based on data from solar wind monitors at the Sun-Earth L1 and L5 points,
8-
as well as from any spacecraft positioned east of the Sun-Earth line around or < 1 AU.
9-
We also derive predictions of the geomagnetic Dst index, Kp and auroral power.
5+
The package is used for predicting the background solar wind, high speed solar wind streams and solar storm magnetic flux ropes based on data from solar wind monitors at the Sun-Earth L1 and L5 points, as well as from any spacecraft positioned east of the Sun-Earth line around or < 1 AU. We also derive predictions of the geomagnetic Dst index, Kp and auroral power.
106

11-
Status: work in progress, 9 April 2019.
7+
Status in 2019: work in progress.
128

13-
If you want to use parts of these codes for generating results for
14-
peer-reviewed scientific publications, please contact us per email (see contributor biographies)
15-
or via twitter @chrisoutofspace (Christian Moestl).
9+
If you want to use parts of this code for generating results for peer-reviewed scientific publications, please contact us per email (see contributor biographies) or via twitter @chrisoutofspace (Christian Moestl).
1610

17-
## Dependencies
11+
## Installation
1812

19-
To install the packages that need to be added to an existing anaconda python3 installation (https://www.anaconda.com/distribution/),
13+
PREDSTORM is written in Python 3. Most dependencies (numpy, scipy, matplotlib) can be downloaded and used in an anaconda environment (https://www.anaconda.com/distribution/) and can be installed using the following lines:
2014

21-
* sunpy (https://github.com/sunpy/sunpy), cdflib (https://github.com/MAVENSDC/cdflib),
15+
conda install scipy numpy matplotlib scikit-learn seaborn requests-ftp beautifulsoup4
16+
conda install -c conda-forge spiceypy cftime
17+
conda install -c numba numba
2218

23-
use this on a command line:
19+
Remaining dependencies (particularly those for CDF handling) can be downloaded using pip:
2420

25-
```
26-
conda config --append channels conda-forge
27-
conda install sunpy
28-
pip install cdflib
29-
```
21+
pip install cdflib spacepy astropy
3022

31-
* predstorm_l5.py checks for an ffmpeg (for converting images, making movies) executable
32-
in the current directory, otherwise the system-wide available version is used.
23+
PREDSTORM also relies on the HelioSat package for all heliospheric data downloads and SPICE kernel handling. Currently it can be downloaded from GitHub:
24+
25+
git clone https://github.com/IWF-helio/HelioSat.git
26+
cd HelioSat
27+
python setup.py install
28+
29+
HelioSat automatically downloads kernels and all required satellite files (e.g. STEREO, DSCOVR, ...). To set the path where these files are downloaded to, set the following environment variable (in .bashrc on Linux, .bash_profile on Mac):
30+
31+
export HELIOSAT_DATAPATH="/path/to/data/heliosat"
32+
33+
It's a good idea to import the package after first installation to handle first download of all required SPICE kernels.
3334

3435
## Running the code
3536

36-
* On the command line:
37+
In the command line:
3738

38-
```
39-
python predstorm_L1.py
40-
python predstorm_L5.py
41-
python mfr_predict.py
42-
```
39+
python predstorm_l1.py
40+
python predstorm_l5.py
4341

44-
* use
45-
```
46-
python predstorm_L5.py --server
47-
```
48-
for Agg backend.
42+
Use the following option for the Agg backend in matplotlib:
4943

50-
* In ipython:
44+
python predstorm_l5.py --server
5145

52-
```
53-
run predstorm_l1
54-
run predstorm_l5
55-
run mfr_predict
56-
```
46+
### Notes
5747

48+
* Running the scripts creates the local folder /data. OMNI2 data, among other things, are automatically downloaded into this folder.
5849

50+
* Results are saved in the folder /results.
5951

60-
* Folder "data/" contains a position file for planets and spacecraft
61-
(to be replaced with positions in spiceypy/heliopy) and an unpublished v2.0 of the HELCATS ICME catalog.
62-
OMNI2 data are automatically downloaded in this folder.
52+
* Logs of the scripts are saved in predstorm.log.
6353

54+
## Contributors
6455

56+
IWF-Helio Group, Space Research Institute (ÖAW), Graz, Austria:
57+
* Christian Möstl
58+
* Rachel L. Bailey

data/HELCATS_ICMECAT_header.txt

Lines changed: 0 additions & 81 deletions
This file was deleted.

data/HELCATS_ICMECAT_v20_SCEQ.sav

-274 KB
Binary file not shown.

0 commit comments

Comments
 (0)