get_sunearth_distance

sunpy.coordinates.get_sunearth_distance(time='now')[source] [edit on github]

Return the distance between the Sun and the Earth at a specified time.

Parameters:time (various) – Time to use as Time or in a parse_time-compatible format
Returns:out (Distance) – The Sun-Earth distance