SunPy
  • About
    • Our Mission
    • Acknowledge SunPy
    • Code of Conduct
  • Documentation
    • sunpy
    • ndcube
    • drms
    • aiapy
    • pfsspy
    • sunraster
    • sunkit-instruments
    • sunkit-image
    • radiospectra
    • pyflct
    • ablog
  • Blog
  • Support Us
  • Get Help
  • SunPy Project
    • SunPy Project
    • Community Roles
    • Affiliated Packages
    • Emeritus role holders

SunPy 3.0.1

  • User’s Guide
  • Code Reference
  • Example Gallery
    • Acquiring Data
    • Map
    • Combining, Co-aligning, and Reprojecting Images
    • Time Series
    • Coordinates, times, and units
    • Plotting
    • Differential Rotation of the Sun
    • Saving and Loading Data
    • Computer Vision Techniques
    • Developer tools
  • Developer’s Guide
  • Release History
  • Acknowledging or Citing SunPy

Example Gallery¶

This gallery contains examples of how to use SunPy. Most of these examples require the SunPy sample data, which you can download by running:

>>> import sunpy.data.sample

Once downloaded the data will be stored in your user directory and you will not need to download it again.

Acquiring Data¶

This section contains any examples which showcase how sunpy can be used to download solar data located on remote servers.

Downloading and plotting LASCO C2 data

Downloading and plotting LASCO C2 data¶

Downloading and plotting an HMI magnetogram

Downloading and plotting an HMI magnetogram¶

Querying Metadata clients using Fido

Querying Metadata clients using Fido¶

Querying the GOES flare event list through the HEK

Querying the GOES flare event list through the HEK¶

Requesting cutouts of AIA images from the JSOC

Requesting cutouts of AIA images from the JSOC¶

Retrieving and analyzing GOES X-Ray Sensor (XRS) data

Retrieving and analyzing GOES X-Ray Sensor (XRS) data¶

Sample data set overview

Sample data set overview¶

Searching and downloading from the VSO

Searching and downloading from the VSO¶

Map¶

This section contains any examples which showcase how sunpy’s Map can be used with solar data.

Creating a Composite map

Creating a Composite map¶

Cropping a Map

Cropping a Map¶

Finding bright regions with ndimage

Finding bright regions with ndimage¶

Finding contours of a map

Finding contours of a map¶

Finding the brightest pixel

Finding the brightest pixel¶

Generating a map from data array

Generating a map from data array¶

Histograming map data

Histograming map data¶

Map metadata modification

Map metadata modification¶

Overplotting HMI Contours on an AIA Image

Overplotting HMI Contours on an AIA Image¶

Plotting a Map without any Axes

Plotting a Map without any Axes¶

Plotting a difference image

Plotting a difference image¶

Resampling Maps

Resampling Maps¶

Rotating a Map

Rotating a Map¶

Segmenting a Map based on transformation of coordinates

Segmenting a Map based on transformation of coordinates¶

Combining, Co-aligning, and Reprojecting Images¶

These examples show how to combine, align and reproject sunpy maps.

Aligning AIA and HMI Data with Reproject

Aligning AIA and HMI Data with Reproject¶

Auto-Aligning AIA and HMI Data During Plotting

Auto-Aligning AIA and HMI Data During Plotting¶

Creating a Full Sun Map with AIA and EUVI

Creating a Full Sun Map with AIA and EUVI¶

Creating a Heliographic Map

Creating a Heliographic Map¶

Reprojecting Images to Different Observers

Reprojecting Images to Different Observers¶

Reprojecting Using a Spherical Screen

Reprojecting Using a Spherical Screen¶

Time Series¶

This section contains any examples which showcase how sunpy’s TimeSeries can be used on any supported timeseries data.

Find Peaks in sunpy TimeSeries

Find Peaks in sunpy TimeSeries¶

Flare times on a GOES XRS plot

Flare times on a GOES XRS plot¶

Interacting with Data Using sunpy TimeSeries

Interacting with Data Using sunpy TimeSeries¶

Making a power spectrum from a TimeSeries

Making a power spectrum from a TimeSeries¶

Smoothing of timeSeries data using convolution filters

Smoothing of timeSeries data using convolution filters¶

The TimeSeriesMetaData class

The TimeSeriesMetaData class¶

Coordinates, times, and units¶

This section contains any examples which showcasse how sunpy handles coordinate information, times, and scientific units.

AIA to STEREO coordinate conversion

