powered by
Finds the next transit of Mercury or Venus after a previous transit. Call this repeatedly to find successive transits.
astro_next_transit(body, prev_transit_time)
A list with elements:
Start time of the transit (POSIXct).
Time of closest approach (POSIXct).
End time of the transit (POSIXct).
Angular separation at peak in arcminutes.
Integer code for the planet. Use 1 for Mercury or 2 for Venus.
1
2
A POSIXct datetime from a previous transit result.
POSIXct
start <- as.POSIXct("2025-01-01", tz = "UTC") transit1 <- astro_search_transit(astro_body["MERCURY"], start) transit2 <- astro_next_transit(astro_body["MERCURY"], transit1$peak)
Run the code above in your browser using DataLab