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

SunPy 4.1.2

  • Installation
  • User’s Guide
  • Example Gallery
    • Sample data
    • 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
  • API Reference
  • Release History
  • Acknowledging or Citing SunPy
  • Known Issues
  • Current status of sub-packages
  • Developer’s Guide

Example Gallery¶

The gallery contains examples of how to use sunpy. Each example is a short and self contained how-to guide for performing a specific task.

Sample data¶

Some of these examples require the SunPy sample data, which are downloaded as needed via the module sunpy.data.sample. If you want to download all of the sample data files in advance, call sunpy.data.sample.download_all().

Acquiring Data¶

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

Getting data from CDAWeb

Getting data from CDAWeb

Getting data from CDAWeb
Querying Metadata clients

Querying Metadata clients

Querying Metadata clients
Querying the GOES flare event list

Querying the GOES flare event list

Querying the GOES flare event list
Requesting cutouts of AIA images from the JSOC

Requesting cutouts of AIA images from the JSOC

Requesting cutouts of AIA images from the JSOC
Searching and downloading from the VSO

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.

Comparing Map Rotation Functions

Comparing Map Rotation Functions

Comparing Map Rotation Functions
Creating a Composite map

Creating a Composite map

Creating a Composite map
Cropping a Map

Cropping a Map

Cropping a Map
Finding bright regions with ndimage

Finding bright regions with ndimage

Finding bright regions with ndimage
Finding contours of a map

Finding contours of a map

Finding contours of a map
Finding the brightest pixel

Finding the brightest pixel

Finding the brightest pixel
Generating a map from data array

Generating a map from data array

Generating a map from data array
Histograming map data

Histograming map data

Histograming map data
Map metadata modification

Map metadata modification

Map metadata modification
Overplotting HMI Contours on an AIA Image

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 Map without any Axes
Plotting a difference image

Plotting a difference image

Plotting a difference image
Resampling Maps

Resampling Maps

Resampling Maps
Rotating a Map

Rotating a Map

Rotating a Map
Segmenting a Map based on transformation of coordinates

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

Aligning AIA and HMI Data with Reproject
Auto-Aligning AIA and HMI Data During Plotting

Auto-Aligning AIA and HMI Data During Plotting

Auto-Aligning AIA and HMI Data During Plotting
Creating Carrington Maps

Creating Carrington Maps

Creating Carrington Maps
Creating a Full Sun Map with AIA and EUVI

Creating a Full Sun Map with AIA and EUVI

Creating a Full Sun Map with AIA and EUVI
Reprojecting Images to Different Observers

Reprojecting Images to Different Observers

Reprojecting Images to Different Observers
Reprojecting Using a Spherical Screen

Reprojecting Using a Spherical Screen

Reprojecting Using a Spherical Screen
Reprojecting to a Map Projection with a Custom Origin

Reprojecting to a Map Projection with a Custom Origin

Reprojecting to a Map Projection with a Custom Origin
Rotating HMI maps so they're not 'upside-down'

Rotating HMI maps so they’re not ‘upside-down’

Rotating HMI maps so they're not 'upside-down'

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

Find Peaks in sunpy TimeSeries
Flare times on a GOES XRS plot

Flare times on a GOES XRS plot

Flare times on a GOES XRS plot
Making a power spectrum from a TimeSeries

Making a power spectrum from a TimeSeries

Making a power spectrum from a TimeSeries
Retrieving and analyzing GOES X-Ray Sensor (XRS) data

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

Retrieving and analyzing GOES X-Ray Sensor (XRS) data
Smoothing of timeSeries data using convolution filters

Smoothing of timeSeries data using convolution filters

Smoothing of timeSeries data using convolution filters
The TimeSeriesMetaData class

The TimeSeriesMetaData class

The TimeSeriesMetaData class
Using TimeSeries

Using TimeSeries

Using TimeSeries

Coordinates, times, and units¶

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

AIA to STEREO coordinate conversion

