To download the OBSERVATORY_FILE
data, use the following procedure:
- Register for an account at https://supermag.jhuapl.edu/mag/?tab=register
- Go to https://supermag.jhuapl.edu/mag/?tab=customdownload
- Select either "High Fidelity" (1 second time resolution) or "Low Fidelity" (1 minute time resolution) data
- Select the time range on the right side of the page
- select the stations to download
- Scroll down and choose CSV as the output format
- keep all other options as default
- Enter Security Code
- Click
Download Megnetometer Data
To run the code, use the following procedure:
- Download the data using the procedure above
- edit the
graphMap.m
file to pointOBSRVATORY_FILE
parameter to the correct data file - run the
graphMap.m
file
The file graphMap.m
will output a map of the stations and the data points that were downloaded. The data points are color coded based on the magnitude of the magnetic field at that point. The color scale is shown on the right side of the map. The map is saved as a .png
file in the figures
folder in the same directory as the graphMap.m
file.
After generating the frames using the Matlab code (saved in the figures
folder), they can be converted to a gif using the Python code.
- Install the required packages using
pip install -r requirements.txt
- Place the images from
figures
into theanimation
folder - Run
create_animation.py
The file create_animation.py
will output a gif file in the parent folder (software
) of animation
folder. The gif file is named animation.gif
.