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.
Map¶
This section contains any examples which showcase how sunpy’s
Map
can be used with solar data.

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.

Reprojecting to a Map Projection with a Custom Origin
Time Series¶
This section contains any examples which showcase how sunpy’s TimeSeries
can be used on any supported timeseries data.

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

Smoothing of timeSeries data using convolution filters
Coordinates, times, and units¶
This section contains any examples which showcase how sunpy handles coordinate information, times, and scientific units.

Converting between Helioprojective and AltAz Coordinate

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

Identifying stars in a STEREO/SECCHI COR2 coronagraph image

Setting the correct position for SOHO in a LASCO C3 Map
Plotting¶
This section contains any examples which showcase how sunpy’s visualization tools can be used on supported data types.

Overplotting SRS active region locations on a magnetograms
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.
Saving and Loading Data¶
This section contains any examples which showcase how you can use sunpy to save and load data.
Computer Vision Techniques¶
This section contains any examples which showcase how sunpy can be used with computer vision techniques to analyze solar data.
Developer tools¶
This section has examples of sunpy API that might be useful if you are developing another package.