AIA to STEREO coordinate conversion¶

Converting between Helioprojective and AltAz Coordinate

Converting between Helioprojective and AltAz Coordinate¶

Create a Helioprojective Map from observations in the RA-DEC coordinate system

Create a Helioprojective Map from observations in the RA-DEC coordinate system¶

Drawing the AIA limb on a STEREO EUVI image

Drawing the AIA limb on a STEREO EUVI image¶

Getting the location of the planets

Getting the location of the planets¶

Getting the observer location from a Map

Getting the observer location from a Map¶

Identifying stars in a STEREO/SECCHI COR2 coronagraph image

Identifying stars in a STEREO/SECCHI COR2 coronagraph image¶

Offsetting the north pole of a coordinate frame

Offsetting the north pole of a coordinate frame¶

Overplotting the position of the Venus transit

Overplotting the position of the Venus transit¶

Parsing times with sunpy.time.parse_time

Parsing times with sunpy.time.parse_time¶

Setting the correct position for SOHO in a LASCO C3 Map

Setting the correct position for SOHO in a LASCO C3 Map¶

sunpy Constants

sunpy Constants¶

Plotting¶

This section contains any examples which showcase how sunpy’s visualization tools can be used on supported data types.

Creating a visualization with ArrayAnimatorWCS

Creating a visualization with ArrayAnimatorWCS¶

Drawing a latitude-longitude quadrangle

Drawing a latitude-longitude quadrangle¶

Drawing a rectangle on a map

Drawing a rectangle on a map¶

Drawing and using a Great Arc

Drawing and using a Great Arc¶

Drawing heliographic longitude and latitude lines

Drawing heliographic longitude and latitude lines¶

Editing the colormap and normalization of a Map

Editing the colormap and normalization of a Map¶

Fading between two maps

Fading between two maps¶

Finding Local Peaks in Solar Data

Finding Local Peaks in Solar Data¶

Fine grained Plotting Features of Map

Fine grained Plotting Features of Map¶

HMI Showcase: Cutout

HMI Showcase: Cutout¶

How to use the LineAnimator

How to use the LineAnimator¶

Imshow and maps coordinates

Imshow and maps coordinates¶

Loading an HMI synoptic map

Loading an HMI synoptic map¶

Overplotting HEK feature/event polygons on a map

Overplotting HEK feature/event polygons on a map¶

Overplotting SRS active region locations on a magnetograms

Overplotting SRS active region locations on a magnetograms¶

Plot positions on a blank map

Plot positions on a blank map¶

Plotting a map

Plotting a map¶

Plotting a solar cycle index

Plotting a solar cycle index¶

Plotting points on a Map with WCSAxes

Plotting points on a Map with WCSAxes¶

Set Axis Range When Plotting a Map

Set Axis Range When Plotting a Map¶

Simple Differential Rotation

Simple Differential Rotation¶

Using the sunpy Colormaps with matplotlib

Using the sunpy Colormaps with matplotlib¶

Differential Rotation of the Sun¶

This section showcases how to use RotatedSunFrame to account for differential rotation (i.e., the latitude-dependent rotation rate of the Sun) in the coordinates framework.

Differentially rotating a coordinate

Differentially rotating a coordinate¶

Differentially rotating a map

Differentially rotating a map¶

Overlaying differentially rotated gridlines

Overlaying differentially rotated gridlines¶

Saving and Loading Data¶

This section contains any examples which showcase how you can use sunpy to save and load data.

Saving and loading coordinates with asdf

Saving and loading coordinates with asdf¶

Saving and loading sunpy Maps with asdf

Saving and loading sunpy Maps with asdf¶

Computer Vision Techniques¶

This section contains any examples which showcase how sunpy can be used with computer vision techniques to analyze solar data.

Edge Enhancing Coronal Loops

Edge Enhancing Coronal Loops¶

Enhancing off-disk emission

Enhancing off-disk emission¶

Finding and masking bright pixels

Finding and masking bright pixels¶

Masking out the solar disk

Masking out the solar disk¶

Developer tools¶

This section has examples of sunpy API that might be useful if you are developing another package.

Using Remote Data Manager

Using Remote Data Manager¶

Download all examples in Python source code: gallery_python.zip

Download all examples in Jupyter notebooks: gallery_jupyter.zip

Gallery generated by Sphinx-Gallery

© 2021, The SunPy Community

Built with Sphinx 4.2.0.
Github • Twitter • Matrix