Local Circumstances
Calculate the local circumstances of an eclipse for an observer
This API is available on the Starter plan or higher
The timing and characteristics of the key events (contact times) varies based on an observer's location. The 'local circumstances' represent what an observer at a given location will (weather permitting) be able to observe.
The local-circumstances
end point calculates:
C1: First contact, the start of the partial eclipse phase
C2: Second contact, the start of the total eclipse (or annularity in the case of annular eclipses)
Max eclipse: the instant of greatest eclipse
C3: Third contact, the end of totality or annularity
C4: Fourth contact, the end of the partial eclipse
C2 and C3 do not occur for partial eclipses. Not all observers will observe all events.
C2 and C3 contact times are not adjusted for the effects of the lunar limb. Uneveness in the profile of the Moon's limb can result in changes in standard contact times of a few seconds or even tens of second in some circumstances (e.g. for locations near the edge of the path of totality/annularity).
Request format
Given the midnight UTC on the date of the eclipse, converted to a Julian Day, the request is made as shown:
Or, using curl
:
If no elements are available for the given JULIAN_DAY
, a 404 Not Found
response is given.
Example request
The following request obtains the local circumstances of the eclipse of Apr 8 2024 for an observer located in Mazatlan, Mexico, in the path of totality:
The expected response is as follows:
The query
object includes all parameters used for the calculation, including a copy of the Besselian elements, which may be useful for reference and comparison with results from other sources.
The response
object includes some general properties of the eclipse, including its type and greatest magnitude (see below), and an array of contacts.
Response fields
Type
The type
field is a numeric enum
value that characterizes the eclipse. This value is applicable to the global circumstances of the eclipse, rather than specific to the local observer.
Values are defined as:
Magnitude
The magnitude
is the ratio to the Sun's diameter of the straight line segment passing through the centers of the discs of the Sun and Moon and having the Sun's limb that is nearest to the Moon's center and the Moon's limb that is nearest to the Sun's center as its endpoints.
For a partial eclipse, magnitude is > 0.0 and < 1.0
For a total eclipse, at C2 and C3, magnitude = 1.0 and at the time of greatest eclipse, magnitude is > 1.0
For an annular eclipse, magnitude is always < 1.0
Contacts
The contacts
field contains an array of 0 to 4 objects representing the contact times calculated for the event and observer.
If no eclipse is visible, there will be no contacts given
For a partial only eclipse, only C1, greatest eclipse, and C4 will be returned
For a total, annular, or hybrid (e.g. annular-total, or annular-total-annular, total-annular) eclipse, all contacts C1, C2, C3, C4 and the details of greatest eclipse (which occurs between C2 and C3) will be returned
Each contact is classified using a numeric enum value in the contact
property, where the values are as follows:
While the moment 'greatest eclipse' does not strictly speaking represent a 'contact' (i.e. a limb of the Moon tangent to a limb of the Sun), it is convenient to consider this instant in the same context as the formal contact times.
Additionally, a descriptive key
string property identifies each entry in the contacts
array, e.g. solar_eclipse_fourth_contact
.
Date
The date
field contains the time at which the contact is calculated to occur for the observer. Remember that these are local circumstances - if you repeat the call for a different latitude or longitude, you'll get different answers. (If you keep the same latitude or longitude, but vary only the observer height above sea level, you'll get very slightly different answers.)
Circumstances
The circumstances
field contains a number of numerical quantities used during the course of calculation. These can be used to verify calculation steps or to derive additional results.
Many of these values will be familiar to those who have performed their own eclipse calculations. We hope to document these more fully in the future. Please contact us if you have any specific questions.
Observational
The observational
field contains a number of values that more fully describe the observational circumstances of the contact for the observer. For example, these values can be used to construct a simple graphical visualization of the local circumstances of the eclipse at key moments.
The sub-fields are as shown:
Last updated