Drawing a latitude-longitude quadrangle#
How to draw a latitude-longitude quadrangle on a map.
The purpose of this example is to demonstrate how to draw a quadrangle on a
draw_quadrangle(). A quadrangle has
edges aligned with lines of constant latitude and longitude in some
coordinate system. We start with the sample AIA image.
aia = sunpy.map.Map(AIA_171_IMAGE)
Now let’s define the bottom-left corner of the quadrangle. Note that we define it in a different coordinate frame (heliographic Stonyhurst) than the coordinate frame of the map (which is helioprojective Cartesian).
Now let’s draw a quadrangle on the map, with a width of 20 degrees and a
height of 60 degrees. Because the coordinate frame of
HeliographicStonyhurst, the width and height
correspond to the longitude and latitude directions, respectively, in that
Total running time of the script: (0 minutes 0.718 seconds)