Coder Social home page Coder Social logo

athkouloumvakos / swma Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 153 KB

Space Weather Monitor Application (SWMA) is an open-source application made for visualizing real-time space weather related data.

License: GNU General Public License v3.0

Python 100.00%
python space-physics space-weather solar-physics heliophysics

swma's Introduction

Space Weather Monitor Application (SWMA)

made-with-python Version Release Date License: GPL v3 flake8 pytest

Space Weather Monitor Application (SWMA) is an open-source software package that can be used to visualize realtime space weather related data. A preview of this tool is available in Streamlit.

๐Ÿ’พ Installation

SWMA is written in Python >=3.8 and has some package requirements, which are listed in the requirements.txt and environment.yml files. To run localy this application we recomend to create its own virtual enviroment in Python.

Recomended (conda)

Because of a range of dependencies that packages have, the simplest way to work with SWMA is in conda and to create its own environment using the conda env create. If you already have conda installed, then cd the root directory of SWMA and in your terminal do:

# Create a virtual environment in python using conda
#  see https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
conda env create -f environment.yml
conda info --envs

# Activate the enviroment
conda activate swma

# When you are done you can deactivate a virtual environment
conda deactivate

Alternative (pip)

# You can create a virtual environment in Python inside the project folder.
#  see https://docs.python.org/3/library/venv.html
python3 -m venv env

# Activate the enviroment
source env/bin/activate

# install the required packages using pip3
pip3 install -r requirements.txt

# When you are done you can deactivate a virtual environment
deactivate

Now you can run any part of the SWMA (see Usage section).

You may also add your SWMA directory to the environment variable PYTHONPATH. This is usefull if you need to run SWMA tests or when you need to run some of the package modules out of streamlit.

In the terminal use the following and change the <SWMARootDir> with your path.

export PYTHONPATH="${PYTHONPATH}:<SWMARootDir>/SWMA"

For a premanent solution, if you're using bash (on a Mac or GNU/Linux distribution), add the above line to your ~/.bashrc file (changing the <SWMARootDir> with your path first).

๐Ÿพ Run localy the SWMA application

Install the required Python packages, activate the enviroment as shown above, and then run the application with streamlit.

# cd into the package directory and run,
streamlit run swma.py

The application should now open in the default browser!

The application should open in the default browser.

๐Ÿ–ต Availiable realtime monitors:

  • Soft x-ray flux (NOAA-GOES)
  • Proton flux (NOAA-GOES)
  • Solar Propabilities (NOAA)
  • EUV Images (SDO/AIA)
  • Coronagraphic Images (SoHO/LASCO)

About the monitors:

Soft x-ray flux (NOAA-GOES): Visualize real-time measurements of X-ray flux from GOES satelites. The SXR data are provided from the NOAA Solar Weather Prediction Center (SWPC) in JSON format and are updated every 1-minute.

Proton flux (NOAA-GOES): Visualize real-time measurements of proton flux from GOES satelites. The proton flux data are provided from the NOAA Solar Weather Prediction Center (SWPC) in JSON format and are updated every 1-minute.

Solar Events Forecast (NOAA): Visualize near-real-time forecasts of the likelihood (probability) of the occurrence of a solar event. the flare and the solar proton event foracast data are provided from the NOAA Solar Weather Prediction Center (SWPC) in JSON format and are updated daily. The flare forecasts are daily probabilistic forecasts, ranging from 1% to 99%, of the likelihood of a given class x-ray flare to occur within a time interval.

EUV Images (SDO/AIA): Show near-real-time images of the solar chromosphere and corona from observations of the Atmospheric Imaging Assembly (AIA) on board the Solar Dynamics Observatory (SDO) in extreme ultraviolet (EUV). SDO is a NASA mission which has been observing the Sun since 2010. The AIA provides continuous near-real-time observations of the solar chromosphere and corona in seven channels in EUV. The images are provided from NASA/SDO in .png format.

Coronagraphic Images (SoHO/LASCO): Show near-real-time images of the solar corona in white light from observations of the Large Angle and Spectrometric Coronagraph (LASCO) on board the Solar and Heliospheric Observatory satellite (SoHO). The coronagraphic images are provided from NASA/nascom in .jpg format.

Usefull python packages ๐Ÿ“ฆ:

  • SunPy: The community-developed, free and open-source solar data analysis environment for Python.
  • AstroPy: The Astropy Project is a community effort to develop a single core package for Astronomy in Python.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.