AIA to STEREO coordinate conversion

AIA to STEREO coordinate conversion
Converting between Helioprojective and AltAz Coordinate

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

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

Drawing the AIA limb on a STEREO EUVI image
Extracting intensity of a map along a line

Extracting intensity of a map along a line

Extracting intensity of a map along a line
Getting the location of the planets

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

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

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

Offsetting the north pole of a coordinate frame
Overplotting the position of the Venus transit

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

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

Setting the correct position for SOHO in a LASCO C3 Map
sunpy Constants

sunpy Constants

sunpy Constants

Plotting¶

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

Combining off-limb and disk maps

Combining off-limb and disk maps

Combining off-limb and disk maps
Creating a Composite Plot with Three Maps

Creating a Composite Plot with Three Maps

Creating a Composite Plot with Three Maps
Creating a visualization with ArrayAnimatorWCS

Creating a visualization with ArrayAnimatorWCS

Creating a visualization with ArrayAnimatorWCS
Drawing a latitude-longitude quadrangle

Drawing a latitude-longitude quadrangle

Drawing a latitude-longitude quadrangle
Drawing a rectangle on a map

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 and using a Great Arc
Drawing heliographic longitude and latitude lines

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

Editing the colormap and normalization of a Map
Fading between two maps

Fading between two maps

Fading between two maps
Finding Local Peaks in Solar Data

Finding Local Peaks in Solar Data

Finding Local Peaks in Solar Data
Fine grained Plotting Features of Map

Fine grained Plotting Features of Map

Fine grained Plotting Features of Map
HMI Showcase: Cutout

HMI Showcase: Cutout

HMI Showcase: Cutout
How to use the LineAnimator

How to use the LineAnimator

How to use the LineAnimator
Imshow and maps coordinates

Imshow and maps coordinates

Imshow and maps coordinates
Loading an HMI synoptic map

Loading an HMI synoptic map

Loading an HMI synoptic map
Making an RGB composite image

Making an RGB composite image

Making an RGB composite image
Overlaying Two Maps

Overlaying Two Maps

Overlaying Two Maps
Overplotting HEK feature/event polygons on a 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

Overplotting SRS active region locations on a magnetograms
Plot positions on a blank map

Plot positions on a blank map

Plot positions on a blank map
Plotting a coordinate grid

Plotting a coordinate grid

Plotting a coordinate grid
Plotting a map

Plotting a map

Plotting a map
Plotting a solar cycle index

Plotting a solar cycle index

Plotting a solar cycle index
Plotting points on a Map with WCSAxes

Plotting points on a Map with WCSAxes

Plotting points on a Map with WCSAxes
Plotting the solar equator and prime meridian

Plotting the solar equator and prime meridian

Plotting the solar equator and prime meridian
Plotting the solar limb

Plotting the solar limb

Plotting the solar limb
Set Axis Range When Plotting a Map

Set Axis Range When Plotting a Map

Set Axis Range When Plotting a Map
Simple Differential Rotation

Simple Differential Rotation

Simple Differential Rotation
Using the sunpy Colormaps with matplotlib

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.

Comparing differential-rotation models

Comparing differential-rotation models

Comparing differential-rotation models
Differentially rotating a coordinate

Differentially rotating a coordinate

Differentially rotating a coordinate
Differentially rotating a map

Differentially rotating a map

Differentially rotating a map
Overlaying differentially rotated gridlines

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 coordinates with asdf
Saving and loading sunpy Maps with FITS

Saving and loading sunpy Maps with FITS

Saving and loading sunpy Maps with FITS
Saving and loading sunpy Maps 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

Edge Enhancing Coronal Loops
Enhancing off-disk emission

Enhancing off-disk emission

Enhancing off-disk emission
Finding and masking bright pixels

Finding and masking bright pixels

Finding and masking bright pixels
Masking out the solar disk

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

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

© 2023, The SunPy Community

Built with Sphinx 5.3.0.
GitHub • Twitter • Chat