lair.geo.earth_radius# lair.geo.earth_radius(lat)[source]# Calculate radius of Earth assuming oblate spheroid defined by WGS84 Parameters: lat (array-like) – latitudes in degrees Returns: array-like – vector of radius in kilometers Return type: ArrayLike Notes Originally copied from https://towardsdatascience.com/the-correct-way-to-average-the-globe-92ceecd172b7 WGS84: https://earth-info.nga.mil/GandG/publications/tr8350.2/tr8350.2-a/Chapter%203.pdf