Rotating a Map#

How to rotate a map.

import matplotlib.pyplot as plt

import astropy.units as u

import sunpy.data.sample
import sunpy.map

We start with the sample data.

GenericMap provides the rotate() method which accepts an angle. This returns a rotated map and does not modify the original map. The data array size is expanded so that none of the original data is lost due to cropping.

Let’s now plot the results.

AIA $171 \; \mathrm{\mathring{A}}$ 2011-06-07 06:33:02

Total running time of the script: (0 minutes 1.205 seconds)

🏷 Tags: Map, AIA

Gallery generated by Sphinx-Gallery