sunpy

SunPy - Python for Solar Physics

Github星跟蹤圖


SunPy_
********, Latest Version, codecov, matrix, Research software impact, DOI, Powered by NumFOCUS, .., Latest Version, image:: https://img.shields.io/pypi/v/sunpy.svg
:target: https://pypi.python.org/pypi/sunpy/
.., matrix, image:: https://img.shields.io/matrix/sunpy:openastronomy.org.svg?colorB=%23FE7900&label=Chat&logo=matrix&server_fqdn=openastronomy.modular.im
:target: https://openastronomy.riot.im/#/room/#sunpy:openastronomy.org
.., codecov, image:: https://codecov.io/gh/sunpy/sunpy/branch/master/graph/badge.svg
:target: https://codecov.io/gh/sunpy/sunpy
.., Research software impact, image:: http://depsy.org/api/package/pypi/sunpy/badge.svg
:target: http://depsy.org/package/python/sunpy
.., DOI, image:: https://zenodo.org/badge/2165383.svg
:target: https://zenodo.org/badge/latestdoi/2165383
.., Powered by NumFOCUS, image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A
:target: https://numfocus.org
.., Binder, image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/sunpy/sunpy/master?filepath=examples

SunPy is an open-source Python library for Solar Physics data analysis and visualization.
Our homepage SunPy_ has more information about the project.

For some examples of using SunPy see our gallery, to see the latest changes in SunPy see our Changelog.

.. _SunPy: https://sunpy.org
.. _gallery: https://docs.sunpy.org/en/stable/generated/gallery/index.html
.. _Changelog: https://docs.sunpy.org/en/latest/whatsnew/changelog.html

Installation

The recommended way to install SunPy is with conda_.
To install SunPy once conda is installed run the following two commands:

.. code:: bash

$ conda config --append channels conda-forge
$ conda install sunpy

For detailed installation instructions, see the installation guide_ in the SunPy docs.

.. _conda: https://www.anaconda.com/distribution/
.. _installation guide: https://docs.sunpy.org/en/latest/guide/installation/index.html

Developing

If you want to develop SunPy you will need to install from GitHub.
The best way to do this is to create a new conda environment and install the git version of SunPy in it:

.. warning::

Do not clone the sunpy repository into ``$HOME/sunpy``. Depending on the operating system this location is used to store downloaded data files.
This will cause conflicts later on, so the last argument (``sunpy-git``) on the ``git clone`` line will become the local folder name of the cloned repository.

.. code:: bash

$ conda config --append channels conda-forge
$ conda create -n sunpy-dev sunpy
$ conda activate sunpy-dev
$ conda remove sunpy
$ git clone https://github.com/sunpy/sunpy.git sunpy-git
$ cd sunpy-git
$ pip install -e .[all,dev]

For detailed installation instructions, see the Newcomers' guide_ in the SunPy docs.

Usage

Here is a quick example of plotting an AIA image:

.. code:: python

>>> import sunpy.map
>>> from sunpy.data.sample import AIA_171_IMAGE
>>> aia = sunpy.map.Map(AIA_171_IMAGE)
>>> aia.peek()

Getting Help

For more information or to ask questions about SunPy, check out:

  • SunPy Documentation_
  • SunPy Matrix Channel_
  • SunPy Mailing List_

.. _SunPy Documentation: https://docs.sunpy.org/en/stable/
.. _SunPy Matrix Channel: https://chat.openastronomy.org/#/room/#sunpy:openastronomy.org
.. _SunPy Mailing List: https://groups.google.com/forum/#!forum/sunpy

Contributing
============, Open Source Helpers, If you would like to get involved, start by joining the SunPy mailing list_ and check out the Developers Guide_ section of the SunPy docs.
Stop by our chat room #sunpy:openastronomy.org_ if you have any questions.
Help is always welcome so let us know what you like to work on, or check out the issues page_ for the list of known outstanding items.

For more information on contributing to SunPy, please read our Newcomers' guide_.

.., Open Source Helpers, image:: https://www.codetriage.com/sunpy/sunpy/badges/users.svg
:target: https://www.codetriage.com/sunpy/sunpy

.. _SunPy mailing list: https://groups.google.com/forum/#!forum/sunpy
.. _Developers Guide: https://docs.sunpy.org/en/latest/dev_guide/index.html
.. _#sunpy:openastronomy.org: https://chat.openastronomy.org/#/room/#sunpy:openastronomy.org
.. _issues page: https://github.com/sunpy/sunpy/issues
.. _Newcomers' guide: https://docs.sunpy.org/en/latest/dev_guide/newcomers.html

Code of Conduct

When you are interacting with the SunPy community you are asked to follow our Code of Conduct_.

.. _Code of Conduct: https://docs.sunpy.org/en/latest/code_of_conduct.html

主要指標

概覽
名稱與所有者sunpy/sunpy
主編程語言Python
編程語言Python (語言數: 5)
平台
許可證BSD 2-Clause "Simplified" License
所有者活动
創建於2011-08-06 15:34:08
推送於2025-07-14 16:50:50
最后一次提交
發布數209
最新版本名稱v7.0.0 (發布於 2025-06-18 15:41:07)
第一版名稱v0.1 (發布於 2011-09-28 12:24:58)
用户参与
星數1k
關注者數48
派生數614
提交數19.3k
已啟用問題?
問題數2173
打開的問題數262
拉請求數5182
打開的拉請求數29
關閉的拉請求數888
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?