sunpy.sun.sunearth_distance(t='now')[source] [edit on github]

Deprecated since version 0.8: Use sunpy.coordinates.get_sunearth_distance() for higher accuracy

Returns the Sun Earth distance (AU). There are a set of higher accuracy terms not included here.

Parameters:t ([ int, float, time_string, datetime ], optional) – Time, which can be either time_string, int, or datetime object. Parsed using parse_time. Defaults to the current time.