SouthAtlanticAnomaly

class gdt.core.geomagnetic.SouthAtlanticAnomaly[source]

Bases: object

A base class for a South Atlantic Anomaly (SAA) boundary in Earth latitude and longitude. This class should be further sub-classed with the following the class variables:

  • _latitude - A list or array of latitude points

  • _longitude - A list or array of longitude points

Attributes Summary

latitude

The latitude points of the boundary

longitude

The longitude points of the boundary

num_points

Number of vertices in polygon

Methods Summary

is_closed()

Test if the boundary represents a closed polygon.

is_convex()

Test if the boundary represents a convex polygon.

Attributes Documentation

latitude

The latitude points of the boundary

Type:

(np.array)

longitude

The longitude points of the boundary

Type:

(np.array)

num_points

Number of vertices in polygon

Type:

(int)

Methods Documentation

is_closed()[source]

Test if the boundary represents a closed polygon. A closed polygon is one where the first and last points are equal.

Returns:

(bool)

is_convex()[source]

Test if the boundary represents a convex polygon. The test is performed by measuring every interior angle of the polygon and checking if all angles are < 180 deg. The definition of a convex polygon is one where all interior angles are < 180 deg.

Returns:

(bool)