- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Plotting solar image in Python
In Python provides SunPy package for create solar image. In this package has different files which are solar data of proton/electron fluxes from various solar observatory and solar labs.
Using pip install sunpy command, we can install sunpy package.
Here we plot a sample AIA image. AIA is Atmospheric Imaging Assembly. This is another instrument board of the SDO.
Here we use sunpy.Map() function to create a map from one of the supported data products.
Example code
import sunpy.map import matplotlib.pyplot as plt import sunpy.data.sample my_aia = sunpy.map.Map(sunpy.data.sample.AIA_171_IMAGE) fig = plt.figure() ax = plt.subplot(111, projection=my_aia) my_aia.plot() my_aia.draw_limb() my_aia.draw_grid() my_aia.draw_limb() plt.colorbar() plt.show()
Output

- Related Articles
- SunPy Plotting a Solar Image in Python
- Plotting an imshow() image in 3d in Matplotlib
- Graph Plotting in Python
- Plotting graph using seaborn in python.
- Plotting profile histograms in Python Matplotlib
- Geographical plotting using Python plotly
- Plotting animated quivers in Python using Matplotlib
- Plotting Google Map using gmplot package in Python?
- Plotting grids across the subplots in Python Matplotlib
- Python - Plotting charts in excel sheet using openpyxl module
- Plotting a cumulative graph of Python datetimes in Matplotlib
- Python - Plotting Area charts in excel sheet using XlsxWriter module
- Python - Plotting bar charts in excel sheet using XlsxWriter module
- Python - Plotting column charts in excel sheet using XlsxWriter module
- Python - Plotting Combined charts in excel sheet using XlsxWriter module

Advertisements